Question:

Let \(f(x) = \begin{cases} -1, & -2 \le x \lt 0 \\ x^2 - 1, & 0 \le x \le 2 \end{cases}\) and \(g(x) = |f(x)| + f(|x|)\). Then, in the interval \((-2, 2)\), g is :

Show Hint

Write g piecewise on \((-2,0)\), \([0,1]\) and \((1,2)\) and check continuity and the one-sided derivatives at the break points 0 and 1.
Updated On: Nov 5, 2026
  • non continuous
  • differentiable at all points
  • not differentiable at two points
  • not differentiable at one point
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

For \(-2\lt x\lt0\): \(|f(x)| = 1\) and \(|x|\in(0,2)\) so \(f(|x|) = x^2 - 1\); hence \(g(x) = x^2\).
For \(0\le x\le 1\): \(|f(x)| = 1 - x^2\), \(f(|x|) = x^2 - 1\); so \(g(x) = 0\).
For \(1\lt x\lt2\): \(|f(x)| = x^2-1\), \(f(|x|) = x^2-1\); so \(g(x) = 2(x^2 - 1)\).
At \(x = 0\): left value \(0\), right value \(0\) (continuous); left derivative \(2x\to0\), right derivative \(0\): differentiable.
At \(x = 1\): values \(0\) and \(0\) (continuous); left derivative \(0\), right derivative \(4x = 4\): not differentiable.
So g is continuous and fails to be differentiable at exactly one point.
Answer: (4) not differentiable at one point
Was this answer helpful?
0
0