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θ.
The identity 2sinθcosθ=sin2θ will make the working shorter.
Step 1 — Differentiate x and y with respect to θ.
The derivative of cosθ is −sinθ. For sin3θ we use the chain rule: 3sin2θ times cosθ.
dθdx=−sinθ
dθdy=3sin2θcosθ
Step 2 — Find the first derivative.
We divide and cancel one factor sinθ (it is non-zero wherever dxdy exists). Then we write sinθcosθ as 21sin2θ.
dxdy=−sinθ3sin2θcosθ
dxdy=−3sinθcosθ
dxdy=−23sin2θ
Step 3 — Find the second derivative.
We differentiate −23sin2θ with respect to θ to get −3cos2θ. Then we multiply by dxdθ, the reciprocal of −sinθ from Step 1.
dx2d2y=−3cos2θ⋅(−sinθ1)
dx2d2y=sinθ3cos2θ
Step 4 — Work out the first term of the left-hand side.
We multiply y=sin3θ by the second derivative and cancel one sinθ. Then we use cos2θ=2cos2θ−1.
ydx2d2y=sin3θ⋅sinθ3cos2θ
ydx2d2y=3sin2θ(2cos2θ−1)
Step 5 — Work out the second term.
We square the form −3sinθcosθ from Step 2.
(dxdy)2=9sin2θcos2θ
Step 6 — Add the two terms.
Both terms contain 3sin2θ, so we take it out as a common factor and collect the cos2θ terms.
ydx2d2y+(dxdy)2=3sin2θ(2cos2θ−1+3cos2θ)
ydx2d2y+(dxdy)2=3sin2θ(5cos2θ−1)
Therefore, ydx2d2y+(dxdy)2=3sin2θ(5cos2θ−1), as required.