Solution:
Key idea: When x and y are both given in terms of a parameter θ, we use dxdy=dx/dθdy/dθ. For the second derivative we differentiate dxdy with respect to θ and then multiply by dxdθ, because the chain rule gives dx2d2y=dθd(dxdy)⋅dxdθ.
Step 1 — Differentiate x with respect to θ.
The derivative of cosθ is −sinθ and that of sinθ is cosθ. Taking out a minus sign shows the bracket is exactly y.
dθdx=−asinθ+bcosθ
dθdx=−(asinθ−bcosθ)
dθdx=−y
Step 2 — Differentiate y with respect to θ.
In the same way, the result is exactly the given expression for x.
dθdy=acosθ+bsinθ
dθdy=x
Step 3 — Find the first derivative.
We divide the result of Step 2 by the result of Step 1.
dxdy=−yx
dxdy=−yx
Note: The question prints this first result as dθdx=−yx. That is a misprint for dxdy, since Step 1 shows that dθdx is −y.
Step 4 — Differentiate the first derivative with respect to x.
We apply the quotient rule to −yx, remembering that y is a function of x, so its derivative is dxdy.
dx2d2y=−y2y⋅1−xdxdy
Step 5 — Clear the fraction and rearrange.
We multiply both sides by y2 and open the bracket.
y2dx2d2y=−y+xdxdy
Now we move every term to the left-hand side.
y2dx2d2y−xdxdy+y=0
Therefore, dxdy=−yx and y2dx2d2y−xdxdy+y=0, as required.