Brahmagupta · Mathematics

The Pell Equation, a Thousand Years Early

Brahmagupta’s attack on the ‘square-nature’ problem - finding whole-number solutions of Nx² + 1 = y² - through his ingenious method of <em>composition</em>, which builds infinitely many solutions from one, and his taunting challenge problems: number theory of the first rank a millennium before Fermat and Euler.

From the lesson

Some of the deepest questions in mathematics are the simplest to state. Here is one Brahmagupta attacked in 628 CE, which Indian mathematicians called the problem of ‘square-nature’ (varga-prakriti): take a whole number N that is not itself a perfect square; can you find whole numbers x and y such that N times x-squared, plus one, equals y-squared? In symbols, N·x² + 1 = y². Finding rational (fractional) solutions is easy and uninteresting; the hard, beautiful demand is for solutions in integers. For most values of N the smallest integer solution is startlingly large and gives no clue how to find it. This innocent-looking equation is a doorway into the theory of numbers, and Brahmagupta was the first person known to have walked through it with a real method rather than mere trial.

The heart of Brahmagupta’s method is an algebraic identity of real beauty. Suppose you have one solution giving N·x₁² + k₁ = y₁² and another giving N·x₂² + k₂ = y₂². Brahmagupta’s composition rule combines them into a new triple that satisfies N·(x₁y₂ + x₂y₁)² + k₁k₂ = (y₁y₂ + N·x₁x₂)². In words: the new ‘additive’ is the product of the old ones, and the new roots are built by cross-multiplying the old roots. Compose a solution with itself and you get a bigger solution of the same kind; do it again and you climb an infinite ladder. And if you can only find a solution whose additive is not 1 but some small number like ±1, ±2, or ±4, Brahmagupta showed how composition lets you convert it into a genuine additive-1 solution. From a foothold, he could scale the whole cliff.

Brahmagupta’s challenge problems, such as 92·x² + 1 = y² and 83·x² + 1 = y², are among the most charming artefacts in the history of mathematics: hard number-theory problems posed as tests of manhood and skill. For 83 the smallest solution is modest, x = 9, y = 82 (since 83 × 81 + 1 = 6724 = 82²); for 92 it leaps to x = 120, y = 1151. Brahmagupta could produce these because his composition method, cunningly applied, drove down from easy near-miss solutions to the exact additive-1 answer. He did not yet have a single guaranteed procedure that would crack every N without ingenuity - that final step would come later, from his successors - but he had far more than trial and error. He had a theory, and the confidence to challenge the world with it.

This is the opening of the lesson. The rest — the dialogue, the primary source, and the recall — is in the app.

What you'll be able to recall

You learned that Brahmagupta studied the ‘square-nature’ equation Nx² + 1 = y² in whole numbers, invented the method of composition (bhavana) that generates infinitely many solutions from one, solved challenge cases such as 92x² + 1 = y², and thereby did deep number theory long before Fermat, Euler and Lagrange. Expla…

Leads to Pierre de Fermat.

Begin this lesson →
← All lessons on Brahmagupta

epoché — a humanities education that remembers you.