The correct option is
B x=2f(x)=(x2−1)|x2−3x+2|+cos(|x|)
We have |x|={−xifx<0xifx>0
Also |x2−3x+2|=|(x−1)(x−2)|
⇒⎧⎪⎨⎪⎩(1−x)(2−x)ifx<1(x−1)(2−x)if1≤x≤2(1−x)(x−2)ifx≥2
As cos(−θ)=cosθ⇒cos|x|=cosx
Given function can be written as
f(x)=⎧⎪⎨⎪⎩(x2−1)(x−1)(x−2)+cosxifx≤1−(x2−1)(x−1)(x−2)+cosxif1≤x≤2(x2−1)(x−1)(x−2)+cosxifx≥2
This function is differentiable at all points except possibly at x=1 & x=2
Lf′(1)={ddx[(x2−1)(x−1)(x−2)+cosx]x=1
=−sin1
f is differentiable at x=1
Lf′(1)=Rf′(1)
Lf′(2)={ddx[−(x2−1)(x−1)(x−2)+cosx]x=2
=−3−sin2
Rf′(2)={ddx[(x2−1)(x−1)(x−2)+cosx]x=2
=3−sin2
Lf′(2)≠Rf′(2)
∴ f is not differentiable at x=2.
Option D is correct answer.