Euler Hall — free maths guides

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.

Apply the operation toII

Take the row operation you want, and do it to the identity matrix. What comes out isEE, and left-multiplying by it performs that operation on any matrix.

Where the number goes. The multiplier−3-3 sits in row22, column11: the row being changed, and the row being used. The sign is minus because the step subtracts.

Three shapes, one source:

| operation |EE isII with | |---|---| |Ri→Ri−cRjR_i\to R_i-cR_j | entry(i,j)(i,j) replaced by−c-c | |Ri→cRiR_i\to cR_i | entry(i,i)(i,i) replaced bycc | |Ri↔RjR_i\leftrightarrow R_j | rowsii andjj exchanged |

Every one of them is obtained by doing the operation toII. That is the definition, and it is also the fastest way to get the entries right.

Why left multiplication does the operation

Rowii ofEAEA is built from rowii ofEE and the rows ofAA: each entry of rowii ofEE says how much of the corresponding row ofAA to take.

- If rowii ofEE is the identity row, rowii ofEAEA is exactly rowii ofAA. - If rowii ofEE has−c-c in positionjj as well as its11, then rowii ofEAEA is1⋅(row i)−c⋅(row j)1\cdot(\text{row }i)-c\cdot(\text{row }j) — the elimination step.

SoEE acts as a set of instructions, one per row ofAA. BuildingEE by applying the operation toII works becauseII'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 ofAEAE are combinations of the columns ofAA, which is a different operation entirely.

A worked example in the exam's shape

WriteEE for the stepR3→R3−2R1R_3\to R_3-2R_1 on a3×33\times3 matrix, and verify it onA=[142536]A=\begin{bmatrix}1&4\\2&5\\3&6\end{bmatrix}.

Apply the step toII: row 3 ofII is(0,0,1)(0,0,1), and subtracting22 times row 1 gives(−2,0,1)(-2,0,1). So

E=[100010−201].E=\begin{bmatrix}1&0&0\\0&1&0\\-2&0&1\end{bmatrix}.

Now multiply:

Row 3 ofAA became(3,6)−2(1,4)=(1,−2)(3,6)-2(1,4)=(1,-2), 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.

By the end you can
  • 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
Check yourself

1. WriteEE forR3→R3+2R2R_3\to R_3+2R_2 on a3×33\times3 matrix. 2. What operation does[100−3]\begin{bmatrix}1&0\\0&-3\end{bmatrix} perform? 3. Why does the multiplier sit in the row being changed rather than the row being used?

Answers

1.E=[100010021]E=\begin{bmatrix}1&0&0\\0&1&0\\0&2&1\end{bmatrix}. 2.R2→−3R2R_2\to-3R_2, a scaling of row 2 by−3-3: the diagonal entry of row 2 is−3-3. 3. Because rowii ofEAEA is determined by rowii ofEE; the row ofAA that changes is the one selected by the non-identity row ofEE.

Work out where to start — free, no accountAnswer six real questions — free, no account