LINEAR-ALGEBRA ยท Unit 19 ยท Video 2 ยท Interactive Practice

Swap a Column, Solve the System: Cramer's Rule

IKey Formulas

Formula Name Description
xj=detโก(Bj)detโก(A)x_j = \dfrac{\det(B_j)}{\det(A)} Cramer's Rule BjB_j is AA with column jj replaced by b\mathbf{b}
Cij=(โˆ’1)i+jdetโก(Mij)C_{ij} = (-1)^{i+j}\det(M_{ij}) Cofactor MijM_{ij}: delete row ii, column jj
Aโˆ’1=1detโก(A)CTA^{-1} = \dfrac{1}{\det(A)}C^T Inverse formula Connects inverse to cofactors
Requires detโก(A)โ‰ 0\det(A) \neq 0 Unique solution System solvable iff AA invertible

IIVisualization 1 โ€” The Column Swap

For the video's system x+2yโˆ’z=3,ย 2x+y+z=1,ย 3xโˆ’y+2z=2x+2y-z=3,\ 2x+y+z=1,\ 3x-y+2z=2, solving for variable jj means replacing column jj of AA with b\mathbf{b}, then taking detโก(Bj)/detโก(A)\det(B_j)/\det(A).

The cofactors along column jj are identical in AA and BjB_j โ€” they use only the other columns โ€” so detโก(Bj)\det(B_j) reproduces the numerator of x=1detโกAโ€‰CTb\mathbf{x}=\tfrac{1}{\det A}\,C^{T}\mathbf{b}.

IIIVisualization 2 โ€” Two Lines, One Solution

Each equation is a line and the solution is their intersection โ€” which flies to infinity as detโก(A)โ†’0\det(A)\to 0 and the lines turn parallel.

When detโก(A)=0\det(A)=0 the lines are parallel (no solution) or coincident (infinitely many) โ€” either way Cramer's ratio is undefined.

IVVisualization 3 โ€” A Theorem, Not an Algorithm

Each nร—nn\times n determinant costs about n!n! operations, so Cramer needs (n+1)(n+1) of them versus Gaussian elimination's โˆผ2n33\sim\tfrac{2n^3}{3}.

Reach for Cramer's Rule for symbolic answers, single-variable formulas, and small hand systems โ€” never for large numerical ones.

VQuiz Questions

Question 1

To find yy (the second variable) in a 3ร—3 system Ax=bA\mathbf{x} = \mathbf{b} using Cramer's Rule, what do you compute?

โœ… Correct! The jj-th variable uses column jj replaced by b\mathbf{b}.

โŒ Not quite. The variable number tells you which column to replace, and detโก(Bj)\det(B_j) goes in the numerator.

Show solution

Solution:

Cramer's Rule: xj=detโก(Bj)detโก(A)x_j = \dfrac{\det(B_j)}{\det(A)}, where BjB_j is AA with column jj replaced by b\mathbf{b}.

Since yy is the second variable (j=2j = 2):

y=x2=detโก(B2)detโก(A)y = x_2 = \frac{\det(B_2)}{\det(A)}

where B2B_2 has column 2 replaced by b\mathbf{b}.

Note: the formula is detโก(Bj)/detโก(A)\det(B_j)/\det(A), not the reciprocal.

Question 2

For the system from the video, we found: detโก(A)=6\det(A) = 6, โ€…โ€Šdetโก(B1)=12\;\det(B_1) = 12, โ€…โ€Šdetโก(B2)=โˆ’4\;\det(B_2) = -4, โ€…โ€Šdetโก(B3)=โˆ’14\;\det(B_3) = -14.

What is the value of zz?

โœ… Correct! z=detโก(B3)/detโก(A)=โˆ’14/6=โˆ’7/3z = \det(B_3)/\det(A) = -14/6 = -7/3.

โŒ Not quite.

Show solution

Solution:

zz is the third variable, so use B3B_3:

z=detโก(B3)detโก(A)=โˆ’146=โˆ’73z = \frac{\det(B_3)}{\det(A)} = \frac{-14}{6} = -\frac{7}{3}

Why the other options are wrong:

  • z=2z = 2: That's x=detโก(B1)/detโก(A)=12/6x = \det(B_1)/\det(A) = 12/6 โ€” wrong determinant!
  • z=โˆ’2/3z = -2/3: That's y=detโก(B2)/detโก(A)=โˆ’4/6y = \det(B_2)/\det(A) = -4/6 โ€” also wrong determinant!
  • z=โˆ’14z = -14: That's detโก(B3)\det(B_3) alone โ€” forgot to divide by detโก(A)\det(A)!

Question 3

True or False: Cramer's Rule can be applied to find a unique solution even when detโก(A)=0\det(A) = 0.

โœ… Correct! When detโก(A)=0\det(A) = 0, the formula is undefined โ€” no unique solution exists.

โŒ Not quite. What happens when you divide by detโก(A)=0\det(A) = 0?

Show solution

Answer: False

Cramer's Rule requires detโก(A)โ‰ 0\det(A) \neq 0:

xj=detโก(Bj)detโก(A)x_j = \frac{\det(B_j)}{\det(A)}

When detโก(A)=0\det(A) = 0:

  • Division by zero makes the formula undefined
  • The matrix AA is singular (not invertible)
  • The system has no unique solution โ€” either no solution or infinitely many

As the video states: "When det(A) equals zero, the formula correctly signals no unique solution exists."

Question 4

Which of the following is NOT a recommended use case for Cramer's Rule?

โœ… Correct! Cramer's Rule shines for symbolic, theoretical, and small-scale problems โ€” not large numerical computations.

โŒ Not quite. Think about which scenario would make the factorial cost of Cramer's Rule impractical.

Show solution

Answer: Solving a 100ร—100 numerical system on a computer is NOT a good use of Cramer's Rule.

Why? For n=100n = 100, Cramer's Rule with cofactor expansion requires an astronomical number of operations, while Gaussian elimination needs only about 670,000. The factorial growth makes it completely impractical for large systems.

Good uses for Cramer's Rule:

  • โœ… Symbolic systems โ€” gives closed-form answers with variable coefficients
  • โœ… Formula for one variable โ€” find just xjx_j without solving everything
  • โœ… Theoretical proofs โ€” reveals how solutions depend on every entry of AA and b\mathbf{b}
  • โœ… Small systems by hand โ€” 2ร—2 and 3ร—3 are manageable

"The best formulas aren't always the fastest โ€” sometimes they're the ones that let you see."

Solved: 0 / 4