Number Theory

Elliptic Curves Introduced for Curious Readers

See what an elliptic curve is, how two points add to give a third, and why this one structure matters for number theory and secure codes.

Key takeaways

  • An elliptic curve can be written as y² = x³ + ax + b with 4a³ + 27b² ≠ 0, plus a point at infinity.
  • Points are added with a chord-and-tangent rule, and the result forms a commutative group.
  • Mordell proved that all rational points arise from finitely many of them by repeated addition.
  • Over a finite field the curve has finitely many points, close in number to the size of the field.
  • The name comes from elliptic integrals, and these curves are not ellipses.

An elliptic curve is, for most purposes, the set of solutions of an equation y² = x³ + ax + b whose right side has no repeated root, together with one extra "point at infinity". What makes these curves special is that their points can be added: take two points, follow a simple geometric rule, and you get a third point on the same curve.

That addition turns the solutions of one cubic equation into an algebraic system with rich structure. It lets you manufacture new rational solutions from old ones, it sits at the center of major theorems and open problems, and it secures a great deal of internet traffic.

The shape of the equation

The condition 4a³ + 27b² ≠ 0 rules out curves with a sharp corner or a self-crossing. Such singular points would break the addition rule.

Over the real numbers the graph is symmetric above and below the x-axis, since y appears only squared. Depending on a and b, it consists of one unbounded branch, or of that branch plus a separate closed loop. The curve y² = x³ − x has both pieces, crossing the x-axis at −1, 0 and 1.

The odd name has a historical reason. Computing the arc length of an ellipse leads to certain integrals, and inverting those integrals produces functions that parametrize cubic curves. The curves inherited the adjective.

Where the point at infinity comes from

The extra point can sound like a patch, but it arises naturally in projective geometry, which adds a point "at infinity" for each direction of parallel lines. Write x = X/Z and y = Y/Z and clear denominators:

Y²Z = X³ + aXZ² + bZ³

Ordinary points have Z ≠ 0. Setting Z = 0 forces X = 0, leaving exactly one further point, with coordinates (0, 1, 0). It lies in the vertical direction, so every vertical line passes through it. That is why vertical lines behave so neatly in the addition rule. In this form the curve is closed up and has no loose ends. See the projective plane for the surrounding geometry.

Over the complex numbers, the closed-up curve has the shape of a torus, the surface of a ring. Adding points then corresponds to adding positions around the two circular directions of that surface.

Adding points

A straight line meets a cubic curve in three points, if you count tangency twice and include the point at infinity. This is the source of the rule.

  1. To add P and Q, draw the line through them.
  2. Find the third point where it meets the curve.
  3. Reflect that point in the x-axis. The result is P + Q.
  4. To double P, use the tangent line at P in step 1.

The point at infinity, written O, acts as zero. A vertical line through P and its mirror image meets the curve nowhere else in the plane, so P plus its reflection equals O. The reflection is therefore −P.

Chord-and-tangent addition
1 Pick P and Q Two points on the curve 2 Draw the line Use the tangent if P equals Q 3 Third point The line cuts the cubic once more 4 Reflect Mirror in the x-axis to get P + Q Pick P and Q Two points on the curve 1 Draw the line Use the tangent if P equals Q 2 Third point The line cuts the cubic once more 3 Reflect Mirror in the x-axis to get P + Q 4

The rule is commutative, and it is also associative, meaning (P + Q) + R = P + (Q + R). Associativity is far from obvious from the picture and takes real work to prove. Together these properties make the points a group.

A worked example

On y² = x³ + 1 you can see the points (−1, 0), (0, 1) and (2, 3). Add the first two. The line through them is y = x + 1. Substituting gives

(x + 1)² = x³ + 1
x³ − x² − 2x = 0
x(x + 1)(x − 2) = 0

The third intersection is at x = 2, where y = 3. Reflecting, (−1, 0) + (0, 1) = (2, −3).

In general, if the line has slope s and passes through (x₁, y₁) and (x₂, y₂), the new point has x₃ = s² − x₁ − x₂ and y₃ = s(x₁ − x₃) − y₁. For a tangent, the slope is s = (3x₁² + a)/(2y₁), which you obtain by implicit differentiation.

Manufacturing rational solutions

If a and b are rational, the formulas use only addition, subtraction, multiplication and division. So rational points always give rational points.

Start on y² = x³ − 2 with P = (3, 5), since 25 = 27 − 2. The tangent slope is 27/10. Then

x = (27/10)² − 6 = 129/100
y = (27/10)(3 − 129/100) − 5 = −383/1000
check: 383² = 146689 and 129³ − 2·100³ = 146689

