Quiz 2

Cramer's Rule & Invertible Matrices

3614 words
18 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# Cramer's Rule & Invertible Matrices ## 🎯 Learning Objectives After this topic you will be able to: - State and apply Cramer's rule to solve $A\mathbf{x} = \mathbf{b}$ when $A$ is square and invertible - Compute the adjugate (classical adjoint) of a matrix - Find the inverse of a matrix using the adjugate formula...

Cramer's Rule & Invertible Matrices

🎯 Learning Objectives

After this topic you will be able to:
  • State and apply Cramer's rule to solve Ax=bA\mathbf{x} = \mathbf{b} when AA is square and invertible
  • Compute the adjugate (classical adjoint) of a matrix
  • Find the inverse of a matrix using the adjugate formula A1=adj(A)det(A)A^{-1} = \frac{\text{adj}(A)}{\det(A)}
  • Determine when Cramer's rule is (and isn't) computationally practical
  • Express solutions to linear systems using determinants

📋 Prerequisites

  • Determinants (Week 1) — computing det\det, minors, cofactors
  • Gaussian Elimination (this week) — the standard method for solving systems
  • Matrix Multiplication (Week 1) — A1A^{-1} is defined by AA1=IAA^{-1} = I
  • Cramer's rule provides an elegant theoretical formula, though Gaussian elimination is usually more practical

1. Intuition: What Cramer's Rule Does

Cramer's rule expresses the solution of Ax=bA\mathbf{x} = \mathbf{b} directly in terms of determinants. For each variable xjx_j:
  1. Take the coefficient matrix AA
  2. Replace column jj of AA with b\mathbf{b}
  3. Compute the determinant of this new matrix
  4. Divide by det(A)\det(A) The result is xjx_j. It's a beautiful formula, but computationally expensive for large nn (requires n+1n+1 determinants).

2. Cramer's Rule

2.1 Statement

