James Mcivor: A B C B
James Mcivor: A B C B
LECTURE 23
JAMES MCIVOR
a1,1 x1 + . . . + a1,n xn = b1
a2,1 x1 + . . . + a2,n xn = b2
.. ..
. .
am,1 x1 + . . . + am,n xn = bm
Our method of solution is similar to that of a linear algebra class - we use rwo
and column operations. But since we work only with integers, we have to restrict
slightly the row operations that are allowed. Specifically, we can do the following:
(1) (R1) Add m times one row to another row (here m must be an integer!)
(2) (R2) Interchange two rows
(3) (R3) Multiply one row by negative one (not just any integer!)
1
2 JAMES MCIVOR
In fact, with a little more care, we can arrange it so that the diagonal entries
d1 , d2 , . . . of D satisfy the divisibility relations d1 |d2 , d2 |d3 , etc., and having done
this, the matrix D is unique. But we won’t need this uniqueness, so I omitted it
from the statement of the theorem.
- Why do we care? This allows us to solve the system of linear equations above!
- Here’s how: Write the system of linear integral equations in matrix form:
Ax = b
where x is the n × 1 column vector of the variables x1 , . . . , xn , and b is the m × 1
column vector of the numbers b1 , . . . , bm .
- Write the smith normal form (SNF) of A as D = LAR. Then set y = R−1 x
(possible since R is invertible), so x = Ry, and set c = Lb.
- Then the equation Ax = b is equivalent to Dy = c.
- then we have the following useful result, which is immediate by the invertibility
of L and R:
MATH 115, SUMMER 2012 LECTURE 23 3
- There are two ways the system may fail to have a solution:
- first, it may be inconsistent, even over R - this happens when some ci 6= 0 for
i > r.
- second, when working over the integers we have an additional problem, of di-
visibility. For instance, the first row of our “diagonal” system could be 3y1 = 2,
which is OK over R, but has no solution over Z.
- note also that if there is a solution, then two things can happen:
1) r = n, and the solution is unique, or
2) r < n, and then there are infinitely many integer solutions, coming from the
free variables yi for i > r.
4. An Example
Find all integer solutions to the system of equations
2x1 + x2 − 3x3 − x4 = 10
x1 − x2 − 3x3 + x4 = 2
4x1 − 4x2 + 16x4 = 20
Solution
4 JAMES MCIVOR
We set
2 1 −3 −1
A= 1 −1 −3 1
4 −4 0 16
x1
x2
x=
x3
x4
10
b= 2
20
Do the prescribed operations (computations omitted) - you get
1 0 0 0
D= 0 3 0 0
0 0 12 0
0 1 0
L = 1 −2 0
0 −4 1
1 1 2 −2
0 1 −1 2
R= 0 0 1 −1
0 0 0 1
so
2
c = Lb = 6
12
Since 1|2, 3|6, and 12|12, we have a solution. It’s not unique, since here r = 3 <
4 = n. The solution for y is
2
2
y= 1 ,
k
where y4 = k can be any integer, which gives
6 − 24
1 + 2k
x = Ry = 1−k