From one small solution you have found a much less obvious one. Doubling again gives fractions with far more digits, and the process never returns to where it began. This curve therefore has infinitely many rational points. Bachet knew an equivalent of this doubling formula in the seventeenth century.

What all the rational points look like

In 1922 Louis Mordell proved that for any elliptic curve over the rationals, finitely many points generate all the rational points by addition. The proof is a form of infinite descent.

The group then splits into two parts. The torsion points return to O after finitely many additions. On y² = x³ + 1, the point (−1, 0) has order 2, and there are six torsion points in all, counting O. Barry Mazur showed that there are never more than 16 rational torsion points.

The rest is described by the rank: the number of independent points of infinite order. Rank zero means finitely many rational points. No general procedure has been proved to compute the rank in every case, and whether ranks can be arbitrarily large is unsettled as of the mid-2020s.

Integer points are rarer

Although there may be infinitely many rational points, a theorem of Carl Siegel implies that only finitely many have integer coordinates. On y² = x³ − 2 the only integer points are (3, 5) and (3, −5), a claim that goes back to Fermat. This contrast is typical of Diophantine equations.

Counting points modulo a prime

Replace real numbers by remainders modulo a prime p of at least 5. For y² = x³ + x + 1 modulo 5, the squares are 0, 1 and 4.

x x³ + x + 1 mod 5 solutions for y
0 1 1, 4
1 3 none
2 1 1, 4
3 1 1, 4
4 4 2, 3

That is 8 points, plus O, for a total of 9. Helmut Hasse proved that the total N always satisfies |N − (p + 1)| ≤ 2√p. Here the difference is 3, within the bound of about 4.47. Heuristically, about half the values of x give a square, and each gives two points.

The same formulas work in this finite setting, with division meaning multiplication by an inverse. Double P = (0, 1). The slope is (3·0 + 1)/(2·1) = 1/2, and the inverse of 2 modulo 5 is 3. So x = 3² − 0 = 9 ≡ 4 and y = 3(0 − 4) − 1 = −13 ≡ 2, giving 2P = (4, 2).

Adding P once more uses the slope (2 − 1)/(4 − 0), which is the inverse of 4, namely 4. Then x = 16 − 0 − 4 = 12 ≡ 2 and y = 4(0 − 2) − 1 = −9 ≡ 1, so 3P = (2, 1). Both results appear in the table, as they must. There is no picture of a line here in the ordinary sense, only arithmetic with remainders, yet the group laws still hold.

Why they matter

Fermat's Last Theorem. A hypothetical solution would produce an elliptic curve with properties so strange that it could not be modular, meaning matched with a highly symmetric kind of function. Andrew Wiles, with help from Richard Taylor, proved enough of the modularity conjecture to rule it out. The story is told in the road to Wiles's proof.

A million-dollar question. The Birch and Swinnerton-Dyer conjecture predicts the rank from the way point counts modulo many primes behave. It is one of the Millennium Prize problems.

Cryptography. Adding a point to itself k times is quick, but recovering k from the result appears very hard on well-chosen curves over large finite fields. See elliptic curve cryptography. Real systems rely on standardized curves and vetted software, and a classroom example offers no security.

Factoring. Hendrik Lenstra's elliptic curve method finds moderate-sized prime factors of large integers.

A very old question

Which whole numbers are areas of right triangles with rational sides? Such numbers are called congruent numbers. The 3, 4, 5 triangle shows that 6 is one, and the triangle with sides 3/2, 20/3 and 41/6 shows that 5 is one.

A number n is congruent exactly when the curve y² = x³ − n²x has a rational point with y ≠ 0. Fermat showed that 1 is not. A criterion due to Jerrold Tunnell would decide every case, but one direction of it depends on the Birch and Swinnerton-Dyer conjecture. A question about triangles, posed more than a thousand years ago, is therefore tied to a major open problem.

Common misconceptions

  • An elliptic curve is not an ellipse. An ellipse has a degree 2 equation, and its rational points are described by a simple parameter, as for circles.
  • Adding points is not adding coordinates. The sum of (−1, 0) and (0, 1) is (2, −3), not (−1, 1).
  • Not every cubic equation in x and y qualifies. The curve must be free of singular points.
  • A curve need not have any rational points apart from O, and having one or two does not imply infinitely many.

Where to go next

Try computing multiples of (2, 3) on y² = x³ + 1. You will find that it returns to O after six steps, passing through (0, 1), (−1, 0), (0, −1) and (2, −3). Then try the same on y² = x³ − 2 and watch the numbers explode instead.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 59 articles in Number Theory →

Latest news on this topic