Solution:
Concept: When x x x and y y y are both given in terms of a third variable (a parameter) θ \theta θ , we differentiate each with respect to θ \theta θ and divide: d y d x = d y / d θ d x / d θ \dfrac{dy}{dx} = \dfrac{dy/d\theta}{dx/d\theta} d x d y = d x / d θ d y / d θ , provided d x d θ ≠ 0 \dfrac{dx}{d\theta} \ne 0 d θ d x = 0 . We also need d d θ ( log tan θ 2 ) \dfrac{d}{d\theta}\left(\log\tan\dfrac{\theta}{2}\right) d θ d ( log tan 2 θ ) , which is worked out in Step 1.
Step 1 — Differentiate log tan θ 2 \log\tan\dfrac{\theta}{2} log tan 2 θ .
We use the chain rule twice: the derivative of log u \log u log u is 1 u \dfrac{1}{u} u 1 , the derivative of tan v \tan v tan v is sec 2 v \sec^2 v sec 2 v , and the derivative of θ 2 \dfrac{\theta}{2} 2 θ is 1 2 \dfrac{1}{2} 2 1 . Then we write everything in sine and cosine and use 2 sin θ 2 cos θ 2 = sin θ 2\sin\dfrac{\theta}{2}\cos\dfrac{\theta}{2} = \sin\theta 2 sin 2 θ cos 2 θ = sin θ .
d d θ ( log tan θ 2 ) = 1 tan θ 2 ⋅ sec 2 θ 2 ⋅ 1 2 = cos θ 2 sin θ 2 ⋅ 1 cos 2 θ 2 ⋅ 1 2 = 1 2 sin θ 2 cos θ 2 = 1 sin θ \begin{aligned}
\frac{d}{d\theta}\left(\log\tan\frac{\theta}{2}\right) &= \frac{1}{\tan\frac{\theta}{2}}\cdot\sec^2\frac{\theta}{2}\cdot\frac{1}{2} \\
&= \frac{\cos\frac{\theta}{2}}{\sin\frac{\theta}{2}}\cdot\frac{1}{\cos^2\frac{\theta}{2}}\cdot\frac{1}{2} \\
&= \frac{1}{2\sin\frac{\theta}{2}\cos\frac{\theta}{2}} \\
&= \frac{1}{\sin\theta}
\end{aligned} d θ d ( log tan 2 θ ) = tan 2 θ 1 ⋅ sec 2 2 θ ⋅ 2 1 = sin 2 θ cos 2 θ ⋅ cos 2 2 θ 1 ⋅ 2 1 = 2 sin 2 θ cos 2 θ 1 = sin θ 1
Step 2 — Differentiate x x x with respect to θ \theta θ .
We add the derivative of cos θ \cos\theta cos θ , namely − sin θ -\sin\theta − sin θ , to the result of Step 1, and combine over the common denominator sin θ \sin\theta sin θ using 1 − sin 2 θ = cos 2 θ 1 - \sin^2\theta = \cos^2\theta 1 − sin 2 θ = cos 2 θ .
d x d θ = a ( − sin θ + 1 sin θ ) = a ⋅ 1 − sin 2 θ sin θ = a cos 2 θ sin θ \begin{aligned}
\frac{dx}{d\theta} &= a\left(-\sin\theta + \frac{1}{\sin\theta}\right) \\
&= a\cdot\frac{1 - \sin^2\theta}{\sin\theta} \\
&= \frac{a\cos^2\theta}{\sin\theta}
\end{aligned} d θ d x = a ( − sin θ + sin θ 1 ) = a ⋅ sin θ 1 − sin 2 θ = sin θ a cos 2 θ
Step 3 — Differentiate y y y and divide.
Here y = a sin θ y = a\sin\theta y = a sin θ , so d y d θ = a cos θ \dfrac{dy}{d\theta} = a\cos\theta d θ d y = a cos θ . Dividing by a fraction means multiplying by its reciprocal; then a a a and one factor cos θ \cos\theta cos θ cancel.
d y d θ = a cos θ \frac{dy}{d\theta} = a\cos\theta d θ d y = a cos θ
d y d x = a cos θ ⋅ sin θ a cos 2 θ = sin θ cos θ = tan θ \begin{aligned}
\frac{dy}{dx} &= a\cos\theta\cdot\frac{\sin\theta}{a\cos^2\theta} \\
&= \frac{\sin\theta}{\cos\theta} \\
&= \tan\theta
\end{aligned} d x d y = a cos θ ⋅ a cos 2 θ sin θ = cos θ sin θ = tan θ
Step 4 — Substitute the two values of θ \theta θ .
At θ = π 3 \theta = \dfrac{\pi}{3} θ = 3 π , we use tan π 3 = 3 \tan\dfrac{\pi}{3} = \sqrt{3} tan 3 π = 3 .
d y d x = 3 \frac{dy}{dx} = \sqrt{3} d x d y = 3
At θ = π 4 \theta = \dfrac{\pi}{4} θ = 4 π , we use tan π 4 = 1 \tan\dfrac{\pi}{4} = 1 tan 4 π = 1 .
d y d x = 1 \frac{dy}{dx} = 1 d x d y = 1
Therefore, at θ = π 3 \theta = \dfrac{\pi}{3} θ = 3 π , d y d x = 3 \dfrac{dy}{dx} = \sqrt{3} d x d y = 3 , and at θ = π 4 \theta = \dfrac{\pi}{4} θ = 4 π , d y d x = 1 \dfrac{dy}{dx} = 1 d x d y = 1 .