I have to prove the following: Show that if $f : (a, b) →\mathbb R$ is continuous then $|f|$ is continuous on $(a, b)$ as well.
So I want to show that $lim_{x \rightarrow x_0} |f(x)| = |f(x_0)|$. It's easy to show this for $x_0$ s.t. $f(x_0) < 0$ or $f(x_0) > 0$ because we know, for example, that if $lim_{x \rightarrow x_0} f(x) = f(x_0) > 0$ then there must exist a $\delta$ s.t. $f(x) < 0$ $\forall |x-x_0|<\delta$ so we can say $lim_{x \rightarrow x_0} |f(x)| = lim_{x \rightarrow x_0} f(x) = f(x_0) = |f(x_0)|$. However I'm not sure how to show it for $x_0$ s.t. $f(x_0) = 0$. The way I tried to show it $x_0$ s.t. $f(x_0) = 0$ was by saying that if $f(x_0) = 0$ then $lim_{x \rightarrow x_0} f(x) = f(x_0) = 0 =|f(x_0)|$ so we must have $lim_{x \rightarrow x_0} |f(x)| = |f(x_0)|$. But this to me just seemed trivially true and I wasn't really sure if my justification was a justification at all.