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.
Every point on the blue line solves 2x − y = 1. One equation alone has endless solutions.
2x - y = 1
The orange line holds every solution of x + y = 5. The one point on both lines solves the system.
x = 2, y = 3
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)
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)
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)
cd svg-generator python3 -m svgmath render column-row-picture --out /tmp/column-row-picture
Source: svgmath/diagrams/linear_maps.py