LINEAR-ALGEBRA Β· Unit 3 Β· Video 3 Β· Interactive Practice

Finding Matrix Inverses Using Gauss-Jordan Elimination

IKey Formulas

Formula Name Description
[A∣I]β†’rowΒ ops[I∣Aβˆ’1][A \mid I] \xrightarrow{\text{row ops}} [I \mid A^{-1}] Gauss-Jordan Method Append identity, row-reduce, read off inverse
Ekβ‹―E1A=IE_k \cdots E_1 A = I Elementary Matrices Each row operation equals left-multiplication by an elementary matrix
Aβˆ’1=Ekβ‹―E1A^{-1} = E_k \cdots E_1 Inverse as Product The inverse accumulates all row operations applied to II
AAβˆ’1=Aβˆ’1A=IAA^{-1} = A^{-1}A = I Verification Multiply to confirm the result is correct

IIVisualization 1 β€” Building A⁻¹ by Row Reduction

As the left block reduces to II, every row operation is mirrored on the right block β€” which records them and becomes Aβˆ’1A^{-1}.

augmented matrix [A | I]

Stage 0 Β· Setup [A | I]
Pivot a11=1a_{11} = 1. Eliminate the 22 below it: R2←R2βˆ’2R1R_2 \leftarrow R_2 - 2R_1.
Stage 1 Β· Gauss (forward)
R2←R2βˆ’2R1R_2 \leftarrow R_2 - 2R_1 done. Pivot a22=1a_{22} = 1; eliminate the 33 above it: R1←R1βˆ’3R2R_1 \leftarrow R_1 - 3R_2.
Stage 2 Β· Jordan (backward)
Left half =I= I. Right half =Aβˆ’1=[7βˆ’3βˆ’21]= A^{-1} = \begin{bmatrix} 7 & -3 \\ -2 & 1 \end{bmatrix}.

IIIVisualization 2 β€” The Inverse as Determinant β†’ 0

How does Aβˆ’1A^{-1} behave as the determinant adβˆ’bcad - bc shrinks toward zero?

πŸ’‘ When one row is a scalar multiple of the other, the rows are linearly dependent, forcing det⁑=0\det = 0 β€” and no inverse exists.

IVVisualization 3 β€” Verifying AΒ·A⁻¹ = I

Each entry of A Aβˆ’1A\,A^{-1} is a row of AA dotted with a column of Aβˆ’1A^{-1}: the diagonal gives 11, off-diagonal gives 00.

VQuiz Questions

Question 1

You are performing Gauss-Jordan elimination on [A∣I][A \mid I] where A=[1327]A = \begin{bmatrix} 1 & 3 \\ 2 & 7 \end{bmatrix}.

After the Gauss phase (forward elimination), the augmented matrix is: [131001βˆ’21]\left[\begin{array}{cc|cc} 1 & 3 & 1 & 0 \\ 0 & 1 & -2 & 1 \end{array}\right]

What row operation completes the Jordan phase (backward elimination)?

βœ… Correct! We subtract 3 times Row 2 from Row 1 to eliminate the 3 above the second pivot.

❌ Not quite. The Jordan phase creates zeros above pivots. The entry to eliminate is the 3 in position (1,2). Which operation zeros it out?

Show solution

Solution:

The Jordan phase eliminates entries above each pivot. The second pivot is at position (2,2)(2,2) with value 11. The entry above it at position (1,2)(1,2) is 33.

To eliminate it: R1←R1βˆ’3β‹…R2R_1 \leftarrow R_1 - 3 \cdot R_2

Check each entry of the new Row 1:

  • Column 1: 1βˆ’3(0)=11 - 3(0) = 1
  • Column 2: 3βˆ’3(1)=03 - 3(1) = 0 βœ“ (eliminated!)
  • Column 3: 1βˆ’3(βˆ’2)=71 - 3(-2) = 7
  • Column 4: 0βˆ’3(1)=βˆ’30 - 3(1) = -3

Result: [107βˆ’301βˆ’21]\left[\begin{array}{cc|cc} 1 & 0 & 7 & -3 \\ 0 & 1 & -2 & 1 \end{array}\right]

The answer is R1 ← R1 βˆ’ 3Β·R2.

Question 2

True or False: If you encounter a zero in the pivot position during Gauss-Jordan elimination, the matrix must be singular (non-invertible).

βœ… Correct! A zero pivot can often be fixed by swapping rows. The method fails only when no nonzero entry exists below the pivot in that column.

❌ Not quite. Think about what happens when you swap rows β€” can you sometimes fix a zero pivot?

