Skip to main content
\( \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section3.2Geometry of Equations

But just proving things are true and using them isn't enough. Why is it true, intuitively? I believe the right place to do this is in geometry. Try out the following interactive cell.

The little gray dots in the graph above are called the integer lattice; this is all the intersections of the lines \(y=m,x=n\) for all integers \(m,n\). There are many mathematical lattices, but this is the one we will focus on in this course.

Definition3.2.1

The integer lattice is the set of points \((m,n)\) for \(m,n\in\mathbb{Z}\).

In the graphic, for instance \((-2,3)\) is probably visible; however, note that \((-1,1/2)\) should not be not a little dot, because it doesn't have integer values.

Now, since \(ax+by=c\) may be thought of as a line (in fact, the line \begin{equation*}y=-\frac{a}{b}x+\frac{c}{b}\end{equation*} with slope \(-\frac{a}{b}\)), we now have a completely different interpretation of the most basic number theory question there is, the linear Diophantine equation. It is simply asking, “When (for what \(a\), \(b\), \(c\) combinations) does the line hit this lattice? If it does, can you tell me all intersections?” If you play around with the sliders you will quickly see that things work out just as promised in the theorems.

But let's go a little deeper. There are three interesting insights we can get.

  • First, Theorem 3.1.1 now expresses a very mysterious geometric idea, depending on whether \begin{equation*}\gcd(a,b)\mid c\end{equation*} If so, then this line hits lots of the lattice points; if not, the line somehow slides between every single one of them! You can check this by keeping \(a,b\) the same and varying \(c\) in the interact above.

  • Secondly, it makes the proof of why Theorem 3.1.1 gets all of the answers much clearer. If you have one answer (for instance, \((1,-1)\)) and go right by the run and down by the rise in \(\frac{a}{b}\) (our example was \(a=6,b=4\)), you hit another solution (perhaps here \((-3,5)\)) since it's still all integers and the slope was the line's slope.

    But wait, couldn't there be points in between? Sure. So make \(\frac{a}{b}\) into lowest terms (e.g. \(\frac{3}{2}\)), which would be \(\frac{a/d}{b/d}\). And this is the ‘smallest’ rise over run that works to keep you on the line and keep you on integer points.

  • Third, it can help clarify the role of the solution which the Bezout identity (extended Euclidean algorithm) gives for \(ax+by=c\). Namely, as pointed out in an article from 2013 in the American Math Monthly by S.A. Rankin, the “solution provided … lies nearest to the origin.” Again, try the applet to convince yourself of this!

Although we won't pursue it, there is a question which this formulation in an online text brings up. Namely, given that the ‘line’s in question are themselves only pixellated approximations whose coordinates may not satisfy \(ax+by=c\), what is the connection between the computer graphics and the number theory? See How to Guard an Art Gallery [C.5.7], Chapter 4, for an accessible take on this 1  from a number-theoretic viewpoint, as well as Exercise 3.6.15.