Chapter II · Functions of real variables

Polar coordinates

§22 25 min

Locating a point by its distance and direction from the origin, polar equations of lines, circles and conics, and why Hardy insists that rr is never negative.

Why this matters

Some curves are awkward in xx and yy but simple when described by distance and direction from a point: circles through the origin, spirals, conics about a focus. §22 introduces these polar coordinates and the polar equation of a locus. It also contains, in a footnote, a convention that matters more than it looks: for Hardy the distance rr is never negative. The same equation can draw half a curve or the whole of it depending on that convention.

The idea

Instead of walking xx along one axis and yy along the other, stand at the origin OO, turn through an angle θ\theta from the positive axis of xx, and walk a distance rr. The pair (r,θ)(r, \theta) fixes the point PP, and right-angled trigonometry links the two descriptions:

x=rcos⁡θ,y=rsin⁡θ,r=x2+y2.x = r\cos\theta, \qquad y = r\sin\theta, \qquad r = \sqrt{x^2 + y^2}.

A polar equation such as r=2acos⁡θr = 2a\cos\theta should be read as an instruction: for each direction θ\theta, the points of the locus in that direction are at the distances rr that the equation allows. Sweep a ray round OO and mark where the equation puts points on it.

Explore Sweep a ray round the origin

Try this. With r=2acos⁡θr = 2a\cos\theta, drag θ\theta slowly from 0∘0^\circ to 360∘360^\circ and watch where the point on the ray is. Pay attention to what happens between 90∘90^\circ and 270∘270^\circ. Then switch on “allow negative rr” and sweep again.

r=2acos⁡θr = 2a\cos\theta
xy
  • points with r ≥ 0
  • the ray at angle θ
At θ=29∘\theta = 29^\circ the equation gives r=2.63r = 2.63. Point on the ray: (2.31, 1.26)(2.31,\ 1.26).
What to notice

For −90∘<θ<90∘-90^\circ < \theta < 90^\circ the equation gives a positive rr and the point runs once round a circle through OO. For 90∘<θ<270∘90^\circ < \theta < 270^\circ it gives r<0r < 0, which in Hardy’s convention is no point at all: the ray misses the curve. If negative rr is allowed (plotted backwards along the ray), those directions retrace the same circle a second time.

Precise statements

Definition Polar coordinates Hardy: §22

Let P≠OP \neq O be a point, r=OPr = OP its distance from the origin, and θ\theta the angle from the positive axis of xx to OPOP, measured anticlockwise, with 0≤θ<2π0 \le \theta < 2\pi. Then rr and θ\theta are the polar coordinates of PP, and

x=rcos⁡θ,y=rsin⁡θ,r=x2+y2>0.x = r\cos\theta, \qquad y = r\sin\theta, \qquad r = \sqrt{x^2 + y^2} > 0.

A relation between rr and θ\theta, such as r=f(θ)r = f(\theta), satisfied by exactly the points of a locus, is its polar equation.

At the origin itself r=0r = 0 and θ\theta is not determined; any θ\theta will do. In Hardy’s convention rr is essentially positive: a polar equation that gives a negative value of rr at some θ\theta gives no point in that direction.

Theorem Polar equations of a line and a circle Hardy: §22

(i) Let NN be the foot of the perpendicular from OO to a line not through OO, with ON=pON = p and NN in direction α\alpha. The polar equation of the line is

rcos⁡(θ−α)=p.r\cos(\theta - \alpha) = p.

(ii) The circle with radius AA whose centre has polar coordinates (c,α)(c, \alpha) has polar equation

r2+c2−2rccos⁡(θ−α)=A2.r^2 + c^2 - 2rc\cos(\theta - \alpha) = A^2.

In particular (A=c=aA = c = a, α=0\alpha = 0), r=2acos⁡θr = 2a\cos\theta is a circle of radius aa through the origin.

Proofs

Proof The polar equation of a line
Strategy

A point PP is on the line exactly when its projection onto the direction of ONON has length pp. Express that projection in polar coordinates.

The line in cartesian form

The unit vector in direction α\alpha is (cos⁡α,sin⁡α)(\cos\alpha, \sin\alpha), and the line is perpendicular to it at distance pp from OO. So P=(x,y)P = (x, y) is on the line exactly when the component of OPOP along (cos⁡α,sin⁡α)(\cos\alpha, \sin\alpha) equals pp: that is, xcos⁡α+ysin⁡α=px\cos\alpha + y\sin\alpha = p.

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

