Solveeit Logo

Question

Question: What is the derivative of \(y=\tan \left( x \right)\)?...

What is the derivative of y=tan(x)y=\tan \left( x \right)?

Explanation

Solution

In this question we have been asked to find the derivative of the given trigonometric function tan(x)\tan \left( x \right). We will first rewrite the expression in the form of the quotient of sin(x)\sin \left( x \right) and cos(x)\cos \left( x \right),then we will use the formula of derivative of the term in the form of uv\dfrac{u}{v}. We will use the formula ddxuv=vdudxudvdxv2\dfrac{d}{dx}\dfrac{u}{v}=\dfrac{v\dfrac{du}{dx}-u\dfrac{dv}{dx}}{{{v}^{2}}} and simplify the terms to get the required solution.

Complete step-by-step solution:
We have the term given to us as:
y=tan(x)\Rightarrow y=\tan \left( x \right)
Since we have to find the derivative of the term, it can be written as:
y=ddxtan(x)\Rightarrow y'=\dfrac{d}{dx}\tan \left( x \right)
Now we know that tan(x)=sin(x)cos(x)\tan \left( x \right)=\dfrac{\sin \left( x \right)}{\cos \left( x \right)} therefore, on substituting, we get:
y=ddxsin(x)cos(x)\Rightarrow y'=\dfrac{d}{dx}\dfrac{\sin \left( x \right)}{\cos \left( x \right)}
We can see that the expression is in the form of the derivative of uv\dfrac{u}{v}.
On using the formula ddxuv=vdudxudvdxv2\dfrac{d}{dx}\dfrac{u}{v}=\dfrac{v\dfrac{du}{dx}-u\dfrac{dv}{dx}}{{{v}^{2}}} on the expression, we get:
y=cos(x)ddxsin(x)sin(x)ddxcos(x)cos2(x)\Rightarrow y'=\dfrac{\cos \left( x \right)\dfrac{d}{dx}\sin \left( x \right)-\sin \left( x \right)\dfrac{d}{dx}\cos \left( x \right)}{{{\cos }^{2}}\left( x \right)}
Now we know that ddxsin(x)=cos(x)\dfrac{d}{dx}\sin \left( x \right)=\cos \left( x \right),and ddxcos(x)=sin(x)\dfrac{d}{dx}\cos \left( x \right)=-\sin \left( x \right) therefore on substituting them in the expression, we get:
y=cos(x)cos(x)sin(x)(sin(x))cos2(x)\Rightarrow y'=\dfrac{\cos \left( x \right)\cos \left( x \right)-\sin \left( x \right)\left( -\sin \left( x \right) \right)}{{{\cos }^{2}}\left( x \right)}
Now we know that the multiplication of two negative terms yields a positive term therefore, on simplifying the terms in the numerator, we get:
y=cos2(x)+sin2(x)cos2(x)\Rightarrow y'=\dfrac{{{\cos }^{2}}\left( x \right)+{{\sin }^{2}}\left( x \right)}{{{\cos }^{2}}\left( x \right)}
Now we know the trigonometric identity that sin2(x)+cos2(x)=1{{\sin }^{2}}\left( x \right)+{{\cos }^{2}}\left( x \right)=1 therefore on substituting, we get:
y=1cos2(x)\Rightarrow y'=\dfrac{1}{{{\cos }^{2}}\left( x \right)}
Now we know that 1cos(x)=sec(x)\dfrac{1}{\cos \left( x \right)}=\sec \left( x \right) therefore, we get:
y=sec2x\Rightarrow y'={{\sec }^{2}}x, which is the required derivative.
Therefore, we can write:
ddxtan(x)=sec2(x)\Rightarrow \dfrac{d}{dx}\tan \left( x \right)={{\sec }^{2}}\left( x \right), which is the required solution.

Note: The solution found in this question should be remembered as a direct result or formula of the term y=tan(x)y=\tan \left( x \right) and substituted in questions wherever derivative of tan(x)\tan \left( x \right) is required. It is to be remembered that differentiation is the inverse of integration. If the derivative of a term aa is bb, then the integration of the term bb will be aa.