How to find the distance between two polar points

Polar coordinates tell us how far a point is from the origin and what angle to use. To find the distance between two points, we can convert to x and y or work directly with the two radii and their angle difference.

Convert to rectangular coordinates

For each pair (r,θ), use x=rcosθ and y=rsinθ. Then use the ordinary distance formula.

d=(x2-x1)2+(y2-y1)2

Let A be (2,π/2) and B be (3,π/4) in polar form. The first point is on the positive y-axis. The second has equal positive x- and y-coordinates because sine and cosine agree at π/4.

A=(0,2)B=(322,322)
The distance between two points given in polar formA is two units above the origin. B is three units from the origin along the forty-five-degree ray. The distance is the segment joining A and B.
The two radii meet at the origin. We want the length of the purple segment AB.

Let s=32/2. Then the horizontal difference is s and the vertical difference is s-2.

d2=s2+(s-2)2=2s2-4s+4=13-62d=13-62

Use the distance formula directly in polar coordinates

For two points with positive radii, the origin and the two points form a triangle with sides r1 and r2 and an angle determined by θ1-θ2. The law of cosines gives the squared distance. The formula also follows by converting to x and y, so it still works with signed radii and when the points lie on the same line through the origin.

d2=r12+r22-2r1r2cos(θ1-θ2)

For A and B above, the angle difference is π/4.

d2=13-12cosπ4=13-62

The formula gives the same result as before.

Find the distance when the points face opposite directions

Take the polar points (1,2π) and (2,π). The angle difference is π, so its cosine is -1.

d2=12+22-2(1)(2)cosπ=5+4=9d=3

The points lie on opposite sides of the origin, so the segment between them is also the sum of the two radii, 1+2=3.