xcos⁡α+ysin⁡α=r(cos⁡θcos⁡α+sin⁡θsin⁡α)=rcos⁡(θ−α)x\cos\alpha + y\sin\alpha = r(\cos\theta\cos\alpha + \sin\theta\sin\alpha) = r\cos(\theta - \alpha), by the subtraction formula for the cosine.

Conclude

So PP is on the line exactly when rcos⁡(θ−α)=pr\cos(\theta - \alpha) = p. Since p>0p > 0 and r>0r > 0, only directions with cos⁡(θ−α)>0\cos(\theta - \alpha) > 0, that is ∣θ−α∣<12π|\theta - \alpha| < \tfrac12\pi, meet the line, as they should: those are the directions that point towards it.

Proof The polar equation of a circle
Strategy

Apply the cosine rule to the triangle formed by OO, the centre CC and the point PP.

The triangle OCPOCP

OP=rOP = r, OC=cOC = c, and the angle between OPOP and OCOC is θ−α\theta - \alpha (its cosine is all that matters, so the sign of the difference is irrelevant).

Cosine rule

CP2=r2+c2−2rccos⁡(θ−α)CP^2 = r^2 + c^2 - 2rc\cos(\theta - \alpha). (If OO, CC, PP are collinear the formula still holds, as you can check directly.)

Conclude

PP is on the circle exactly when CP=ACP = A, that is, r2+c2−2rccos⁡(θ−α)=A2r^2 + c^2 - 2rc\cos(\theta - \alpha) = A^2. With A=c=aA = c = a and α=0\alpha = 0 this becomes r2=2arcos⁡θr^2 = 2ar\cos\theta, and dividing by rr (allowed for P≠OP \neq O) gives r=2acos⁡θr = 2a\cos\theta. The origin itself lies on this circle: it is the point with r=0r = 0, given by θ=12π\theta = \tfrac12\pi.

The general circle has a surprise. Solving the quadratic for rr gives

r=ccos⁡(θ−α)±A2−c2sin⁡2(θ−α),r = c\cos(\theta - \alpha) \pm \sqrt{A^2 - c^2\sin^2(\theta - \alpha)},

so when OO is outside the circle a ray can meet it twice: rr is then a two-valued function of θ\theta, defined only for the directions that hit the circle.

Explore The general circle, and the conic of Hardy’s footnote

Try this. With the general circle, keep the origin outside it (c>Ac > A) and sweep θ\theta, counting the points on the ray; then make c<Ac < A and sweep again. Then choose the conic l/r=1−ecos⁡θl/r = 1 - e\cos\theta with e=2e = 2, sweep θ\theta, and finally allow negative rr.

r2+c2−2rccos⁡(θ−α)=A2r^2 + c^2 - 2rc\cos(\theta-\alpha) = A^2
xy
  • points with r ≥ 0
  • the ray at angle θ
At θ=34∘\theta = 34^\circ the equation gives r=3.56, 1.21r = 3.56,\ 1.21. Points on the ray: (2.94, 2.01)(2.94,\ 2.01) and (1, 0.684)(1,\ 0.684).
What to notice

Outside the circle, rays near the direction of the centre meet it twice and the others miss it. For the conic with e>1e > 1, Hardy’s convention (r>0r > 0) only gives points when cos⁡θ<1/e\cos\theta < 1/e, and they form one branch of a hyperbola. Allowing negative rr adds the other branch in the opposite colour: the same equation, a different curve.

Worked examples and exercises

Exercise Converting points ●○○ Hardy: §22

Find the polar coordinates of (−1,−1)(-1, -1), (0,−3)(0, -3) and (3,4)(3, 4), and the cartesian coordinates of the point with r=2r = 2, θ=23π\theta = \tfrac23\pi.

Hint
Find rr first. Then decide which quadrant the point is in before using tan⁡θ=y/x\tan\theta = y/x.

Solution

