Question
Question: If \(f(x)=\sqrt{\left| x-1 \right|}\) and\(g(x)=\sin x\) then calculate\((fog)x\) and \((gof)x\) dis...
If f(x)=∣x−1∣ andg(x)=sinx then calculate(fog)x and (gof)x discuss differentiability of (gof)x at x=1.
Solution
Hint: The given problem is related to composite functions and their differentiability. Use the formula given below and check the differentiability by removing the modulus sign.
(gof)x=g[f(x)]
Complete step-by-step solution -
We will write the given first,
f(x)=∣x−1∣Andg(x)=sinx …………………………………….. (1)
Now, we will find (fog)x and (gof)x separately,
(1). (fog)x=f[g(x)]
As, f(x)=∣x−1∣
To find f[g(x)] put x=g(x)i.e. put, x=sinx
∴(fog)x=∣sinx−1∣
(2). (gof)x=g[f(x)]
As, g(x)=sinx
To findg[f(x)] putx=f(x) i.e. put, x=∣x−1∣
∴(gof)x=sin(∣x−1∣)……………………………………… (2)
Now to check the differentiability of function given in equation (2) we should define it by removing its modulus first,
Modulus functions can be defined as shown below,
If f(x)=∣x∣ then,
f(x)=−x For x<0
f(x)=x For x≥0
Similarly we can define (gof)x with the help of above definition,
(gof)x=sin(−(x−1)) For, x−1<0
(gof)x=sin(x−1) For, x−1≥0
If we have to simplify the limits then we should add it by 1 on both sides,
(gof)x=sin(−(x−1)) For, x−1+1<0+1
(gof)x=sin(x−1) For, x−1+1≥0+1
Now by further algebraic simplifications we can write above equations as,
(gof)x−=sin(−x+1) For, x<1
(gof)x+=sin(x−1) For, x≥1
Now as asked in problem we have to check the differentiability of (gof)x at 1,
Consider, Left hand derivative (L.H.D.) of the function
L.H.D.=(gof)′x−
∴L.H.D.=dxdsin(−x+1)
As we know the Formula: dxdsinx=cosx
∴L.H.D.=cos(−x+1)dxd(−x+1)
As we know the Formula: dxd(x)=2x1
∴L.H.D.=cos(−x+1)2−x+1−1
Simply put x=1 in above equation,
∴[L.H.D.]x=1=cos(−1+1)2−1+11
∴[L.H.D.]x=1=cos(0)201
∴[L.H.D.]x=1=∞………………………………………. (3)
Consider, Right hand derivative (R.H.D.) of the function
R.H.D.=(gof)′x+
∴R.H.D.=dxdsin(x−1)
As we know the Formula: dxdsinx=cosx,
∴R.H.D.=cos(x−1)dxd(x−1)
As we know the Formula: dxd(x)=x1
∴R.H.D.=cos(x−1)2x−11
Simply put x=1 in above equation,
∴[R.H.D]x=1=cos(1−1)21−11
∴[R.H.D]x=1=cos(0)201
∴[R.H.D]x=1=∞…………………………………… (4)
From (3) and (4) we can write,
L.H.D.=R.H.D.
Therefore, the function (gof)x is differentiable at 1.
Note: Don’t get confused if you are getting ∞ as a derivative at a particular point as it only means that the tangent is parallel to the y-axis. Students generally think that when they are getting derivative as ∞ , it might be wrong. But it is not the case. Derivative of a function can be 0, any real number or ∞ .