Absolute Values and Continuous Functions

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 9K views
Rosey24
Messages
12
Reaction score
0

Homework Statement



We recently proved that if a function, f, is continuous, it's absolute value |f| is also continuous. I know, intuitively, that the reverse is not true, but I'm unable to come up with an example showing that, |f| is continuous, b f is not. Any examples or suggestions would be appreciated. Thanks!

Homework Equations



The Attempt at a Solution

 
Physics news on Phys.org
What about [itex]f(x) = -1[/itex] if [itex]x < 0[/itex] and 1 if [itex]x \ge 0[/itex]?
Then [itex]|f(x)| = 1[/itex] for all x - about as continuous as you get them, but f is not. In fact, you could even do something pathetic like make f equal -1 on all rationals and 1 on all irrational numbers :)