Write a linear combination equation as Ax = b
Put the coefficients into a matrix, the weights into x, and read a system as Ax = b. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
Given,, and, the equation becomes with
Three rules that catch almost every mistake:
1. Vectors go in as columns, in order. Not rows — putting them in as rows gives, and the equation then multiplies the wrong things. 2. Coefficients go into, never into. The unknowns are not entries of the matrix. 3. * stays on the right. Appending it as a column gives, the augmented matrix** — that is the object you eliminate, not the equation.
Because every later technique is stated in the matrix form. "Does have a solution?" "What is the rank of?" "Find the nullspace." "Project onto the column space." Each of these needs, and the translation above is the only way to get it.
The augmented matrix is not the equation. is a bookkeeping device: it holds and side by side so elimination can act on both at once. Writing the equation as loses the distinction between the coefficient matrix and the right-hand side, and that distinction is exactly what rank tests use. Rank of versus rank of is the whole solvability criterion.
Why columns and not rows. Because the combination weights the vectors, and a weight multiplies a whole vector. If the vectors were rows, then would have to mean "multiply into a row", which is left multiplication — a different operation, and not the one the problem states.
Write in matrix form, for, and.
The vectors are columns, in order, so
The equation is, which is — three equations, two unknowns.
Check the translation by substitution:, gives, which is exactly ✓.
That check is worth doing every time in an exam: it costs ten seconds and it verifies the translation, not just the arithmetic.
- Put the coefficients into a matrix, the weights into x, and read a system as Ax = b
- Read the number of equations and unknowns off the shape of A
- Name which object a matrix equation is a statement about
The combination has which matrix form?
(a), (b) (c) (d)
Answer
(a). The three vectors become the three columns of a matrix, in order, and the coefficients become.
(b) has them as rows — the transpose, and the wrong shape for this equation. (c) is the augmented matrix, which includes as an extra column. (d) drops and its vector.