Question
Question: Differentiate the following expression \({{\left( x \right)}^{\tan x}}+{{\left( \tan x \right)}^{x}}...
Differentiate the following expression (x)tanx+(tanx)x with respect to x.
Solution
Hint: Assume u=xtanx and v=(tanx)x and differentiate the equations with respect to x by taking log on both sides.
Complete step-by-step answer:
It is given in the question to differentiate the expression,(x)tanx+(tanx)x with respect to x.
Let us consider the given expression as,
y=xtanx+(tanx)x
Let us assume that u=xtanx and v=(tanx)x respectively, we get,
y=u+v
Now, we have u=xtanx.
So, taking log on both the sides, we get,
logu=logxtanx
As we know that logab=bloga, we can write as,
⇒logu=tanx.logx
Now, differentiating above equation with respect to x, we get,
dxd(logu)=dxd(tanx.logx)
We can use the chain rule for differentiating the RHS as below,
dxd(logu)=tanxdxd(logx)+logxdxd(tanx)
Since, we know that the derivative of logxis x1 and tanx is sec2x, we can write,
⇒u1.dxdy=tanx(x1)+logx(sec2x)⇒dxdy=u(xtanx+sec2xlogx)..............(1)
Now putting the value of u in equation (1), we get,
dxdu=xtanx(xtanx+sec2xlogx)
Similarly, we have,v=(tanx)x.
Again, taking log on both the sides, we get,
logv=log(tanx)x
As we know that logab=bloga, we can write as,
logv=xlog(tanx)
Now, we will differentiate the above equation with respect to x. We can use the chain rule on RHS and the standard derivatives and we get,
⇒v1dxdv=log(tanx).1+x(tanx1.sec2x)⇒dxdv=v(log(tanx)+tanxxsec2x)⇒dxdv=(tanx)x(log(tanx)+tanxxsec2x)............(2)
Therefore, we get,
dxdy=dxdu+dxdv.............(3)
Now putting the value of dxdu and dxdvin equation (3) we get,
dxdy=dxdu+dxdvdxdy=xtanx(xtanx+sec2xlogx)+(tanx)x(log(tanx)+tanxxsec2x)
Note: If you don’t assume u=x(tanx) and v=(tanx)x then the solution will become more complex. And the chances of error while solving it will also increase. Always replace using a small variable in place of the complex part of any equation.