Linear Equations
BasisPrerequisites
Virtually every computational problem in science and engineering can be reduced to “find values satisfying these linear constraints.” The temperature distribution in a heated rod, the currents in an electrical circuit, the prices that clear a market — all become systems of linear equations. The matrix form of a linear system is the lens that makes these problems tractable.
Systems of linear equations
A system of linear equations in unknowns over a field has the form:
where the coefficients and the right-hand sides are given, and you want to find all tuples that satisfy all equations simultaneously. Such a tuple is called a solution, and the set of all solutions is the solution set.
Matrix form:
Packaging the coefficients, unknowns, and right-hand sides into matrices turns the system into the compact equation
Ax = b, \tag{1}
where:
- is the coefficient matrix with ,
- is the unknown vector (a column vector),
- is the right-hand-side vector.
The product gives back exactly the left-hand side of each equation. So solving the system is the same as finding all for which equals .
The augmented matrix
Rather than manipulate the two sides of (1) separately, you combine them into a single matrix. The augmented matrix is
formed by appending as an extra column to the right of . A vertical bar is drawn between the -th and -th columns as a visual reminder that the last column is the right-hand side.
Applying Gauss-Jordan elimination to performs exactly the elementary row operations needed to simplify the system, while keeping track of both sides at once. The operations do not change the solution set, so the RREF of gives an equivalent system from which solutions can be read off directly.
Reading off solutions from RREF
After reducing to RREF, let be the result. The variables corresponding to pivot columns of are basic variables (their values are forced once you choose the free variables), and variables corresponding to free columns are free variables (they can take any value in ).
There are exactly three possible outcomes:
Outcome 1: Inconsistent (no solution)
The RREF contains a row of the form
which represents the equation . This is impossible, so the system has no solution. Geometrically, the hyperplanes defined by the equations do not share a common point.
Outcome 2: Unique solution
The RREF has no all-zero rows in (each column of is a pivot column) and no pivot in the -column. Every variable is a basic variable — there are no free variables. You can read off the unique values directly from the last column of the RREF.
Outcome 3: Infinitely many solutions
At least one column of is a free column (at least one free variable), and there is no pivot in the -column. Each free variable can be set to an arbitrary value in , producing a distinct solution. The complete solution set is a particular solution plus any element of the kernel of (see Kernel):
The particular solution is any single that satisfies ; the kernel part accounts for all the “freedom.”
The homogeneous system
The special case gives the homogeneous system . It is always consistent: is always a solution (called the trivial solution). The solution set is exactly , the kernel of .
If the homogeneous system has only the trivial solution, the coefficient matrix has no free columns (all columns are pivot columns). If it has nontrivial solutions, then there is at least one free column, and the kernel is more than just .
The homogeneous system plays a central role in understanding the structure of the solution set of the inhomogeneous system : any two solutions of differ by an element of .
Summary
- A system of linear equations in unknowns is compactly written as with .
- The augmented matrix packages both sides; applying Gauss-Jordan to it reduces the system without changing its solution set.
- There are exactly three outcomes: inconsistent (a pivot appears in the -column), unique solution (no free variables), or infinitely many solutions (at least one free variable).
- The homogeneous system is always consistent; its solution set is , which is explored in Kernel.