To compute slopes of tangent lines to a polar curve
r=f(θ), we treat it as a parametrized curve with θ=t and
r=f(t). (Equivalently, we can use θ as our parameter). This
means that
x=rcos(θ)=f(t)cos(t);y=rsin(θ)=f(t)sin(t).
Taking derivatives we get
dx/dt=−f(t)sin(t)+f′(t)cos(t);dy/dt=f(t)cos(t)+f′(t)sin(t).
That's enough information for us to compute dy/dx:
dydx=dy/dtdx/dt=f(t)cos(t)+f′(t)sin(t)−f(t)sin(t)+f′(t)cos(t)=rcos(θ)+r′sin(θ)−rsin(θ)+r′cos(θ),
where r′ means dr/dθ.
In the following video, we apply this method to compute dy/dx as a
function of θ for a circle r=2 and for a
cardioid r=1+sin(θ).