Theorem (Cramer's Rule). Let AA be an n×nn \times n invertible matrix (so det(A)0\det(A) \neq 0). For any bRn\mathbf{b} \in \mathbb{R}^n, the unique solution to Ax=bA\mathbf{x} = \mathbf{b} is:
>xj=det(Aj)det(A),j=1,2,,n>> x_j = \frac{\det(A_j)}{\det(A)}, \quad j = 1, 2, \dots, n >
where AjA_j is the matrix formed by replacing the jj-th column of AA with b\mathbf{b}. Proof Sketch
Let A=[a1  a2    an]A = [\mathbf{a}_1 \; \mathbf{a}_2 \; \dots \; \mathbf{a}_n] where aj\mathbf{a}_j is column jj. Then Ax=bA\mathbf{x} = \mathbf{b} means:
>x1a1+x2a2++xnan=b>> x_1\mathbf{a}_1 + x_2\mathbf{a}_2 + \cdots + x_n\mathbf{a}_n = \mathbf{b} >
Consider Aj=[a1    b    an]A_j = [\mathbf{a}_1 \; \dots \; \mathbf{b} \; \dots \; \mathbf{a}_n] (column jj replaced by b\mathbf{b}). Using multilinearity of the determinant:
>det(Aj)=det[a1    k=1nxkak    an]=xjdet(A)>> \det(A_j) = \det[\mathbf{a}_1 \; \dots \; \sum_{k=1}^n x_k\mathbf{a}_k \; \dots \; \mathbf{a}_n] = x_j \det(A) >
because all terms with kjk \neq j have two identical columns (determinant zero). Hence xj=det(Aj)/det(A)x_j = \det(A_j)/\det(A).

2.2 2×22 \times 2 Case

For
A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}
,
b=[b1b2]\mathbf{b} = \begin{bmatrix} b_1 \\ b_2 \end{bmatrix}
:
x1=b1bb2dabcd=b1dbb2adbc,x2=ab1cb2abcd=ab2b1cadbcx_1 = \frac{\begin{vmatrix} b_1 & b \\ b_2 & d \end{vmatrix}}{\begin{vmatrix} a & b \\ c & d \end{vmatrix}} = \frac{b_1 d - b b_2}{ad - bc}, \quad x_2 = \frac{\begin{vmatrix} a & b_1 \\ c & b_2 \end{vmatrix}}{\begin{vmatrix} a & b \\ c & d \end{vmatrix}} = \frac{a b_2 - b_1 c}{ad - bc}
Example 1: 2×2 Cramer's rule
Solve:
>{2x+3y=74xy=1>> \begin{cases} 2x + 3y = 7 \\ 4x - y = 1 \end{cases} >
det(A)=2(1)3(4)=212=14\det(A) = 2(-1) - 3(4) = -2 - 12 = -14
>A1=[7311]>> A_1 = \begin{bmatrix} 7 & 3 \\ 1 & -1 \end{bmatrix} >
, det(A1)=7(1)3(1)=73=10\det(A_1) = 7(-1) - 3(1) = -7 - 3 = -10
>A2=[2741]>> A_2 = \begin{bmatrix} 2 & 7 \\ 4 & 1 \end{bmatrix} >
, det(A2)=2(1)7(4)=228=26\det(A_2) = 2(1) - 7(4) = 2 - 28 = -26
x=1014=57x = \frac{-10}{-14} = \frac{5}{7}, y=2614=137y = \frac{-26}{-14} = \frac{13}{7}
Check: 2(57)+3(137)=10+397=72(\frac{5}{7}) + 3(\frac{13}{7}) = \frac{10+39}{7} = 7

2.3 3×33 \times 3 Case

Example 2: 3×3 Cramer's rule
Solve:
>{x+2y+z=32xy+3z=23x+yz=6>> \begin{cases} x + 2y + z = 3 \\ 2x - y + 3z = 2 \\ 3x + y - z = 6 \end{cases} >
>A=[121213311]>> A = \begin{bmatrix} 1 & 2 & 1 \\ 2 & -1 & 3 \\ 3 & 1 & -1 \end{bmatrix} >
Step 1: Compute det(A)\det(A):
>det(A)=1(1)(1)+2(3)(3)+1(2)(1)1(1)(3)1(3)(1)2(2)(1)=1+18+2(3)3(4)=1+18+2+33+4=25>> \begin{aligned} \det(A) &= 1(-1)(-1) + 2(3)(3) + 1(2)(1) - 1(-1)(3) - 1(3)(1) - 2(2)(-1) \\ &= 1 + 18 + 2 - (-3) - 3 - (-4) \\ &= 1 + 18 + 2 + 3 - 3 + 4 = 25 \end{aligned} >
Step 2: Compute A1A_1 (replace column 1 with b\mathbf{b}):
>A1=[321213611]>> A_1 = \begin{bmatrix} 3 & 2 & 1 \\ 2 & -1 & 3 \\ 6 & 1 & -1 \end{bmatrix} >
>det(A1)=3(1)(1)+2(3)(6)+1(2)(1)1(1)(6)3(3)(1)2(2)(1)=3+36+2+69+4=42>> \begin{aligned} \det(A_1) &= 3(-1)(-1) + 2(3)(6) + 1(2)(1) \\ &\quad - 1(-1)(6) - 3(3)(1) - 2(2)(-1) \\ &= 3 + 36 + 2 + 6 - 9 + 4 = 42 \end{aligned} >
x=4225x = \frac{42}{25}
Step 3: A2A_2 (replace column 2):
>A2=[131223361]>> A_2 = \begin{bmatrix} 1 & 3 & 1 \\ 2 & 2 & 3 \\ 3 & 6 & -1 \end{bmatrix} >
>det(A2)=1(2)(1)+3(3)(3)+1(2)(6)1(2)(3)1(3)(6)3(2)(1)=2+27+12618+6=19>> \det(A_2) = 1(2)(-1) + 3(3)(3) + 1(2)(6) - 1(2)(3) - 1(3)(6) - 3(2)(-1) = -2 + 27 + 12 - 6 - 18 + 6 = 19 >
y=1925y = \frac{19}{25}
Step 4: A3A_3 (replace column 3):
>A3=[123212316]>> A_3 = \begin{bmatrix} 1 & 2 & 3 \\ 2 & -1 & 2 \\ 3 & 1 & 6 \end{bmatrix} >
>det(A3)=1(1)(6)+2(2)(3)+3(2)(1)3(1)(3)1(2)(1)2(2)(6)=6+12+6+9224=5>> \det(A_3) = 1(-1)(6) + 2(2)(3) + 3(2)(1) - 3(-1)(3) - 1(2)(1) - 2(2)(6) = -6 + 12 + 6 + 9 - 2 - 24 = -5 >
z=525=15z = \frac{-5}{25} = -\frac{1}{5}
Solution: x=4225x = \frac{42}{25}, y=1925y = \frac{19}{25}, z=15z = -\frac{1}{5}.

3. Cramer's Rule vs. Gaussian Elimination

AspectCramer's RuleGaussian Elimination
Computational costO(n!)\mathcal{O}(n!) (requires n+1n+1 determinants)O(n3)\mathcal{O}(n^3)
Practical forn3n \leq 3 (textbook/exam problems)n3n \geq 3 (real-world)
Works for singular AA ?No (requires det(A)0\det(A) \neq 0 )Yes (detects inconsistency)
Conceptual valueExplicit formula; great for theoryAlgorithmic; great for computation
Why Cramer's rule matters despite being expensive: It proves that the solution depends continuously on the entries of AA and b\mathbf{b} (since determinants are continuous functions). This is useful in theoretical arguments.

4. The Adjugate and Matrix Inverse

4.1 Cofactor Matrix and Adjugate

Definition (Cofactor Matrix). The cofactor matrix CC of AA has entries Cij=(1)i+jMijC_{ij} = (-1)^{i+j} M_{ij} (the cofactors). Definition (Adjugate). The adjugate (or classical adjoint) of AA is the transpose of the cofactor matrix:
>adj(A)=CT>> \text{adj}(A) = C^T >

4.2 Inverse via Adjugate

Theorem. If det(A)0\det(A) \neq 0, then:
>A1=1det(A)adj(A)>> A^{-1} = \frac{1}{\det(A)} \text{adj}(A) >
This formula is theoretically important but computationally inefficient for large nn (Gaussian elimination is better).
Example 3: Inverse of a 2×2 matrix using adjugate
>A=[abcd]>> A = \begin{bmatrix} a & b \\ c & d \end{bmatrix} >
Cofactor matrix:
>C=[dcba]>> C = \begin{bmatrix} d & -c \\ -b & a \end{bmatrix} >
Adjugate:
>adj(A)=CT=[dbca]>> \text{adj}(A) = C^T = \begin{bmatrix} d & -b \\ -c & a \end{bmatrix} >
>A1=1adbc[dbca]>> A^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix} >
Check:
>AA1=1adbc[abcd][dbca]=1adbc[adbc00adbc]=I>> AA^{-1} = \frac{1}{ad-bc} \begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix} = \frac{1}{ad-bc} \begin{bmatrix} ad-bc & 0 \\ 0 & ad-bc \end{bmatrix} = I >
Example 4: Inverse of a 3×3 matrix
>A=[123014560]>> A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix} >
Step 1: Compute det(A)\det(A).
>det(A)=1(1046)2(0045)+3(0615)=1(24)2(20)+3(5)=24+4015=1>> \det(A) = 1(1\cdot0 - 4\cdot6) - 2(0\cdot0 - 4\cdot5) + 3(0\cdot6 - 1\cdot5) = 1(-24) - 2(-20) + 3(-5) = -24 + 40 - 15 = 1 >
Step 2: Compute all 9 cofactors.
>C11=+det[1460]=024=24>> C_{11} = +\det\begin{bmatrix} 1 & 4 \\ 6 & 0 \end{bmatrix} = 0 - 24 = -24 >
>C12=det[0450]=(020)=20>> C_{12} = -\det\begin{bmatrix} 0 & 4 \\ 5 & 0 \end{bmatrix} = -(0 - 20) = 20 >
>C13=+det[0156]=05=5>> C_{13} = +\det\begin{bmatrix} 0 & 1 \\ 5 & 6 \end{bmatrix} = 0 - 5 = -5 >
>C21=det[2360]=(018)=18>> C_{21} = -\det\begin{bmatrix} 2 & 3 \\ 6 & 0 \end{bmatrix} = -(0 - 18) = 18 >
>C22=+det[1350]=015=15>> C_{22} = +\det\begin{bmatrix} 1 & 3 \\ 5 & 0 \end{bmatrix} = 0 - 15 = -15 >
>C23=det[1256]=(610)=4>> C_{23} = -\det\begin{bmatrix} 1 & 2 \\ 5 & 6 \end{bmatrix} = -(6 - 10) = 4 >
>C31=+det[2314]=83=5>> C_{31} = +\det\begin{bmatrix} 2 & 3 \\ 1 & 4 \end{bmatrix} = 8 - 3 = 5 >
>C32=det[1304]=(40)=4>> C_{32} = -\det\begin{bmatrix} 1 & 3 \\ 0 & 4 \end{bmatrix} = -(4 - 0) = -4 >
>C33=+det[1201]=10=1>> C_{33} = +\det\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} = 1 - 0 = 1 >
Step 3: Form the adjugate (transpose of cofactor matrix):
>adj(A)=[2418520154541]>> \text{adj}(A) = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix} >
Step 4: Since det(A)=1\det(A) = 1:
>A1=11adj(A)=[2418520154541]>> A^{-1} = \frac{1}{1} \text{adj}(A) = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix} >
Verify: AA1=IAA^{-1} = I (check one entry: first row of AA times first column of A1A^{-1}: 1(24)+2(20)+3(5)=24+4015=11(-24) + 2(20) + 3(-5) = -24 + 40 - 15 = 1 ✓).

