Solveeit Logo

Question

Question: How do you differentiate y = \(x\tan \left( x \right)\) ?...

How do you differentiate y = xtan(x)x\tan \left( x \right) ?

Explanation

Solution

Here in this question, we will be applying differentiation formulae for trigonometric functions. For tan(x), the differentiation formula is sec2x{{\sec }^{2}}x. Also, we have to apply product rules as x and tan(x) are in product form. The product rule of differentiation is:
ddx(fg)=fg+fg\Rightarrow \dfrac{d}{dx}(fg)=f'g+fg'
Where f and g are the functions of ‘x’ and differentiated with respect to ‘x’.

Complete step by step answer:
Let’s discuss the question now.
Differentiation is simply the method of obtaining the derivative of a function. There are various rules for finding the derivative of function(s). Let f and g as functions of ‘x’ and differentiate with respect to ‘x’ and learn how to apply rules on the functions:
Power rule: ddx(xn)=nxn1\dfrac{d}{dx}\left( {{x}^{n}} \right)=n{{x}^{n-1}}
Derivative of a constant, a: ddx(a)=0\dfrac{d}{dx}(a)=0
Derivative of a constant multiplied with function f: ddx(a.f)=af\dfrac{d}{dx}(a.f)=af'
Sum rule: ddx(f±g)=f±g\dfrac{d}{dx}(f\pm g)=f'\pm g'
Product rule: ddx(fg)=fg+fg\dfrac{d}{dx}(fg)=f'g+fg'
Quotient rule: ddx(fg)=gffgg2\dfrac{d}{dx}\left( \dfrac{f}{g} \right)=\dfrac{gf'-fg'}{{{g}^{2}}}
Apart from these, we need to learn differentiation formulae for trigonometric functions as well.
ddx(sinx)=cosx ddx(cosx)=sinx ddx(tanx)=sec2x ddx(cotx)=cosec2x ddx(secx)=secxtanx ddx(cosecx)=cosecxcotx \begin{aligned} & \Rightarrow \dfrac{d}{dx}\left( \sin x \right)=\cos x \\\ & \Rightarrow \dfrac{d}{dx}\left( \cos x \right)=-\sin x \\\ & \Rightarrow \dfrac{d}{dx}\left( \tan x \right)={{\sec }^{2}}x \\\ & \Rightarrow \dfrac{d}{dx}\left( \cot x \right)=-\cos e{{c}^{2}}x \\\ & \Rightarrow \dfrac{d}{dx}\left( \sec x \right)=\sec x\tan x \\\ & \Rightarrow \dfrac{d}{dx}\left( \cos ecx \right)=-\cos ecx\cot x \\\ \end{aligned}
As we know that tanx = sinxcosx\dfrac{\sin x}{\cos x}. so if we find ddx(sinxcosx)\dfrac{d}{dx}\left( \dfrac{\sin x}{\cos x} \right) we actually find the derivative of tanx.
Let’s see how we can derive the formula.
To find ddx(sinxcosx)\dfrac{d}{dx}\left( \dfrac{\sin x}{\cos x} \right), we have to apply quotient rule: ddx(fg)=gffgg2\dfrac{d}{dx}(\dfrac{f}{g})=\dfrac{gf'-fg'}{{{g}^{2}}}.
By applying the rule, we get:
ddx(tanx)=ddx(sinxcosx)\Rightarrow \dfrac{d}{dx}\left( \tan x \right)=\dfrac{d}{dx}\left( \dfrac{\sin x}{\cos x} \right)
ddx(tanx)=cosx.ddx(sinx)ddx(cosx).sinxcos2x\Rightarrow \dfrac{d}{dx}\left( \tan x \right)=\dfrac{\cos x.\dfrac{d}{dx}\left( \sin x \right)-\dfrac{d}{dx}\left( \cos x \right).\sin x}{{{\cos }^{2}}x}
From above formulae, ddx(sinx)=cosx\dfrac{d}{dx}\left( \sin x \right)=\cos x and ddx(cosx)=sinx\dfrac{d}{dx}\left( \cos x \right)=-\sin x. Insert the values in the equation, we get:
ddx(tanx)=cosx.(cosx)+(sinx).sinxcos2x\Rightarrow \dfrac{d}{dx}\left( \tan x \right)=\dfrac{\cos x.\left( \cos x \right)+\left( \sin x \right).\sin x}{{{\cos }^{2}}x}
Now, solve further:
ddx(tanx)=cos2x+sin2xcos2x\Rightarrow \dfrac{d}{dx}\left( \tan x \right)=\dfrac{{{\cos }^{2}}x+{{\sin }^{2}}x}{{{\cos }^{2}}x}
We already know that cos2x+sin2x=1{{\cos }^{2}}x+{{\sin }^{2}}x=1. So by putting the value, we get:
ddx(tanx)=1cos2x\Rightarrow \dfrac{d}{dx}\left( \tan x \right)=\dfrac{1}{{{\cos }^{2}}x}
We also know that 1cox=secx\dfrac{1}{cox}=\sec x, so:
ddx(tanx)=sec2x\Rightarrow \dfrac{d}{dx}\left( \tan x \right)={{\sec }^{2}}x
Now write the equation given in question:
\Rightarrow y = xtan(x)x\tan \left( x \right)
Now, we can see that x and tan(x) are in product. So we will apply product rule:
ddx(fg)=fg+fg\Rightarrow \dfrac{d}{dx}(fg)=f'g+fg'
By applying the rule, we get:
dydx=ddx(x).tan(x)+xddx(tanx)\Rightarrow \dfrac{dy}{dx}=\dfrac{d}{dx}(x).\tan (x)+x\dfrac{d}{dx}(\tan x)
As we know that ddx(x)=1\dfrac{d}{dx}(x)=1 and ddx(tanx)=sec2x\dfrac{d}{dx}(\tan x)={{\sec }^{2}}x. Putting the values we get:
dydx=1.tan(x)+x.sec2x\Rightarrow \dfrac{dy}{dx}=1.\tan (x)+x.{{\sec }^{2}}x
sec2x{{\sec }^{2}}x is nothing but 1cos2x\dfrac{1}{{{\cos }^{2}}x}. Now solve further:
dydx=tan(x)+xcos2x\Rightarrow \dfrac{dy}{dx}=\tan (x)+\dfrac{x}{{{\cos }^{2}}x}
So, finally we get the derivative of y = xtan(x)x\tan \left( x \right).

Note: The rules are to be followed while solving any question related to differentiation. Derivatives of all trigonometric functions should be on tips so that you don’t need to obtain the derivatives for derived functions. You can also directly put the value of derivative of tan(x) and solve. But if the question comes for more weightage, you can obtain the derivative of tan(x) as well.