f(x)=(x3−x)∣(x−1)(x−5)∣=x(x+1)(x−1)∣(x−1)(x−5)∣f(x)={(x3−x)(x2−6x+5)−(x3−x)(x2−6x+5)x∈(−∞,1)∪(5,∞)∵(x3−x),∣∣x2−6x+5∣∣ both are continuous ∀x∈R ∴f(x) is also continuous ∀x∈R
Now, f′(x)={(x3−x)(2x−6)+(x2−6x+5)(3x2−1)−(x3−x)(2x−6)−(x2−6x+5)(3x2−1)x∈(−∞,1)∪(5,∞)x∈(1,5)
Now, check differentiability
At x=1 f′(1−)=(13−1)(2−6)+(1−6+5)(3−1)=0 f′(1+)=−(1−1)(2−6)−(1−6+5)(3−1)=0 ∵f′(1−)=f(1+)∴ at x=1 differentiable
At x=5 f′(5−)=(125−5)(10−6)+0 f′(5+)=−(125−5)(10−6)−0
Clearly, f′(5−)=f′(5+) ∴ non-differentiable at x=5