Let f be a real-valued function of a real variable defined as \(f(x)=x^{2}\) for \(x \gt 0\), and\(f(x)=-x^{2}\) for \(x \lt 0\). Which one of the following statements is true?
A
f(x) is discontinuous at x=0
B
f(x) is continuous but not differentiable at x=0
C
f(x) is differentiable but its first derivative is not continuous at x=0
D
f(x) is differentiable but its first derivative is not differentiable at x=0
Show the worked solution\[\begin{aligned} f(x)&=\left\{\begin{matrix} x^2 & x \geq 0\\ -x^2 & x \lt 0 \end{matrix}\right.\\ f'(x)&=\left\{\begin{matrix} 2x & x \geq 0\\ -2x & x \lt 0 \end{matrix}\right.\\ f''(x)&=\left\{\begin{matrix} 2 & x \geq 0\\ -2 & x \lt 0 \end{matrix}\right. \end{aligned}\]The first derivation of f (i.e) f'(x) is not derivable at x=0.
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com