๐งฎ Solving Linear Equations
Solving a system of linear equations means isolating each variable without changing the systemโs meaning
A system of linear equations is simplified by moving the focus away from the variables of the system of equations by organising the coefficients by their variables into a matrix
Coefficients and constants are separated by a line in this matrix, known as the augmented matrix
To simplify and solve the system, we apply Elementary Row Operations and reduce the variables systematically until all but one of each variable is left
๐งญ Directionality and Convention
Because we write left to right, top to bottom, matrix reduction follows the same ergonomic flow:
- Start at the top-left
- Move rightward and downward
- At each step, keep the current coefficient representing the variable and eliminate the rest above and below it
The Pivot The coefficient of the variable that we isolate for each row is called the pivot
The term โpivotโ comes from its role in elimination:
- Itโs the anchor used to eliminate entries below (and in RREF, above) it.
- In Gaussian elimination, we โpivotโ around this entry to clear its column.
- It acts like a hinge or fulcrumโthe transformation rotates around it.
What is “Echelon”?
The term echelon comes from military formationโsoldiers arranged in a staggered diagonal pattern.
๐ Reduction Pipeline
Reducing both directions at once is rather disorienting, thus we have preferred to go in one direction preferred at a time
Since we start top-left, we naturally eliminate downwards first (forward-substitution), to remove all the variables below the leading variable of each row
Row-Echelon Form
$$ \left[ \begin{array}{ccc|c} 2 & 4 & 6 & 8 \\ 0 & 3 & 9 & 6 \\ 0 & 0 & 5 & 15 \end{array} \right] $$- All nonzero rows are above any rows of all zeros.
- Each pivot is to the right of the pivot in the row above.
- All entries below a pivot are zeros.
Then afterwards, we make the coefficients of each isolated variable into 1, and we have reached the solution to the system of linear equations
Reduced Row Echelon Form
At this point, the diagonal of isolated coefficients of 1 with the rest of the matrix being 0, is called the Reduced Row-Echelon Form, basically Reduced REF, or just RREF
$$
\left[
\begin{array}{ccc|c}
1 & 0 & 0 & 9 \\
0 & 1 & 0 & -7 \\
0 & 0 & 1 & 3
\end{array}
\right]
$$- Each pivot is 1
- Each pivot is the only nonzero entry in its column
๐กElimination Endpoint
Elimination that reaches here is called Jordan-Gauss Elimination
Reduced Row Echelon Form At this point, the diagonal of isolated coefficients of 1 with the rest of the matrix being 0, is called the Reduced Row-Echelon Form, basically Reduced REF, or just RREF
$$ \left[ \begin{array}{ccc|c} 1 & 0 & 0 & 9 \\ 0 & 1 & 0 & -7 \\ 0 & 0 & 1 & 3 \end{array} \right] $$- Each pivot is 1
- Each pivot is the only nonzero entry in its column
๐ง General Strategy for Solving to REF or RREF
Hereโs a robust tactic for reducing any matrix:
- ๐ Swap rows to move already solved rows (with pivot = 1) to the top.
- ๐ฝ Work top-down, row by row.
- ๐งน Eliminate entries below the pivot using row operations.
- ๐ Repeat for the next row and pivot column.
- ๐งผ For RREF: After reaching REF, eliminate entries above each pivot and normalize pivots to 1.
Normalize each pivot to 1 immediately before using it to eliminate other rows
- This leads to cleaner arithmetic and aligns naturally with RREF goals.
Favor additive operations over scalar multiplication
- Instead of computing $cR_1$, use $R_2 + cR_1$ or $R_1 + cR_2$ to eliminateโthis keeps the original row intact and avoids unnecessary scaling.
Normalize each pivot to 1 immediately before using it to eliminate other rows
- This leads to cleaner arithmetic and aligns naturally with RREF goals.
Favor additive operations over scalar multiplication
- Instead of computing $cR_1$, use $R_2 + cR_1$ or $R_1 + cR_2$ to eliminateโthis keeps the original row intact and avoids unnecessary scaling.
โ๏ธ Example: Normalizing First for Cleaner Elimination
Start with:
$$ \begin{bmatrix} 3 & -4 & 10 \\ -5 & 8 & -17 \\ -3 & 12 & -12 \end{bmatrix} $$Step-by-step:
- Normalize $R_1$:
- Eliminate below using clean multiples:
- Normalize $R_2$:
- Eliminate below again:
Final REF:
$$ \begin{bmatrix} 1 & -\frac{4}{3} & \frac{10}{3} \\ 0 & 1 & -\frac{1}{4} \\ 0 & 0 & 0 \end{bmatrix} $$This method avoids fractional multipliers like $\frac{5}{3}R_1$ and keeps operations visually clean and semantically aligned with pivot logic.
๐ง Interpreting the Final Augmented Matrix: 3 Possibilities
After reducing the augmented matrix (via REF or RREF), there are three possible outcomes:
โ 1. Unique Solution
- Every variable has a pivot.
- No contradictions.
- Final matrix has one solution.
โพ๏ธ 2. Infinitely Many Solutions
- Some variables are free (no pivot in their column).
- No contradictions.
- Final matrix leads to parametric form.
โ Parametric solution: $(x, y, z) = (5 - 2t,\ 3 + t,\ t)$
โ 3. No Solution
- A row like:
- This represents a contradiction (e.g., $0 = 5$).
- System is inconsistent.