Daniel B. answered 11/09/21
A retired computer professional to teach math, physics
We need to calculate dy/dx, which is the slope of any tangent.
By the chain rule
dy/dθ = dy/dx dx/dθ
Thus
dy/dx = (dy/dθ) / (dx/dθ)
= (asinθ) / (a(1-cosθ))
= sinθ / (1-cosθ)
= cot(θ/2)
If you need help with the last identity, let me derive it using the following
formulas
sin(2u) = 2sin(u)cos(u)
cos(2u) = 1 - 2sin²(u)
Let u = θ/2
Then
sinθ / (1-cosθ) = sin(2u) / (1-cos(2u))
= 2sin(u)cos(u) / 2sin²(u)
= cos(u) / sin(u)
= cot(u)
= cot(θ/2)