Question
Question: The value of the derivative of \[\left| {x - 1} \right| + \left| {x - 3} \right|\] at \[x = 2\] is: ...
The value of the derivative of ∣x−1∣+∣x−3∣ at x=2 is:
(a) 2
(b) 1
(c) 0
(d) −2
Solution
Here, we need to find the value of the derivative of the function at the given value. First, we will find the critical values of the modulus function and find the values of the function at different intervals. Then, we will differentiate the value of the function at x=2 to find the required value.
Complete step by step solution:
Let f(x)=∣x−1∣+∣x−3∣.
We can observe that the given function is the sum of two modulus function.
Thus, we will first find the critical points of the function, where the value of the function changes.
Equating x−1 and x−3 to 0, we get
⇒x−1=0 and
Simplifying the expressions, we get
⇒x=1,3
Thus, the critical points of the function are x=1 and x=3.
Case 1: When x is less than 1.
When x is less than 1, the value of the modulus function ∣x−1∣ can be written as −(x−1).
When x is less than 1, the value of the modulus function ∣x−3∣ can be written as −(x−3).
Therefore, the function f(x)=∣x−1∣+∣x−3∣ becomes
⇒f(x)=−(x−1)−(x−3) ⇒f(x)=−1(x−1)−1(x−3)
Multiplying the terms using the distributive law of multiplication, we get
⇒f(x)=−x+1−x+3
Adding and subtracting the like terms in the expression, we get
⇒f(x)=−2x+4
Thus, f(x)=−2x+4 when x is less than 1.
Case 2: When x is between 1 and 3.
When x is between 1 and 3, the value of the modulus function ∣x−1∣ can be written as x−1.
When x is between 1 and 3, the value of the modulus function ∣x−3∣ can be written as −(x−3).
Therefore, the function f(x)=∣x−1∣+∣x−3∣ becomes
⇒f(x)=x−1−(x−3) ⇒f(x)=x−1−1(x−3)
Multiplying the terms using the distributive law of multiplication, we get
⇒f(x)=x−1−x+3
Adding and subtracting the like terms in the expression, we get
⇒f(x)=2
Thus, f(x)=2 when x is between 1 and 3.
Case 3: When x is more than 3.
When x is more than 3, the value of the modulus function ∣x−1∣ can be written as x−1.
When x is more than 3, the value of the modulus function ∣x−3∣ can be written as x−3.
Therefore, the function f(x)=∣x−1∣+∣x−3∣ becomes
⇒f(x)=x−1+x−3
Adding and subtracting the like terms in the expression, we get
⇒f(x)=2x−4
Thus, f(x)=2x−4 when x is more than 3.
Therefore, we get
f\left( x \right) = \left\\{ {\begin{array}{*{20}{c}}{ - 2x + 4}\\\2\\\\{2x - 4}\end{array}{\rm{ }}\begin{array}{*{20}{c}};\\\;\\\;\end{array}{\rm{ }}\begin{array}{*{20}{c}}{x < 1}\\\\{1 < x < 3}\\\\{x > 3}\end{array}} \right.
We need to find the derivative of the function at x=2.
At x=2, the value of the function is 2.
Thus, we get
⇒f(x)=2
Differentiating both sides with respect to x, we get
⇒dxd[f(x)]=dxd(2)
The derivative of a constant is always 0.
Thus, we get
⇒dxd[f(x)]=0
Substituting f(x)=∣x−1∣+∣x−3∣ in the equation, we get
⇒dxd[∣x−1∣+∣x−3∣]=0
Therefore, we get the derivative of the function ∣x−1∣+∣x−3∣ at x=2 as 0.
Thus, the correct option is option (c).
Note:
We used the distributive law of multiplication in the solution. The distributive law of multiplication states that a(b+c)=a⋅b+a⋅c.
We used the term ‘modulus function’ in the solution. A function of the form ∣x∣ is called a modulus function. The value of the function is ∣x∣=−x at x<0, and ∣x∣=x at x≥0.