AP Calculus BC

Polar Derivatives: Finding dy/dx from r(theta)

Treat theta as a parameter. With x = r cos(theta) and y = r sin(theta), the slope of a polar curve is dy/dx = (dy/d theta) / (dx/d theta), which works out to (r' sin(theta) + r cos(theta)) / (r' cos(theta) - r sin(theta)), where r' is dr/d theta. The derivative dr/d theta by itself is not the slope.

Turn the polar curve into parametric equations

A polar curve r=f(θ)r = f(\theta) gives distance from the pole as a function of angle. To get a slope in the xyxy-plane, convert to rectangular coordinates with θ\theta as the parameter. This is the differentiation half of CED Topic 9.7, Defining Polar Coordinates and Differentiating in Polar Form.

x=rcos⁡θ,y=rsin⁡θx = r\cos\theta, \qquad y = r\sin\theta

Both are products of rr, which depends on θ\theta, and a trig function, so each derivative needs the product rule.

dxdθ=drdθcos⁡θ−rsin⁡θ,dydθ=drdθsin⁡θ+rcos⁡θ\frac{dx}{d\theta} = \frac{dr}{d\theta}\cos\theta - r\sin\theta, \qquad \frac{dy}{d\theta} = \frac{dr}{d\theta}\sin\theta + r\cos\theta

The slope is then the parametric quotient.

dydx=dydθdxdθ=drdθsin⁡θ+rcos⁡θdrdθcos⁡θ−rsin⁡θ\frac{dy}{dx} = \frac{\frac{dy}{d\theta}}{\frac{dx}{d\theta}} = \frac{\frac{dr}{d\theta}\sin\theta + r\cos\theta}{\frac{dr}{d\theta}\cos\theta - r\sin\theta}

You do not have to memorize the final fraction. Writing x=rcos⁡θx = r\cos\theta and y=rsin⁡θy = r\sin\theta with the specific rr substituted, then differentiating each, produces the same result and is often easier to simplify.

What each derivative tells you

Three different derivatives appear in polar problems, and each one answers a different question.

DerivativeWhat it measures
drdθ\frac{dr}{d\theta}How the signed distance rr changes as the angle increases
dxdθ\frac{dx}{d\theta}How the xx-coordinate changes as the angle increases
dydθ\frac{dy}{d\theta}How the yy-coordinate changes as the angle increases
dydx\frac{dy}{dx}The slope of the tangent line in the xyxy-plane

When r>0r > 0, a negative value of drdθ\frac{dr}{d\theta} means the curve is getting closer to the pole as θ\theta increases, and a positive value means it is moving away. A positive dydθ\frac{dy}{d\theta} means the point is rising, and a negative dxdθ\frac{dx}{d\theta} means it is moving left.

dr/dtheta is not the slope

For the circle r=2r = 2, drdθ=0\frac{dr}{d\theta} = 0 at every angle, yet the tangent line has every possible direction as you go around. Slope always comes from dydθ\frac{dy}{d\theta} divided by dxdθ\frac{dx}{d\theta}.

Horizontal and vertical tangents

The rules match the parametric ones, with θ\theta in the role of the parameter.

  • Horizontal tangent: dydθ=0\frac{dy}{d\theta} = 0 and dxdθ≠0\frac{dx}{d\theta} \neq 0.
  • Vertical tangent: dxdθ=0\frac{dx}{d\theta} = 0 and dydθ≠0\frac{dy}{d\theta} \neq 0.
  • Both zero at the same angle: the quotient is 00\frac{0}{0} and the slope has to be found with a limit.

Solving these equations usually calls for a double-angle identity or factoring. Report each answer as a point, either in polar form (r,θ)(r, \theta) or in rectangular form, as the question asks.

Tangent lines at the pole

A curve passes through the pole at any angle θ0\theta_0 where r=0r = 0. Substituting r=0r = 0 into the slope formula removes two of the four terms.

dydx=drdθsin⁡θ0drdθcos⁡θ0=tan⁡θ0when r(θ0)=0 and drdθ∣θ0≠0\frac{dy}{dx} = \frac{\frac{dr}{d\theta}\sin\theta_0}{\frac{dr}{d\theta}\cos\theta_0} = \tan\theta_0 \qquad \text{when } r(\theta_0) = 0 \text{ and } \frac{dr}{d\theta}\bigg|_{\theta_0} \neq 0

