REF vs RREF Comparison
Run the REF vs RREF MicroSim Fullscreen
Edit the MicroSim with the p5.js editor
About This MicroSim
This visualization shows the same matrix in three forms side by side: the original matrix, its Row Echelon Form (REF), and its Reduced Row Echelon Form (RREF). Key features like pivot positions and created zeros are highlighted.
Key Differences
| Property | REF | RREF |
|---|---|---|
| Leading entries | Any nonzero | Must be 1 |
| Zeros below pivots | Yes | Yes |
| Zeros above pivots | No | Yes |
| Solution method | Back substitution | Direct reading |
| Uniqueness | Not unique | Unique |
| Computation cost | Fewer operations | More operations |
Visual Legend
- Gold circles: Pivot positions (leading entries)
- Green cells: Zeros created by elimination
When to Use Each Form
Row Echelon Form (REF):
- More efficient for solving a single system
- Sufficient for determining solution existence
- Useful when computational cost matters
Reduced Row Echelon Form (RREF):
- Best for reading solutions directly
- Required for finding null space basis
- Unique representation of the matrix
- Better for multiple right-hand sides
Lesson Plan
Learning Objectives
After using this MicroSim, students will be able to:
- Distinguish between REF and RREF visually
- Identify the additional operations needed to reach RREF from REF
- Understand when each form is preferable
- Recognize that RREF is unique while REF is not
Suggested Activities
- Count the Difference: Generate several random systems and compare the operation counts
- Identify Properties: For each generated matrix, verify that REF and RREF satisfy their defining properties
- Solution Extraction: Practice reading solutions from RREF and using back substitution on REF
- Predict RREF: Given the REF, predict what additional operations are needed to reach RREF