4.3 Properties of the Adjugate

PropertyFormula
Productadj(AB)=adj(B)adj(A)\text{adj}(AB) = \text{adj}(B)\,\text{adj}(A)
Transposeadj(AT)=(adj(A))T\text{adj}(A^T) = (\text{adj}(A))^T
Inverseadj(A1)=(adj(A))1\text{adj}(A^{-1}) = (\text{adj}(A))^{-1}
Determinantdet(adj(A))=(det(A))n1\det(\text{adj}(A)) = (\det(A))^{n-1}
Scalaradj(cA)=cn1adj(A)\text{adj}(cA) = c^{n-1} \text{adj}(A)
Fundamental identityAadj(A)=adj(A)A=det(A)InA \cdot \text{adj}(A) = \text{adj}(A) \cdot A = \det(A) \cdot I_n

5. Edge Cases & Gotchas

SituationWhat Happens
** det(A)=0\det(A) = 0 **Cramer's rule is undefined; the system may have 0 or infinitely many solutions
Rectangular matricesCramer's rule only works for square AA
** 1×11 \times 1 system**A=[a]A = [a] , x=b/ax = b/a (Cramer's rule reduces to division)
Near-zero determinantNumerically unstable — small errors in det\det blow up the solution

6. Common Pitfalls

❌ Pitfall 1: Forgetting to divide by det(A)\det(A)

The formula is xj=det(Aj)/det(A)x_j = \det(A_j) / \det(A), not xj=det(Aj)x_j = \det(A_j). The determinant of the modified matrix alone is not the solution.

❌ Pitfall 2: Misplacing b\mathbf{b} in the wrong column

To find x2x_2, replace column 2 of AA with b\mathbf{b} — not column 1 or 3.

❌ Pitfall 3: Applying Cramer's rule to non-square or singular systems

The rule requires AA to be square with det(A)0\det(A) \neq 0. Check this first before computing anything.

❌ Pitfall 4: Confusing adjugate and inverse

A1=adj(A)/det(A)A^{-1} = \text{adj}(A) / \det(A), not adj(A)\text{adj}(A) alone (unless det(A)=1\det(A) = 1).

7. Formula Summary Table

ConceptFormula
Cramer's rulexj=det(Aj)det(A)x_j = \frac{\det(A_j)}{\det(A)} , AjA_j = AA with column jj replaced by b\mathbf{b}
CofactorCij=(1)i+jMijC_{ij} = (-1)^{i+j} M_{ij}
Adjugateadj(A)=CT\text{adj}(A) = C^T
Inverse via adjugateA1=1det(A)adj(A)A^{-1} = \frac{1}{\det(A)} \text{adj}(A)
2×2 inverse (memorise)[abcd]1=1adbc[dbca]\begin{bmatrix} a & b \\ c & d \end{bmatrix}^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}
Fundamental identityAadj(A)=det(A)IA \cdot \text{adj}(A) = \det(A) \cdot I

