Solution:
Concept: When x and y are both given in terms of a third variable (a parameter) θ, we differentiate each with respect to θ and divide: dxdy=dx/dθdy/dθ, provided dθdx=0.
Step 1 — Differentiate x with respect to θ.
By the chain rule, the derivative of sin2θ is 2sinθ multiplied by the derivative of sinθ, namely cosθ.
dθdx=2bsinθcosθ
Step 2 — Differentiate y with respect to θ.
In the same way, the derivative of cos2θ is 2cosθ multiplied by the derivative of cosθ, namely −sinθ.
dθdy=−2acosθsinθ
Step 3 — Divide the two derivatives.
The common factor 2sinθcosθ cancels (we take sinθcosθ=0).
dxdy=2bsinθcosθ−2asinθcosθ=−ba
Note: This is expected. Adding bx and ay gives sin2θ+cos2θ, and that sum is 1, so the points lie on the straight line bx+ay=1, whose slope is −ba.
Therefore, dxdy=−ba.