(−1,−1)(-1, -1): r=2r = \sqrt2, and the point is in the third quadrant with tan⁡θ=1\tan\theta = 1, so θ=54π\theta = \tfrac54\pi. (0,−3)(0, -3): r=3r = 3, θ=32π\theta = \tfrac32\pi. (3,4)(3, 4): r=5r = 5, θ=arctan⁡43≈0.927\theta = \arctan\tfrac43 \approx 0.927. Finally x=2cos⁡23π=−1x = 2\cos\tfrac23\pi = -1 and y=2sin⁡23π=3y = 2\sin\tfrac23\pi = \sqrt3, so the point is (−1,3)(-1, \sqrt3). Note that θ=arctan⁡(y/x)\theta = \arctan(y/x) alone would give the same answer for (1,1)(1, 1) and (−1,−1)(-1, -1); the quadrant must be read off separately.

Exercise ●○○ Hardy: §22

Find the cartesian equation of r=2acos⁡θr = 2a\cos\theta and the polar equation of the line x+y=2x + y = 2.

Hint
Multiply r=2acos⁡θr = 2a\cos\theta by rr. For the line, divide by 12+12\sqrt{1^2 + 1^2} to get the form xcos⁡α+ysin⁡α=px\cos\alpha + y\sin\alpha = p.

Solution

Multiplying by rr: r2=2arcos⁡θr^2 = 2ar\cos\theta, that is x2+y2=2axx^2 + y^2 = 2ax, or (x−a)2+y2=a2(x - a)^2 + y^2 = a^2: the circle with centre (a,0)(a, 0) and radius aa. (Multiplying by rr can only add the origin, which is on the circle anyway.)

For the line: 12x+12y=2\tfrac{1}{\sqrt2}x + \tfrac{1}{\sqrt2}y = \sqrt2, which is xcos⁡14π+ysin⁡14π=2x\cos\tfrac14\pi + y\sin\tfrac14\pi = \sqrt2. So p=2p = \sqrt2, α=14π\alpha = \tfrac14\pi, and the polar equation is rcos⁡(θ−14π)=2r\cos(\theta - \tfrac14\pi) = \sqrt2.

Exercise One branch or two ●●○ Hardy: §22, footnote

Let l>0l > 0 and e>1e > 1. Show that the points satisfying l/r=1−ecos⁡θl/r = 1 - e\cos\theta with r>0r > 0 form one branch of the hyperbola x2+y2=(l+ex)2x^2 + y^2 = (l + ex)^2, and find the polar equation (with r>0r > 0) of the other branch.

Hint
Rewrite the equation as r=l+ercos⁡θ=l+exr = l + er\cos\theta = l + ex and square.
Hint
Squaring loses the sign of l+exl + ex. Which sign does r>0r > 0 force?

Solution

If l/r=1−ecos⁡θl/r = 1 - e\cos\theta with r>0r > 0, then l=r−exl = r - ex, so r=l+exr = l + ex, and squaring gives x2+y2=(l+ex)2x^2 + y^2 = (l + ex)^2, which is (e2−1)x2+2elx+l2−y2=0(e^2 - 1)x^2 + 2elx + l^2 - y^2 = 0. Since e>1e > 1 this is a hyperbola, and it consists of the points with l+ex=rl + ex = r and those with l+ex=−rl + ex = -r. Our points satisfy l+ex=r>0l + ex = r > 0, that is x>−l/ex > -l/e. Conversely, a point of the hyperbola with l+ex>0l + ex > 0 has r=l+exr = l + ex and satisfies the polar equation. So the polar equation gives exactly the branch on which l+ex>0l + ex > 0.

The points with l+ex=−r<0l + ex = -r < 0 satisfy −l=r+ex=r(1+ecos⁡θ)-l = r + ex = r(1 + e\cos\theta), that is −l/r=1+ecos⁡θ-l/r = 1 + e\cos\theta: the other branch. (Hardy’s footnote prints −l/r=1−ecos⁡θ-l/r = 1 - e\cos\theta here, a sign slip: that equation gives r=ex−lr = ex - l, a branch of the mirror-image hyperbola x2+y2=(ex−l)2x^2 + y^2 = (ex - l)^2. Check with l=1l = 1, e=2e = 2: the vertex (−1,0)(-1, 0) of the other branch has r=1r = 1, θ=π\theta = \pi, and −l/r=−1=1+ecos⁡π-l/r = -1 = 1 + e\cos\pi.) In the convention that allows negative rr, replacing rr by −r-r and θ\theta by θ+π\theta + \pi describes the same point, and the single equation l/r=1−ecos⁡θl/r = 1 - e\cos\theta then gives both branches.

