Systems of Linear Equations and the Null Space
Geometric intuition for when a linear system has one solution, none, or infinitely many — and how the null space describes that whole family of solutions. With an interactive visualizer.
A system of linear equations can always be written as , where holds the coefficients, the unknowns, and the constants. Stacking and side by side gives the augmented matrix , which is all the information the system contains.
Three things that can happen#
Reducing to row echelon form tells you which case you are in:
- A unique solution — the rows pin down every variable. In 2D the equation lines cross at a single point; in 3D the planes meet at one point.
- No solution — the equations contradict each other (a row like appears). The lines are parallel, or the planes have no common point.
- Infinitely many solutions — there are free variables. The solution set is a whole line or plane of points.
The deciding quantity is the rank. If the system is inconsistent; otherwise the number of free variables is .
The null space carries the "infinitely many"#
When solutions are not unique, every solution has the form
where is one particular solution and is any solution of the homogeneous system . That set of homogeneous solutions is the null space of . So the null space is exactly the "shape" of the infinite family — a line, a plane, and so on — shifted to pass through .
A good way to feel this: make the two rows of a system proportional and watch the null space jump from to a whole line.
Play with it#
The tool below is the same one from the Tools section. Edit any entry of the augmented matrix and the solution, the reduced row echelon form, and the null space all update live. Switch between 2 and 3 variables to see lines become planes.
Try these:
- Unique: the default -variable system — two lines crossing at one point.
- No solution: set the second row to a multiple of the first but change its constant.
- A line of solutions: make the second row an exact multiple of the first (constant included), and watch a one-dimensional null space appear.