We have, f(x)={x2,−x2,x≥0x<0
Clearly, f(x) is differentiable for all x>0 and for all x<0.
So, we check the differentiability at x=0
Now, (RHD at x=a ) =(dxd(x2))x=0=(2x)x=0=0 ∴(LHD at x=0)=(dxd(−x2))x=0=(−2x)x=0=0 (LHD at x=0)=(RHD at x=0)
So, f(x) is differentiable for all x ie, the set of all points where f(x) is differentiable is (−∞,∞)ie,R