Elimination in the Row Picture

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.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Draw each row as a line

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

Step 1: Draw each row as a line

Step 2: Subtract two times row 1 from row 2

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

Step 2: Subtract two times row 1 from row 2

Step 3: Scale row 2

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

Step 3: Scale row 2

Step 4: Subtract row 2 from row 1

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

Step 4: Subtract row 2 from row 1

Step 5: Read off the answer

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

Step 5: Read off the answer

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render elimination-row-picture --out /tmp/elimination-row-picture

Source: svgmath/diagrams/matrix_ops.py