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.

