Module 4.4 · Geometry
Coordinates and trigonometry
Synthetic tricks are elegant, but they aren't always available at 2 a.m. on problem 11. Coordinates and trigonometry are the reliable backup: with a smart setup, almost any triangle problem becomes a computation. This module collects the setups and formulas that make those computations short.
Choosing coordinates
A good coordinate system does most of the work. Some habits:
- Put a vertex at the origin and a side along the -axis: , , .
- Use symmetry: an isosceles triangle or a rectangle should be centered on an axis.
- Put a circle's center at the origin.
- Prefer integer coordinates. The -- triangle fits perfectly as , , .
To place when you know all three sides, solve and . Subtracting gives right away.
Area and distance formulas
Shoelace formula
A polygon with vertices in order around it has area
Why it works. The term is the signed area of the triangle with vertices , , : positive when you turn counterclockwise from to and negative otherwise. Walking around a polygon, the triangles fanned out from add up to the polygon's area, and any part outside the polygon is counted once positively and once negatively, so it cancels.
Distance from a point to a line. The distance from to the line is
The vector is perpendicular to the line. Moving from a distance along the unit normal changes by , so you reach the line (where it's ) when .
The trigonometry toolkit
For a triangle with sides opposite angles , circumradius , inradius and semiperimeter :
| Formula | Name |
|---|---|
| extended law of sines | |
| law of cosines | |
| area |
Proof of the extended law of sines. Draw the diameter of the circumcircle. Inscribed angles on arc are equal, so (or if is obtuse, with the same sine). Triangle has a right angle at because is a diameter. So .
The others follow: , and splitting the triangle into three triangles from the incenter, each with height , gives .
Stewart's theorem
If is on side with , (so ) and , then
Proof. Let , so and the cosines are opposite. The law of cosines in triangles and :
Multiply the first by and the second by and add; the cosine terms cancel:
Special cases worth memorizing: the median is , and the angle bisector (with ) is .
Worked example: The 13-14-15 triangle
Find the area, inradius and circumradius of the triangle with sides , , .
With above base , the area is . Then , so , and .
In coordinates: the circumcenter is on (the perpendicular bisector of ), at with , so and . ✓
Worked example: A median with Stewart
In a triangle with , , , find the length of the median from .
, so the median has length .
Worked example: Trig with an altitude
In triangle the altitude has and , and . Find .
Let , and split into and , with and . Then
So , and .
Common mistake
When you place a triangle in coordinates, check which side is opposite which vertex. In the incenter formula , each vertex is weighted by the length of the opposite side. Mixing these up is the most common coordinate bug.
Tip
Before a long coordinate bash, estimate the answer with a rough sketch. If your exact answer is and your picture says "about ", you can trust the algebra.
Practice
Find the area of the pentagon with vertices , , , and , in that order.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A triangle has sides , and . Its circumradius is in lowest terms. Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
In triangle , , and . Point is on with . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
In triangle , and , and the medians from and are perpendicular. Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
In triangle , , and . Find the area of the triangle.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Triangle has , and . Let be its circumcenter and its incenter. Then in lowest terms. Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Point is inside square with , and . The area of the square can be written as , where , , are positive integers and is squarefree. Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Real contest practice
These are full past AIMEs. Each has several geometry problems; try solving at least one of them purely with coordinates or trigonometry.