8. 📝 Practice Questions

Q1: 2×2 Cramer's rule
Solve:
>{3x+2y=7x5y=2>> \begin{cases} 3x + 2y = 7 \\ x - 5y = -2 \end{cases} >
Strategy: Compute det(A)\det(A), det(A1)\det(A_1), det(A2)\det(A_2), then xx and yy.
Solution: det(A)=3(5)2(1)=152=17\det(A) = 3(-5) - 2(1) = -15 - 2 = -17
>det(A1)=7225=7(5)2(2)=35+4=31>> \det(A_1) = \begin{vmatrix} 7 & 2 \\ -2 & -5 \end{vmatrix} = 7(-5) - 2(-2) = -35 + 4 = -31 >
>det(A2)=3712=3(2)7(1)=67=13>> \det(A_2) = \begin{vmatrix} 3 & 7 \\ 1 & -2 \end{vmatrix} = 3(-2) - 7(1) = -6 - 7 = -13 >
x=3117=3117x = \frac{-31}{-17} = \frac{31}{17}, y=1317=1317y = \frac{-13}{-17} = \frac{13}{17}. Q2: 3×3 Cramer's rule
Solve:
>{x+y+z=62xy+z=3x+2yz=2>> \begin{cases} x + y + z = 6 \\ 2x - y + z = 3 \\ x + 2y - z = 2 \end{cases} >
Solution:
>det(A)=111211121>> \det(A) = \begin{vmatrix} 1 & 1 & 1 \\ 2 & -1 & 1 \\ 1 & 2 & -1 \end{vmatrix} >
=1(1)(1)+1(1)(1)+1(2)(2)1(1)(1)1(1)(2)1(2)(1)= 1(-1)(-1) + 1(1)(1) + 1(2)(2) - 1(-1)(1) - 1(1)(2) - 1(2)(-1) =1+1+4+12+2=7= 1 + 1 + 4 + 1 - 2 + 2 = 7
>A1=[611311221]>> A_1 = \begin{bmatrix} 6 & 1 & 1 \\ 3 & -1 & 1 \\ 2 & 2 & -1 \end{bmatrix} >
, det(A1)=6(1)(1)+1(1)(2)+1(3)(2)1(1)(2)6(1)(2)1(3)(1)\det(A_1) = 6(-1)(-1) + 1(1)(2) + 1(3)(2) - 1(-1)(2) - 6(1)(2) - 1(3)(-1) =6+2+6+212+3=7= 6 + 2 + 6 + 2 - 12 + 3 = 7
x=77=1x = \frac{7}{7} = 1
>A2=[161231121]>> A_2 = \begin{bmatrix} 1 & 6 & 1 \\ 2 & 3 & 1 \\ 1 & 2 & -1 \end{bmatrix} >
, det(A2)=1(3)(1)+6(1)(1)+1(2)(2)1(3)(1)1(1)(2)6(2)(1)\det(A_2) = 1(3)(-1) + 6(1)(1) + 1(2)(2) - 1(3)(1) - 1(1)(2) - 6(2)(-1) =3+6+432+12=14= -3 + 6 + 4 - 3 - 2 + 12 = 14
y=147=2y = \frac{14}{7} = 2
>A3=[116213122]>> A_3 = \begin{bmatrix} 1 & 1 & 6 \\ 2 & -1 & 3 \\ 1 & 2 & 2 \end{bmatrix} >
, det(A3)=1(1)(2)+1(3)(1)+6(2)(2)6(1)(1)1(3)(2)1(2)(2)\det(A_3) = 1(-1)(2) + 1(3)(1) + 6(2)(2) - 6(-1)(1) - 1(3)(2) - 1(2)(2) =2+3+24+664=21= -2 + 3 + 24 + 6 - 6 - 4 = 21
z=217=3z = \frac{21}{7} = 3
Solution: x=1x = 1, y=2y = 2, z=3z = 3. Q3: 2×2 inverse
Find A1A^{-1} for
>A=[4321]>> A = \begin{bmatrix} 4 & 3 \\ 2 & 1 \end{bmatrix} >
.
Solution: det(A)=4(1)3(2)=46=2\det(A) = 4(1) - 3(2) = 4 - 6 = -2
>A1=12[1324]=[123212]>> A^{-1} = \frac{1}{-2} \begin{bmatrix} 1 & -3 \\ -2 & 4 \end{bmatrix} = \begin{bmatrix} -\frac{1}{2} & \frac{3}{2} \\ 1 & -2 \end{bmatrix} >
Verify:
>AA1=[4321][123212]=[2+3661+132]=[1001]>> AA^{-1} = \begin{bmatrix} 4 & 3 \\ 2 & 1 \end{bmatrix} \begin{bmatrix} -\frac{1}{2} & \frac{3}{2} \\ 1 & -2 \end{bmatrix} = \begin{bmatrix} -2+3 & 6-6 \\ -1+1 & 3-2 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} >
Q4: 3×3 inverse
Find A1A^{-1} for
>A=[102213418]>> A = \begin{bmatrix} 1 & 0 & 2 \\ 2 & -1 & 3 \\ 4 & 1 & 8 \end{bmatrix} >
.
Solution: det(A)=1(1)(8)+0(3)(4)+2(2)(1)2(1)(4)1(3)(1)0(2)(8)\det(A) = 1(-1)(8) + 0(3)(4) + 2(2)(1) - 2(-1)(4) - 1(3)(1) - 0(2)(8) =8+0+4+830=1= -8 + 0 + 4 + 8 - 3 - 0 = 1
Cofactors:
>C11=+det[1318]=83=11>> C_{11} = +\det\begin{bmatrix} -1 & 3 \\ 1 & 8 \end{bmatrix} = -8 - 3 = -11 >
>C12=det[2348]=(1612)=4>> C_{12} = -\det\begin{bmatrix} 2 & 3 \\ 4 & 8 \end{bmatrix} = -(16 - 12) = -4 >
>C13=+det[2141]=2(4)=6>> C_{13} = +\det\begin{bmatrix} 2 & -1 \\ 4 & 1 \end{bmatrix} = 2 - (-4) = 6 >
>C21=det[0218]=(02)=2>> C_{21} = -\det\begin{bmatrix} 0 & 2 \\ 1 & 8 \end{bmatrix} = -(0 - 2) = 2 >
>C22=+det[1248]=88=0>> C_{22} = +\det\begin{bmatrix} 1 & 2 \\ 4 & 8 \end{bmatrix} = 8 - 8 = 0 >
>C23=det[1041]=(10)=1>> C_{23} = -\det\begin{bmatrix} 1 & 0 \\ 4 & 1 \end{bmatrix} = -(1 - 0) = -1 >
>C31=+det[0213]=0(2)=2>> C_{31} = +\det\begin{bmatrix} 0 & 2 \\ -1 & 3 \end{bmatrix} = 0 - (-2) = 2 >
>C32=det[1223]=(34)=1>> C_{32} = -\det\begin{bmatrix} 1 & 2 \\ 2 & 3 \end{bmatrix} = -(3 - 4) = 1 >
>C33=+det[1021]=10=1>> C_{33} = +\det\begin{bmatrix} 1 & 0 \\ 2 & -1 \end{bmatrix} = -1 - 0 = -1 >
>adj(A)=CT=[1122401611]>> \text{adj}(A) = C^T = \begin{bmatrix} -11 & 2 & 2 \\ -4 & 0 & 1 \\ 6 & -1 & -1 \end{bmatrix} >
Since det(A)=1\det(A) = 1, A1=adj(A)A^{-1} = \text{adj}(A). Q5: Using Cramer's rule with parameters
For what kk does Cramer's rule apply? Solve for xx and yy:
>{kx+y=1x+ky=1>> \begin{cases} kx + y = 1 \\ x + ky = 1 \end{cases} >
Solution: det(A)=k(k)1(1)=k21=(k1)(k+1)\det(A) = k(k) - 1(1) = k^2 - 1 = (k-1)(k+1)
Cramer's rule applies when det(A)0\det(A) \neq 0, i.e., k±1k \neq \pm 1.
>det(A1)=111k=k1>> \det(A_1) = \begin{vmatrix} 1 & 1 \\ 1 & k \end{vmatrix} = k - 1 >
>det(A2)=k111=k1>> \det(A_2) = \begin{vmatrix} k & 1 \\ 1 & 1 \end{vmatrix} = k - 1 >
x=k1(k1)(k+1)=1k+1x = \frac{k-1}{(k-1)(k+1)} = \frac{1}{k+1} (for k±1k \neq \pm 1) y=k1(k1)(k+1)=1k+1y = \frac{k-1}{(k-1)(k+1)} = \frac{1}{k+1} (for k±1k \neq \pm 1)
Check: When k=1k = 1, the system is x+y=1x+y=1, x+y=1x+y=1 (infinitely many solutions). When k=1k = -1, the system is x+y=1-x+y=1, xy=1x-y=1 (inconsistent). Q6: Adjugate properties
Verify Aadj(A)=det(A)IA \cdot \text{adj}(A) = \det(A) \cdot I for
>A=[2134]>> A = \begin{bmatrix} 2 & 1 \\ 3 & 4 \end{bmatrix} >
.
Solution: det(A)=83=5\det(A) = 8 - 3 = 5
>adj(A)=[4132]>> \text{adj}(A) = \begin{bmatrix} 4 & -1 \\ -3 & 2 \end{bmatrix} >
>Aadj(A)=[2134][4132]=[832+212123+8]=[5005]=5I>> A \cdot \text{adj}(A) = \begin{bmatrix} 2 & 1 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 4 & -1 \\ -3 & 2 \end{bmatrix} = \begin{bmatrix} 8-3 & -2+2 \\ 12-12 & -3+8 \end{bmatrix} = \begin{bmatrix} 5 & 0 \\ 0 & 5 \end{bmatrix} = 5I >
Q7: Solving with inverse
Solve Ax=bA\mathbf{x} = \mathbf{b} using A1A^{-1} where
>A=[1225]>> A = \begin{bmatrix} 1 & 2 \\ 2 & 5 \end{bmatrix} >
,
>b=[37]>> \mathbf{b} = \begin{bmatrix} 3 \\ 7 \end{bmatrix} >
.
Solution: det(A)=54=1\det(A) = 5 - 4 = 1
>A1=11[5221]=[5221]>> A^{-1} = \frac{1}{1} \begin{bmatrix} 5 & -2 \\ -2 & 1 \end{bmatrix} = \begin{bmatrix} 5 & -2 \\ -2 & 1 \end{bmatrix} >
>x=A1b=[5221][37]=[15146+7]=[11]>> \mathbf{x} = A^{-1}\mathbf{b} = \begin{bmatrix} 5 & -2 \\ -2 & 1 \end{bmatrix} \begin{bmatrix} 3 \\ 7 \end{bmatrix} = \begin{bmatrix} 15 - 14 \\ -6 + 7 \end{bmatrix} = \begin{bmatrix} 1 \\ 1 \end{bmatrix} >
Check: 1(1)+2(1)=31(1) + 2(1) = 3 ✓, 2(1)+5(1)=72(1) + 5(1) = 7 ✓. Q8: Cramer's rule — word problem
A company makes two products. The profit equations are:
>{5x+3y=1902x+4y=120>> \begin{cases} 5x + 3y = 190 \\ 2x + 4y = 120 \end{cases} >
where xx = units of product A, yy = units of product B. Find xx and yy.
Solution: det(A)=5(4)3(2)=206=14\det(A) = 5(4) - 3(2) = 20 - 6 = 14
>det(A1)=19031204=190(4)3(120)=760360=400>> \det(A_1) = \begin{vmatrix} 190 & 3 \\ 120 & 4 \end{vmatrix} = 190(4) - 3(120) = 760 - 360 = 400 >
>det(A2)=51902120=5(120)190(2)=600380=220>> \det(A_2) = \begin{vmatrix} 5 & 190 \\ 2 & 120 \end{vmatrix} = 5(120) - 190(2) = 600 - 380 = 220 >
x=4001428.57x = \frac{400}{14} \approx 28.57, y=2201415.71y = \frac{220}{14} \approx 15.71. Q9: Determinant of adjugate
If AA is 3×33 \times 3 with det(A)=4\det(A) = -4, find det(adj(A))\det(\text{adj}(A)).
Solution: det(adj(A))=(det(A))n1=(4)2=16\det(\text{adj}(A)) = (\det(A))^{n-1} = (-4)^2 = 16. Q10: When Cramer's rule fails
Explain why Cramer's rule cannot solve the system:
>{x+2y=52x+4y=10>> \begin{cases} x + 2y = 5 \\ 2x + 4y = 10 \end{cases} >
and find all solutions.
Solution: det(A)=1(4)2(2)=44=0\det(A) = 1(4) - 2(2) = 4 - 4 = 0, so Cramer's rule is inapplicable.
The second equation is twice the first, so we have x+2y=5x + 2y = 5. x=52yx = 5 - 2y, yy free. Infinitely many solutions.
Parametric:
>[xy]=[50]+y[21]>> \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 5 \\ 0 \end{bmatrix} + y\begin{bmatrix} -2 \\ 1 \end{bmatrix} >
.

🔗 Cross-References

Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.