The matrix equation Ax = b
Read Ax = b as a combination of the columns of A with weights x, and show that Ax = b has a solution for every b exactly when A has a pivot in every row, so that the columns span ℝᵐ.
It opens on
Can the matrix B = [[1, −1], [2, 1]] reach every target b in the plane by Bx = b, and what would stop a matrix from doing so?
Why it matters
Whether a model can hit every target, whether a circuit can reach every state and whether a system is solvable for any data all come down to one test: a pivot in every row.
Good to know first
- Vector equations and span: a system is x₁a₁ + ... + xₙaₙ = b, solvable exactly when b is in the span of the columns
- Reduced row echelon form: a pivot is the leading entry of a row, and a row (0 ... 0 | nonzero) means no solution
Step by step
Ax = b as a combination of columns
Write Ax = b with A = [a₁ a₂], solve it by row reduction, and check it as a combination of the columns.
For B = [[1, −1], [2, 1]] and b = (2, 7), Bx = b is the system x₁ − x₂ = 2 and 2x₁ + x₂ = 7.
A common mix-up
Ax = b is a new kind of problem unrelated to systems.
In fact: It is the system written with one matrix, and its solutions are the weights on the columns.
When the columns fall on a line
Show with a changed matrix that Ax = b can be unsolvable for some b, because the columns span only a line.
Every Ax = x₁a₁ + x₂(−a₁) = (x₁ − x₂)a₁ is a multiple of (1, 2): the columns span only the line y = 2x.
A common mix-up
A square matrix always gives a solution for every b.
In fact: If its columns are on a line, only the b on that line work.
A pivot in every row
State the theorem that links solvability for every b, spanning ℝᵐ and a pivot in every row, and use it on matrices of any shape.
The echelon form of A = [[1, −1], [2, −2]] is [[1, −1], [0, 0]]: one pivot, and the second row is zero.
A common mix-up
More unknowns than equations means a solution always exists.
In fact: Unknowns help only if each row gets a pivot, as in 2x₁ + 2x₂ + 2x₃ = 3 beside x₁ + x₂ + x₃ = 1.
Try it
Solve [[1, 1], [1, 2]]x = (3, 5).Answer
x = (1, 2)
Hint: Subtract row 1 from row 2
For which b does [[1, 3], [2, 6]]x = b have a solution?Answer
Exactly when b₂ = 2b₁
Hint: Subtract twice row 1 from row 2
Can the columns of a 4 × 3 matrix span ℝ⁴?Answer
No; at most 3 pivots for 4 rows
Hint: Count the columns
Check the answer as a combination of the columns: what is 3a₁ + 1a₂?Answer
3(1, 2) + (−1, 1) = (2, 7) = b.
Can Ax equal (2, 7) for this A?Answer
No; (2, 7) is not a multiple of (1, 2), since 7 ≠ 2·2.
