Question 13 Marks
Write the value of the derivative of f(x) = |x − 1| + |x − 3| at x = 2.
Answer
View full question & answer→Given: f(x) = |x - 1| + |x - 3|
$\Rightarrow\text{f(x)}=\begin{cases}-(\text{x}-1)-(\text{x}-3), & \text{x}<1\\ \text{x}-1-(\text{x}-3),& 1\leq\text{x}<3\$\text{x}-1)+(\text{x}-3),&\text{x}\geq3\end{cases}$
$\Rightarrow\text{f(x)}=\begin{cases}-2\text{x}+4, & \text{x}<1\\ 2,& 1\leq\text{x}<3\\2\text{x}-4,&\text{x}\geq3\end{cases}$
Wecheck differentiable at x = 2
(LHL at x = 2)
$\lim\limits_{\text{x}\rightarrow2^{-}}\frac{\text{f(x)}-\text{f}(2)}{\text{x}-2}$
$=\lim\limits_{\text{h}\rightarrow0}\frac{\text{f}(2-\text{h})-\text{f}(2)}{2-\text{h}-2}$
$=\lim\limits_{\text{h}\rightarrow0}\frac{2-2}{-\text{h}}$
$=0$
$\Rightarrow\text{f(x)}=\begin{cases}-(\text{x}-1)-(\text{x}-3), & \text{x}<1\\ \text{x}-1-(\text{x}-3),& 1\leq\text{x}<3\$\text{x}-1)+(\text{x}-3),&\text{x}\geq3\end{cases}$
$\Rightarrow\text{f(x)}=\begin{cases}-2\text{x}+4, & \text{x}<1\\ 2,& 1\leq\text{x}<3\\2\text{x}-4,&\text{x}\geq3\end{cases}$
Wecheck differentiable at x = 2
(LHL at x = 2)
$\lim\limits_{\text{x}\rightarrow2^{-}}\frac{\text{f(x)}-\text{f}(2)}{\text{x}-2}$
$=\lim\limits_{\text{h}\rightarrow0}\frac{\text{f}(2-\text{h})-\text{f}(2)}{2-\text{h}-2}$
$=\lim\limits_{\text{h}\rightarrow0}\frac{2-2}{-\text{h}}$
$=0$