Pell's equation, also called the Pell–Fermat equation, is any
Diophantine equation ''Diophantine'' means pertaining to the ancient Greek mathematician Diophantus. A number of concepts bear this name:
*Diophantine approximation
In number theory, the study of Diophantine approximation deals with the approximation of real n ...
of the form where ''n'' is a given positive nonsquare
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
, and integer solutions are sought for ''x'' and ''y''. In
Cartesian coordinates
In geometry, a Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of real numbers called ''coordinates'', which are the signed distances to the point from two fixed perpendicular o ...
, the equation is represented by a
hyperbola
In mathematics, a hyperbola is a type of smooth function, smooth plane curve, curve lying in a plane, defined by its geometric properties or by equations for which it is the solution set. A hyperbola has two pieces, called connected component ( ...
; solutions occur wherever the curve passes through a point whose ''x'' and ''y'' coordinates are both integers, such as the
trivial solution
In mathematics, the adjective trivial is often used to refer to a claim or a case which can be readily obtained from context, or a particularly simple object possessing a given structure (e.g., group, topological space). The noun triviality usual ...
with ''x'' = 1 and ''y'' = 0.
Joseph Louis Lagrange
Joseph-Louis Lagrange (born Giuseppe Luigi Lagrangiaperfect square, Pell's equation has infinitely many distinct integer solutions. These solutions may be used to accurately
approximate
An approximation is anything that is intentionally similar but not exactly equal to something else.
Etymology and usage
The word ''approximation'' is derived from Latin ''approximatus'', from ''proximus'' meaning ''very near'' and the prefix ...
the
square root
In mathematics, a square root of a number is a number such that y^2 = x; in other words, a number whose ''square'' (the result of multiplying the number by itself, or y \cdot y) is . For example, 4 and −4 are square roots of 16 because 4 ...
of ''n'' by
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s of the form ''x''/''y''.
This equation was first studied extensively in India starting with
Brahmagupta
Brahmagupta ( – ) was an Indian Indian mathematics, mathematician and Indian astronomy, astronomer. He is the author of two early works on mathematics and astronomy: the ''Brāhmasphuṭasiddhānta'' (BSS, "correctly established Siddhanta, do ...
, who found an integer solution to in his '' Brāhmasphuṭasiddhānta'' circa 628. Bhaskara II in the 12th century and Narayana Pandit in the 14th century both found general solutions to Pell's equation and other quadratic indeterminate equations. Bhaskara II is generally credited with developing the ''chakravala'' method, building on the work of Jayadeva and Brahmagupta. Solutions to specific examples of Pell's equation, such as the Pell numbers arising from the equation with ''n'' = 2, had been known for much longer, since the time of
Pythagoras
Pythagoras of Samos (; BC) was an ancient Ionian Greek philosopher, polymath, and the eponymous founder of Pythagoreanism. His political and religious teachings were well known in Magna Graecia and influenced the philosophies of P ...
in
Greece
Greece, officially the Hellenic Republic, is a country in Southeast Europe. Located on the southern tip of the Balkan peninsula, it shares land borders with Albania to the northwest, North Macedonia and Bulgaria to the north, and Turkey to th ...
and a similar date in India. William Brouncker was the first European to solve Pell's equation. The name of Pell's equation arose from
Leonhard Euler
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
mistakenly attributing Brouncker's solution of the equation to John Pell.In Euler's (pp. 227ff), he presents a solution to Pell's equation which was taken from John Wallis' , specifically, Letter 17 () and Letter 19 () of:
* The letters are in Latin. Letter 17 appears on pp. 56–72. Letter 19 appears on pp. 81–91.
* French translations of Wallis' letters: Letter 17 appears on pp. 457–480. Letter 19 appears on pp. 490–503.
Wallis' letters showing a solution to the Pell's equation also appear in volume 2 of Wallis' (1693), which includes articles by John Pell:
* Letter 17 is on pp. 789–798; letter 19 is on pp. 802–806. See also Pell's articles, where Wallis mentions (pp. 235, 236, 244) that Pell's methods are applicable to the solution of Diophantine equations:
:* (On Algebra by Dr. John Pell and especially on an incompletely determined problem), pp. 234–236.
:* (Example of Pell's method), pp. 238–244.
:* (Another example of Pell's method), pp. 244–246.
See also:
* Whitford, Edward Everett (1912) "The Pell equation", doctoral thesis, Columbia University (New York, New York, USA) p. 52
*
History
As early as 400 BC in
India
India, officially the Republic of India, is a country in South Asia. It is the List of countries and dependencies by area, seventh-largest country by area; the List of countries by population (United Nations), most populous country since ...
and
Greece
Greece, officially the Hellenic Republic, is a country in Southeast Europe. Located on the southern tip of the Balkan peninsula, it shares land borders with Albania to the northwest, North Macedonia and Bulgaria to the north, and Turkey to th ...
, mathematicians studied the numbers arising from the ''n'' = 2 case of Pell's equation,
and from the closely related equation
because of the connection of these equations to the
square root of 2
The square root of 2 (approximately 1.4142) is the positive real number that, when multiplied by itself or squared, equals the number 2. It may be written as \sqrt or 2^. It is an algebraic number, and therefore not a transcendental number. Te ...
. Indeed, if ''x'' and ''y'' are
positive integers
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positiv ...
satisfying this equation, then ''x''/''y'' is an approximation of . The numbers ''x'' and ''y'' appearing in these approximations, called side and diameter numbers, were known to the
Pythagoreans
Pythagoreanism originated in the 6th century BC, based on and around the teachings and beliefs held by Pythagoras and his followers, the Pythagoreans. Pythagoras established the first Pythagorean community in the Ancient Greece, ancient Greek co ...
, and
Proclus
Proclus Lycius (; 8 February 412 – 17 April 485), called Proclus the Successor (, ''Próklos ho Diádokhos''), was a Greek Neoplatonist philosopher, one of the last major classical philosophers of late antiquity. He set forth one of th ...
observed that in the opposite direction these numbers obeyed one of these two equations. Similarly,
Baudhayana
The (Sanskrit: बौधायन सूत्रस् ) are a group of Vedic Sanskrit texts which cover dharma, daily ritual, mathematics and is one of the oldest Dharma-related texts of Hinduism that have survived into the modern age from th ...
discovered that ''x'' = 17, ''y'' = 12 and ''x'' = 577, ''y'' = 408 are two solutions to the Pell equation, and that 17/12 and 577/408 are very close approximations to the square root of 2.
Later,
Archimedes
Archimedes of Syracuse ( ; ) was an Ancient Greece, Ancient Greek Greek mathematics, mathematician, physicist, engineer, astronomer, and Invention, inventor from the ancient city of Syracuse, Sicily, Syracuse in History of Greek and Hellenis ...
approximated the
square root of 3
The square root of 3 is the positive real number that, when multiplied by itself, gives the number 3. It is denoted mathematically as \sqrt or 3^. It is more precisely called the principal square root of 3 to distinguish it from the negative nu ...
by the rational number 1351/780. Although he did not explain his methods, this approximation may be obtained in the same way, as a solution to Pell's equation..
Likewise, Archimedes's cattle problem — an ancient word problem about finding the number of cattle belonging to the sun god
Helios
In ancient Greek religion and Greek mythology, mythology, Helios (; ; Homeric Greek: ) is the god who personification, personifies the Sun. His name is also Latinized as Helius, and he is often given the epithets Hyperion ("the one above") an ...
— can be solved by reformulating it as a Pell's equation. The manuscript containing the problem states that it was devised by Archimedes and recorded in a letter to
Eratosthenes
Eratosthenes of Cyrene (; ; – ) was an Ancient Greek polymath: a Greek mathematics, mathematician, geographer, poet, astronomer, and music theory, music theorist. He was a man of learning, becoming the chief librarian at the Library of A ...
, and the attribution to Archimedes is generally accepted today.
Around AD 250,
Diophantus
Diophantus of Alexandria () (; ) was a Greek mathematician who was the author of the '' Arithmetica'' in thirteen books, ten of which are still extant, made up of arithmetical problems that are solved through algebraic equations.
Although Jose ...
considered the equation
where ''a'' and ''c'' are fixed numbers, and ''x'' and ''y'' are the variables to be solved for.
This equation is different in form from Pell's equation but equivalent to it.
Diophantus solved the equation for (''a'', ''c'') equal to (1, 1), (1, −1), (1, 12), and (3, 9).
Al-Karaji
(; c. 953 – c. 1029) was a 10th-century Persian mathematician and engineer who flourished at Baghdad. He was born in Karaj, a city near Tehran. His three principal surviving works are mathematical: ''Al-Badi' fi'l-hisab'' (''Wonderful on ...
, a 10th-century Persian mathematician, worked on similar problems to Diophantus.
In Indian mathematics,
Brahmagupta
Brahmagupta ( – ) was an Indian Indian mathematics, mathematician and Indian astronomy, astronomer. He is the author of two early works on mathematics and astronomy: the ''Brāhmasphuṭasiddhānta'' (BSS, "correctly established Siddhanta, do ...
discovered that
a form of what is now known as
Brahmagupta's identity
In algebra, Brahmagupta's identity says that, for given n, the product of two numbers of the form a^2+nb^2 is itself a number of that form. In other words, the set of such numbers is closed under multiplication. Specifically:
:\begin
\left(a^2 + ...
. Using this, he was able to "compose" triples and that were solutions of , to generate the new triples
: and
Not only did this give a way to generate infinitely many solutions to starting with one solution, but also, by dividing such a composition by , integer or "nearly integer" solutions could often be obtained. For instance, for , Brahmagupta composed the triple (10, 1, 8) (since ) with itself to get the new triple (192, 20, 64). Dividing throughout by 64 ("8" for and ) gave the triple (24, 5/2, 1), which when composed with itself gave the desired integer solution (1151, 120, 1). Brahmagupta solved many Pell's equations with this method, proving that it gives solutions starting from an integer solution of for ''k'' = ±1, ±2, or ±4..
The first general method for solving the Pell's equation (for all ''N'') was given by Bhāskara II in 1150, extending the methods of Brahmagupta. Called the chakravala (cyclic) method, it starts by choosing two relatively prime integers and , then composing the triple (that is, one which satisfies ) with the trivial triple to get the triple , which can be scaled down to
When is chosen so that is an integer, so are the other two numbers in the triple. Among such , the method chooses one that minimizes and repeats the process. This method always terminates with a solution. Bhaskara used it to give the solution ''x'' = , ''y'' = to the ''N'' = 61 case.
Several European mathematicians rediscovered how to solve Pell's equation in the 17th century.
Pierre de Fermat
Pierre de Fermat (; ; 17 August 1601 – 12 January 1665) was a French mathematician who is given credit for early developments that led to infinitesimal calculus, including his technique of adequality. In particular, he is recognized for his d ...
found how to solve the equation and in a 1657 letter issued it as a challenge to English mathematicians. In a letter to
Kenelm Digby
Sir Kenelm Digby (11 July 1603 – 11 June 1665) was an English courtier and diplomat. He was also a highly reputed natural philosopher, astrologer and known as a leading Roman Catholic intellectual and Thomas White (scholar), Blackloist. For ...
,
Bernard Frénicle de Bessy
Bernard ('' Bernhard'') is a French and West Germanic masculine given name. It has West Germanic origin and is also a surname.
The name is attested from at least the 9th century. West Germanic ''Bernhard'' is composed from the two elements ''ber ...
said that Fermat found the smallest solution for ''N'' up to 150 and challenged
John Wallis
John Wallis (; ; ) was an English clergyman and mathematician, who is given partial credit for the development of infinitesimal calculus.
Between 1643 and 1689 Wallis served as chief cryptographer for Parliament and, later, the royal court. ...
to solve the cases ''N'' = 151 or 313. Both Wallis and William Brouncker gave solutions to these problems, though Wallis suggests in a letter that the solution was due to Brouncker.
John Pell's connection with the equation is that he revised
Thomas Branker
Thomas Branker (Brancker) (1633–1676) was an English mathematician.
Life
He was born at Barnstaple in August 1633, the son of another Thomas Brancker, a graduate of Exeter College, Oxford, who was in 1626 a schoolmaster near Ilchester, and a ...
's translation of
Johann Rahn
Johann Rahn (Latinised form Rhonius) (10 March 1622 – 25 May 1676) was a Swiss mathematician who is credited with the first use of the division sign, ÷ (a repurposed obelus
An obelus (plural: obeluses or obeli) is a term in codicology ...
's 1659 book ''Teutsche Algebra'''' Teutsch'' is an obsolete form of ''Deutsch'', meaning "German". Free E-book ''Teutsche Algebra'' at Google Books. into English, with a discussion of Brouncker's solution of the equation.
Leonhard Euler
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
mistakenly thought that this solution was due to Pell, as a result of which he named the equation after Pell.
The general theory of Pell's equation, based on
continued fraction
A continued fraction is a mathematical expression that can be written as a fraction with a denominator that is a sum that contains another simple or continued fraction. Depending on whether this iteration terminates with a simple fraction or not, ...
s and algebraic manipulations with numbers of the form was developed by Lagrange in 1766–1769. In particular, Lagrange gave a proof that the Brouncker–Wallis algorithm always terminates.
Solutions
Fundamental solution via continued fractions
Let denote the unique sequence of convergents of the regular continued fraction for . Then the pair of positive integers solving Pell's equation and minimizing ''x'' satisfies ''x''1 = ''hi'' and ''y''1 = ''ki'' for some ''i''. This pair is called the ''fundamental solution''. The sequence of integers