To determine the differentiability of the function
f(x)={x2cos(xπ),0,x=0x=0
at x=0 and x=2, we analyze each point using the fundamental definition of differentiability.
1. Differentiability at x=0
By definition, the derivative of f(x) at x=0 is given by:
f′(0)=limh→0hf(0+h)−f(0)
Substituting f(0)=0 and f(h)=h2cos(hπ)=h2cos(hπ) for h=0:
f′(0)=limh→0hh2∣cos(hπ)∣−0=limh→0hcos(hπ)
Since 0≤cos(hπ)≤1 for all h=0, we have:
−∣h∣≤hcos(hπ)≤∣h∣
Applying the Squeeze (Sandwich) Theorem:
limh→0(−∣h∣)=0andlimh→0∣h∣=0
Therefore,
f′(0)=limh→0hcos(hπ)=0
Since f′(0) exists and is finite, f is differentiable at x=0.
2. Differentiability at x=2
Let g(x)=x2cos(xπ) so that f(x)=∣g(x)∣ near x=2.
At x=2:
g(2)=22cos(2π)=4×0=0
Now, we evaluate the derivative of g(x) at x=2:
g′(x)=2xcos(xπ)+x2(−sin(xπ))⋅(−x2π)=2xcos(xπ)+πsin(xπ)
Evaluating at x=2:
g′(2)=2(2)cos(2π)+πsin(2π)=4(0)+π(1)=π=0
Now, let's find the Left-Hand Derivative (LHD) and Right-Hand Derivative (RHD) of f(x) at x=2:
Left-Hand Derivative (f′(2−)):
For x<2 (close to 2), xπ>2π, which implies cos(xπ)<0, so g(x)<0.
Thus, f(x)=∣g(x)∣=−g(x).
f′(2−)=limx→2−x−2−g(x)−0=−g′(2)=−π
Right-Hand Derivative (f′(2+)):
For x>2 (close to 2), xπ<2π, which implies cos(xπ)>0, so g(x)>0.
Thus, f(x)=∣g(x)∣=g(x).
f′(2+)=limx→2+x−2g(x)−0=g′(2)=π
Since f′(2−)=f′(2+) (−π=π), f is non-differentiable at x=2.
Conclusion
f is differentiable at x=0 but non-differentiable at x=2.