Question
Question: How do you differentiate y = \(x\tan \left( x \right)\) ?...
How do you differentiate y = xtan(x) ?
Solution
Here in this question, we will be applying differentiation formulae for trigonometric functions. For tan(x), the differentiation formula is sec2x. Also, we have to apply product rules as x and tan(x) are in product form. The product rule of differentiation is:
⇒dxd(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: dxd(xn)=nxn−1
Derivative of a constant, a: dxd(a)=0
Derivative of a constant multiplied with function f: dxd(a.f)=af′
Sum rule: dxd(f±g)=f′±g′
Product rule: dxd(fg)=f′g+fg′
Quotient rule: dxd(gf)=g2gf′−fg′
Apart from these, we need to learn differentiation formulae for trigonometric functions as well.
⇒dxd(sinx)=cosx⇒dxd(cosx)=−sinx⇒dxd(tanx)=sec2x⇒dxd(cotx)=−cosec2x⇒dxd(secx)=secxtanx⇒dxd(cosecx)=−cosecxcotx
As we know that tanx = cosxsinx. so if we find dxd(cosxsinx) we actually find the derivative of tanx.
Let’s see how we can derive the formula.
To find dxd(cosxsinx), we have to apply quotient rule: dxd(gf)=g2gf′−fg′.
By applying the rule, we get:
⇒dxd(tanx)=dxd(cosxsinx)
⇒dxd(tanx)=cos2xcosx.dxd(sinx)−dxd(cosx).sinx
From above formulae, dxd(sinx)=cosx and dxd(cosx)=−sinx. Insert the values in the equation, we get:
⇒dxd(tanx)=cos2xcosx.(cosx)+(sinx).sinx
Now, solve further:
⇒dxd(tanx)=cos2xcos2x+sin2x
We already know that cos2x+sin2x=1. So by putting the value, we get:
⇒dxd(tanx)=cos2x1
We also know that cox1=secx, so:
⇒dxd(tanx)=sec2x
Now write the equation given in question:
⇒y = xtan(x)
Now, we can see that x and tan(x) are in product. So we will apply product rule:
⇒dxd(fg)=f′g+fg′
By applying the rule, we get:
⇒dxdy=dxd(x).tan(x)+xdxd(tanx)
As we know that dxd(x)=1 and dxd(tanx)=sec2x. Putting the values we get:
⇒dxdy=1.tan(x)+x.sec2x
sec2x is nothing but cos2x1. Now solve further:
⇒dxdy=tan(x)+cos2xx
So, finally we get the derivative of y = xtan(x).
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.