Question
Question: How do you use the chain rule to differentiate \[\ln (\tan x)\]?...
How do you use the chain rule to differentiate ln(tanx)?
Solution
The given expression ln(tanx) is to be differentiated using chain rule. It implies that we will carry out the differentiation in a stepwise fashion. We will first differentiate the logarithm function without differentiating the angle (tangent function) and then we will multiply it with the differentiation of the tangent function. Hence, we have the differentiation of the given expression.
For eg – if we want to differentiate sin x with respect to x, we get,
sinx=dxd(sinx)=cosx
Chain rule refers to the sequence in which the expression will be differentiated. Let’s understand it using an example, it is shown as follows:
f(g(x))=f′(g(x)).g′(x)
Here, g(x) can be thought of as a composite function
So, first the function ‘f’ is differentiated and then its composite function g(x) is differentiated.
For example – to find the derivative of sin(x3)
Let, f(g(x))=sin(x3)
So, f(x)=sinx and g(x)=x3
Differentiating we get, f′(x)=cosx and g′(x)=3x2, as we know dxd(sinx)=cosx and dxd(x3)=3x2 respectively.
Applying chain rule we have,
f(g(x))=f′(g(x)).g′(x)
Substituting in it we have,
⇒dxd(sin(x3))=cos(x3).3x2
Complete step by step solution:
According to the question we have to differentiate ln(tanx) using chain rule.
So, let’s say, f(g(x))=ln(tanx)
So, f(x)=lnx and g(x)=tanx
Differentiating we get, f′(x)=x1 and g′(x)=sec2x, as we know dxd(lnx)=x1 and dxd(tanx)=sec2x respectively.
Applying chain rule we have,
f(g(x))=f′(g(x)).g′(x)
Substituting in it we have,
⇒dxd(ln(tanx))=tanx1.sec2x
Note: we can also carry out the differentiation like-
Let h(x)=ln(tanx)
dxd(h(x))=dxd(ln(tanx))
=dtanxd(ln(tanx))×dxdtanx(tanx)
=tanx1.sec2x
As we know, dxd(lnx)=x1 and dxd(tanx)=sec2x
Therefore, dxd(ln(tanx))=tanx1.sec2x .