Solution:
Key idea: The function y is a sum, so we differentiate each part separately. The first part is a product of two variable powers, so we use logarithmic differentiation on it alone; ax has the standard derivative axloga.
Step 1 — Split y into two parts.
Let u=(sinx)x⋅xsinx, taken where x>0 and sinx>0. Then y=u+ax, so we need dxdu and dxd(ax).
Step 2 — Take logarithms of u.
The log of a product is a sum, and each power comes down.
logu=log(sinx)x+logxsinx
logu=xlogsinx+sinxlogx
Step 3 — Differentiate logu.
We use the product rule on both terms: xlogsinx gives x⋅sinxcosx+logsinx, and sinxlogx gives cosxlogx+sinx⋅x1.
u1dxdu=xcotx+logsinx+cosxlogx+xsinx
Multiplying by u gives its derivative.
dxdu=(sinx)xxsinx[xcotx+logsinx+cosxlogx+xsinx]
Step 4 — Differentiate ax.
For a constant a>0, the exponential rule gives
dxd(ax)=axloga
Step 5 — Add the two derivatives.
Since y=u+ax, its derivative is the sum of the results of Steps 3 and 4.
dxdy=(sinx)xxsinx[xcotx+logsinx+cosxlogx+xsinx]+axloga
Note: The printed answer shows the first factor as (sinx)xsinx; the factor is (sinx)x, as worked above (a misprint).
Therefore, dxdy=(sinx)xxsinx[xcotx+logsinx+cosxlogx+xsinx]+axloga.