Syllabus Map
- Study map: Syllabus Study Map
What Are REF and RREF?
Row Echelon Form (REF)
A matrix is in REF if:
- All nonzero rows are above any all-zero rows.
- The leading entry (pivot) of each nonzero row is to the right of the pivot in the row above.
- All entries below each pivot are zero.
Reduced Row Echelon Form (RREF)
A matrix is in RREF if it is in REF and:
- Every pivot is exactly
1. - Each pivot is the only nonzero entry in its pivot column.
Elementary Row Operations
These operations preserve the solution set of a linear system:
- Swap two rows:
- Scale a row by nonzero constant:
- Add multiple of one row to another:
Gaussian Elimination to REF
Step 1: Start from Augmented Matrix
For system , write:
Step 2: Create Pivots Left to Right
- Choose a nonzero pivot in the current column.
- Swap rows if needed to move pivot upward.
Step 3: Eliminate Entries Below Each Pivot
- Use row replacement to make entries below pivot zero.
- Continue column by column until REF is reached.
Gauss-Jordan Elimination to RREF
Step 1: Convert REF Pivots to 1
- Scale each pivot row so pivot value becomes
1.
Step 2: Eliminate Entries Above Each Pivot
- Use row replacement so every pivot column has zeros above and below pivot.
- Result is unique RREF for a given matrix.
Worked Example
Start with:
To REF
Apply :
To RREF
Apply :
So solution is:
How REF/RREF Help Solve Systems
Unique Solution
- Pivot in every variable column.
- No contradictory row.
Infinite Solutions
- At least one free variable (non-pivot column).
No Solution
- Contradictory row appears:
Rank from REF/RREF
- Rank = number of pivots.
- In RREF, pivot columns are immediate to read.
- Rank helps determine solvability and dimensionality of solution spaces.
Practical Notes
RREF is unique; REF is not.
- Different row-operation paths can produce different REF forms, but same RREF.
Use REF for speed, RREF for readability.
- REF is often enough for back-substitution.
- RREF is easiest for identifying pivots and free variables.
In computation, prefer stable elimination.
- Pivoting strategies reduce numerical error in floating-point arithmetic.
Why This Matters for ML
- REF/RREF gives a practical method for diagnosing solvability and dependence in linear systems.
- Pivot patterns explain when model parameters are identifiable versus underdetermined.
- Rank insights from echelon forms connect to multicollinearity and redundant features.
- These tools build the algebraic intuition behind least-squares and regularized linear models.