Exercise When a ray meets a circle twice ●●○ Hardy: §22

For the circle r2+c2−2rccos⁡(θ−α)=A2r^2 + c^2 - 2rc\cos(\theta - \alpha) = A^2 with c>A>0c > A > 0 (origin outside), find for which directions θ\theta there are two points, one point, or none.

Hint
Use the formula for rr above. The discriminant decides how many real values there are; then check their signs.

Solution

r=ccos⁡(θ−α)±A2−c2sin⁡2(θ−α)r = c\cos(\theta - \alpha) \pm \sqrt{A^2 - c^2\sin^2(\theta - \alpha)}. Real values need ∣sin⁡(θ−α)∣≤A/c<1|\sin(\theta - \alpha)| \le A/c < 1. The product of the two roots is c2−A2>0c^2 - A^2 > 0 and their sum is 2ccos⁡(θ−α)2c\cos(\theta - \alpha), so both are positive exactly when cos⁡(θ−α)>0\cos(\theta - \alpha) > 0 and both negative when cos⁡(θ−α)<0\cos(\theta - \alpha) < 0. Hence: two points when ∣sin⁡(θ−α)∣<A/c|\sin(\theta - \alpha)| < A/c and cos⁡(θ−α)>0\cos(\theta - \alpha) > 0; one point (a tangent) when ∣sin⁡(θ−α)∣=A/c|\sin(\theta - \alpha)| = A/c and cos⁡(θ−α)>0\cos(\theta - \alpha) > 0; none otherwise. The rays that meet the circle are those within the angle arcsin⁡(A/c)\arcsin(A/c) of the direction of the centre.

Check yourself

Check yourself Enter a number

What is rr for the point (−3,4)(-3, 4)?

Why

r=9+16=5r = \sqrt{9 + 16} = 5. The sign of xx affects θ\theta (here in the second quadrant), never rr.

Check yourself True or false?

In Hardy’s convention, the equation r=2acos⁡θr = 2a\cos\theta (with a>0a > 0) gives a point of the curve for every direction θ\theta.

Why

False. For 12π<θ<32π\tfrac12\pi < \theta < \tfrac32\pi the formula gives r<0r < 0, which is not allowed; those rays miss the circle, which lies in the half-plane x≥0x \ge 0. At θ=12π\theta = \tfrac12\pi and 32π\tfrac32\pi the formula gives r=0r = 0, the origin.

Check yourself Choose one

With r>0r > 0 required, the equation 1/r=1−2cos⁡θ1/r = 1 - 2\cos\theta represents

Why

Here l=1l = 1 and e=2>1e = 2 > 1, so the curve is a hyperbola, but r>0r > 0 forces cos⁡θ<12\cos\theta < \tfrac12 and gives one branch only (Hardy’s footnote). With negative rr allowed the same equation gives both branches. An ellipse needs e<1e < 1 and a parabola e=1e = 1.

Check yourself Choose one

Which value of θ\theta (with 0≤θ<2π0 \le \theta < 2\pi) belongs to the point (0,−3)(0, -3)?

Why

The point is straight down from OO, which is three right angles anticlockwise from the positive axis of xx. The direction −12π-\tfrac12\pi is the same direction, but Hardy takes θ\theta between 00 and 2π2\pi; and 12π\tfrac12\pi would point up.

Hardy’s language

Summary

Summary
  • Polar coordinates: x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta, r=x2+y2r = \sqrt{x^2 + y^2}; for Hardy r>0r > 0 and 0≤θ<2π0 \le \theta < 2\pi.
  • A polar equation says, for each direction θ\theta, how far out the points of the locus are; there may be none, one or several.
  • A line at distance pp in direction α\alpha: rcos⁡(θ−α)=pr\cos(\theta - \alpha) = p. A circle: r2+c2−2rccos⁡(θ−α)=A2r^2 + c^2 - 2rc\cos(\theta - \alpha) = A^2; through the origin, r=2acos⁡θr = 2a\cos\theta.
  • Whether negative rr is allowed changes what an equation represents: l/r=1−ecos⁡θl/r = 1 - e\cos\theta with e>1e > 1 is one branch of a hyperbola for Hardy, both branches otherwise.