Solution:
Key idea: Let u=xy and v=yx, where y is a function of x. We find dxdu and dxdv by logarithmic differentiation. The right side ab is a constant, so its derivative is zero, and we then solve for dxdy.
Step 1 — Differentiate u=xy.
Taking the natural logarithm (with x,y>0) brings the power y down.
logu=ylogx
By the product rule, the derivative of ylogx is dxdylogx+y⋅x1.
u1dxdu=logxdxdy+xy
Multiplying by u=xy, and using xy⋅xy=yxy−1:
dxdu=yxy−1+xylogxdxdy
Step 2 — Differentiate v=yx.
Taking the natural logarithm brings the power x down.
logv=xlogy
By the product rule, the derivative of xlogy is logy+x⋅y1dxdy.
v1dxdv=logy+yxdxdy
Multiplying by v=yx, and using yx⋅yx=xyx−1:
dxdv=yxlogy+xyx−1dxdy
Step 3 — Part (i): differentiate u−v=ab.
The right side is constant, so the derivatives of the left side must add up to zero.
dxdu−dxdv=0
yxy−1+xylogxdxdy−yxlogy−xyx−1dxdy=0
Step 4 — Part (i): solve for dxdy.
We keep the dxdy terms on the left and move the rest to the right.
dxdy(xylogx−xyx−1)=yxlogy−yxy−1
dxdy=xylogx−xyx−1yxlogy−yxy−1
Step 5 — Part (ii): differentiate u+v=ab.
Again the right side is constant, so the derivatives add to zero.
dxdu+dxdv=0
yxy−1+xylogxdxdy+yxlogy+xyx−1dxdy=0
Step 6 — Part (ii): solve for dxdy.
We keep the dxdy terms on the left and move the rest to the right, which brings a minus sign.
dxdy(xylogx+xyx−1)=−(yxlogy+yxy−1)
dxdy=−xylogx+xyx−1yxlogy+yxy−1
Note: The printed answer for (ii) omits the minus sign; it is needed because the two derivatives add to zero.
Therefore, (i) dxdy=xylogx−xyx−1yxlogy−yxy−1, (ii) dxdy=−xylogx+xyx−1yxlogy+yxy−1.