Question
Question: How do you find the derivative of \(\left| x-2 \right|\)?...
How do you find the derivative of ∣x−2∣?
Solution
In this problem we need to calculate the derivative of the given function. We can observe that the given function has absolute function. So, we will consider the given function as (x−2)2. Now we will use the substitution method and substitute the value u=x−2. Now we will differentiate the u with respect to x as well as we will differentiate the given equation with respect to x. Now we will simplify the obtained equation by using the differentiation value of u. After substituting this value and simplifying the obtained equation, we will get the required result.
Complete step by step solution:
Given that, ∣x−2∣.
Here in the above equation, we can observe the absolute function, so we can write the above equation as
⇒f(x)=(x−2)2
Let us substitute u=x−2 in the above equation, then we will get
⇒f(x)=u2
Differentiating the above equation with respect to x, then we will get
⇒f′(x)=dxd(u2)
We have the differentiation formula dxd(x)=2x1. Applying this formula in the above equation, then we will get
⇒f′(x)=2u21dxd(u2)
Again, we have the differentiation formula dxd(xn)=nxn−1. Applying this formula in the above equation, then we will have
⇒f′(x)=2u21(2u)dxdu...(i)
To find the derivative of the given equation, we need to have the value of dxdu. We have u=x−2, so the value of dxdu will be
dxdu=dxd(x−2)⇒dxdu=1−0⇒dxdu=1
Substituting this value in the equation (i) and simplifying, then we will get
⇒f′(x)=u2u(1)
Substituting the all the values we have, then we will get the derivative of the given equation as
∴f′(x)=∣x−2∣x−2
Note: We can directly find the derivative of the given equation by using the differentiation formula dxd(∣f(x)∣)=∣f(x)∣f(x). From this formula we can have the derivative of the given function as
⇒dxd(∣x−2∣)=∣x−2∣x−2
From both the methods we got the same result.