
A First Course in Linear Algebra
A.G. Hamilton · Study material generated by AI from this edition. Not affiliated with the publisher.

A.G. Hamilton · Study material generated by AI from this edition. Not affiliated with the publisher.
Chapter 1 · pp. 10–19
This chapter introduces a standard, repeatable method for solving sets of simultaneous linear equations, however many there are. The method is called Gaussian elimination (the "GE process"). It is first done with full equations, then shortened by writing only the coefficients in an array and using row operations. The chapter also shows what can go wrong, and why some systems have no solution or many.
A linear equation has unknowns that appear only to the first power, and no two unknowns are multiplied together. So is linear, but and are not. To solve a set of simultaneous equations means to find every set of values for the unknowns that makes all the equations true at the same time (p. 10).
For two equations, you combine them so that one unknown disappears. For example, with and , adding gives , so , and then (p. 10).
For equations in unknowns the plan is the same:
With three equations, you get two equations in two unknowns, solve those, then put the answers into an original equation to find the first unknown. Only a few simple operations are used, again and again (pp. 10–12).
Doing elimination "by feel" gets harder as the number of unknowns grows, because there are many possible ways to proceed. Some systems also break the simple method. A system may be inconsistent (no solution at all) or may have many solutions. A computer needs an automatic procedure that copes with every case. Gaussian elimination is that procedure, and it works for small and large systems alike (p. 12). Later work shows that the only possible outcomes are one solution, no solution, or infinitely many solutions (pp. 12, 14).
Gaussian elimination turns the system into a new system with the same solutions that is easy to read from the bottom up. For three equations in the stages are (pp. 11–12):
Then back-substitute. The book's Example 1.3 ends with , then , then (p. 11).
A small example of my own:
, , .
Back-substitution gives and .
Notice that after stage 1 the first equation never changes again, and after stage 3 the second equation is also fixed. The process works downward, and each equation reaches its final form in turn (pp. 12, 14).
Writing every equation each time is wasteful. Instead, write an array of the coefficients and right-hand sides, leaving out the unknowns and equals signs. The system , , becomes a 3-by-4 array (p. 14):
Operations on equations become elementary row operations on rows (p. 14):
For example, "row 2 minus 2 times row 1" copies the step used in ordinary elimination. Because these operations do not change the solutions, the final array describes the same system.
The goal of the process is row-echelon form. In this form, the first non-zero entry of each row is 1, and that 1 lies to the right of the leading 1 in the row above. Any all-zero rows sit at the bottom. In a well-behaved square system, this gives 1s down the diagonal and a triangle of zeros in the lower left (pp. 14, 16). Example 1.7 reaches this shape for four equations in four unknowns (p. 16).
At stage 3, the coefficient of may be zero. There are two cases.
Partial pivoting is the fixed rule computers use. When a swap is needed, choose the row whose entry in that column is numerically largest, ignoring signs. For entries , , , you would pick the row with . The rule tells a computer exactly what to do, and it also gives more accurate answers when rounding errors occur, as they always do on computers. Small hand examples usually skip it (pp. 14, 16).
In stage 5, the coefficient of in the last row may be zero. Then the system has either no solutions or infinitely many (pp. 14, 16).
In Example 1.4, if the last row has a zero coefficient but a non-zero right-hand side, you divide that row by the right-hand number, as stage 5 would otherwise fail (p. 14).