Question
Question: The number of points at which the function \(f\left( x \right)=\left| x-0.5 \right|+\left| x-1 \righ...
The number of points at which the function f(x)=∣x−0.5∣+∣x−1∣+tanx does not have a derivative in the interval (0,2) is/are?
a. 1
b. 2
c. 3
d. 4
Solution
We will split the function f(x) in four integrals as, f\left( x \right)=\left\\{ \begin{aligned}
& -x+\dfrac{1}{2}-x+1+\tan x;0\le x\le \dfrac{1}{2} \\\
& x-\dfrac{1}{2}-x+1+\tan x;\dfrac{1}{2}\le x\le 1 \\\
& x-\dfrac{1}{2}+x-1+\tan x;1\le x\le \dfrac{\pi }{2} \\\
& x-\dfrac{1}{2}+x-1+\tan x;\dfrac{\pi }{2}\le x\le 2 \\\
\end{aligned} \right.
We will then check the value of f(x) in different intervals by differentiating f(x) with respect to x and then finally compare both the sides. If both the sides are equal, then the function is differentiable in (0,2) at that point and if not then the function is not differentiable at that point.
Complete step-by-step answer :
It is given in the question that we have to find the number of points at which the function f(x)=∣x−0.5∣+∣x−1∣+tanx does not have a derivative in the interval (0,2).
We have f(x)=∣x−0.5∣+∣x−1∣+tanx. We can break the interval of (0,2) into four parts as, 0≤x≤21,21≤x≤1,1≤x≤2π,2π≤x≤2. This is because, we have f(x)=∣x−0.5∣+∣x−1∣+tanx, where, in ∣x−0.5∣, x cannot be 21, then in ∣x−1∣, x cannot be 1 and in tan x, x cannot be 2π.
Now, if we put any value of x from (0to21) in function, we get,
f\left( x \right)=\left\\{ -x+\dfrac{1}{2}-x+1+\tan x \right\\}
Now, if we put any value of x from (21to1), we get,
f\left( x \right)=\left\\{ x-\dfrac{1}{2}-x-1+\tan x \right\\}
Now, if we put any value of x from (1to2π), we get,
f\left( x \right)=\left\\{ x-\dfrac{1}{2}+x-1+\tan x \right\\}
Similarly if we put any value of x from (2πto2), we get,
f\left( x \right)=\left\\{ x-\dfrac{1}{2}+x-1+\tan x \right\\}
So, we can from the above observations, we can write,
f\left( x \right)=\left\\{ \begin{aligned}
& -x+\dfrac{1}{2}-x+1+\tan x;0\le x\le \dfrac{1}{2} \\\
& x-\dfrac{1}{2}-x+1+\tan x;\dfrac{1}{2}\le x\le 1 \\\
& x-\dfrac{1}{2}+x-1+\tan x;1\le x\le \dfrac{\pi }{2} \\\
& x-\dfrac{1}{2}+x-1+\tan x;\dfrac{\pi }{2}\le x\le 2 \\\
\end{aligned} \right.
On further solving f(x) in different intervals, we get,
f\left( x \right)=\left\\{ \begin{aligned}
& \dfrac{3}{2}-2x+\tan x;0\le x\le \dfrac{1}{2} \\\
& \dfrac{1}{2}+\tan x;\dfrac{1}{2}\le x\le 1 \\\
& 2x-\dfrac{3}{2}+\tan x;1\le x\le \dfrac{\pi }{2} \\\
& 2x-\dfrac{3}{2}+\tan x;\dfrac{\pi }{2}\le x\le 2 \\\
\end{aligned} \right.
Now, we will check the differentiability of f(x) for different values of x.
We have,
LHD=x→21f(x)=23−2x+tanxx→21f(x)=−2+sec2xx→21f(x)=−2+sec2(21)
And we have,
RHD=x→21f(x)=21+tanxx→21f(x)=0+sec2xx→21f(x)=sec2(21)
Thus, we get,
LHD=RHD
Thus, the function f(x) is not differentiable at x=21.
Now, we will consider,