Diophantine Equations — Pell's Equation and Thue-Mahler
Pell's equation (for non-square ) always has infinitely many integer solutions generated by a fundamental unit. The Thue–Mahler equation for a binary form of degree has only finitely many solutions, a deep effective-finiteness result. Both lie at the heart of Diophantine analysis, connecting algebraic number theory, continued fractions, and transcendence theory. Pell: Brahmagupta (628), Bhāskara II (1150), Lagrange (1768); Thue (1909), Mahler (1933), Baker (1968).
The number of integer solutions to is controlled by the degree of the binary form over :
- Degree 1 (linear): infinitely many, parametrized by a line.
- Degree 2 (Pell/conic): either none, finitely many, or an infinite group — the latter when represents a norm form of a real quadratic field, where Dirichlet's unit theorem injects an infinite cyclic unit group.
- Degree (Thue): always finitely many, because a solution would force to approximate an algebraic number of degree too well, contradicting the Thue–Siegel–Roth theorem.
Mahler's extension allows the right-hand side to range over -units (numbers built from a fixed finite prime set), preserving finiteness. The bridge from finite to computable is Baker's lower bound on linear forms in logarithms.
Formal Statement
Let be a positive integer that is not a perfect square. The (positive) Pell equation is
Derivation hint: this is the norm equation in the order . The negative Pell equation is , solvable only for certain . The pair corresponds to the algebraic number with norm
Derivation hint: the norm of in is the product of its two Galois conjugates .
For every non-square , equation [1] has infinitely many solutions in positive integers. There is a unique fundamental solution with minimal, and every solution with is given by
Derivation hint: the solutions with form a subgroup of the unit group ; by Dirichlet's unit theorem this group is with the fundamental unit, and the solutions are powers of or .
A binary form of degree over is a homogeneous polynomial
Derivation hint: factor the dehomogenized polynomial with roots , then rehomogenize by and multiply by . Given a nonzero integer , the Thue equation is . We require irreducible over of degree (equivalently, distinct roots , none rational).
Fix a finite set of primes and a nonzero integer . The Thue–Mahler equation asks for integers (with ) and exponents such that
Derivation hint: replace the fixed right-hand side of the Thue equation by all -units times ; equivalently is an -unit up to the factor . Here is again an irreducible binary form of degree .
If is an irreducible binary form of degree : 1. (Thue) The Thue equation has only finitely many integer solutions. 2. (Mahler) The Thue–Mahler equation [5] has only finitely many solutions with . By Baker's method (1968) both solution sets are effectively computable: there is an explicit bound on and on each .
Why It Holds / Derivation
We show has a solution with .
Step 1 — Infinitely many small norms. By Dirichlet's approximation theorem, for every there exist integers with and
Derivation hint: pigeonhole the fractional parts , , into subintervals of .
Step 2 — Bounded norm. Then , so
Derivation hint: multiply the two factors of the norm and use the bounds from [6].
Step 3 — A repeated value. Since infinitely many give , some fixed nonzero integer with is attained infinitely often. Among those, two distinct solutions agree modulo in both coordinates.
Step 4 — Division in . Form the quotient
Derivation hint: rationalize the denominator; the congruences from Step 3 force , and the norm is multiplicative so . This solves Pell's equation; one checks (else with distinct primitive solutions, impossible).
∎Step 1 — Approximation reformulation. Suppose with large. Factor . Then
Derivation hint: divide by and use the factorization [4].
Step 2 — One factor is tiny. Let be the root closest to . The other factors are bounded below by a constant once is near , so
Derivation hint: the product [9] is ; isolating the smallest factor and bounding the rest below by a constant gives the single-factor bound.
Step 3 — Roth's theorem. Since is algebraic of degree , Roth's theorem states that for any only finitely many rationals satisfy . As , inequality [10] is stronger than Roth allows for all but finitely many .
Derivation hint: [10] contradicts Roth's bound for large ; only finitely many survive, each with finitely many . Mahler's extension applies the same machinery in the -adic completions for , using the -adic Roth (Ridout) theorem, to handle the -unit right-hand side.
∎The Thue–Roth proof above is non-effective: Roth's theorem produces no computable bound on the size of solutions. To actually solve a Thue or Thue–Mahler equation one must replace Roth by Baker's theory of linear forms in logarithms (and its -adic version), which yields explicit bounds like . These triple-exponential bounds are then reduced to practicality by LLL lattice reduction and continued-fraction sieving.
Axel Thue (Norwegian) proved in 1909 that an algebraic number of degree cannot be approximated by rationals to order better than , breaking Liouville's bound and immediately yielding finiteness of solutions to . His method was non-effective. Carl Ludwig Siegel sharpened the exponent (1921), and Klaus Roth reached the optimal (1955, Fields Medal). Kurt Mahler (1933) introduced -adic approximation, extending finiteness to -unit right-hand sides. The decisive turn to effectivity came from Alan Baker (1966–68, Fields Medal 1970), whose lower bounds for linear forms in logarithms made Thue, Thue–Mahler, and many Diophantine equations algorithmically solvable.
Building Intuition
Think of as a point in the ring . Multiplying two norm-1 elements gives another norm-1 element — so solutions multiply. The smallest solution is like a "rotation generator": its powers march off to infinity along the hyperbola, spaced multiplicatively. That's why solutions grow exponentially and never stop. For Thue, picture the real roots of on the number line. A solution forces the rational to hug one of these algebraic irrationals abnormally tightly — tighter than . But irrational algebraic numbers of degree are "approximation-resistant" (Roth): they refuse to be approximated better than . So only a few small can sneak through. Degree 2 escapes this because its roots are quadratic irrationals whose continued fractions are periodic — generating infinitely many good approximations, which is exactly the Pell solution stream.
Worked Examples
Given: , find the fundamental solution.
Step 1 — Continued fraction of . Compute (period length 5, which is odd).
Step 2 — Convergents. Build the convergents from the partial quotients :
| 0 | 3 | 3 | 1 |
| 1 | 1 | 4 | 1 |
| 2 | 1 | 7 | 2 |
| 3 | 1 | 11 | 3 |
| 4 | 1 | 18 | 5 |
| 5 | 6 | 119 | 33 |
| 6 | 1 | 137 | 38 |
| 7 | 1 | 256 | 71 |
| 8 | 1 | 393 | 109 |
| 9 | 1 | 649 | 180 |
Step 3 — Use the right convergent. Since the period is odd (length 5), the convergent at index gives : indeed . So the negative Pell equation is solved by .
Step 4 — Get by squaring. The convergent at index , namely , satisfies .
(Note the explosive growth: has a tiny fundamental solution compared with whose fundamental is .)
Given: the cubic Thue equation . The form factors as with and two complex roots.
Step 1 — Connection to units of . Solutions correspond to elements of norm 1 in . The unit group has rank 1 (one real, one complex pair → ), with fundamental unit .
Step 2 — Search small values. Test:
- : ✓
- : ✓
- would give , no.
Step 3 — Baker bound + reduction. Baker's linear-forms bound caps at an astronomically large but explicit value; LLL reduction collapses it to a few, and exhaustive search confirms no others.
(Compare the Thue–Mahler version , which would also have finitely many solutions, found by the same effective machinery with -adic Baker bounds.)
Common Misconceptions
- "Pell's equation is due to Pell." John Pell never worked on it; Euler misattributed it. The Indian mathematicians Brahmagupta and Bhāskara II had a complete algorithm (the chakravala) centuries before Europe.
- "The negative Pell equation always has a solution." It is solvable iff the continued fraction of has odd period (equivalently a constraint on the fundamental unit's norm). For it has none, while for it does ().
- "Thue's theorem tells you the solutions." It only proves they are finite (and Roth's version is non-effective). Finding them requires Baker's method.
- "All quadratic Diophantine equations are easy." General quadratics reduce to Pell only after handling the discriminant; representation by an indefinite form depends on class group structure and may have no solutions at all.
The conic has infinitely many solutions: , generated by . Drop the same right-hand side onto the cubic and you get only and . The single increment in degree converts an infinite group into a finite set — a vivid demonstration that the degree-2/degree-3 boundary is the true watershed of binary Diophantine analysis, exactly mirroring genus 0 (rational) versus the rigidity forced by Roth.
Connections
Pell's equation is the norm-1 equation for the order , so it is inseparable from Dirichlet's Unit Theorem (its solutions are the units) and from Continued Fractions (the algorithm that produces the fundamental unit). The size of the fundamental solution measures the regulator of the real quadratic field, linking to the Class Number Formula. Thue–Mahler equations reduce, via the factorization , to -unit equations in number fields, which are themselves solved by Baker's Theorem on Linear Forms in Logarithms. Both feed into the general theory of Integral Points on Algebraic Curves (Siegel's theorem) and into the resolution of Mordell Equation and elliptic equations. The conceptual divide — genus 0 with infinitely many points vs higher genus with finitely many — anticipates Faltings' Theorem (Mordell conjecture) for curves of genus .
Real-World Applications
Historical Development
Subtleties & Limits
- Size of the fundamental Pell solution. No useful general upper bound on in terms of is known; it can be as large as (relating to small regulators / large class numbers). The distribution of regulators and the proportion of for which the negative Pell equation is solvable (conjectured density due to Stevenhagen) remains only partially proven.
- Effective bounds remain enormous. Baker-type bounds for Thue–Mahler are towers of exponentials in the number of primes and the height of ; reducing them to polynomial size is open.
- Higher-dimensional analogues. Norm-form and discriminant-form equations (Schmidt, Győry) generalize Thue–Mahler, but optimal effective constants are unknown.
- Uniform bounds (number of solutions). Whether the number of solutions to can be bounded purely in terms of (independent of the coefficients of ) is subtle; strong results exist (Bombieri–Schmidt, Stewart) but a sharp uniform theory is incomplete.
- The connection. A strong effective conjecture would immediately yield clean effective bounds for Thue–Mahler equations, bypassing Baker's towers — but itself remains unproven.
See Also
Pell's Equation · Continued Fractions · Dirichlet's Unit Theorem · Roth's Theorem on Rational Approximation · Baker's Theorem on Linear Forms in Logarithms · S-unit Equations · Binary Quadratic Forms · Mordell Equation · Faltings' Theorem · Class Number Formula