So the tangent line at the pole is the line θ=θ0\theta = \theta_0 itself. When cos⁡θ0≠0\cos\theta_0 \neq 0 its rectangular equation is y=(tan⁡θ0) xy = (\tan\theta_0)\,x, and when cos⁡θ0=0\cos\theta_0 = 0 it is the vertical line x=0x = 0. If drdθ\frac{dr}{d\theta} is also zero at θ0\theta_0, this shortcut does not apply and a limit is needed.

Common mistakes

  • Reporting drdθ\frac{dr}{d\theta} as the slope of the tangent line.
  • Skipping the product rule and differentiating rcos⁡θr\cos\theta as drdθ⋅(−sin⁡θ)\frac{dr}{d\theta} \cdot (-\sin\theta).
  • Putting dxdθ\frac{dx}{d\theta} on top. The yy derivative is the numerator.
  • Declaring a horizontal or vertical tangent without checking that the other derivative is nonzero at that angle.
  • Giving only the angle when the question asks for a point or a tangent line equation. Convert with x=rcos⁡θx = r\cos\theta and y=rsin⁡θy = r\sin\theta.

Worked examples

Worked example

Slope and tangent line at a given angle

For the polar curve r=1+2cos⁡θr = 1 + 2\cos\theta, find the slope of the tangent line at θ=π2\theta = \frac{\pi}{2} and write its equation in rectangular form.

  1. Find rr and its derivative at the angle: r=1+2cos⁡π2=1r = 1 + 2\cos\frac{\pi}{2} = 1, and drdθ=−2sin⁡θ=−2\frac{dr}{d\theta} = -2\sin\theta = -2.
  2. Compute dydθ=drdθsin⁡θ+rcos⁡θ=(−2)(1)+(1)(0)=−2\frac{dy}{d\theta} = \frac{dr}{d\theta}\sin\theta + r\cos\theta = (-2)(1) + (1)(0) = -2.
  3. Compute dxdθ=drdθcos⁡θ−rsin⁡θ=(−2)(0)−(1)(1)=−1\frac{dx}{d\theta} = \frac{dr}{d\theta}\cos\theta - r\sin\theta = (-2)(0) - (1)(1) = -1.
  4. Divide: dydx=−2−1=2\frac{dy}{dx} = \frac{-2}{-1} = 2.
  5. Find the point: x=rcos⁡θ=0x = r\cos\theta = 0 and y=rsin⁡θ=1y = r\sin\theta = 1, so the point is (0,1)(0, 1). The tangent line is y−1=2(x−0)y - 1 = 2(x - 0).

The slope is 22 and the tangent line is y=2x+1y = 2x + 1.

Worked example

Horizontal and vertical tangents on a cardioid

Find the points on the cardioid r=1+cos⁡θr = 1 + \cos\theta, 0≤θ<2π0 \le \theta < 2\pi, where the tangent line is horizontal or vertical.

  1. Write the parametric form: x=(1+cos⁡θ)cos⁡θ=cos⁡θ+cos⁡2θx = (1 + \cos\theta)\cos\theta = \cos\theta + \cos^2\theta and y=(1+cos⁡θ)sin⁡θ=sin⁡θ+sin⁡θcos⁡θy = (1 + \cos\theta)\sin\theta = \sin\theta + \sin\theta\cos\theta.
  2. Differentiate yy: dydθ=cos⁡θ+cos⁡2θ−sin⁡2θ=2cos⁡2θ+cos⁡θ−1=(2cos⁡θ−1)(cos⁡θ+1)\frac{dy}{d\theta} = \cos\theta + \cos^2\theta - \sin^2\theta = 2\cos^2\theta + \cos\theta - 1 = (2\cos\theta - 1)(\cos\theta + 1). This is zero when cos⁡θ=12\cos\theta = \frac{1}{2} or cos⁡θ=−1\cos\theta = -1, so at θ=π3,5π3,π\theta = \frac{\pi}{3}, \frac{5\pi}{3}, \pi.
  3. Differentiate xx: dxdθ=−sin⁡θ−2sin⁡θcos⁡θ=−sin⁡θ (1+2cos⁡θ)\frac{dx}{d\theta} = -\sin\theta - 2\sin\theta\cos\theta = -\sin\theta\,(1 + 2\cos\theta). This is zero when sin⁡θ=0\sin\theta = 0 or cos⁡θ=−12\cos\theta = -\frac{1}{2}, so at θ=0,π,2π3,4π3\theta = 0, \pi, \frac{2\pi}{3}, \frac{4\pi}{3}.
  4. Horizontal tangents: at θ=π3\theta = \frac{\pi}{3} and 5π3\frac{5\pi}{3} only dydθ\frac{dy}{d\theta} is zero. There r=32r = \frac{3}{2}, giving the points (34,334)\left(\frac{3}{4}, \frac{3\sqrt{3}}{4}\right) and (34,−334)\left(\frac{3}{4}, -\frac{3\sqrt{3}}{4}\right).
  5. Vertical tangents: at θ=0\theta = 0, 2π3\frac{2\pi}{3} and 4π3\frac{4\pi}{3} only dxdθ\frac{dx}{d\theta} is zero. At θ=0\theta = 0, r=2r = 2 and the point is (2,0)(2, 0). At the other two angles r=12r = \frac{1}{2}, giving (−14,34)\left(-\frac{1}{4}, \frac{\sqrt{3}}{4}\right) and (−14,−34)\left(-\frac{1}{4}, -\frac{\sqrt{3}}{4}\right).
  6. At θ=π\theta = \pi both derivatives are zero and the curve is at the pole. Cancel the common behavior with a limit: dydx=(2cos⁡θ−1)(cos⁡θ+1)−sin⁡θ (1+2cos⁡θ)\frac{dy}{dx} = \frac{(2\cos\theta - 1)(\cos\theta + 1)}{-\sin\theta\,(1 + 2\cos\theta)}, and cos⁡θ+1sin⁡θ→0\frac{\cos\theta + 1}{\sin\theta} \to 0 as θ→π\theta \to \pi while 2cos⁡θ−1→−32\cos\theta - 1 \to -3 and −(1+2cos⁡θ)→1-(1 + 2\cos\theta) \to 1. The slope approaches 00, so the tangent line at the pole is horizontal.

