Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Elementary Matrices

An elementary matrix is a square matrix that is equivalent to the identity matrix after one elementary row operation.

Idea: take the identity matrix and perform one ERO on it. The result is an elementary matrix.

Examples

E1=[0110]E_1=\left[\begin{array}{rr} 0&1\\1&0 \end{array}\right]⟶\longrightarrow perform R1↔R2R_1\leftrightarrow R_2 on II

E2=[5001]E_2=\left[\begin{array}{rr} 5&0\\0&1 \end{array}\right]⟶\longrightarrow perform R1 → 5R1R_1\ \rightarrow\ 5R_1 on II

E3=[1071]E_3= \left[\begin{array}{rr} 1&0\\ 7&1 \end{array}\right]⟶\longrightarrow perform R2 → R2+7R1R_2\ \rightarrow\ R_2 + 7R_1 on II

Elementary Matrices and Matrix Multiplication

When a matrix AA is left multiplied by an elementary matrix EE, the result is identical to performing the row operation that created EE on AA.

Think of elementary matrices as "encoding" the row operation that created them.

Examples

Let A=[123000]A=\left[\begin{array}{rrr} 1&2&3\\0&0&0 \end{array}\right].

Let E1=[0110]E_1=\left[\begin{array}{rr} 0&1\\1&0 \end{array}\right] (R1↔R2R_1 \leftrightarrow R_2 on II). Find E1AE_1A.

E1A=[0110][123000]=[000123]E_1A=\left[\begin{array}{rr} 0&1\\1&0 \end{array}\right]\left[\begin{array}{rrr} 1&2&3\\0&0&0 \end{array}\right] = \left[\begin{array}{rrr} 0&0&0\\ 1&2&3 \end{array}\right]

The row operation that created E1E_1 (swapping rows) is performed on AA.

Let E2=[5001]E_2=\left[\begin{array}{rr} 5&0\\0&1 \end{array}\right] (5R15R_1 on II). Find E2AE_2A.

E2A=[5001][123000]=[51015000]E_2A=\left[\begin{array}{rr} 5&0\\0&1 \end{array}\right]\left[\begin{array}{rrr} 1&2&3\\0&0&0 \end{array}\right] = \left[\begin{array}{rrr} 5&10&15\\0&0&0 \end{array}\right]

Let E3=[1071]E_3=\left[\begin{array}{rr} 1&0\\7&1 \end{array}\right] (R2+7R1R_2 + 7R_1 on II). Find E3AE_3 A.

E3A=[1071][123000]=[12371421]E_3A=\left[\begin{array}{rr} 1&0\\7&1 \end{array}\right]\left[\begin{array}{rrr} 1&2&3\\0&0&0 \end{array}\right] = \left[\begin{array}{rrr} 1&2&3\\7&14&21 \end{array}\right]


Elementary Matrices and the Matrix Inverse Algorithm

Elementary matrices are the reason the matrix inverse algorithm works.

We can "encode" the sequence of row operations that changes AA into II as a product of elementary matrices.

A→row operationsI  ⟹  (Ek⋯E3E2E1)⏟A−1A=IA\colorTwo{\xrightarrow[\text{row operations}]{}} I \quad \implies\quad \underbrace{\colorTwo{(E_k\cdots E_3E_2E_1)}}_{A^{-1}}A=I

So applying the same sequence of operations to II gives:

(Ek⋯E3E2E1)⏟A−1I  =  A−1I  =  A−1\underbrace{\colorTwo{(E_k\cdots E_3E_2E_1)}}_{A^{-1}}I \ \ =\ \ A^{-1}I \ \ =\ \ A^{-1}



Inverse of Elementary Matrices

  1. Every elementary matrix EE is invertible; the "opposite" ERO reduces EE to II.
  2. The inverse of an elementary matrix is an elementary matrix.

Using these facts along with the sequence that produces A−1=Ek⋯E3E2E1A^{-1} =\colorTwo{E_k\cdots E_3E_2E_1} , we can conclude:

A=(A−1)−1  ⟹  A=(Ek⋯E3E2E1)−1  ⟹  A=E1−1E2−1E3−1⋯Ek−1\begin{aligned} A&= (A^{-1})^{-1}\\[0.5em] \implies A&=\colorTwo{(E_k\cdots E_3E_2E_1)}^{-1}\\[0.5em] \implies A&=E_1^{-1}E_2^{-1}E_3^{-1}\cdots E_k^{-1} \end{aligned}


Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Example: Elementary Matrices

Find an elementary matrix EE such that A=EBA=EB, given:


A=[246−1−1−11−13]A=\left[\begin{array}{rrr} 2&4&6\\ -1&-1&-1\\ 1&-1&3 \end{array}\right] and B=[246−1−1−1315]B=\left[\begin{array}{rrr} 2&4&6\\ -1&-1&-1\\ 3&1&5 \end{array}\right]


Think: what row operation can we perform on BB to turn it into AA?

Notice that rows 1 and 2 don't change; only row 3 is different.

  ⟹  \implies The row operation must be performed on row 3.

Therefore, the rows were not swapped, and we can see that the entries in row 3 were not multiplied by a constant.

We can try R3 → R3−R1R_3 \ \rightarrow\ R_3 - R_1, but this does not work out for the second and third entries of the row.

The only other operation that could have been performed is: R3 → R3+2R2R_3 \ \rightarrow \ R_3 + 2R_2.

Let's perform this operation on II to create the elementary matrix:

