Write the elementary matrix for one row operation
Build E from I by applying the same row operation, then verify EA. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
Take the row operation you want, and do it to the identity matrix. What comes out is, and left-multiplying by it performs that operation on any matrix.
Where the number goes. The multiplier sits in row, column: the row being changed, and the row being used. The sign is minus because the step subtracts.
Three shapes, one source:
| operation | is with | |---|---| | | entry replaced by | | | entry replaced by | | | rows and exchanged |
Every one of them is obtained by doing the operation to. That is the definition, and it is also the fastest way to get the entries right.
Row of is built from row of and the rows of: each entry of row of says how much of the corresponding row of to take.
- If row of is the identity row, row of is exactly row of. - If row of has in position as well as its, then row of is — the elimination step.
So acts as a set of instructions, one per row of. Building by applying the operation to works because's rows are exactly "take this row and nothing else", and applying the operation changes one of those instructions.
And it is on the left. On the right, the same matrix would mix columns; the columns of are combinations of the columns of, which is a different operation entirely.
Write for the step on a matrix, and verify it on.
Apply the step to: row 3 of is, and subtracting times row 1 gives. So
Now multiply:
Row 3 of became, which is exactly the step. Rows 1 and 2 are untouched.
Read that as the check: the two routes — multiply, or do the operation by hand — must agree, and comparing them is how you find a wrong sign or slot.
- Build E from I by applying the same row operation, then verify EA
- Read the operation back off the single non-identity entry of E
1. Write for on a matrix. 2. What operation does perform? 3. Why does the multiplier sit in the row being changed rather than the row being used?
Answers
1.. 2., a scaling of row 2 by: the diagonal entry of row 2 is. 3. Because row of is determined by row of; the row of that changes is the one selected by the non-identity row of.