The function f(x) = e|x| is
(a) continuous everywhere on R
(b) not continuous at x = 0
(c) Differentiable everywhere on R
(d) not differentiable at x = 0
(e) continuous and differentiable on R
Choose the most appropriate answer from the options given below:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → (a) and (d) only
Removing the modulus:
\( \displaystyle f(x) = \begin{cases} e^{x}, & x \ge 0\\ e^{-x}, & x \lt 0 \end{cases} \)
Each piece is continuous and differentiable on its own interval, so only x = 0 needs checking.
Continuity at 0:
\( \displaystyle \lim_{x \to 0^-} e^{-x} = 1,\quad \lim_{x \to 0^+} e^{x} = 1,\quad f(0) = e^0 = 1 \)
Derivative at 0 (right-hand and left-hand):
\( \displaystyle Rf'(0) = \lim_{h \to 0^+} \frac{e^{h} - 1}{h} = 1 \)
\( \displaystyle Lf'(0) = \lim_{h \to 0^-} \frac{e^{-h} - 1}{h} = -1 \)
So f is continuous at every point of R, but at x = 0 the left and right derivatives are −1 and 1, so f is not differentiable there.
Checking the statements
(a) continuous everywhere on R — Correct. Both one-sided limits at 0 equal f(0) = 1.
(b) not continuous at x = 0 — Incorrect. The limit at 0 is 1 = f(0).
(c) Differentiable everywhere on R — Incorrect. At x = 0, Lf′(0) = −1 ≠ Rf′(0) = 1.
(d) not differentiable at x = 0 — Correct. The one-sided derivatives at 0 are −1 and 1.
(e) continuous and differentiable on R — Incorrect. f is not differentiable at x = 0.