A system is one matrix equation
A set of linear equations in the same unknowns packs into a single statement, Ax = b: the coefficients form the matrix A, the unknowns the vector x, and the right-hand sides the vector b. Solving the system means finding every x that A sends to b.
There are two ways to read it. By rows, each equation is a line (in 2D) or a plane (in 3D), and a solution is a point they all share. By columns, you are asking which combination of A's columns produces b — the column picture from earlier lessons.
Three things that can happen
A linear system has exactly one solution, no solution, or infinitely many — never, say, two. Geometrically: two lines cross at one point, are parallel and never meet, or are the same line and meet everywhere.
Which case you are in is decided by the matrix: a unique solution when A is invertible (square, non-zero determinant), and otherwise either no solution or a whole family of them.
Gaussian elimination
The reliable method is elimination. Using three legal row operations — swap two rows, multiply a row by a non-zero number, add a multiple of one row to another — you clear the entries below each leading term until the matrix is upper-triangular (row echelon form). Then you back-substitute from the bottom up.
The leading entries you eliminate below are the pivots. They are the heart of the method: their number is the rank, and where they fall tells you which variables are determined and which are free.
Pivots, free variables and the reduced form
Carry elimination further — clear above the pivots and scale them to 1 — and you reach the reduced row echelon form (RREF), where the answer can be read off directly.
A column with no pivot is a free variable: you may set it to anything, which is exactly what produces infinitely many solutions. A row that reduces to "0 = a non-zero number" is a contradiction, signalling no solution at all.
The unique-solution test
A square system Ax = b has one unique solution ⇔ every column has a pivot ⇔ the matrix has full rank ⇔ det(A) ≠ 0. A missing pivot means a free variable (infinitely many) or a contradiction (none).
A worked example
Solve x + 2y = 5 and 3x + y = 5 by elimination.
- Eliminate x from row 2: R2 − 3·R1 gives (3−3)x + (1−6)y = 5 − 15, i.e. −5y = −10.Subtracting 3 times the first row cancels the 3x term.
- Back-substitute: y = 2, then x + 2(2) = 5 → x = 1.Solve the reduced equation, then feed it back into row 1.
- Check it is unique: det[[1, 2], [3, 1]] = 1 − 6 = −5 ≠ 0.A non-zero determinant guarantees the single solution we found.
x = 1, y = 2 — the unique point where the two lines cross.