Solution:
Key idea: Taking logarithms turns the product of variable powers into a sum. We then differentiate implicitly, remembering that the derivative of the constant log5 is zero.
Step 1 — Take logarithms of both sides.
With x,y>0, the log of a product is a sum and each power comes down.
logxy+logyx=log5
ylogx+xlogy=log5
Step 2 — Differentiate both sides with respect to x.
By the product rule, ylogx gives dxdylogx+xy, and xlogy gives logy+yxdxdy. The right side is a constant.
dxdylogx+xy+logy+yxdxdy=0
Step 3 — Collect the dxdy terms.
We keep the dxdy terms on the left and move the rest to the right.
dxdy(logx+yx)=−(logy+xy)
Step 4 — Solve for dxdy.
We divide by the bracket on the left.
dxdy=−logx+yxlogy+xy
Watch out: The minus sign is essential. For x,y>1 both brackets are positive, and since xyyx stays equal to 5, y must fall as x rises.
Hence, dxdy=−logx+yxlogy+xy is proved.