Question
Question: How do you find the second derivative of \( y=\tan \left( x \right) \) ?...
How do you find the second derivative of y=tan(x) ?
Solution
In this question, we need to find the second derivative of y=tan(x) . For this, we will first take derivative on both sides and find dxdy . We will convert tan(x) to cosxsinx and then apply quotient rule to find dxdy . After that, we will find derivative of obtained result using chain rule. It will give us our final answer. We will use formula which are as following:
(I) Quotient rule for two functions u(x) and v(x) is given as dxdv(x)u(x)=(v(x))2v(x)u′(x)−v′(x)u(x) .
(II) Chain rule is given as dxdf(g(x))=f′(g(x))⋅g′(x) .
(III) Derivative of cosx is -sinx and derivative of sinx is cosx.
(IV) secx is reciprocal of cosx.
(V) tanx is equal to cosxsinx .
(VI) cos2x+sin2x=1 .
Complete step by step answer:
Here we have to find the second derivative of y=tan(x) . We will first find the first derivative of y=tan(x) . As we know that, tanx=cosxsinx . So our function becomes y=cosxsinx .
⇒ We need to find a derivative of it.
Taking derivative on both sides we get, dxdy=dxd(cosxsinx) .
⇒ Let us use quotient rule here. We know for any two functions u(x) and v(x) derivative by quotient rule is given as, dxdv(x)u(x)=(v(x))2v(x)u′(x)−v′(x)u(x) .
Here u(x) = sinx and v(x) = cosx.
⇒ We know that, derivative of sinx is cosx and derivative of cosx is -sinx. So u'(x) = cosx and v'(x) = -sinx.
⇒ Coming back to derivative putting values of u(x), v(x), u'(x), v'(x) we get,
dxdy=dxd(cosxsinx)=cos2xcosx(cosx)−sinx(−sinx)⇒dxdy=cos2xcos2x+sin2x .
Now we know that cos2x+sin2x is equal to 1, therefore let us use it here, we get, dxdy=cos2x1 .
As we know, secx is reciprocal of cosx, so we write cosx1 as secx. Hence we get dxdy=sec2x which is the final derivative of y=tan(x) .
Now we need to find the second derivative.
Again writing sec2x as cos2x1 we get, dxdy=(cos2x1) .
x21 can be written as x−2 so here we get dxdy=(cosx)−2 .
Taking derivatives on both sides we get, dx2d2y=dxd(cosx)−2 .
Applying the chain rule and using dxd(x)n=nxn−1 we get,
dx2d2y=−2(cosx)−2−1⋅dxdcosx .
Using derivative of cosx as -sinx we get, dx2d2y=−2(cosx)−3(−sinx)⇒dx2d2y=(cosx)32sinx .
⇒ We can write (cosx)3 as cos2x we get dx2d2y=cosx2sinx⋅cos2x1.
Using tanx=cosxsinx and cos2x1=secx we get dxd2y=2sec2xtanx which is our required second derivative.
⇒ Hence the second derivative of y=tan(x) is 2sec2xtanx.
Note:
Students should take care of the signs while solving the derivatives. Note that, they can use direct formulas of derivatives of tanx and secx also which are given as dxdtanx=2sec2x and dxdsecx=secxtanx. Do not alter the order in quotient rule.