Geometry: Coordinates & Complex

Study Sheet

Geometry: Coordinates & Complex

Analytic and complex methods

Analytic Geometry

Tip
Shoelace formula

A polygon with vertices (xi,yi)(x_i,y_i) in order has area 12∣∑i(xiyi+1−xi+1yi)∣\tfrac12\left|\sum_i (x_iy_{i+1} - x_{i+1}y_i)\right|.

In plain terms. List the corner coordinates in a loop, cross-multiply neighbors, and half the total gives the area — no need to cut the shape up.

Example. Triangle (0,0),(4,0),(0,3)(0,0),(4,0),(0,3): area =12∣0⋅0−4⋅0+4⋅3−0⋅0+0−0∣=6= \tfrac12|0\cdot0 - 4\cdot0 + 4\cdot3 - 0\cdot0 + 0 - 0| = 6.

Why it works. The term 12(xiyi+1−xi+1yi)\tfrac12(x_iy_{i+1} - x_{i+1}y_i) is the signed area of the triangle formed by the origin and the edge from vertex ii to vertex i+1i + 1: positive when the edge runs counterclockwise around the origin, negative otherwise. Going once around the polygon, the triangles outside the polygon are added once and subtracted once, and those inside are added once, so the total is the polygon's area. That is also why the vertices must be listed in order around the boundary.

Example
Worked: a lattice quadrilateral

Find the area of the quadrilateral with vertices (1,0)(1, 0), (8,2)(8, 2), (6,9)(6, 9), (0,6)(0, 6), in that order.

Spotting it. Coordinates of every vertex, in order: shoelace, no decomposition needed.

Step 1. The cross terms xiyi+1−xi+1yix_iy_{i+1} - x_{i+1}y_i are 1⋅2−8⋅0=21 \cdot 2 - 8 \cdot 0 = 2, 8⋅9−6⋅2=608 \cdot 9 - 6 \cdot 2 = 60, 6⋅6−0⋅9=366 \cdot 6 - 0 \cdot 9 = 36 and 0⋅0−1⋅6=−60 \cdot 0 - 1 \cdot 6 = -6.

Step 2. They add to 9292, so the area is 4646.

Example
Worked: coordinates for a crossing
ABCDEP1249
Triangles PABPAB and PEDPED are similar with ratio 12:412 : 4, so PP sits three quarters of the way up.

Rectangle ABCDABCD has AB=12AB = 12 and BC=9BC = 9. Point EE lies on CDCD with DE=4DE = 4. Segments AEAE and BDBD meet at PP. The area of triangle ABPABP is mn\tfrac mn in lowest terms. Find m+nm + n.

Spotting it. A rectangle with points given by lengths: put AA at the origin and every point is known. The only work is intersecting two lines.

Step 1. A=(0,0)A = (0, 0), B=(12,0)B = (12, 0), D=(0,9)D = (0, 9), E=(4,9)E = (4, 9). Line AEAE: y=94xy = \tfrac94x. Line BDBD: y=9−34xy = 9 - \tfrac34x.

Step 2. 94x=9−34x\tfrac94x = 9 - \tfrac34x gives x=3x = 3, so P=(3,274)P = \left(3, \tfrac{27}{4}\right).

Step 3. [ABP]=12⋅12⋅274=812[ABP] = \tfrac12 \cdot 12 \cdot \tfrac{27}{4} = \tfrac{81}{2}, so m+n=83m + n = 83.

Check by similar triangles: PED∼PABPED \sim PAB with ratio 4:124 : 12, so PP is 34\tfrac34 of the way up from ABAB to CDCD, at height 274\tfrac{27}{4} ✓

Side note
Where it goes wrong

Listing vertices out of order. The square with corners (0,0)(0, 0), (2,0)(2, 0), (2,2)(2, 2), (0,2)(0, 2) has area 44, but feeding shoelace the order (0,0),(2,0),(0,2),(2,2)(0, 0), (2, 0), (0, 2), (2, 2) traces a bow-tie whose two halves cancel, and the formula returns 00. Sketch the points and go around the boundary.

