Math Core

Module 4.6 · Geometry

Complex numbers in geometry

Treat each point of the plane as a complex number z=x+yiz = x + yi, and rotations become multiplications. Anything involving equilateral triangles, squares, regular polygons or repeated turns is a strong hint to switch to complex numbers.

Points, distances and rotations

The point (x,y)(x, y) is the number z=x+yiz = x + yi. Then:

  • The distance between zz and ww is ∣z−w∣|z - w|.
  • The midpoint of zz and ww is z+w2\dfrac{z + w}{2}.
  • Every zz can be written in polar form z=r(cos⁡θ+isin⁡θ)=reiθz = r(\cos\theta + i\sin\theta) = re^{i\theta}, with r=∣z∣r = |z|.

Multiplication rotates and scales

r1eiθ1⋅r2eiθ2=r1r2 ei(θ1+θ2).r_1e^{i\theta_1} \cdot r_2e^{i\theta_2} = r_1r_2\,e^{i(\theta_1 + \theta_2)}.

So multiplying by eiθe^{i\theta} rotates a point about the origin by θ\theta counterclockwise. To rotate zz about a center cc:

z′=c+(z−c)eiθ.z' = c + (z - c)e^{i\theta}.

Why. Expand (cos⁡α+isin⁡α)(cos⁡β+isin⁡β)(\cos\alpha + i\sin\alpha)(\cos\beta + i\sin\beta): the real part is cos⁡αcos⁡β−sin⁡αsin⁡β=cos⁡(α+β)\cos\alpha\cos\beta - \sin\alpha\sin\beta = \cos(\alpha + \beta) and the imaginary part is sin⁡αcos⁡β+cos⁡αsin⁡β=sin⁡(α+β)\sin\alpha\cos\beta + \cos\alpha\sin\beta = \sin(\alpha + \beta). So moduli multiply and angles add. For rotation about cc: shift cc to the origin, rotate, shift back.

Special cases you'll use constantly:

  • Multiplying by ii rotates by 90∘90^\circ.
  • Multiplying by ω=eiπ/3=12+32i\omega = e^{i\pi/3} = \dfrac12 + \dfrac{\sqrt3}{2}i rotates by 60∘60^\circ. If aa, bb, cc are the vertices of an equilateral triangle in counterclockwise order, then c−a=(b−a)eiπ/3c - a = (b - a)e^{i\pi/3}.
Square with A = 1 + 2i, B = 7 + 5i, C = 4 + 11i, D = -2 + 8i. Each side is the previous one turned by 90 degrees.Open in grapher →

Worked example: Completing a square

Square ABCDABCD is labeled counterclockwise with A=1+2iA = 1 + 2i and B=7+5iB = 7 + 5i. Find CC and DD.

The side vector is B−A=6+3iB - A = 6 + 3i. Turning it 90∘90^\circ counterclockwise gives i(6+3i)=−3+6ii(6 + 3i) = -3 + 6i. So

C=B+(−3+6i)=4+11i,D=A+(−3+6i)=−2+8i.C = B + (-3 + 6i) = 4 + 11i, \qquad D = A + (-3 + 6i) = -2 + 8i.

Worked example: The third vertex of an equilateral triangle

Find the third vertex cc of the equilateral triangle with vertices 00 and 44, above the real axis.

Rotate 44 about 00 by 60∘60^\circ: c=4(12+32i)=2+23 ic = 4\left(\dfrac12 + \dfrac{\sqrt3}{2}i\right) = 2 + 2\sqrt3\,i.

Roots of unity and regular polygons

The solutions of zn=1z^n = 1 are 1,ζ,ζ2,…,ζn−11, \zeta, \zeta^2, \dots, \zeta^{n-1}, where ζ=e2πi/n\zeta = e^{2\pi i/n}. They are the vertices of a regular nn-gon inscribed in the unit circle. Two facts do most of the work:

  1. They sum to zero (for n≥2n \ge 2): 1+ζ+⋯+ζn−1=ζn−1ζ−1=01 + \zeta + \dots + \zeta^{n-1} = \dfrac{\zeta^n - 1}{\zeta - 1} = 0.
  2. They factor zn−1z^n - 1: zn−1=(z−1)(z−ζ)(z−ζ2)⋯(z−ζn−1)z^n - 1 = (z - 1)(z - \zeta)(z - \zeta^2)\cdots(z - \zeta^{n-1}).

Products of distances in a regular polygon

If PP is the point zz and A1,…,AnA_1, \dots, A_n are the vertices R,Rζ,…,Rζn−1R, R\zeta, \dots, R\zeta^{n-1} of a regular nn-gon with circumradius RR, then

PA1⋅PA2⋯PAn=∣zn−Rn∣.PA_1 \cdot PA_2 \cdots PA_n = |z^n - R^n|.

