MathLabs

Worked solution: Wiles's modularity proof via the Taylor–Wiles method (1994)

Step 2 of 11: Frey's idea: turning a hypothetical solution into an elliptic curve
In plain words

An elliptic curve is a smooth plane curve given by a cubic equation y2=x3+a2x2+a4x+a6y^2 = x^3 + a_2 x^2 + a_4 x + a_6, equipped with a geometric rule for adding two points: draw a straight line through two points on the curve, find the third point where the line meets the curve, and reflect across the xx-axis. This turns the points of the curve into an algebraic group.

In 1984–1985, Gerhard Frey had a bold idea: if someone hands you a counterexample ap+bp=cpa^p + b^p = c^p, use the three numbers 0,ap,−bp0, a^p, -b^p as the three roots of the cubic on the right-hand side. If Fermat's equation has a solution, this specific elliptic curve must exist as a genuine geometric object over Q\mathbb{Q}.

ap+bp=cp  ⟹  Ea,b,c:  y2=x(x−ap)(x+bp)a^p + b^p = c^p \implies E_{a,b,c}:\; y^2 = x(x - a^p)(x + b^p)
Detailed analysis

An elliptic curve EE over Q\mathbb{Q} is the set of rational solutions (x,y)(x, y) to a cubic equation y2=x3+a2x2+a4x+a6y^2 = x^3 + a_2 x^2 + a_4 x + a_6 with a2,a4,a6∈Qa_2, a_4, a_6 \in \mathbb{Q} whose right-hand cubic has three distinct complex roots, together with a distinguished point at infinity O\mathcal{O} that acts as the identity element for the chord-and-tangent addition law (Qiu et al. 2025, Section 3.3.1, Definition 3.1).

Suppose for contradiction that ap+bp=cpa^p + b^p = c^p is a counterexample to FLT with prime p≥5p \ge 5 and nonzero pairwise coprime integers a,b,ca, b, c. Following earlier constructions of Yves Hellegouarch (1969), Gerhard Frey (1985/1986) attached to this hypothetical solution the elliptic curve Ea,b,c:y2=x(x−ap)(x+bp)E_{a,b,c}: y^2 = x(x - a^p)(x + b^p) (Wiles 1995, Introduction, p. 443 and p. 448; Qiu et al. 2025, Section 3.1.2). Because a,b,ca, b, c are nonzero and ap+bp=cp≠0a^p + b^p = c^p \ne 0, the three roots r1=0r_1 = 0, r2=apr_2 = a^p, and r3=−bpr_3 = -b^p are distinct, so Ea,b,cE_{a,b,c} is a genuine non-singular elliptic curve over Q\mathbb{Q}.

Frey's insight was that the equation ap+bp=cpa^p + b^p = c^p is now encoded inside the geometry of Ea,b,cE_{a,b,c}: the differences between the three roots are ap−0=apa^p - 0 = a^p, 0−(−bp)=bp0 - (-b^p) = b^p, and ap−(−bp)=ap+bp=cpa^p - (-b^p) = a^p + b^p = c^p, every single one of which is a perfect pp-th power. The next step measures how unnatural that is.

Terms in this step
Elliptic curve over Q\mathbb{Q}
A smooth projective curve defined by a cubic equation y2=x3+a2x2+a4x+a6y^2 = x^3 + a_2 x^2 + a_4 x + a_6 with rational coefficients and distinct roots, together with a point at infinity O\mathcal{O}. Its points form an abelian group under the chord-and-tangent addition law.
Frey curve (Hellegouarch–Frey curve)
The elliptic curve Ea,b,c:y2=x(x−ap)(x+bp)E_{a,b,c}: y^2 = x(x - a^p)(x + b^p) built from a hypothetical Fermat counterexample ap+bp=cpa^p + b^p = c^p. It exists if and only if the counterexample exists.
Knowledge used in this step