Question
Question: How do you determine the differentiability of \(f\left( x \right)\) , where \(f\left( x \right)=\lef...
How do you determine the differentiability of f(x) , where f(x)=∣x−1∣+∣x−2∣+∣x−3∣ ?
Solution
In order to find solution to this problem, we will see if the function f(x) is differentiable or non-differentiable for any point by checking the limit x→alimx−af(x)−f(a) exists that is, it is a finite number, which is the slope of this tangent line.
Complete step by step solution:
The function f is differentiable at a if it has a non-vertical tangent at the corresponding point on the graph, that is, at (a,f(a)).
That means that the limit x→alimx−af(x)−f(a) exists that is, it is a finite number, which is the slope of this tangent line.
And when this limit exists, it is called derivative of f at a and denoted f′(a) or dxdf(a) .
So, a point where the function is not differentiable is a point where this limit does not exist, that is, it is either infinite (which is a case of a vertical tangent), where the function is discontinuous, or where there are two different one-sided limits like for f(x)=∣x∣ at 0.
Now we have our function as:
f(x)=∣x−1∣+∣x−2∣+∣x−3∣
Now we will use piecewise linear definition with different slopes at x=1,2,3...
Therefore, we have our equation as:
f=(1−x)+(2−x)+(3−x)=6−3x,x∈[−∞,1]
By differentiating, we get:
f′=−3,x∈(−∞,1)
We get our second equation as:
f=(x−1)+(2−x)+(3−x)=4−x,x∈[1,2]
By differentiating, we get:
f′=−1,x∈(1,2)
We get our third equation as:
f=(x−1)+(x−2)+(3−x)=x,x∈[2,3]
By differentiating, we get:
f′=1,x∈(2,3)
We get our fourth equation as:
f=(x−1)+(x−2)+(x−3)=3x−6,x∈[3,∞]
By differentiating, we get:
f′=3,x∈(3,∞)
Therefore, the function is differentiable at x=−3,−1,1,3.
Note: A function is non-differentiable at any point at which it is discontinuous, it has a corner point
This happens at a if h→0−limhf(a+h)−f(a)=h→0+limhf(a+h)−f(a) and it has a vertical tangent line.
This happens at a if x→a−lim∣f′(x)∣=∞ or x→a+lim∣f′(x)∣=∞
If the above condition satisfies, then a function is non-differentiable.