[100010001]R3+2R2⟶E=[100010021]\left[\begin{array}{rrr} 1&0&0\\ 0&1&0\\ 0&0&1 \end{array}\right] \begin{array}{l} \\ \\ R_3 + 2R_2\\ \end{array} \quad \longrightarrow \quad \boxed{ E=\left[\begin{array}{rrr} 1&0&0\\ 0&1&0\\ 0&2&1 \end{array}\right] }

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Example: Elementary Matrices and Inverses

Let M=[012−8]M=\left[\begin{array}{rr} 0&1\\ 2&-8 \end{array}\right].

MM can be reduced to II by performing the following EROs (in this order):

  1. R1↔R2R_1\leftrightarrow R_2
  2. R1 → 12R1R_1 \ \rightarrow \ \dfrac{1}{2}R_1
  3. R1 → R1+4R2R_1 \ \rightarrow \ R_1 + 4R_2

Using these row operations, find the elementary matrices E1,E2,E3E_1, E_2, E_3 and their inverses such that M=E1−1E2−1E3−1M=E_1^{-1}E_2^{-1}E_3^{-1}.

I=[1001]R1↔R2⟶E1=[0110]I=\left[\begin{array}{rr} 1&0\\ 0&1 \end{array}\right] \begin{array}{l} R_1 \leftrightarrow R_2\\ \\ \end{array} \quad \longrightarrow \quad E_1=\left[\begin{array}{rr} 0&1\\ 1&0 \end{array}\right] \qquad

I=[1001]12R1⟶E2=[12001]I=\left[\begin{array}{rr} 1&0\\ 0&1 \end{array}\right] \begin{array}{l} \dfrac{1}{2}R_1\\ \\ \end{array} \quad \longrightarrow \quad E_2=\left[\begin{array}{rr} \dfrac{1}{2}&0\\[1em] 0&1 \end{array}\right]

I=[1001]R1+4R2⟶E3=[1401]I=\left[\begin{array}{rr} 1&0\\ 0&1 \end{array}\right] \begin{array}{l} R_1 + 4 R_2\\ \\ \end{array} \quad \longrightarrow \quad E_3=\left[\begin{array}{rr} 1&4\\ 0&1 \end{array}\right] \qquad

So (E3E2E1)M=I  ⟹  M−1=E3E2E1  ⟹  M=(M−1)−1=(E3E2E1)−1  ⟹  M=E1−1E2−1E3−1\begin{aligned} (E_3 E_2 E_1)M = I \quad \implies \quad& M^{-1} = E_3 E_2 E_1\\[0.5em] \quad \implies \quad& M = (M^{-1})^{-1} = (E_3 E_2 E_1)^{-1}\\[0.5em] \quad \implies \quad& M=E_1^{-1}E_2^{-1}E_3^{-1} \end{aligned}

Finding Inverses of Elementary Matrices

We can find the inverse of an elementary matrix by performing the opposite operation on II:

E1E_1 simply swapped rows, so swapping them again "undoes" the operation:

I=[1001]R1↔R2⟶E1−1=[0110]I=\left[\begin{array}{rr} 1&0\\ 0&1 \end{array}\right] \begin{array}{l} R_1 \leftrightarrow R_2\\ \\ \end{array} \quad \longrightarrow \quad E_1^{-1}=\left[\begin{array}{rr} 0&1\\ 1&0 \end{array}\right] \qquad

E2E_2 multiplied Row 1 by 12\dfrac{1}{2}, so we can undo this by multiplying Row 1 by 22:

I=[1001]2R1⟶E2−1=[2001]I=\left[\begin{array}{rr} 1&0\\ 0&1 \end{array}\right] \begin{array}{l} 2R_1\\ \\ \end{array} \quad \longrightarrow \quad E_2^{-1}=\left[\begin{array}{rr} 2&0\\ 0&1 \end{array}\right]

E3E_3 added 4 times Row 2 to Row 1, so we can undo this by subtracting 4 times Row 2 from Row 1:

I=[1001]R1−4R2⟶E3−1=[1−401]I=\left[\begin{array}{rr} 1&0\\ 0&1 \end{array}\right] \begin{array}{l} R_1 - 4 R_2\\ \\ \end{array} \quad \longrightarrow \quad E_3^{-1}=\left[\begin{array}{rr} 1&-4\\ 0&1 \end{array}\right]

∴ M = E1−1E2−1E3−1 = [0110][2001][1−401]\therefore\ M\ =\ E_1^{-1}E_2^{-1}E_3^{-1} \ =\ \left[\begin{array}{rr} 0&1\\ 1&0 \end{array}\right] \left[\begin{array}{rr} 2&0\\ 0&1 \end{array}\right] \left[\begin{array}{rr} 1&-4\\ 0&1 \end{array}\right]

Exercise: check this yourself!

Find an elementary matrix EE such that EB=CEB=C, given:


B=[11300364]B=\left[\begin{array}{rr} 1&1\\ 3&0\\ 0&3\\ 6&4 \end{array}\right] and C=[101300364]C=\left[\begin{array}{rr} 10&1\\ 3&0\\ 0&3\\ 6&4 \end{array}\right]

[Enter your answer for EE by filling in the missing entries in the matrix.]

00
0010
0001

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Let A=[3−11−1]A=\left[\begin{array}{rr} 3&-1\\ 1&-1 \end{array} \right] .


A) Using the matrix inverse algorithm, find A−1A^{-1}.

B) Write A−1A^{-1} as a product of elementary matrices.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice