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).

A Diophantine equation is a polynomial equation studied for its integer (or rational) solutions. Two paradigmatic families occupy opposite poles of difficulty: Pell's equation , a quadratic form equation whose solution set is an infinite cyclic group governed by the units of a real quadratic field; and the Thue–Mahler equation, governed by binary forms of degree together with prescribed prime factorizations, whose solution set is always finite. The surprising fact is that this dichotomy — infinitude for degree 2, finitude for degree — reflects a deep geometric truth (negative curvature / rational approximation), made effective only by Baker's theory of linear forms in logarithms. Pell's equation also secretly computes the regulator and class number of quadratic orders, while Thue–Mahler underlies modern resolution of -unit and elliptic equations.

The Core Insight

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

Pell's equation and its negative form

Let be a positive integer that is not a perfect square. The (positive) Pell equation is

1
⟳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

2
⟳the norm of in is the product of its two Galois conjugates .

Lagrange, 1768 — Structure of solutions to Pell

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

3
⟳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 .

Binary form and the Thue equation

A binary form of degree over is a homogeneous polynomial

4
⟳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).

The Thue–Mahler equation

Fix a finite set of primes and a nonzero integer . The Thue–Mahler equation asks for integers (with ) and exponents such that

5
⟳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 .

Thue 1909; Mahler 1933 — Finiteness

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 .

Negative curvature explains the dichotomy: a degree-2 conic carries an infinite group of integer points (Pell), while a degree-≥3 curve has only finitely many

Degree 2: Pell hyperbola x² − Dy² = 1 ε ε² ε³… infinitely many integer points (a group) Degree ≥ 3: Thue curve F(x,y)=m only finitely many integer points genus 0 / unit group acts good rational approx forbidden (Roth)

Why It Holds / Derivation

Existence of a nontrivial Pell solution (Dirichlet pigeonhole)

We show has a solution with .

Step 1 — Infinitely many small norms. By Dirichlet's approximation theorem, for every there exist integers with and
6
⟳pigeonhole the fractional parts , , into subintervals of .
Step 2 — Bounded norm. Then , so
7
⟳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
8
⟳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).

Finiteness for Thue — sketch via Roth's theorem

Step 1 — Approximation reformulation. Suppose with large. Factor . Then
9
⟳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
10
⟳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 .
11
⟳[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.

Roth gives finiteness but not effectivity

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 & Alan Baker | 1863–1922; 1939–2018

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

Pell as a unit group; Thue as forbidden approximation

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

Solving $x^2 - 13 y^2 = 1$ by continued fractions

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 .)

A Thue equation: $x^3 - 2y^3 = 1$

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

Frequent errors

  • "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.

Degree matters: $x^2 - 2y^2 = 1$ vs $x^3 - 2y^3 = 1$

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

Where Pell and Thue–Mahler sit

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

Concrete uses

  1. Cryptography & integer factorization. The continued-fraction factoring method (CFRAC) and the quadratic sieve exploit relations closely related to Pell-type continued-fraction expansions of .
  2. Computing fundamental units & regulators. Solving Pell is the basic step in determining the unit group of a real quadratic field, needed throughout computational algebraic number theory (PARI/GP, Magma, SageMath).
  3. The Cattle Problem of Archimedes. Reduces to the Pell equation ; the smallest solution has about decimal digits — a historic stress test for symbolic computation.
  4. Best rational approximations / gear ratios & calendar design. Convergents of (the engine of Pell) give optimal rational approximations used in mechanical gear trains and astronomical period reconciliation.
  5. Lattice and crystallography problems. Indefinite binary quadratic forms model certain quasicrystal and Penrose-tiling self-similarity scalings, where Pell units act as inflation factors.
  6. Solving elliptic and superelliptic equations. Modern algorithms (Tzanakis–de Weger, PARI's thue and thuemahler) resolve Mordell, Ramanujan–Nagell, and Catalan-type equations by reduction to Thue–Mahler.
  7. Coding theory / Diophantine error analysis. Bounds from Thue–Mahler control the integral points on curves arising in algebraic-geometry codes and in irrationality measure estimates.

Historical Development

Timeline

  • 628 CE — Brahmagupta discovers the bhāvanā (composition) identity , the multiplicative law for Pell solutions.
  • 1150 — Bhāskara II perfects the chakravala (cyclic) algorithm, solving cases like centuries before Europe.
  • 1657 — Fermat challenges British mathematicians to solve ; Brouncker and Wallis respond with a method essentially equivalent to continued fractions.
  • 1768 — Lagrange gives the first complete and rigorous theory via continued fractions, proving infinitude and the structure of solutions.
  • 1801 — Gauss (Disquisitiones Arithmeticae) embeds Pell in the general theory of binary quadratic forms and the class group.
  • 1844 — Liouville proves algebraic numbers are poorly approximable to order , the seed of the Thue method.
  • 1909 — Axel Thue improves the exponent to , deducing finiteness for , .
  • 1921–1955 — Siegel, Dyson, Roth sharpen the approximation exponent to the optimal (Roth's theorem, 1955).
  • 1933 — Mahler introduces -adic approximation and proves finiteness of the Thue–Mahler equation [5].
  • 1966–1968 — Alan Baker establishes effective lower bounds for linear forms in logarithms, making Thue and Thue–Mahler effectively solvable; later refined -adically by Coates, Yu, and others.
  • 1989 — Tzanakis & de Weger publish the practical LLL-based algorithm for Thue equations, extended to Thue–Mahler in the 1990s.

Subtleties & Limits

Open and hard frontiers

  • 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

Before this

Where this leads