Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

If $|f(x)|$ is continuous at $a$, is $f(x)$ continuous at $a$?

I tried doing it using composite functions. If $g(x)= |x|$, then $g\circ f(x)= |f(x)|$. Since $g(x)$ and $g\circ f(x)$ are continuous, $f(x)$ is continuous.

I don't know if this is correct. Please help.

share|improve this question
5  
composition of continuous functions doesn't work that way. If it did, we could let $g = 0$ be a constant function, and then $g\circ f$ is also a constant function, so $g$ and $g \circ f$ are continuous, and thus every function is continuous! –  JHance 4 hours ago

2 Answers 2

Let $f(x)=-1$ if $x$ is rational, and let $f(x)=1$ if $x$ is irrational.

Or else more modestly let $f(x)=-1$ if $x\lt 17$, and $f(x)=1$ for $x\ge 17$.

share|improve this answer

This is not always true. If $f(x)$ is a piecewise function such that

$f(x)=1$ for $x<a$ or $x=a$ and

$f(x)=-1$ for $x>a$

Then $|f(x)|$ is continuous at $a$ but $f(x)$ is not.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.