Horizontal tangents at (34,±334)\left(\frac{3}{4}, \pm\frac{3\sqrt{3}}{4}\right) and at the pole; vertical tangents at (2,0)(2, 0) and (−14,±34)\left(-\frac{1}{4}, \pm\frac{\sqrt{3}}{4}\right).

Worked example

Tangent lines at the pole

Find the equations of the tangent lines to the rose r=3cos⁡(2θ)r = 3\cos(2\theta) at the pole.

  1. Find where the curve reaches the pole: 3cos⁡(2θ)=03\cos(2\theta) = 0 when 2θ=π2,3π2,5π2,7π22\theta = \frac{\pi}{2}, \frac{3\pi}{2}, \frac{5\pi}{2}, \frac{7\pi}{2}, so θ=π4,3π4,5π4,7π4\theta = \frac{\pi}{4}, \frac{3\pi}{4}, \frac{5\pi}{4}, \frac{7\pi}{4} on 0≤θ<2π0 \le \theta < 2\pi.
  2. Check the derivative: drdθ=−6sin⁡(2θ)\frac{dr}{d\theta} = -6\sin(2\theta), which equals −6-6 or 66 at those angles. It is nonzero, so the slope at the pole is tan⁡θ0\tan\theta_0.
  3. Compute the slopes: tan⁡π4=1\tan\frac{\pi}{4} = 1, tan⁡3π4=−1\tan\frac{3\pi}{4} = -1, tan⁡5π4=1\tan\frac{5\pi}{4} = 1, tan⁡7π4=−1\tan\frac{7\pi}{4} = -1.
  4. The four angles give only two distinct lines through the origin.

The tangent lines at the pole are y=xy = x and y=−xy = -x.

Frequently asked questions

Is dr/dtheta the slope of a polar curve?

No. drdθ\frac{dr}{d\theta} measures how the distance from the pole changes as the angle increases. The slope of the tangent line in the xyxy-plane is dydx\frac{dy}{dx}, found by dividing dydθ\frac{dy}{d\theta} by dxdθ\frac{dx}{d\theta} after writing x=rcos⁡θx = r\cos\theta and y=rsin⁡θy = r\sin\theta.

How do I find the tangent line at the pole?

Solve r=0r = 0 for θ\theta. At each solution θ0\theta_0 where drdθ≠0\frac{dr}{d\theta} \neq 0, the tangent line is the line θ=θ0\theta = \theta_0, which has slope tan⁡θ0\tan\theta_0 when that tangent is defined and is vertical otherwise.

Do I have to memorize the polar slope formula?

No. Substitute the given rr into x=rcos⁡θx = r\cos\theta and y=rsin⁡θy = r\sin\theta, differentiate each with respect to θ\theta using the product rule, and divide. That reproduces the formula every time and avoids sign errors from memory.