In particular, from one vertex to the other n−1n - 1 vertices the product is nRn−1nR^{n-1}.

Proof. Replace zz by z/Rz/R in the factorization of zn−1z^n - 1 and multiply by RnR^n: zn−Rn=∏k(z−Rζk)z^n - R^n = \prod_{k}(z - R\zeta^k). Take absolute values. For the vertex case, divide zn−Rn=(z−R)∏k=1n−1(z−Rζk)z^n - R^n = (z - R)\prod_{k=1}^{n-1}(z - R\zeta^k) by z−Rz - R:

∏k=1n−1(z−Rζk)=zn−1+Rzn−2+⋯+Rn−1.\prod_{k=1}^{n-1}(z - R\zeta^k) = z^{n-1} + Rz^{n-2} + \dots + R^{n-1}.

Set z=Rz = R: the right side is nRn−1nR^{n-1}. ■\blacksquare

Worked example: Distances from a vertex

A regular 1212-gon is inscribed in a circle of radius 11. Find the product of the distances from one vertex to the other eleven.

By the key idea, the product is 12⋅111=1212 \cdot 1^{11} = 12.

Worked example: A spiral walk

A robot starts at the origin facing east. It walks 11 unit, turns 60∘60^\circ left, walks 22 units, turns 60∘60^\circ left, walks 33 units, and so on, finishing with a walk of 66 units. How far is it from the origin?

With ω=eiπ/3\omega = e^{i\pi/3}, the kk-th walk is kωk−1k\omega^{k-1}, so the endpoint is S=∑k=16kωk−1S = \sum_{k=1}^{6} k\omega^{k-1}. Then

S−ωS=1+ω+ω2+⋯+ω5−6ω6=0−6=−6,S - \omega S = 1 + \omega + \omega^2 + \dots + \omega^5 - 6\omega^6 = 0 - 6 = -6,

since ω6=1\omega^6 = 1 and the sixth roots of unity sum to 00. So S=−61−ωS = \dfrac{-6}{1 - \omega}. Since ∣1−ω∣=1|1 - \omega| = 1 (the points 00, 11, ω\omega form an equilateral triangle), the distance is 66.

Common mistake

Rotation direction matters. Multiplying by eiθe^{i\theta} turns counterclockwise. If a problem says the triangle is "clockwise" or puts the new vertex "below" a segment, use e−iθe^{-i\theta}, or you'll get the reflected answer.

Tip

To show a triangle is equilateral, or to build one, write one side as a 60∘60^\circ rotation of another. To compare lengths, compare ∣z∣2=zzˉ|z|^2 = z\bar z, which avoids square roots.

Practice

Practice 1

Square ABCDABCD is labeled counterclockwise, with A=3−iA = 3 - i and B=8+iB = 8 + i written as complex numbers. Find ∣C∣2+∣D∣2|C|^2 + |D|^2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

A regular 99-gon A1A2…A9A_1A_2\ldots A_9 is inscribed in a circle of radius 2\sqrt2. Find A1A2⋅A1A3⋯A1A9A_1A_2 \cdot A_1A_3 \cdots A_1A_9, the product of the distances from A1A_1 to the other eight vertices.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Point PP is inside equilateral triangle ABCABC with PA=5PA = 5, PB=12PB = 12 and PC=13PC = 13. The side length ss satisfies s2=a+bcs^2 = a + b\sqrt{c}, where aa, bb, cc are positive integers and cc is squarefree. Find a+b+ca + b + c.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

A regular octagon A1A2…A8A_1A_2\ldots A_8 is inscribed in a circle of radius 22. Point PP moves around the same circle. Find the largest possible value of PA1⋅PA2⋯PA8PA_1 \cdot PA_2 \cdots PA_8.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

A robot starts at the origin facing east. It walks 11 unit, turns 30∘30^\circ left, walks 22 units, turns 30∘30^\circ left, walks 33 units, and so on, finishing with a walk of 1212 units. Its final distance dd from the origin satisfies d2=a+bcd^2 = a + b\sqrt{c} with cc squarefree. Find a+b+ca + b + c.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Quadrilateral ABCDABCD has vertices A=0A = 0, B=10B = 10, C=12+8iC = 12 + 8i, D=2+6iD = 2 + 6i. Squares are built outward on all four sides, with centers PP (on ABAB), QQ (on BCBC), RR (on CDCD) and SS (on DADA). Find PR2PR^2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

A frog sits at the origin of the complex plane. On its kk-th move (k=1,2,3,…k = 1, 2, 3, \dots), it rotates its position 90∘90^\circ counterclockwise about the point kk on the real axis. After 3030 moves, the frog is at zz. Find ∣z∣2|z|^2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Real contest practice

These are full past AIMEs. Each has problems where points, rotations or roots of unity are easiest to handle as complex numbers.