ArticleslgStudy

mathematics

Diophantine equation

Diophantine equation is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Diophantine equation rather than just read about it. In short: In mathematics, a Diophantine equation is a polynomial equation with integer coefficients, for which only integer solutions are of interest. A linear Diophantine equation equates the sum of two or more unknowns, with coefficients, to a constant.

Diophantine equation — main illustration
Diophantine equation — illustration

Key takeaways

  • Diophantine equation belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Diophantine equation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Diophantine equation from memory before moving on to harder problems.

Reference excerpt

In mathematics, a Diophantine equation is a polynomial equation with integer coefficients, for which only integer solutions are of interest. A linear Diophantine equation equates the sum of two or more unknowns, with coefficients, to a constant. An exponential Diophantine equation is one in which unknowns can appear in exponents. Diophantine problems typically have fewer equations than unknowns and involve finding integers that solve all equations simultaneously. Because such systems of equations define algebraic curves, algebraic surfaces, or, more generally, algebraic sets, their study is a part of algebraic geometry that is called Diophantine geometry. The word Diophantine refers to the Hellenistic mathematician of the 3rd century, Diophantus of Alexandria, who made a study of such equations and was one of the first mathematicians to introduce symbolism into algebra. The mathematical study of Diophantine problems that Diophantus initiated is now called Diophantine analysis. While individual equations present a kind of puzzle and have been considered throughout history, the formulation of general theories of Diophantine equations, beyond the case of linear and quadratic equations, was an achievement of the twentieth century. However, Hilbert's tenth problem shows that there cannot exist a general algorithm that can decide whether an arbitrary Diophantine equation has an integer solution (much less to find or characterize all such solutions).

Examples In the following Diophantine equations, w, x, y, and z are the unknowns and the other letters are given constants:

Linear Diophantine equations

One equation The simplest linear Diophantine equation takes the formax+by=c, where a,b,c are given integers. The solutions are described by the following theorem: The linear Diophantine equation ax+by=c has a solution if and only if d∣c, where d=gcd⁡(a,b). If x0,y0 is a solution, then all the other solutions (and there are infinitely many in this case) are given by x=x0+(bd)ty=y0−(ad)twhere t is an arbitrary integer. Proof: For the first assertion, if d=gcd⁡(a,b) then by definition there are integers e and f for which a=de and b=df. If there is indeed a solution to the equation, in which case ax0+by0=c for some x0,y0, then c=ax0+by0=(de)x0+(df)y0=d(ex0+fy0).The implication of this is to make d a divisor of c. Conversely, say that d∣c, for which we may write c=dt for suitable t. By Bezout's identity, there are integers x0 and y0 satisfying ax0+by0=d. Upon multiplying this equation by t, we get that c=dt=(ax0+by0)t=a(tx0)+b(ty0),whence the original equation ax+by=c has the solution tx0,ty0. For the second assertion, we may assume that x0,y0 is a solution. If x′,y′ is another solution, then ax0+by0=c=ax′+by′. From a bit of algebra, we derive that a(x′−x0)=b(y0−y′).When d=gcd⁡(a,b), we can find coprime integers r and s such that a=dr and b=ds. Substituting these values into the last equation and canceling the common factor d, one finds that r(x′−x0)=s(y0−y′). By inspection, r∣s(y0−y′), and since gcd⁡(r,s)=1, it follows from Euclid's lemma that r∣(y0−y′). In other words, y0−y′=rt for some integer t. By substitution, r(x′−x0)=srtx′−x0=stThis, in turn, allows us to write the formulas x′=x0+st=x0+(bd)ty′=y0−rt=y0−(ad)t, thus concluding the proof.

Chinese remainder theorem The Chinese remainder theorem describes an important class of linear Diophantine systems of equations: let n1,…,nk be k pairwise coprime integers greater than one, a1,…,ak be k arbitrary integers, and N be the product n1⋯nk. The Chinese remainder theorem asserts that the following linear Diophantine system has exactly one solution (x,x1,…,xk) such that 0 ≤ x < N, and that the other solutions are obtained by adding to x a multiple of N: x=a1+n1x1⋮x=ak+nkxk

System of linear Diophantine equations More generally, every system of linear Diophantine equations may be solved by computing the Smith normal form of its matrix, in a way that is similar to the use of the reduced row echelon form to solve a system of linear equations over a field. Using matrix notation every system of linear Diophantine equations may be written AX=C, where A is an m × n matrix of integers, X is an n × 1 column matrix of unknowns and C is an m × 1 column matrix of integers. The computation of the Smith normal form of A provides two unimodular matrices (that is matrices that are invertible over the integers and have ±1 as determinant) U and V of respective dimensions m × m and n × n, such that the matrix B=[bi,j]=UAV is such that bi,i is not zero for i not greater than some integer k, and all the other entries are zero. The system to be solved may thus be rewritten as B(V−1X)=UC. Calling yi the entries of V−1X and di those of D = UC, this leads to the system bi,iyi=di,1≤i≤k0yi=di,k<i≤n. This system is equivalent to the given one in the following sense: A column matrix of integers x is a solution of the given system if and only if x = Vy for some column matrix of integers y such that By = D. It follows that the system has a solution if and only if bi,i divides di for i ≤ k and di = 0 for i > k. If this condition is fulfilled, the solutions of the given system are V[d1b1,1⋮dkbk,khk+1⋮hn], where hk+1, …, hn are arbitrary integers. Hermite normal form may also be used for solving systems of linear Diophantine equations. However, Hermite normal form does not directly provide the solutions; to get the solutions from the Hermite normal form, one has to successively solve several linear equations. Nevertheless, Richard Zippel wrote that the Smith normal form "is somewhat more than is actually needed to solve linear diophantine equations. Instead of reducing the equation to diagonal form, we only need to make it triangular, which is called the Hermite normal form. The Hermite normal form is substantially easier to compute than the Smith normal form." Integer linear programming amounts to finding some integer solutions (optimal in some sense) of linear systems that include also inequations. Thus systems of linear Diophantine equations are basic in this context, and textbooks on integer programming usually have a treatment of systems of linear Diophantine equations.

Homogeneous equations A homogeneous Diophantine equation is a Diophantine equation that is defined by a homogeneous polynomial. A typical such equation is the equation of Fermat's Last Theorem

… excerpt ends here. Continue reading the full article.

Illustrations

Diophantine equation: Finding all right triangles with integer side-lengths is equivalent to solving the Diophantine equation a2+b2=c2.
Finding all right triangles with integer side-lengths is equivalent to solving the Diophantine equation a2+b2=c2.

Worked examples

Example 1 — a first encounter with Diophantine equation

Start with the simplest possible case. Write down what Diophantine equation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Diophantine equation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Diophantine equation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Diophantine equation

In research
Diophantine equation appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Diophantine equation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Diophantine equation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Diophantine equations, so understanding it makes those chapters shorter.
In everyday life
Look for Diophantine equation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Diophantine equation” →

How to study Diophantine equation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Diophantine equation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Diophantine equation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Diophantine equation in simple terms?

In mathematics, a Diophantine equation is a polynomial equation with integer coefficients, for which only integer solutions are of interest. A linear Diophantine equation equates the sum of two or more unknowns, with coefficients, to a constant.

Why does Diophantine equation matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Diophantine equation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Diophantine equation.

Tags

  • Diophantine equations

Keep exploring