Descartes turned geometry into algebra. Put a grid under a figure, prove theorems by calculation, and add arrows to find the dot product hiding the cosine
In 1637 René Descartes showed that a point can be named by two numbers and a curve by an equation. Geometry became algebra, and problems that needed clever constructions could be solved by calculation. Vectors went one step further: arrows that can be added, and that carry the cosine inside them.
Drag the blue points and read the figure as numbers: distance, midpoint, slope and the line’s equation. Then drop a perpendicular from a third point, and find where two lines cross by solving their equations.
Coordinates are in grid units, read from the drawing to two decimal places. The midpoint is the average of the two points; the slope is the same wherever you measure it along a straight line. With snapping on, the equation’s coefficients are whole numbers with no common factor.
Descartes published La Géométrie in 1637 as an appendix to his Discourse on the Method. Its idea was to label lengths by letters, turn a geometric problem into equations between them, and solve the equations. Pierre de Fermat had the same idea independently at around the same time, though his account circulated only in manuscript. The grid with two perpendicular axes, which we call Cartesian in Descartes’ honour, took its familiar form in the work of later writers.
Every formula on the grid is old geometry in new clothes. The distance is Pythagoras applied to the run and the rise:
d = √((x2 − x1)2 + (y2 − y1)2)
The slope is constant along a line because the little right triangles under it are all similar. A point (x, y) is on the line through (x1, y1) and (x2, y2) exactly when its slope from the first point is the same, which rearranges to (y2 − y1)(x − x1) = (x2 − x1)(y − y1). That is the general form ax + by = c, and it also covers vertical lines, which y = mx + c cannot. The pair (a, b) points straight out of the line, which is where the distance formula |ax + by − c| / √(a2 + b2) comes from: moving one unit along (a, b) changes ax + by by √(a2 + b2).
Turn a line a quarter turn and its run and rise swap places, with one sign changed: slope m becomes −1/m, so perpendicular slopes multiply to −1. Two lines meet where both equations hold at once; eliminating one unknown leaves (a1b2 − a2b1)x = c1b2 − c2b1, and when the bracket is 0 the lines are parallel or the same. See also: Pythagoras’ Theorem.
Pick a theorem and drag the vertices. The algebra underneath proves it for every figure; the grey line below each step repeats it with the numbers on your screen.
Tick marks show the equal halves of each side. The crossing and the fractions are measured from the drawing by intersecting two medians; G comes from the formula. The algebra proves the theorem for every triangle at once; the figure only shows it for the one on screen.
A coordinate proof is only as long as the coordinates make it. Put a vertex at the origin and a side along an axis, or a circle’s centre at the origin, and most terms vanish: the angle-in-a-semicircle proof here is one line because the centre sits at (0, 0). Nothing is lost, because a figure can always be moved into that position without changing its lengths or angles.
A synthetic proof, in Euclid’s style, argues from the figure with congruent triangles and parallel lines; a coordinate proof turns the same statement into an identity and checks it. The synthetic proof usually explains why the theorem is true, and the coordinate proof is usually easier to find. Each has its uses, and many results are easiest when the two are mixed. The demo is not the proof: a figure that keeps working as you drag it is evidence for the cases you tried, while the symbolic line holds for every possible set of numbers at once.
Pierre Varignon’s theorem was published in 1731, after his death. Its coordinate proof shows something the picture hides: the sides of the midpoint parallelogram are half the diagonals of the quadrilateral, so the theorem holds for dented and even crossed quadrilaterals. See also: Circles and Direct Proof.
Drag the heads of a and b. Add them head to tail, then switch to the dot product and watch its sign change as the angle passes 90°, and to the area to see the parallelogram they span.
| arrow | x component | y component | length |
|---|---|---|---|
| a | 4 | 1 | 4.12 |
| b | 1 | 3 | 3.16 |
| a + b | 4 + 1 = 5 | 1 + 3 = 4 | 6.4 |
Put the tail of b on the head of a, or the tail of a on the head of b: you arrive at the same corner of the parallelogram, so a + b = b + a. The components simply add. An arrow is fixed by its components, not by where it starts: switch on the copies and drag the start point. Components are in grid units.
The dot product a · b = axbx + ayby equals |a||b| cos θ. Turning both arrows together changes neither side, so turn a until it lies along the x-axis: then a = (|a|, 0), b = (|b| cos θ, |b| sin θ), and the product is |a||b| cos θ. Expanding the square of a − b gives the law of cosines in one line:
|a − b|2 = (a − b) · (a − b) = |a|2 + |b|2 − 2 a · b = |a|2 + |b|2 − 2|a||b| cos θ
The signed area axby − aybx equals |a||b| sin θ by the same argument, and it is the determinant of the 2 × 2 table with columns a and b. In physics, forces and velocities add as arrows do, and the work done by a force F moving an object through a displacement d is F · d: only the part of the force along the motion counts.
William Rowan Hamilton invented quaternions in 1843, numbers with three imaginary parts whose product contains both a dot and a cross product. Hermann Grassmann’s theory of extension of 1844 built a general algebra of directed quantities, little read at the time. In the 1880s Josiah Willard Gibbs and Oliver Heaviside independently cut these down to the vector analysis used today. See also: Vectors & Space, Determinants and Solving Triangles.
Spot a mistake or have an idea?