Try it
Try it: a pentagon

Find the area of the pentagon with vertices (0,0)(0, 0), (4,0)(4, 0), (5,3)(5, 3), (2,5)(2, 5), (−1,3)(-1, 3), in that order.

Show the answer

Cross terms: 00, 4⋅3−5⋅0=124 \cdot 3 - 5 \cdot 0 = 12, 5⋅5−2⋅3=195 \cdot 5 - 2 \cdot 3 = 19, 2⋅3−(−1)⋅5=112 \cdot 3 - (-1) \cdot 5 = 11, (−1)⋅0−0⋅3=0(-1) \cdot 0 - 0 \cdot 3 = 0. The sum is 4242, so the area is 2121.

Complex Numbers as Points

Concept
Rotations by multiplication

Rotating a point zz about the origin by θ\theta is multiplication by eiθe^{i\theta}; about a center cc, use c+(z−c)eiθc + (z-c)e^{i\theta}.

In plain terms. Treat plane points as complex numbers; a rotation is then just one multiplication, which makes symmetric figures easy.

Example. Rotating z=1z=1 by 90∘90^\circ gives 1⋅i=i1\cdot i = i — the point (0,1)(0,1), exactly a quarter turn.

Why it works. Multiplying by eiθe^{i\theta} multiplies lengths by 11 and adds θ\theta to every argument, which is exactly a rotation about 00. To rotate about another centre cc, translate cc to the origin (z−cz - c), rotate, and translate back. In a square or an equilateral triangle, one side is another side rotated by 90∘90^\circ or 60∘60^\circ, so an unknown vertex is one multiplication away.

Example
Worked: the other two corners of a square

A=(1,2)A = (1, 2) and C=(7,6)C = (7, 6) are opposite vertices of a square ABCDABCD. Find the sum of all four coordinates of BB and DD.

Spotting it. The other two vertices are AA rotated by ±90∘\pm90^\circ about the centre of the square, and a quarter turn is multiplication by ii.

Step 1. The centre is the midpoint M=4+4iM = 4 + 4i, and A−M=−3−2iA - M = -3 - 2i.

Step 2. i(−3−2i)=2−3ii(-3 - 2i) = 2 - 3i, so the other vertices are M±(2−3i)M \pm (2 - 3i): 6+i6 + i and 2+7i2 + 7i, i.e. (6,1)(6, 1) and (2,7)(2, 7).

Step 3. 6+1+2+7=166 + 1 + 2 + 7 = 16. Check: from AA to (6,1)(6, 1) is (5,−1)(5, -1) and from (6,1)(6, 1) to CC is (1,5)(1, 5): equal lengths, perpendicular ✓

Example
Worked: the triangle of cube roots
√3 + i−√3 + i−2i
The cube roots of 8i8i: radius 2, one root every 120∘120^\circ starting at 30∘30^\circ.

The solutions of z3=8iz^3 = 8i form a triangle in the complex plane whose area is mnm\sqrt n with nn squarefree. Find m+nm + n.

Spotting it. The three cube roots of any nonzero number are equally spaced on a circle: an equilateral triangle, whose area depends only on the radius.

Step 1. ∣8i∣=8|8i| = 8, so the radius is 22. The argument of 8i8i is 90∘90^\circ, so the roots are at 30∘30^\circ, 150∘150^\circ, 270∘270^\circ: 3+i\sqrt3 + i, −3+i-\sqrt3 + i and −2i-2i.

Step 2. The side is 232\sqrt3 (the distance between ±3+i\pm\sqrt3 + i), so the area is 34(23)2=33\tfrac{\sqrt3}{4}(2\sqrt3)^2 = 3\sqrt3. So m+n=6m + n = 6.

Side note
Where it goes wrong

Rotating about the origin instead of the centre. In the square example, iA=i(1+2i)=−2+iiA = i(1 + 2i) = -2 + i is AA turned about 00, which is nowhere near the square. A rotation about MM is M+i(z−M)M + i(z - M): subtract the centre, rotate, add it back.

