The correct option is D sin(|x|)−|x|
g(x)=cos(|x|)±|x|=cos(x)±|x| (∵cos x is an even function)
g(x) is not differentiable at x=0
f(x)=sin(|x|)−|x|
f(x)={sin x−x, x≥0−sin x+x, x<0}
f′(0+)=0=f′(0−)
So, f(x) is differentiable at x=0.
Similarly, check for sin(|x|)+|x|