Diophantine Equation — Definition, Formula & Examples
A Diophantine equation is a polynomial equation where you are only looking for integer solutions. Named after the ancient Greek mathematician Diophantus, these equations often have no solution, finitely many, or infinitely many integer solutions.
A Diophantine equation is an equation of the form , where is a polynomial with integer coefficients and the unknowns are restricted to . A solution is any -tuple of integers satisfying the equation.
Key Formula
Where:
- = Integer coefficients
- = Integer unknowns
- = Integer constant on the right-hand side
- = Greatest common divisor of a and b
How It Works
To solve a linear Diophantine equation , first compute . The equation has integer solutions if and only if . If a particular solution exists, the general solution is and for any integer . For nonlinear Diophantine equations, techniques vary widely — modular arithmetic, descent arguments, and algebraic number theory are all commonly used.
Worked Example
Problem: Find all integer solutions to 6x + 9y = 21.
Check solvability: Compute gcd(6, 9) = 3. Since 3 divides 21, integer solutions exist.
Simplify: Divide the entire equation by 3 to get an equivalent equation.
Find one solution: By inspection, x₀ = 2 and y₀ = 1 works since 2(2) + 3(1) = 7.
Write the general solution: Using the general solution formula with a = 2, b = 3, d = 1:
Answer: All integer solutions are for any integer . For example: , , , etc.
Why It Matters
Diophantine equations appear throughout number theory and cryptography — RSA encryption relies on properties of integer factorization closely tied to these equations. Fermat's Last Theorem, one of the most famous results in mathematics, states that has no positive integer solutions for , making it a statement about a specific Diophantine equation.
Common Mistakes
Mistake: Assuming integer solutions always exist for any right-hand side.
Correction: The linear equation ax + by = c has integer solutions only when gcd(a, b) divides c. For example, 6x + 9y = 10 has no integer solutions because gcd(6, 9) = 3 does not divide 10.
