Category: Linear Algebra Level: 301
row operations turn the lines but keep the crossing point
Each row of the system is a line. Row operations swap one line for another through the same crossing point, until the lines are simply x = 2 and y = 3.
Row 1 is the orange line x + y = 5 and row 2 is the blue line 2x − y = 1. They cross at the solution.
x + y = 5, 2x - y = 1
The new row 2 has no x, so its line is flat. It still passes through the crossing point, because any point on both old lines also satisfies the new row.
R2 → R2 - 2R1: -3y = -9
Divide row 2 by −3 to get y = 3. Scaling an equation does not move its line at all. The numbers just get friendlier.
R2 → R2 / (-3): y = 3
The new row 1 has no y, so its line stands straight up at x = 2. It pivots about the same crossing point.
R1 → R1 - R2: x = 2
The matrix is now the identity on the left, and the lines are a plain grid crossing. The right column holds the answer.
x = 2, y = 3
cd svg-generator python3 -m svgmath render elimination-row-picture --out /tmp/elimination-row-picture
Source: svgmath/diagrams/matrix_ops.py