Show solution

Solution: False.

A zero in the pivot position does not mean the matrix is singular. You can swap rows to bring a nonzero entry into the pivot position β€” row swapping is a valid elementary row operation.

The matrix is singular only when no nonzero entry exists at or below the current pivot position in that column.

Example: A=[0110]A = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} has a zero at position (1,1)(1,1), but swapping rows gives [1001]\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}. This matrix is invertible β€” it is its own inverse!

Question 3

Find the inverse of A=[2513]A = \begin{bmatrix} 2 & 5 \\ 1 & 3 \end{bmatrix} using Gauss-Jordan elimination. What is Aβˆ’1A^{-1}?

βœ… Correct! Aβˆ’1=[3βˆ’5βˆ’12]A^{-1} = \begin{bmatrix} 3 & -5 \\ -1 & 2 \end{bmatrix}. You can verify by multiplying AAβˆ’1=IAA^{-1} = I.

❌ Not quite. Try setting up [A∣I][A \mid I] and carefully performing each row operation. Watch the signs closely!

Show solution

Solution:

Set up [A∣I][A \mid I]: [25101301]\left[\begin{array}{cc|cc} 2 & 5 & 1 & 0 \\ 1 & 3 & 0 & 1 \end{array}\right]

Swap rows for a leading 1 pivot: [13012510]\left[\begin{array}{cc|cc} 1 & 3 & 0 & 1 \\ 2 & 5 & 1 & 0 \end{array}\right]

Gauss phase β€” R2←R2βˆ’2R1R_2 \leftarrow R_2 - 2R_1: [13010βˆ’11βˆ’2]\left[\begin{array}{cc|cc} 1 & 3 & 0 & 1 \\ 0 & -1 & 1 & -2 \end{array}\right]

Scale β€” R2β†βˆ’R2R_2 \leftarrow -R_2: [130101βˆ’12]\left[\begin{array}{cc|cc} 1 & 3 & 0 & 1 \\ 0 & 1 & -1 & 2 \end{array}\right]

Jordan phase β€” R1←R1βˆ’3R2R_1 \leftarrow R_1 - 3R_2: [103βˆ’501βˆ’12]\left[\begin{array}{cc|cc} 1 & 0 & 3 & -5 \\ 0 & 1 & -1 & 2 \end{array}\right]

So Aβˆ’1=[3βˆ’5βˆ’12]A^{-1} = \begin{bmatrix} 3 & -5 \\ -1 & 2 \end{bmatrix}.

Verify: AAβˆ’1=[2(3)+5(βˆ’1)2(βˆ’5)+5(2)1(3)+3(βˆ’1)1(βˆ’5)+3(2)]=[1001]AA^{-1} = \begin{bmatrix} 2(3)+5(-1) & 2(-5)+5(2) \\ 1(3)+3(-1) & 1(-5)+3(2) \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} βœ“

Question 4

In Gauss-Jordan elimination on [A∣I][A \mid I], suppose you stop after completing only the Gauss phase (forward elimination), leaving the left half in upper-triangular form. What does the right half represent at this point?

βœ… Correct! The right half records all operations applied so far. After only forward elimination, it holds Ekβ‹―E1E_k \cdots E_1 β€” not the full inverse.

❌ Not quite. The right half starts as II and accumulates every row operation. After only the Gauss phase, the left half is upper-triangular, not II β€” so the process isn't complete yet.

Show solution

Solution:

After the Gauss phase, we have applied elementary matrices E1,E2,…,EkE_1, E_2, \ldots, E_k (the forward elimination steps) to both sides:

Ekβ‹―E1 [A∣I]=[ Ekβ‹―E1Aβ€…β€Šβˆ£β€…β€ŠEkβ‹―E1I ]E_k \cdots E_1 \, [A \mid I] = [\,E_k \cdots E_1 A \;\mid\; E_k \cdots E_1 I\,]

  • Left half: Ekβ‹―E1A=UE_k \cdots E_1 A = U (upper triangular β€” not yet II)
  • Right half: Ekβ‹―E1β‹…I=Ekβ‹―E1E_k \cdots E_1 \cdot I = E_k \cdots E_1 (product of forward-elimination elementary matrices)

This is not the full inverse. The Jordan phase applies additional elementary matrices Ek+1,…,EmE_{k+1}, \ldots, E_m to finish reducing UU to II. Only when the left half equals II does the right half equal Aβˆ’1=Emβ‹―E1A^{-1} = E_m \cdots E_1.

The correct answer is the product of the forward-elimination elementary matrices.

Solved: 0 / 4