Let $f$ and $g$ be two functions defined as $f(x) = \begin{cases} x + 1, & x < 0 \\ |x - 1|, & x \geq 0 \end{cases}$ and $g(x) = \begin{cases} x + 1, & x < 0 \\ 1, & x \geq 0 \end{cases}$. Then $(g \circ f)(x)$ is
- (1)
Continuous everywhere but not differentiable exactly at one point
- (2)
Continuous everywhere but not differentiable at $x = 1$
- (3)
Differentiable everywhere
- (4)
Not continuous at $x = 1$
Show answer
Option (1) is correct.
Key from source paper