Try it
Try it: a quarter turn about a point

Rotate the point 3+i3 + i by 90∘90^\circ counterclockwise about 1+2i1 + 2i.

Show the answer

1+2i+i((3+i)−(1+2i))=1+2i+i(2−i)=1+2i+2i+1=2+4i1 + 2i + i\big((3 + i) - (1 + 2i)\big) = 1 + 2i + i(2 - i) = 1 + 2i + 2i + 1 = 2 + 4i: the point (2,4)(2, 4).

Cevians: Ceva & Menelaus

Tip
Ceva's theorem
ABCDEFP2312
The box example to scale: with BD:DC=2:3BD : DC = 2 : 3 and CE:EA=1:2CE : EA = 1 : 2, the third cevian through PP lands at AF:FB=3:1AF : FB = 3 : 1.

Cevians ADAD, BEBE, CFCF (with D,E,FD, E, F on sides BCBC, CACA, ABAB) are concurrent if and only if BDDC⋅CEEA⋅AFFB=1\dfrac{BD}{DC}\cdot\dfrac{CE}{EA}\cdot\dfrac{AF}{FB} = 1.

In plain terms. Three lines from the corners of a triangle to the opposite sides pass through one common point exactly when the three side-splitting ratios multiply to 11. Two known ratios always lock in the third — no lengths of the triangle itself are ever needed.

Example. If BD:DC=2:3BD:DC = 2:3 and CE:EA=1:2CE:EA = 1:2 and the cevians are concurrent, then 23⋅12⋅AFFB=1\tfrac23\cdot\tfrac12\cdot\tfrac{AF}{FB} = 1 forces AF:FB=3:1AF:FB = 3:1.

Why it works. Triangles ABDABD and ACDACD have the same height from AA, so their areas are in the ratio BD:DCBD : DC; the same holds for PBDPBD and PCDPCD. Subtracting, BDDC=[ABP][ACP]\tfrac{BD}{DC} = \tfrac{[ABP]}{[ACP]}. Likewise CEEA=[BCP][BAP]\tfrac{CE}{EA} = \tfrac{[BCP]}{[BAP]} and AFFB=[CAP][CBP]\tfrac{AF}{FB} = \tfrac{[CAP]}{[CBP]}. Multiply the three: every area cancels and the product is 11.

Tip
Menelaus's theorem

A transversal line crossing lines BCBC, CACA, ABAB of triangle ABCABC at DD, EE, FF satisfies BDDC⋅CEEA⋅AFFB=1\dfrac{BD}{DC}\cdot\dfrac{CE}{EA}\cdot\dfrac{AF}{FB} = 1 (unsigned; with signed ratios the product is −1-1).

In plain terms. Same product as Ceva, but for a straight LINE slicing across the triangle instead of three concurrent cevians — the line always cuts one side externally, on its extension. Use it whenever a problem draws a line through two marked points and asks where it crosses a third side.

Example. With BD:DC=2:3BD:DC = 2:3 on BCBC and MM the midpoint of CACA (CM:MA=1CM:MA = 1), the line DMDM meets line ABAB at XX with AXXB⋅23⋅1=1\tfrac{AX}{XB}\cdot\tfrac23\cdot 1 = 1, so AX:XB=3:2AX:XB = 3:2 — and XX lies outside segment ABAB.

Concept
Choosing between them — and mass points

Concurrency of three cevians ⇒\Rightarrow Ceva. One straight line cutting across the triangle ⇒\Rightarrow Menelaus. For the RATIO ALONG a cevian (like AP:PDAP:PD), assign masses inverse to the side ratios: the balance point is the cevian intersection, and APPD=mass at Dmass at A\dfrac{AP}{PD} = \dfrac{\text{mass at }D}{\text{mass at }A}.

In plain terms. The two theorems answer "where does the third cut land?"; mass points answer "how far along the cevian is the crossing?". Together they dispatch nearly every ratio-chasing problem without coordinates.

