Solveeit Logo

Question

Question: How do you differentiate \[f(x) = {\left( {\ln \left( {\tan \left( x \right)} \right)} \right)^2}\] ...

How do you differentiate f(x)=(ln(tan(x)))2f(x) = {\left( {\ln \left( {\tan \left( x \right)} \right)} \right)^2} using the chain rule?

Explanation

Solution

In the given problem, we are required to differentiate the given composite function layer by layer using the chain rule of differentiation. The basic power rule of differentiation d(xn)dx=nx(n1)\dfrac{{d\left( {{x^n}} \right)}}{{dx}} = n{x^{\left( {n - 1} \right)}} and the chain rule of differentiation are to be used in the given question so as to differentiate the given composite function. We need to keep this in mind the derivatives of basic functions such as logarithmic function in order to solve the problem.

Complete step by step solution:
Here we have a nested composite function, so we apply chain rule of differentiation. Here, we take f(g(p(x)))f\left( {g\left( {p\left( x \right)} \right)} \right) as (ln(tan(x)))2{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)^2}. So, we first differentiate (ln(tan(x)))2{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)^2} with respect to (ln(tan(x)))\left( {\ln \left( {\tan \left( x \right)} \right)} \right), then differentiate ln(tan(x))\ln \left( {\tan \left( x \right)} \right) with respect to tan(x)\tan (x)and at last, differentiate tan(x)\tan (x)with respect to x. When we differentiate (ln(tan(x)))2{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)^2} with respect to ln(tan(x))\ln \left( {\tan \left( x \right)} \right), we get 2ln(tan(x))2\ln \left( {\tan \left( x \right)} \right), when we differentiate ln(tan(x))\ln \left( {\tan \left( x \right)} \right) with respect to tan(x)\tan \left( x \right), we get 1tan(x)\dfrac{1}{{\tan \left( x \right)}} and when we differentiate tan(x)\tan \left( x \right) with respect to x, we get sec2(x){\sec ^2}\left( x \right).
The formula for chain rule is given by,
ddx[f(g(p(x)))]=dd(g(p(x)))[f(g(p(x)))]×dd(p(x))[g(p(x))]×d(p(x))dx\dfrac{d}{{dx}}\left[ {f\left( {g\left( {p\left( x \right)} \right)} \right)} \right] = \dfrac{d}{{d\left( {g\left( {p\left( x \right)} \right)} \right)}}\left[ {f\left( {g\left( {p\left( x \right)} \right)} \right)} \right] \times \dfrac{d}{{d\left( {p\left( x \right)} \right)}}\left[ {g\left( {p\left( x \right)} \right)} \right] \times \dfrac{{d\left( {p\left( x \right)} \right)}}{{dx}}
Putting in the function given to us and differentiating it layer by layer, we get,
So, ddx[(ln(tan(x)))2]=dd(ln(tan(x)))[(ln(tan(x)))2]×dd(tanx)[ln(tan(x))]×d(tanx)dx\dfrac{d}{{dx}}\left[ {{{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)}^2}} \right] = \dfrac{d}{{d\left( {\ln \left( {\tan \left( x \right)} \right)} \right)}}\left[ {{{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)}^2}} \right] \times \dfrac{d}{{d\left( {\tan x} \right)}}\left[ {\ln \left( {\tan \left( x \right)} \right)} \right] \times \dfrac{{d\left( {\tan x} \right)}}{{dx}}
On substituting all the derivatives, we get,
ddx[(ln(tan(x)))2]=2ln(tan(x))×1tanx×sec2x\dfrac{d}{{dx}}\left[ {{{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)}^2}} \right] = 2\ln \left( {\tan \left( x \right)} \right) \times \dfrac{1}{{\tan x}} \times {\sec ^2}x
Rewriting tanx\tan x as (sinxcosx)\left( {\dfrac{{\sin x}}{{\cos x}}} \right), we get,
ddx[(ln(tan(x)))2]=2ln(tan(x))×1sinxcosx×1cos2x\dfrac{d}{{dx}}\left[ {{{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)}^2}} \right] = 2\ln \left( {\tan \left( x \right)} \right) \times \dfrac{1}{{\dfrac{{\sin x}}{{\cos x}}}} \times \dfrac{1}{{{{\cos }^2}x}}
ddx[(ln(tan(x)))2]=2ln(tan(x))×1sinx×1cosx\dfrac{d}{{dx}}\left[ {{{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)}^2}} \right] = 2\ln \left( {\tan \left( x \right)} \right) \times \dfrac{1}{{\sin x}} \times \dfrac{1}{{\cos x}}
Simplifying further,
ddx[(ln(tan(x)))2]=2ln(tan(x))sinxcosx\dfrac{d}{{dx}}\left[ {{{\left( {\ln \left( {\tan \left( x \right)} \right)} \right)}^2}} \right] = 2\dfrac{{\ln \left( {\tan \left( x \right)} \right)}}{{\sin x\cos x}}
This is our required solution.

Note: This chain rule is applied, when there is function of function in the given equation. It should be kept in mind forever, because it is important to know this formula to solve many complex equations. f(x)=(ln(tan(x)))2f(x) = {\left( {\ln \left( {\tan \left( x \right)} \right)} \right)^2} is mentioned as function of function or composite function. Here in this problem, it has a logarithmic function to base e which is represented by f(x)=(ln(tan(x)))2f(x) = {\left( {\ln \left( {\tan \left( x \right)} \right)} \right)^2} . The difference between ln\ln and log\log is, in natural logarithm, ln\ln ,it has the base e in it, while in the log\log , it has the base 1010. log\log tells you that what power does 1010 has to be raised to get a number x and ln\ln tells us that what power does we have to be raised to get a number x.