LINEAR-ALGEBRA Β· Unit 2 Β· Video 1 Β· Interactive Practice

Gaussian Elimination & Back Substitution

IKey Formulas

Formula Name Description
β„“ij=aijajj\ell_{ij} = \dfrac{a_{ij}}{a_{jj}} Multiplier Ratio of target entry to pivot
Ri←Riβˆ’β„“ijβ‹…RjR_i \leftarrow R_i - \ell_{ij} \cdot R_j Row operation Eliminates entry at position (i,j)(i, j)
det⁑(A)=p1β‹…p2β‹―pn\det(A) = p_1 \cdot p_2 \cdots p_n Determinant Product of pivots from UU
Back substitution Solve Ux=cUx = c Solve from bottom equation upward

IIVisualization 1 β€” Forward Elimination

Each row operation clears one entry below the diagonal, marching [A∣b][A \mid b] toward upper-triangular form.

augmented matrix [A | b]

Step 0 Β· Setup
Pivot a11=1a_{11}=1. The entry a21=3a_{21}=3 below it must become 00.
Step 1 Β· Clear column 1
R2←R2βˆ’3R1R_2 \leftarrow R_2 - 3R_1, multiplier β„“21=31=3\ell_{21}=\tfrac{3}{1}=3. New pivot a22=2a_{22}=2; target a32=4a_{32}=4.
Step 2 Β· Clear column 2
R3←R3βˆ’2R2R_3 \leftarrow R_3 - 2R_2, multiplier β„“32=42=2\ell_{32}=\tfrac{4}{2}=2. Pivots 1,2,51,2,5 give det⁑A=10\det A = 10.

IIIVisualization 2 β€” When Elimination Fails

Sliding the single entry a33a_{33} slides the third pivot p3=a33+4p_3 = a_{33}+4; when it reaches 00 the matrix turns singular.

πŸ’‘ A zero pivot, a zero determinant, and a singular matrix are one and the same event β€” here at a33=βˆ’4a_{33} = -4.

IVVisualization 3 β€” Back Substitution

The bottom equation has one unknown; each solved variable unlocks exactly one new unknown in the row above.

solution vector x

x?
y?
z?

VQuiz Questions

Question 1

Consider the augmented matrix from the video: [A∣b]=[121∣2381∣12041∣2][A \mid b] = \begin{bmatrix} 1 & 2 & 1 & | & 2 \\ 3 & 8 & 1 & | & 12 \\ 0 & 4 & 1 & | & 2 \end{bmatrix}

The first elimination step uses R2←R2βˆ’β„“21β‹…R1R_2 \leftarrow R_2 - \ell_{21} \cdot R_1. What is the multiplier β„“21\ell_{21}?

βœ… Correct! The multiplier is target Γ· pivot = 3/1 = 3.

❌ Not quite. The multiplier is (target entry) Γ· (pivot) = a₂₁ / a₁₁.

Show solution

Solution:

The multiplier is the ratio of the target entry to the pivot:

β„“21=a21a11=31=3\ell_{21} = \frac{a_{21}}{a_{11}} = \frac{3}{1} = 3

We then perform R2←R2βˆ’3β‹…R1R_2 \leftarrow R_2 - 3 \cdot R_1 to zero out position (2,1)(2,1).

Common mistake: Computing a11a21=13\frac{a_{11}}{a_{21}} = \frac{1}{3} β€” the multiplier is target Γ·\div pivot, not the other way around.

Question 2

After forward elimination, the upper triangular matrix UU has pivots 1,2,51, 2, 5 on its diagonal. What is det⁑(A)\det(A)?

βœ… Correct! det(A) = product of pivots = 1 Γ— 2 Γ— 5 = 10.

❌ Not quite. Remember: the determinant is the product of the pivots, not the sum.

Show solution

Solution:

The determinant equals the product of the pivots of UU:

det⁑(A)=p1Γ—p2Γ—p3=1Γ—2Γ—5=10\det(A) = p_1 \times p_2 \times p_3 = 1 \times 2 \times 5 = 10

Since det⁑(A)β‰ 0\det(A) \neq 0, the matrix is invertible and the system has a unique solution.

Common mistakes:

  • Adding pivots: 1+2+5=81 + 2 + 5 = 8 βœ— (determinant is a product, not a sum)
  • Adding all entries on the diagonal is also wrong

Question 3

True or False: If a zero appears in a pivot position during Gaussian elimination, the matrix is always singular (not invertible).

βœ… Correct! A zero pivot can sometimes be fixed by a row swap (temporary failure). Singularity only occurs when no non-zero entry exists below.

❌ Not quite. Consider: what if there's a non-zero entry below the zero pivot that we could swap?

Show solution

Answer: False

A zero in a pivot position does not always mean the matrix is singular:

  • Temporary failure: If a non-zero entry exists below the zero pivot, we can swap rows (a row exchange) and continue elimination. The matrix may still be invertible.

  • Permanent failure: If all entries below the zero pivot are also zero, no row swap can help. Only then is the matrix singular with det⁑(A)=0\det(A) = 0.

The key distinction: Can we find a non-zero entry below to swap with?

Question 4

During back substitution on the triangular system, after finding z=βˆ’2z = -2, we substitute into Equation 2:

2yβˆ’2(βˆ’2)=62y - 2(-2) = 6

What is the value of yy?

βœ… Correct! Since βˆ’2Γ—(βˆ’2)=+4-2 \times (-2) = +4, we get 2y+4=62y + 4 = 6, giving y=1y = 1.

❌ Not quite. Be careful with the double negative: βˆ’2Γ—(βˆ’2)=+4-2 \times (-2) = +4, not βˆ’4-4.

Show solution

Solution:

Substitute z=βˆ’2z = -2 into Equation 2: 2yβˆ’2(βˆ’2)=62y - 2(-2) = 6 2y+4=6(doubleΒ negative:Β βˆ’2Γ—(βˆ’2)=+4)2y + 4 = 6 \quad \text{(double negative: } -2 \times (-2) = +4\text{)} 2y=22y = 2 y=1y = 1

Common mistake: Getting the sign wrong on βˆ’2Γ—(βˆ’2)-2 \times (-2).

  • If you compute βˆ’2Γ—(βˆ’2)=βˆ’4-2 \times (-2) = -4 instead of +4+4, you get 2yβˆ’4=6β‡’y=52y - 4 = 6 \Rightarrow y = 5. βœ—

Solved: 0 / 4