Example. With BD:DC=1:2BD:DC = 1:2 and CE:EA=1:2CE:EA = 1:2, masses 4,2,14, 2, 1 at B,C,AB, C, A make DD carry 66, so cevians ADAD and BEBE meet at PP with AP:PD=6:1AP:PD = 6:1.

Example
Worked: the third ratio, then a length

In triangle ABCABC, cevians ADAD, BEBE, CFCF are concurrent, with BD=6BD = 6, DC=4DC = 4, CE=5CE = 5, EA=3EA = 3 and AB=21AB = 21. Find AFAF.

Spotting it. Three concurrent cevians with two ratios known: Ceva gives the third.

Step 1. 64⋅53⋅AFFB=1\dfrac{6}{4} \cdot \dfrac{5}{3} \cdot \dfrac{AF}{FB} = 1, so AFFB=1230=25\dfrac{AF}{FB} = \dfrac{12}{30} = \dfrac25.

Step 2. AF=27⋅21=6AF = \tfrac27 \cdot 21 = 6.

Example
Worked: a transversal

In triangle ABCABC with CA=7CA = 7, DD is on BCBC with BD:DC=3:2BD : DC = 3 : 2 and MM is the midpoint of ABAB. Line DMDM meets line CACA at XX. Find CXCX.

Spotting it. One straight line through points on two sides, crossing the third side's extension: Menelaus.

Step 1. BDDC⋅CXXA⋅AMMB=1\dfrac{BD}{DC} \cdot \dfrac{CX}{XA} \cdot \dfrac{AM}{MB} = 1 gives 32⋅CXXA⋅1=1\dfrac32 \cdot \dfrac{CX}{XA} \cdot 1 = 1, so CX:XA=2:3CX : XA = 2 : 3.

Step 2. Two of the points (DD, MM) are inside their sides, so XX is outside segment CACA, and since CX<XACX < XA it lies beyond CC. Then XA=XC+CAXA = XC + CA, so 3k=2k+73k = 2k + 7, k=7k = 7, and CX=14CX = 14.

Side note
Where it goes wrong

Mixing up the order of the ratios. Ceva's product must walk around the triangle, each ratio starting where the last ended: BDDC⋅CEEA⋅AFFB\tfrac{BD}{DC} \cdot \tfrac{CE}{EA} \cdot \tfrac{AF}{FB}. Writing BDDC⋅EACE⋅AFFB=1\tfrac{BD}{DC} \cdot \tfrac{EA}{CE} \cdot \tfrac{AF}{FB} = 1 in the first worked example gives AFFB=109\tfrac{AF}{FB} = \tfrac{10}{9}, which is wrong. Trace the letters: B→D→C→E→A→F→BB \to D \to C \to E \to A \to F \to B.

Try it
Try it: the missing ratio

Cevians ADAD, BEBE, CFCF of triangle ABCABC are concurrent, with BD:DC=3:1BD : DC = 3 : 1 and AF:FB=2:3AF : FB = 2 : 3. Find CE:EACE : EA.

Show the answer

Ceva: 3⋅CEEA⋅23=13 \cdot \dfrac{CE}{EA} \cdot \dfrac23 = 1, so CEEA=12\dfrac{CE}{EA} = \dfrac12, i.e. CE:EA=1:2CE : EA = 1 : 2.

Lengths by Coordinates, Trig and Power of a Point

Tip
Pick the tool by what is given

Given many lengths and a right angle: coordinates. Given angles and two sides: the law of cosines. Given circles and secants: power of a point.

Reminder — Law of Cosines:  c2=a2+b2−2abcos⁡Cc^{2}=a^{2}+b^{2}-2ab\cos C

Power of a point says that for any line through PP meeting a circle at AA and BB, the product PA⋅PBPA\cdot PB is the same for every such line, equal to ∣d2−r2∣|d^2 - r^2|. With a tangent it reads PT2=PA⋅PBPT^2 = PA\cdot PB, which converts a tangency condition into an equation in lengths — exactly what an AIME answer needs.

