The modulus function is continuous everywhere, and since $\cos x$ is continuous, $|\cos x|$ is also continuous everywhere.
However, $|\cos x|$ is not differentiable where $\cos x = 0$, which occurs at $x = \frac{\pi}{2}, \frac{3\pi}{2}, \ldots$ (odd multiples of $\frac{\pi}{2}$).
Hence, the correct statement is that the function is everywhere continuous but not differentiable at odd multiples of $\frac{\pi}{2}$.
Prove that the function \( f(x) = |x| \) is continuous at \( x = 0 \) but not differentiable.
\[ f(x) = \begin{cases} x^2 + 2, & \text{if } x \neq 0 \\ 1, & \text{if } x = 0 \end{cases} \]
is not continuous at \( x = 0 \).Is the function \( f(x) \) defined by
\[ f(x) = \begin{cases} x + 5, & \text{if } x \leq 1 \\ x - 5, & \text{if } x > 1 \end{cases} \]
continuous at \( x = 1 \)?