A line through two rational points of a cubic curve meets it in a third. Drag points, add them, double them, and watch new rational points appear in exact fractions that grow longer at every step
A line through two points of a cubic curve meets it in exactly one more point, and if the first two have rational coordinates, so does the third. Reflecting that third point gives a way to add points, and it makes the rational points into a group. Starting from one or two points, chords and tangents generate more and more, written in fractions that grow longer at every step.
Pick P and Q from the lists of rational points, and read the line, its third meeting point and the sum P + Q as exact fractions. Try P = Q, a point and its reflection, and O, or drag a point along the curve to leave the rationals.
Points come from a small search of x = u/v² with |u| ≤ 30 and v ≤ 4, sorted by size; a search like this finds the small points only. Drag a point to move it along the real curve; with the canvas focused, the arrow keys move it too.
The third point. Write the curve as y² + a1xy + a3y = x³ + a2x² + a4x + a6 with whole-number coefficients, and the line through P = (x1, y1) and Q = (x2, y2) as y = λx + ν. Substituting the line into the curve leaves a cubic in x, x³ − (λ² + a1λ − a2)x² + … = 0, whose three roots are the x-coordinates of the three meeting points. If P and Q are rational, then λ and ν are rational, so the cubic has rational coefficients and two rational roots, x1 and x2. The sum of the three roots is minus the coefficient of x², so the third is x3 = λ² + a1λ − a2 − x1 − x2, rational as well, and y3 = λx3 + ν. The demo shows that sum of roots for each pair you choose.
The formulas. For a chord, λ = (y2 − y1)/(x2 − x1); for the tangent at P, λ = (3x1² + 2a2x1 + a4 − a1y1)/(2y1 + a1x1 + a3), and in both cases ν = y1 − λx1. The third point R* = (x3, y3) is then reflected, and P + Q = (x3, −y3 − a1x3 − a3); on a curve y² = x³ + ax + b the reflection is the ordinary mirror image in the x-axis. When the tangent’s denominator 2y1 + a1x1 + a3 is zero, the tangent is vertical and P is a point of order 2.
The point at infinity. In projective coordinates [X : Y : Z], with x = X/Z and y = Y/Z, the curve becomes Y²Z + a1XYZ + a3YZ² = X³ + a2X²Z + a4XZ² + a6Z³. Setting Z = 0 leaves X³ = 0, so the curve meets the line at infinity in a single point O = [0 : 1 : 0], three times over. Every vertical line X = cZ passes through O, which is why a vertical line has O as its third point, and why O is the identity: the line through P and O is the vertical line through P, its third point is the reflection of P, and reflecting that gives P back.
History. Making new solutions from old ones with chords and tangents is old: Fermat and Newton both used it. Henri Poincaré’s 1901 paper on the arithmetic of algebraic curves recognised that the construction makes the rational points of a cubic into a group, and asked whether finitely many of them always generate the rest, which Mordell proved in 1922. See also Algebraic Geometry: elliptic curves, where the same law is shown over the real numbers.
Press Play to add P = (0, 0) to itself again and again, and watch the multiples jump around the curve while the digits of their fractions climb a parabola. Switch to the rank-2 curve to fill a grid of combinations aP + bQ.
| n | x(nP), every digit | digits | log₁₀ digits |
|---|---|---|---|
| 8 | 21/25 | 2 | 0.301 |
| 7 | −5/9 | 1 | 0.000 |
| 6 | 6 | 1 | 0.000 |
| 5 | 1/4 | 1 | 0.000 |
| 4 | 2 | 1 | 0.000 |
| 3 | −1 | 1 | 0.000 |
| 2 | 1 | 1 | 0.000 |
| 1 | 0 | 1 | 0.000 |
Digits are those of the larger of the numerator and denominator of x(nP), counted exactly. Points beyond the picture are marked by arrows at its edge.
Quadratic growth. Write x(P) = a/d² in lowest terms and let h(P) = log max(|a|, d²), the naive height, which is about ln 10 times the number of digits. Doubling a point squares the size of its fraction, roughly, so h(2P) ≈ 4h(P), and the limit ĥ(P) = lim h(2nP)/4n, the Néron–Tate height, exists, differs from h by a bounded amount, and is a quadratic form: ĥ(nP) = n²ĥ(P). So the number of digits of x(nP) is n²ĥ(P)/ln 10 plus something bounded. For P = (0, 0) on 37a1, ĥ(P) ≈ 0.0511, so c ≈ 0.0222. The lesson on measuring points computes ĥ and the lattice it makes.
Why fractions cannot stay small. There are only finitely many rational numbers of bounded height (finitely many numerators and denominators below any bound), so only finitely many points of bounded height. A point of infinite order has infinitely many different multiples, and their heights must go to infinity. The quadratic form says how fast.
Where the multiples go. The real points of the curve form a group too, a circle when the cubic has one real root and a circle times two when it has three, as for 37a1: the egg and the unbounded branch, which closes up through O. P = (0, 0) sits on the egg, so its multiples alternate between the egg and the branch. A point of infinite order corresponds to an irrational fraction of a turn, so its even multiples are dense in the branch and its odd ones dense in the egg: given time, they come arbitrarily close to every real point.
Rank 2. On 389a1 every rational point is aP + bQ for two generators (the lesson A Few Points Make All of Them is about finding them), and ĥ(aP + bQ) is a quadratic form in a and b whose coefficients are the heights of P, Q and P + Q. Its determinant is the regulator, one of the terms of the conjectured formula.
Choose an axiom and three points, or press Random triple, and compare the two sides as exact fractions. For associativity, follow the two sets of lines to the same answer.
Hollow rings are third points before reflection, and dashed lines the reflections. Random triples are combinations of the generators with small whole-number coefficients, from a seeded generator. Every sum is computed exactly with fractions; a check passes only if both answers agree in every digit.
Cayley–Bacharach. Two cubic curves with no common component meet in nine points, counted properly (Bézout). The Cayley–Bacharach theorem says that any third cubic passing through eight of those nine passes through the ninth as well.
The proof sketch. Take the three lines of the construction of (P + Q) + R: the chord through P and Q, the vertical line through Q + R, and the chord through P + Q and R. Their product A is a cubic, and it meets the curve E in nine points: P, Q, −(P + Q), Q + R, −(Q + R), O, P + Q, R and the third point X of the last chord, so that (P + Q) + R is the reflection of X. Now take the other three lines: the chord through Q and R, the vertical line through P + Q, and the chord through P and Q + R. Their product B passes through the first eight of those points. By Cayley–Bacharach, applied to E and A, B passes through X too. But the only point of E on B left over is the third point of the chord through P and Q + R, so that point is X, and P + (Q + R) is its reflection as well. This argument needs the nine points to be distinct; the remaining cases follow by continuity, or by checking the formulas directly, which is the long computation.
An abelian group. With O as identity, reflection as negation, commutativity from the symmetry of a chord and associativity from above, the rational points E(ℚ) form an abelian group, and so do the real points E(ℝ) and the points modulo a prime. Over the real numbers, the identity component, the branch through O, is a circle as a group, and the whole real curve is one circle or two. The same law on the complex points is addition on a doughnut ℂ/Λ: see also curves are doughnuts.
Spot a mistake or have an idea?