OpenStax College Algebra (Sec. 7.8) · WCAG 2.1 AA + MathML Accessible Edition

OpenStax College Algebra (Sec. 7.8) — Matrices, Determinants & Cramer's Rule

Source Lecture Page 1

Section 7.8 — Solving Systems with Cramer's Rule (2×2 Systems)

Cramer's Rule is a method that uses determinants to solve systems of equations that have the same number of equations as variables. Consider a system of two linear equations in two variables: a 1 x + b 1 y = c 1 and a 2 x + b 2 y = c 2 . When D ≠ 0 , the solution using Cramer's Rule is given as:

x = D x D = | c 1 b 1 c 2 b 2 | | a 1 b 1 a 2 b 2 | ,   D ≠ 0 ; y = D y D = | a 1 c 1 a 2 c 2 | | a 1 b 1 a 2 b 2 | ,   D ≠ 0
[Page 1 · Eq #1] Audio Summary: 5-step mathematical derivation.
Step-by-Step Audio Breakdown (5-step mathematical derivation.)
  1. Step 1: x
  2. Step 2: equals D sub x over D
  3. Step 3: equals the determinant of the 2 by 2 matrix, Row 1: c sub 1, b sub 1; Row 2: c sub 2, b sub 2 over the determinant of the 2 by 2 matrix, Row 1: a sub 1, b sub 1; Row 2: a sub 2, b sub 2, D is not equal to 0; y
  4. Step 4: equals D sub y over D
  5. Step 5: equals the determinant of the 2 by 2 matrix, Row 1: a sub 1, c sub 1; Row 2: a sub 2, c sub 2 over the determinant of the 2 by 2 matrix, Row 1: a sub 1, b sub 1; Row 2: a sub 2, b sub 2, D is not equal to 0

Example 2 — Using Cramer's Rule to Solve a 2×2 System: Solve 12 x + 3 y = 15 and 2 x − 3 y = 13 using Cramer's Rule. Solution: Solve for x .

x = D x D = | 15 3 13 − 3 | | 12 3 2 − 3 | = − 45 − 39 − 36 − 6 = − 84 − 42 = 2
[Page 1 · Eq #2] Audio Summary: 5-step derivation, concluding with negative 84 over negative 42, equals 2.
Step-by-Step Audio Breakdown (5-step derivation, concluding with negative 84 over negative 42, equals 2.)
  1. Step 1: x
  2. Step 2: equals D sub x over D
  3. Step 3: equals the determinant of the 2 by 2 matrix, Row 1: 15, 3; Row 2: 13, negative 3 over the determinant of the 2 by 2 matrix, Row 1: 12, 3; Row 2: 2, negative 3
  4. Step 4: equals negative 45 minus 39 over negative 36 minus 6
  5. Step 5: equals negative 84 over negative 42, equals 2

Solve for y:

y = D y D = | 12 15 2 13 | | 12 3 2 − 3 | = 156 − 30 − 36 − 6 = − 126 42 = − 3
[Page 1 · Eq #3] Audio Summary: 5-step derivation, concluding with negative 126 over 42, equals negative 3.
Step-by-Step Audio Breakdown (5-step derivation, concluding with negative 126 over 42, equals negative 3.)
  1. Step 1: y
  2. Step 2: equals D sub y over D
  3. Step 3: equals the determinant of the 2 by 2 matrix, Row 1: 12, 15; Row 2: 2, 13 over the determinant of the 2 by 2 matrix, Row 1: 12, 3; Row 2: 2, negative 3
  4. Step 4: equals 156 minus 30 over negative 36 minus 6
  5. Step 5: equals negative 126 over 42, equals negative 3

The solution is ( 2 , − 3 ) . Try It #1: Use Cramer's Rule to solve the 2×2 system x + 2 y = − 11 and − 2 x + y = − 13 .

Evaluating the Determinant of a 3×3 Matrix

Finding the determinant of a 2×2 matrix is straightforward, but finding the determinant of a 3×3 matrix is more complicated. One method is to augment the 3×3 matrix with a repetition of the first two columns, giving a 3×5 matrix. Find the determinant of the 3×3 matrix:

A = [ a 1 b 1 c 1 a 2 b 2 c 2 a 3 b 3 c 3 ]
[Page 1 · Eq #4] Audio Summary: A, equals the 3 by 3 matrix, Row 1: a sub 1, b sub 1, c sub 1; Row 2: a sub 2, b sub 2, c sub 2; Row 3: a sub 3, b sub 3, c sub 3
Source Lecture Page 2

3×3 Determinant Expansion & Worked Example 3 (Page 2)

1. Augment A with the first two columns. 2. From upper left to lower right: multiply entries down each of the three diagonals and add. 3. From lower left to upper right: subtract the product of entries up each of the three diagonals. The algebra is as follows:

| A | = a 1 b 2 c 3 + b 1 c 2 a 3 + c 1 a 2 b 3 − a 3 b 2 c 1 − b 3 c 2 a 1 − c 3 a 2 b 1
[Page 2 · Eq #5] Audio Summary: the determinant of A, equals a sub 1 b sub 2 c sub 3 plus b sub 1 c sub 2 a sub 3 plus c sub 1 a sub 2 b sub 3 minus a sub 3 b sub 2 c sub 1 minus b sub 3 c sub 2 a sub 1 minus c sub 3 a sub 2 b sub 1

Example 3 — Finding the Determinant of a 3×3 Matrix: Find the determinant of the 3×3 matrix given:

A = [ 0 2 1 3 − 1 1 4 0 1 ]
[Page 2 · Eq #6] Audio Summary: A, equals the 3 by 3 matrix, Row 1: 0, 2, 1; Row 2: 3, negative 1, 1; Row 3: 4, 0, 1

Solution: Augment the matrix with the first two columns and follow the diagonal formula:

| A | = 0 ( − 1 ) ( 1 ) + 2 ( 1 ) ( 4 ) + 1 ( 3 ) ( 0 ) − 4 ( − 1 ) ( 1 ) − 0 ( 1 ) ( 0 ) − 1 ( 3 ) ( 2 ) = 0 + 8 + 0 + 4 − 0 − 6 = 6
[Page 2 · Eq #7] Audio Summary: 4-step derivation, concluding with 6.
Step-by-Step Audio Breakdown (4-step derivation, concluding with 6.)
  1. Step 1: the absolute value of A
  2. Step 2: equals 0 times negative 1 times 1 plus 2 times 1 times 4 plus 1 times 3 times 0 minus 4 times negative 1 times 1 minus 0 times 1 times 0 minus 1 times 3 times 2
  3. Step 3: equals 0 plus 8 plus 0 plus 4 minus 0 minus 6
  4. Step 4: equals 6

Try It #2: Find the determinant of the 3×3 matrix:

det ( A ) = | 1 − 3 7 1 1 1 1 − 2 3 |
[Page 2 · Eq #8] Audio Summary: the determinant of A, equals the determinant of the 3 by 3 matrix, Row 1: 1, negative 3, 7; Row 2: 1, 1, 1; Row 3: 1, negative 2, 3

Q & A: Can we use the same method to find the determinant of a larger matrix? No, this diagonal rule only works for 2×2 and 3×3 matrices. For larger matrices, use cofactor expansion or linear algebra software.