Question
Question: If the given expression is \[y={{x}^{x}}+{{\left( \sin x \right)}^{\cot x}}\]. Find \[\dfrac{dy}{dx}...
If the given expression is y=xx+(sinx)cotx. Find dxdy.
Solution
Here first of all take xx=u and (sinx)cotx=v to get dxdy=dxdu+dxdv. Now to get dxdy, separately differentiate u and v and substitute it in the expression of dxdy. Also, for u(x)=[f(x)]g(x), always first take log on both sides and then differentiate.
Complete step-by-step answer :
We are given that y=xx+(sinx)cotx. We have to find the value of dxdy.
Let us first consider the function given in the question.
y=xx+(sinx)cotx
Here, let us assume xx=u and (sinx)cotx=v
So, we get, y = u + v
By differentiating both sides of the above equation with respect to x, we get,
dxdy=dxdu+dxdv....(i)
Let us consider the function xx, that is
u=xx
By taking log on both sides, we get,
logu=logxx
We know that logmn=nlogm. By applying this in the RHS of the above equation, we get,
logu=xlogx
Now, by differentiating both the sides with respect to x, we get,
dxd(logu)=dxd(xlogx)
We know that, by chain rule if y = f (u), then dxdy=f′(u)dxdu
Also, we know that dxd(logx)=x1. By applying these in the LHS of the above equation, we get,
u1dxdu=dxd(xlogx)
We know that by product rule dxd(f(x).g(x))=f.dxdg+g.dxdf
By applying this in the RHS of the above equation, we get,
⇒u1dxdu=xdxd(logx)+logxdxd(x)
⇒u1dxdu=x.(x1)+logx.(1)
By multiplying ‘u’ on both sides, we get,
dxdu=u(1+logx)
By substituting the value of u=xx. We get,
dxdu=xx(1+logx)....(ii)
Now, let us consider the function (sinx)cotx, that is
v=(sinx)cotx
By taking log on both sides, we get,
logv=log(sinx)cotx
We know that logmn=nlogm. By applying this in the RHS of the above equation, we get,
logv=cotx.log(sinx)
Now, by differentiating both sides with respect to x, we get,
dxd(logv)=dxd[cotx.log(sinx)]
Now, by applying chain rule in LHS of the above equation, we get,
v1dxdv=dxd[cotx.log(sinx)]
Now, by applying product rule in RHS of the above equation, we get,
v1dxdv=cotx.dxd[log(sinx)]+[log(sinx)].dxd(cotx)
By applying chain rule in the RHS of the above equation, we get,
v1dxdv=(cotx).(sinx1)dxd(sinx)+[log(sinx)].dxd(cotx)
We know that dxd(sinx)=cosx and dxd(cotx)=(−cosec2x).
By applying these in the above equation, we get,
v1.dxdv=sinx(cotx).(cosx)+[log(sinx)](−cosec2x)
Now, by multiplying ‘v’ on both sides, we get,
dxdv=v(sinxcotx.cosx−(cosec2x)log(sinx))
By substituting v=log(sinx)cotx and sinxcosx=cotx, we get,
dxdv=log(sinx)cotx[(cotx)2−(cosec2x).log(sinx)]
Or, dxdv=(cotx)log(sinx)[(cotx)2−(cosec2x)log(sinx)]
By taking (cotx)log(sinx) inside the bracket, we get,
dxdv=(cotx)3log(sinx)−(cosec2x)(cotx)[log(sinx)]2....(iii)
Now by substituting values of dxdu and dxdv from equation (ii) and (iii) in equation (i), we get,
dxdy=xx(1+logx)+[(cotx)3log(sinx)−(cosec2x)(cotx)(log(sinx))2]
Therefore, we have got the value of dxdy.
Note :Students are advised to always take the functions in parts and then differentiate it to avoid confusion in case of large functions. Also, many students make this mistake of calculating dxd(logv)=v1 and dxd(logu)=u1 but this is wrong because according to the chain rule, dxd(logv)=v1.dxdv and dxd(logu)=u1.dxdu. So this mistake must be avoided.