Solving Linear Diophantine Equations
Problem
Find integer solutions to 7x + 11y = 1 using the extended Euclidean algorithm. Show lattice points.
Explanation
What is a Diophantine equation?
A Diophantine equation requires integer solutions only. The linear Diophantine equation has integer solutions if and only if divides .
Step-by-step: Solve
Step 1 — Check solvability. , and divides . ✓ Solutions exist.
Step 2 — Use the Extended Euclidean Algorithm to express as a combination of 7 and 11.
Run the Euclidean algorithm backward:
→
→
→
So , giving .
One particular solution: , .
Check: ✓
Step 3 — Write the general solution. All integer solutions are:
For : . For : . For : .
Check : ✓
Why the general solution has that form
If is one solution, then gives all solutions, where . The shifts and ensure the equation stays balanced.
When there are no solutions
: , and 2 does not divide 5. No solutions exist — the left side is always even, but 5 is odd.
Try it in the visualization
Enter , , . The lattice shows integer points . The line is drawn — solutions are the lattice points ON the line. The extended Euclidean algorithm steps are animated.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.