Tip
The law of cosines as a length machine

c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C; with cos⁡C\cos C known from another triangle, one unknown length falls out.

In a triangle with a=7a = 7, b=8b = 8, C=60∘C = 60^\circ: c2=49+64−2⋅7⋅8⋅12=57c^2 = 49 + 64 - 2\cdot7\cdot8\cdot\tfrac12 = 57, so c=57c = \sqrt{57}. Stewart's theorem and the median formula are the same identity applied twice, so a configuration with a cevian usually yields to one law-of-cosines pair rather than a construction.

Example
Worked: power of a point

From an external point PP, a tangent touches a circle at TT with PT=6PT = 6, and a secant through PP meets the circle at AA and BB with PA=4PA = 4. Find ABAB.

Step 1 — power of the point: PT2=PA⋅PBPT^2 = PA\cdot PB, so 36=4⋅PB36 = 4\cdot PB and PB=9PB = 9.

Step 2 — AA is between PP and BB, so AB=PB−PA=9−4=5AB = PB - PA = 9 - 4 = 5.

Example
Worked: a median by the law of cosines
ABCM131514
The median AMAM of the 13-14-15 triangle; cos⁡B=5/13\cos B = 5/13 works in both triangle ABCABC and triangle ABMABM.

Triangle ABCABC has AB=13AB = 13, BC=14BC = 14, CA=15CA = 15, and MM is the midpoint of BCBC. Find AM2AM^2.

Spotting it. The median sits in two triangles that share the angle at BB (or CC); get cos⁡B\cos B from the whole triangle, then use it in the half.

Step 1. In ABCABC: cos⁡B=132+142−1522⋅13⋅14=140364=513\cos B = \dfrac{13^2 + 14^2 - 15^2}{2 \cdot 13 \cdot 14} = \dfrac{140}{364} = \dfrac{5}{13}.

Step 2. In ABMABM with BM=7BM = 7: AM2=169+49−2⋅13⋅7⋅513=218−70=148AM^2 = 169 + 49 - 2 \cdot 13 \cdot 7 \cdot \tfrac{5}{13} = 218 - 70 = 148.

Check with the median formula AM2=2b2+2c2−a24=450+338−1964=148AM^2 = \tfrac{2b^2 + 2c^2 - a^2}{4} = \tfrac{450 + 338 - 196}{4} = 148 ✓

Example
Worked: chords in a given ratio

Chords ABAB and CDCD of a circle meet at PP, with AP=5AP = 5, PB=12PB = 12 and CP:PD=3:5CP : PD = 3 : 5. Find CDCD.

Spotting it. Power of a point fixes the PRODUCT CP⋅PDCP \cdot PD; the ratio then fixes the pieces.

Step 1. CP⋅PD=5⋅12=60CP \cdot PD = 5 \cdot 12 = 60. With CP=3kCP = 3k, PD=5kPD = 5k: 15k2=6015k^2 = 60, so k=2k = 2.

Step 2. CD=8k=16CD = 8k = 16.

Side note
Where it goes wrong

Losing the sign of the cosine. For an obtuse angle cos⁡C<0\cos C < 0, so the law of cosines ADDS: with sides 55 and 88 and a 120∘120^\circ angle, c2=25+64−2⋅5⋅8⋅(−12)=129c^2 = 25 + 64 - 2 \cdot 5 \cdot 8 \cdot \left(-\tfrac12\right) = 129. Writing 89−40=4989 - 40 = 49 uses the cosine of 60∘60^\circ instead and gives the wrong side 77.

Try it
Try it: law of cosines

A triangle has sides 55 and 88 with a 120∘120^\circ angle between them. Find the third side.

Show the answer

c2=25+64−2⋅5⋅8cos⁡120∘=89+40=129c^2 = 25 + 64 - 2\cdot5\cdot8\cos120^\circ = 89 + 40 = 129, so c=129c = \sqrt{129}.