Four approaches to Diophantine equations, with complete examples
What is a Diophantine equation?
A Diophantine equation asks for integer solutions of a polynomial equation, or of a related equation with specified integer variables. Having fewer equations than unknowns does not by itself guarantee infinitely many solutions: integer restrictions and the shape of the equation matter.
Four useful starting points for entrance-exam problems are:
- A linear equation in two integers: find one solution, then describe all differences from it.
- A quadratic that can be rearranged into a product: enumerate factor pairs.
- A quadratic with a bounded real locus: use a discriminant or completed squares to restrict the variables.
- A symmetric equation in positive variables: order them and bound the smallest first.
These are useful patterns, not an exhaustive classification of Diophantine equations.
1. Linear equations: find one solution and subtract it
Problem. Find all integer pairs satisfying
A particular solution is . Subtract its equation from the general one:
so . Since and are coprime, divides . Write with integer . Substitution gives .
Therefore
Conversely, every pair of this form satisfies the original equation, so the parameterization is complete.
Large coefficients: use the Euclidean algorithm
To find a solution of , perform the Euclidean algorithm:
Back-substitution gives
Thus is a particular solution. This systematic procedure works even when guessing a solution is inconvenient.
More generally, has integer solutions exactly when divides . If is one solution and , then all solutions are
For example, multiplying the solution by gives as one solution of . Scaling a solution works here because the coefficients are coprime; when they are not, check the divisibility condition first.
2. Factorable quadratics: enumerate signed factor pairs
Problem. Find all integer solutions of
Rearrange it as
Both factors are integers. Therefore their ordered values must be
Let and . Solving these linear equations gives
The four factor pairs consequently give
Each satisfies the original equation. In other problems a factor pair can give noninteger , so the final integrality check is necessary. Negative factor pairs must not be omitted when the variables are arbitrary integers.
3. Bound the variables before checking them
Problem. Find all integer solutions of
A discriminant bound
Regard the equation as a quadratic in . Its discriminant is
A real requires , hence . Since is an integer, only remain.
For those values, . When or , the remaining square root is , so is not an integer. The other values give
A shorter completed-square argument
The same equation is equivalent to
The only integer square pairs summing to are and . Enumerating the signs immediately gives the same four solutions.
A nonnegative discriminant does not always give a finite bound. For example, has infinitely many integer solutions. The strategy works here because the completed-square expression is positive definite; it is not a universal rule for every nonfactorable quadratic.
4. Symmetric reciprocal equations: order the variables
Problem. How many ordered triples of positive integers satisfy
By symmetry, first impose . Then
so . The value is impossible because the other two reciprocals are positive.
Case x = 2
The remaining equation is
Because and both factors are positive, the possibilities are or . Thus the increasing triples are and .
Case x = 3
Now , so . Equality is required, and it occurs only when . This gives .
Restore the orderings
The three nondecreasing triples contribute different numbers of permutations:
- has six permutations.
- has three.
- has one.
Therefore the number of ordered triples is
Multiplying every case by six would overcount the repeated entries.
Choosing a first move
Look for coprimality in a linear equation, a product equal to a fixed integer, a bound obtained from real-solvability conditions, or symmetry among positive variables. Once the candidate list is finite, check it completely and prove that every proposed solution really works.
Related: three strategies for integer problems and the rational root theorem.
Related articles
- Equating rational and irrational parts: proof and worked problems
- How to simplify nested square roots, with three worked examples
- Conditional probability: the formula, information protocols, and worked examples
- Integration by parts: formulas, proof, and four useful patterns
- Triple-angle identities: remember, derive, and apply them
About the author
Koki Saito
Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.
Full profile →Have a question or spotted an error? Contact us.