Additions Chapter VII — General Integer Method for
Summary: Lagrange’s direct, terminating procedure for finding all integer values of that make rational, equivalently solving in integers; reduces an arbitrary quadratic Diophantine equation in two unknowns to a Pell equation via continued fractions.
Sources: additions-7 (Articles 64–84).
Last updated: 2026-05-10.
This chapter is the Appendix to Chapter VI of the Additions and is the first complete published algorithm for the general indeterminate quadratic of two unknowns. Articles 1–5 of Chapter VI had given only rational solutions; here Lagrange gives a method that decides solvability in integers and, when solvable, exhibits all solutions.
The reduction (Arts. 64–65)
Article 64 — square-free reduction. If has no square factor, then in any integer solution must be prime to . (Otherwise: from , a prime dividing both and would force , contradicting square-freeness.) When has square factors , one resolves each branch separately and multiplies the resulting by .
Article 65 — substitution to unit RHS. Assuming prime to , the substitution (Chapter IV/Art. 48) yields Since the second and third terms are visibly divisible by , the term must be too, and since is prime to , this forces Setting and dividing through gives the auxiliary equation The right side is now unity, much simpler than . To find admissible , scan and keep only those with . If none exist, is unsolvable in integers. Lagrange notes (cf. Mémoires de Berlin 1767, pp. 194 and 274) that a priori methods can find these in many cases.
Solving the auxiliary — first method (Arts. 66–69)
The discriminant of the binary form on the left is , so the trichotomy is governed by the sign and shape of (after using ).
Case (Art. 67). Reduce to a continued fraction, form the convergents, and try the numerators for and denominators for . Either a solution is found or the equation is certified unsolvable.
Case , non-square (Art. 68). Apply the method of Art. 33ff: with , expand via the simultaneous recursions with chosen so that is bounded. Continue until two pairs repeat; if any , the corresponding convergent gives . Otherwise the equation has no integer solutions.
Case a square (Art. 69). With , the form factors into two rational linear factors and . Their product equals only if each is , giving an immediate finite check.
Solving the auxiliary — second method (Arts. 70–71)
This is Lagrange’s reduction algorithm in its mature form. Repeatedly apply substitutions to drive the middle coefficient below the smaller of the two outer coefficients. The new form a strictly decreasing sequence of non-negative integers, so the process terminates.
After reduction, the form becomes Multiplying by and setting yields A short case analysis (Art. 71) shows:
- If : solvability requires , after which .
- If non-square: and the equation falls under the theorem of Art. 38.
Lagrange comments that this method has the advantage of not requiring trial; the calculation depending on alone (Art. 71) serves all equations with the same .
Generating all solutions via Pell (Arts. 72–75)
Once a single solution of the auxiliary is known, all others are derived as follows. Pick with (always possible since are coprime). The substitution , transforms the auxiliary into with , , , and . Choosing the free integer in , to make reduces it to the pell-equation Article 73 dispatches the cases (only , hence at most one solution) and a positive square (only ). The interesting case is non-square, where infinitely many solutions exist (Art. 37).
Article 75 — closed form. With the least solution of , all solutions arise from giving the rational expansions Lagrange supplies a binomial-theorem expansion of these and proves they exhaust all solutions: any putative intermediate between consecutive powers would yield a , contradicting minimality of .
Generalisation (Arts. 76–80)
The same machinery resolves the most general two-variable quadratic Diophantine equation Writing , , , one needs to be a square, say . Setting reduces this to making rational — exactly the case treated above. The values of are then recovered by integrality conditions. Article 77 shows that depend on via expressions , , and Articles 78–79 give a finite algorithm for the residues of modulo any divisor . The scholium (Art. 80) further extends to the homogeneous form and to higher-degree binary forms .
Examples (Arts. 81–83)
Example 1 (Art. 81). Make rational. After multiplying by and substituting , the equation becomes . Here , (prime). Searching with yields ; the auxiliary is The reduction algorithm of Art. 70 produces successive coefficients ; making the leading coefficient gives the solution. Tracing back: (and the fractional value , which still rationalises the radical to ).
Example 2 (Art. 82). Find all making rational. Here , , (since ). After reduction the auxiliary becomes , the standard Pell equation. Using the table of Art. 41: convergents of give the primitive values (and ); from with , all solutions are where run through powers of .
Example 3 (Art. 83). Find all making rational. Here , , . The reduction quickly produces . Consulting the table (Art. 41), the upper series is (cyclically) and never contains ; so the equation has no integer solution.
Refutation of Euler’s induction rule (Art. 84 — Scholium)
Euler, in Novi Commentarii Petrop. vol. IX, conjectured by induction that is solvable whenever is a prime of the form for some . Example 3 disproves this: is prime and equals (so , , ), yet admits no integer solution. Lagrange even strengthens his counterexample: is prime and has the form (with ), yet does not — refuting also the strengthened rule that requires itself to be prime.
This scholium marks an early instance of an inductive number-theoretic conjecture being decisively disproved by an algorithmic decision procedure.