Solveeit Logo

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 x1+x3\left| {x - 1} \right| + \left| {x - 3} \right| at x=2x = 2 is:
(a) 2
(b) 1
(c) 0
(d) 2 - 2

Explanation

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=2x = 2 to find the required value.

Complete step by step solution:
Let f(x)=x1+x3f\left( x \right) = \left| {x - 1} \right| + \left| {x - 3} \right|.
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 x1x - 1 and x3x - 3 to 0, we get
x1=0\Rightarrow x - 1 = 0 and
Simplifying the expressions, we get
x=1,3\Rightarrow x = 1,3
Thus, the critical points of the function are x=1x = 1 and x=3x = 3.
Case 1: When xx is less than 1.
When xx is less than 1, the value of the modulus function x1\left| {x - 1} \right| can be written as (x1) - \left( {x - 1} \right).
When xx is less than 1, the value of the modulus function x3\left| {x - 3} \right| can be written as (x3) - \left( {x - 3} \right).
Therefore, the function f(x)=x1+x3f\left( x \right) = \left| {x - 1} \right| + \left| {x - 3} \right| becomes
f(x)=(x1)(x3) f(x)=1(x1)1(x3)\begin{array}{l} \Rightarrow f\left( x \right) = - \left( {x - 1} \right) - \left( {x - 3} \right)\\\ \Rightarrow f\left( x \right) = - 1\left( {x - 1} \right) - 1\left( {x - 3} \right)\end{array}
Multiplying the terms using the distributive law of multiplication, we get
f(x)=x+1x+3\Rightarrow f\left( x \right) = - x + 1 - x + 3
Adding and subtracting the like terms in the expression, we get
f(x)=2x+4\Rightarrow f\left( x \right) = - 2x + 4
Thus, f(x)=2x+4f\left( x \right) = - 2x + 4 when xx is less than 1.
Case 2: When xx is between 1 and 3.
When xx is between 1 and 3, the value of the modulus function x1\left| {x - 1} \right| can be written as x1x - 1.
When xx is between 1 and 3, the value of the modulus function x3\left| {x - 3} \right| can be written as (x3) - \left( {x - 3} \right).
Therefore, the function f(x)=x1+x3f\left( x \right) = \left| {x - 1} \right| + \left| {x - 3} \right| becomes
f(x)=x1(x3) f(x)=x11(x3)\begin{array}{l} \Rightarrow f\left( x \right) = x - 1 - \left( {x - 3} \right)\\\ \Rightarrow f\left( x \right) = x - 1 - 1\left( {x - 3} \right)\end{array}
Multiplying the terms using the distributive law of multiplication, we get
f(x)=x1x+3\Rightarrow f\left( x \right) = x - 1 - x + 3
Adding and subtracting the like terms in the expression, we get
f(x)=2\Rightarrow f\left( x \right) = 2
Thus, f(x)=2f\left( x \right) = 2 when xx is between 1 and 3.
Case 3: When xx is more than 3.
When xx is more than 3, the value of the modulus function x1\left| {x - 1} \right| can be written as x1x - 1.
When xx is more than 3, the value of the modulus function x3\left| {x - 3} \right| can be written as x3x - 3.
Therefore, the function f(x)=x1+x3f\left( x \right) = \left| {x - 1} \right| + \left| {x - 3} \right| becomes
f(x)=x1+x3\Rightarrow f\left( x \right) = x - 1 + x - 3
Adding and subtracting the like terms in the expression, we get
f(x)=2x4\Rightarrow f\left( x \right) = 2x - 4
Thus, f(x)=2x4f\left( x \right) = 2x - 4 when xx 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=2x = 2.
At x=2x = 2, the value of the function is 2.
Thus, we get
f(x)=2\Rightarrow f\left( x \right) = 2
Differentiating both sides with respect to xx, we get
d[f(x)]dx=d(2)dx\Rightarrow \dfrac{{d\left[ {f\left( x \right)} \right]}}{{dx}} = \dfrac{{d\left( 2 \right)}}{{dx}}
The derivative of a constant is always 0.
Thus, we get
d[f(x)]dx=0\Rightarrow \dfrac{{d\left[ {f\left( x \right)} \right]}}{{dx}} = 0
Substituting f(x)=x1+x3f\left( x \right) = \left| {x - 1} \right| + \left| {x - 3} \right| in the equation, we get
d[x1+x3]dx=0\Rightarrow \dfrac{{d\left[ {\left| {x - 1} \right| + \left| {x - 3} \right|} \right]}}{{dx}} = 0
Therefore, we get the derivative of the function x1+x3\left| {x - 1} \right| + \left| {x - 3} \right| at x=2x = 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)=ab+aca\left( {b + c} \right) = a \cdot b + a \cdot c.
We used the term ‘modulus function’ in the solution. A function of the form x\left| x \right| is called a modulus function. The value of the function is x=x\left| x \right| = - x at x<0x < 0, and x=x\left| x \right| = x at x0x \ge 0.