On this page
An elliptic curve is the set of solutions of y² = x³ + ax + b with 4a³ + 27b² ≠ 0, together with one extra point "at infinity", as set out in the Wikipedia article on elliptic curves. The condition rules out cusps and self-crossings. You can add points on this curve, and the points form a group, just as the integers do under addition. If groups are new to you, start with our post on Lagrange's theorem and cosets.
How does chord-and-tangent addition work?
Draw the line through P and Q (the tangent at P if P = Q).
A line meets a cubic in three points, so it hits the curve again at R.
Reflect R in the x-axis. That reflection is P + Q.
Three points on a line add to zero: P + Q + R = O, so P + Q = −R. The point at infinity O lies on every vertical line, so −P = (x, −y). The same Wikipedia article defines P + O = P, which makes O the identity. Commutativity is free; associativity is true but takes real work to prove.
What are the formulas for P + Q and 2P?
For P = (x₁, y₁) and Q = (x₂, y₂), find the slope λ:
If x₁ ≠ x₂: λ = (y₂ − y₁)/(x₂ − x₁).
If P = Q and y₁ ≠ 0: λ = (3x₁² + a)/(2y₁), from differentiating 2y·y′ = 3x² + a.
Then x₃ = λ² − x₁ − x₂ and y₃ = λ(x₁ − x₃) − y₁. If x₁ = x₂ and y₁ = −y₂, the sum is O.
Why λ²? Substituting y = λx + c gives x³ − λ²x² + … = 0, whose roots x₁, x₂, x₃ add to λ²: the JEE root-sum rule.
Worked example: y² = x³ − 2x + 4 over the rationals
The curve is allowed: 4(−2)³ + 27(4)² = 400 ≠ 0. Take P = (0, 2) and Q = (3, 5); both satisfy the equation.
P + Q. λ = (5 − 2)/3 = 1, so x₃ = 1 − 0 − 3 = −2 and y₃ = 1·(0 + 2) − 2 = 0. P + Q = (−2, 0). Check: x³ − 2x + 4 − (x + 2)² = x(x − 3)(x + 2). Since y = 0, the reflection is the same point, and (−2, 0) has order 2.
2P. λ = (0 − 2)/4 = −1/2, so x₃ = 1/4 and y₃ = −1/2·(0 − 1/4) − 2 = −15/8. 2P = (1/4, −15/8). Check: 1/64 − 32/64 + 256/64 = 225/64 = (15/8)².
What changes over F₁₁?
Work mod 11; dividing means multiplying by an inverse (see finite fields built by hand). The squares mod 11 are 0, 1, 3, 4, 5, 9 (quadratic residues explained), so test x³ − 2x + 4 mod 11 for each x:
x = 0: 4, so y = 2, 9. x = 1, 3, 7: 3, so y = 5, 6.
x = 4, 8, 10: 5, so y = 4, 7. x = 5: 9, so y = 3, 8. x = 9: 0, so y = 0.
x = 2 gives 8 and x = 6 gives 10: not squares, no points.
That is 17 points plus O: 18. Hasse's theorem says the count N over a field of q elements obeys |N − (q + 1)| ≤ 2√q; here |18 − 12| = 6 ≤ 2√11 ≈ 6.63.
Double P = (0, 2): 4⁻¹ ≡ 3 (since 12 ≡ 1), so λ ≡ −2 × 3 ≡ 5, x₃ ≡ 25 ≡ 3, y₃ ≡ −15 − 2 ≡ 5. So 2P = (3, 5) = Q, matching the rational answer reduced mod 11 (1/4 ≡ 3, −15/8 ≡ 5). Then 3P = P + Q ≡ (9, 0) and 6P = O: P has order 6, which divides 18, as Lagrange's theorem requires.
Why does this group power modern cryptography?
Computing nP from P is fast by repeated doubling and adding. Finding n from P and nP is the elliptic curve discrete logarithm problem, and no efficient general method is known for well-chosen large curves. Victor Miller proposed building cryptography on it in Use of Elliptic Curves in Cryptography (CRYPTO '85), as did Neal Koblitz in Elliptic curve cryptosystems (Mathematics of Computation, 1987).
The payoff is key size. NIST's SP 800-57 Part 1 rates 256-bit elliptic curve keys at 128-bit security, the same level as 3072-bit RSA. The 2018 TLS 1.3 standard, RFC 8446, required support for key exchange on the curve secp256r1 (NIST P-256).
How should you practise the group law?
Redo P + Q and 2P without looking.
Over F₁₁, confirm that 5P = −P = (0, 9).
Show that R = (1, 5) gives 3R = (3, 5), then explain why R has order 9 and the 18-point group is cyclic.
If fields or inverses mod p feel shaky, the Fermi Concept Library covers every concept in mathematics and computing, and the Fermi Problem Library has a step-by-step solver that explains the reasoning.



