โ† back to linear algebra

Linear Systems

Jim Hefferon ยท GFDL + CC BY-SA 2.5 ยท Linear Algebra

A system of linear equations can always be solved by row reduction. Convert the augmented matrix to echelon form, then back-substitute. Gauss-Jordan elimination goes further, reducing to reduced row echelon form where every solution reads off directly.

Systems as augmented matrices

A system of linear equations is a list of constraints, each linear in the unknowns. Writing it as an augmented matrix strips away the variable names and keeps only the coefficients. Row operations on the matrix correspond to legitimate algebraic moves on the system.

2 1 -1 8 -3 -1 2 -11 -2 1 2 -3 R2 + 3/2 R1 R3 + R1 augmented matrix with row operations
Scheme

Echelon form and back-substitution

A matrix is in echelon form when each leading entry is to the right of the one above it, and all entries below each leading entry are zero. Once you reach echelon form, the system solves by back-substitution: start from the bottom row and work up.

Scheme

Gauss-Jordan elimination

Gauss-Jordan goes beyond echelon form: eliminate upward too, and scale each pivot to 1. The result is reduced row echelon form (RREF). Every column either contains a pivot or represents a free variable. The solution reads off without any arithmetic.

Scheme

Free variables and solution sets

When a system has more unknowns than pivot positions, the non-pivot columns correspond to free variables. The solution set is a line, plane, or higher-dimensional flat through the particular solution. This is where linear algebra meets geometry.

Scheme

Notation reference

Symbol Scheme Python Meaning
[A | b]'((a11 ... b1) ...)np.array([[...]])Augmented matrix
Ri โ† Ri + kRj(row-replace mat i j k)A[i] += k * A[j]Row replacement
Ri โ† cRi(scale-pivot mat i c)A[i] *= cRow scaling
RREFpivots = 1, rest = 0pivots = 1, rest = 0Reduced row echelon form
free variablenon-pivot columnnon-pivot columnParameter in solution set
Neighbors

Next chapters

Foundations (Wikipedia)

Translation notes

Hefferon's chapter covers additional topics: describing solution sets geometrically, general = particular + homogeneous decomposition, and a careful treatment of the uniqueness of RREF. The examples here focus on the core algorithm. For full proofs, see the original text.