To check differentiable at x = 0
R{f′(0)}=h→0limhf(0+h)−f(0)
=h→0limhh2∣coshπ∣−0
=h→0limh.coshπ=0
L{f′(0)}=h→0lim−hf(0−h)−f(0)
=h→0lim−hh2∣cos(−hπ)∣−0
=0
So, f(x) is differentiable at x = 0
To check differentiability at x = 2
R{f′(2)}=h→0limhf(2+h)−f(2)
=h→0limh(2+h)2∣cos(2+hπ)∣−0
=h→0limh(2+h)2.cos(2+hπ)
=h→0limh(2+h)2.sin(2π−2+hπ)
=h→0limh.2(2+h)π.2(2+h)π(2+h)2.sin(2(2+h)πh)
⇒R(f′(2))=π
L(f′(2))=h→0lim−hf(2−h)−f(2)
=h→0lim−h(2−h)2.∣cos2−hπ∣−22.∣cos2π∣
=h→0lim−h(2−h)2−(−cos2−hπ)−0
=h→0limh−(2−h)2.sin(2π−2−hπ)
=h→0limh×2(2−h)−π×2(2−h)−π(2−h)2.sin(−2(2−h)πh)
⇒L(f′(2))=−π
Thus, f(x) is differentiable at x = 0 but not at x = 2.