Solving Ax = b: Row and Column Pictures

Category: Linear Algebra   Level: 301

2x - y = 1, x + y = 5: x (2, 1) + y (-1, 1) = (1, 5)

The row picture draws each equation as a line and finds where they cross. The column picture asks how much of each column it takes to reach b. Both give the same answer.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Draw the first equation as a line

Every point on the blue line solves 2x − y = 1. One equation alone has endless solutions.

2x - y = 1

Step 1: Draw the first equation as a line

Step 2: Add the second line

The orange line holds every solution of x + y = 5. The one point on both lines solves the system.

x = 2, y = 3

Step 2: Add the second line

Step 3: Switch to the column picture

Read the matrix by columns instead. The question becomes: how many copies of each column add up to b = (1, 5)?

x (2, 1) + y (-1, 1) = (1, 5)

Step 3: Switch to the column picture

Step 4: Combine the columns

Take two of the first column, then three of the second, tip to tail. The path ends exactly on b.

2(2, 1) + 3(-1, 1) = (4, 2) + (-3, 3) = (1, 5)

Step 4: Combine the columns

Step 5: Match the two pictures

The crossing point on the left and the weights on the right are the same pair of numbers. Two pictures, one answer.

(x, y) = (2, 3)

Step 5: Match the two pictures

All steps at once

Storyboard

Generate it yourself

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

Source: svgmath/diagrams/linear_maps.py