We begin by breaking the expression into two parts:
y=u+v
Where:
- u=(xcosx)x
- v=(xsinx)1/x
Now, differentiating both parts individually:
dxdy=dxdu+dxdv... (i)
Differentiating u=(xcosx)x
First, we take the logarithm of u:
logu=log((xcosx)x)=xlog(xcosx)
Now, differentiating both sides with respect to x:
u1dxdu=dxd(xlog(xcosx))
We apply the product rule and differentiate:
dxd(xlog(xcosx))=1⋅log(xcosx)+x⋅dxd(log(xcosx))
For the derivative of log(xcosx), we apply the chain rule:
dxd(log(xcosx))=xcosx1⋅(cosx−xsinx)
Thus, we have:
u1dxdu=log(xcosx)+xcosxx(cosx−xsinx)
Simplifying:
dxdu=u(log(xcosx)+cosxcosx−xsinx)
This is our derivative for u.
Differentiating v=(xsinx)1/x
Next, we differentiate v:
We begin by taking the logarithm of v:
logv=x1log(xsinx)
Now, differentiate both sides with respect to x:
v1dxdv=dxd(x1log(xsinx))
Using the product rule and simplifying:
dxdv=v(x21+xcotx−x2log(xsinx))
Now, substituting the values of dxdu and dxdv from the steps above into equation (i), we get:
dxdy=(xcosx)x(log(xcosx)+cosxcosx−xsinx)+(xsinx)1/x(x21+xcotx−x2log(xsinx))