Fiveable

๐Ÿ“Honors Pre-Calculus Unit 9 Review

QR code for Honors Pre-Calculus practice questions

9.8 Solving Systems with Cramer's Rule

9.8 Solving Systems with Cramer's Rule

Written by the Fiveable Content Team โ€ข Last updated August 2025
Written by the Fiveable Content Team โ€ข Last updated August 2025
๐Ÿ“Honors Pre-Calculus
Unit & Topic Study Guides
Pep mascot

Determinants and Their Properties

Pep mascot
more resources to help you study

Calculation of matrix determinants

The determinant is a single number you can compute from any square matrix. It tells you whether the matrix is invertible and shows up directly in Cramer's Rule, so you need to be comfortable calculating it.

2ร—2 determinant:

For the matrix [abcd]\begin{bmatrix}a & b \\ c & d\end{bmatrix}, the determinant is:

adโˆ’bcad - bc

Multiply the main diagonal, then subtract the product of the off-diagonal. That's it.

3ร—3 determinant:

For the matrix [abcdefghi]\begin{bmatrix}a & b & c \\ d & e & f \\ g & h & i\end{bmatrix}, the determinant is:

a(eiโˆ’fh)โˆ’b(diโˆ’fg)+c(dhโˆ’eg)a(ei - fh) - b(di - fg) + c(dh - eg)

This is called cofactor expansion along the first row. Here's how to do it step by step:

  1. Take the first element aa, cross out its row and column, and find the 2ร—2 determinant of what's left: eiโˆ’fhei - fh. Multiply by aa.

  2. Take the second element bb, cross out its row and column, and find the 2ร—2 determinant: diโˆ’fgdi - fg. Multiply by โˆ’b-b (note the sign change).

  3. Take the third element cc, cross out its row and column, and find the 2ร—2 determinant: dhโˆ’egdh - eg. Multiply by cc.

  4. Add the three results together.

The sign pattern along the first row alternates: +,โˆ’,++, -, +. This pattern extends for larger matrices too.

You may also see the Rule of Sarrus for 3ร—3 matrices: copy the first two columns to the right of the matrix, then add the products of the three downward diagonals and subtract the products of the three upward diagonals. It gives the same answer but only works for 3ร—3.

Properties of determinants

These properties are worth knowing because they can save you computation time and help you check your work:

  • Row/column swap: Interchanging any two rows (or columns) flips the sign of the determinant.
  • Scalar multiplication: Multiplying a single row or column by kk multiplies the determinant by kk.
  • Row addition: Adding a multiple of one row to another row does not change the determinant.
  • Transpose: The determinant of a matrix equals the determinant of its transpose.
  • Product rule: detโก(AB)=detโก(A)โ‹…detโก(B)\det(AB) = \det(A) \cdot \det(B).
  • Invertibility: A matrix is invertible if and only if its determinant is non-zero. If the determinant is zero, the matrix is singular.

Solving Systems with Cramer's Rule

Cramer's Rule gives you a direct formula for each variable in a system of linear equations, expressed entirely in terms of determinants. The core idea: replace one column of the coefficient matrix with the constants from the right-hand side, take that determinant, and divide by the determinant of the original coefficient matrix.

Calculation of matrix determinants, Solving Systems with Cramerโ€™s Rule โ€“ Algebra and Trigonometry OpenStax

Application of Cramer's Rule

For a 2ร—2 system {a1x+b1y=c1a2x+b2y=c2\begin{cases}a_1x + b_1y = c_1 \\ a_2x + b_2y = c_2\end{cases}:

Let D=โˆฃa1b1a2b2โˆฃD = \begin{vmatrix}a_1 & b_1 \\ a_2 & b_2\end{vmatrix} (the determinant of the coefficient matrix).

x=โˆฃc1b1c2b2โˆฃDx = \frac{\begin{vmatrix}c_1 & b_1 \\ c_2 & b_2\end{vmatrix}}{D} and y=โˆฃa1c1a2c2โˆฃDy = \frac{\begin{vmatrix}a_1 & c_1 \\ a_2 & c_2\end{vmatrix}}{D}

Notice the pattern: to solve for xx, replace the x-column (first column) with the constants. To solve for yy, replace the y-column (second column) with the constants. The denominator is always DD.

For a 3ร—3 system {a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3\begin{cases}a_1x + b_1y + c_1z = d_1 \\ a_2x + b_2y + c_2z = d_2 \\ a_3x + b_3y + c_3z = d_3\end{cases}:

The same pattern holds. Let D=โˆฃa1b1c1a2b2c2a3b3c3โˆฃD = \begin{vmatrix}a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3\end{vmatrix}.

x=โˆฃd1b1c1d2b2c2d3b3c3โˆฃDx = \frac{\begin{vmatrix}d_1 & b_1 & c_1 \\ d_2 & b_2 & c_2 \\ d_3 & b_3 & c_3\end{vmatrix}}{D}, y=โˆฃa1d1c1a2d2c2a3d3c3โˆฃDy = \frac{\begin{vmatrix}a_1 & d_1 & c_1 \\ a_2 & d_2 & c_2 \\ a_3 & d_3 & c_3\end{vmatrix}}{D}, and z=โˆฃa1b1d1a2b2d2a3b3d3โˆฃDz = \frac{\begin{vmatrix}a_1 & b_1 & d_1 \\ a_2 & b_2 & d_2 \\ a_3 & b_3 & d_3\end{vmatrix}}{D}

Step-by-step process for any system:

  1. Write the coefficient matrix and compute its determinant DD.
  2. Check that Dโ‰ 0D \neq 0. If D=0D = 0, Cramer's Rule doesn't apply (the system is either inconsistent or has infinitely many solutions).
  3. For each variable, form a new matrix by replacing that variable's column in the coefficient matrix with the column of constants.
  4. Compute the determinant of each new matrix.
  5. Divide each new determinant by DD to get the value of that variable.

Quick example (2ร—2): Solve {3x+2y=7xโˆ’y=1\begin{cases}3x + 2y = 7 \\ x - y = 1\end{cases}

  • D=โˆฃ321โˆ’1โˆฃ=(3)(โˆ’1)โˆ’(2)(1)=โˆ’5D = \begin{vmatrix}3 & 2 \\ 1 & -1\end{vmatrix} = (3)(-1) - (2)(1) = -5
  • x=โˆฃ721โˆ’1โˆฃโˆ’5=(7)(โˆ’1)โˆ’(2)(1)โˆ’5=โˆ’9โˆ’5=95x = \frac{\begin{vmatrix}7 & 2 \\ 1 & -1\end{vmatrix}}{-5} = \frac{(7)(-1) - (2)(1)}{-5} = \frac{-9}{-5} = \frac{9}{5}
  • y=โˆฃ3711โˆฃโˆ’5=(3)(1)โˆ’(7)(1)โˆ’5=โˆ’4โˆ’5=45y = \frac{\begin{vmatrix}3 & 7 \\ 1 & 1\end{vmatrix}}{-5} = \frac{(3)(1) - (7)(1)}{-5} = \frac{-4}{-5} = \frac{4}{5}

Cramer's Rule vs other methods

  • Cramer's Rule works well for 2ร—2 and 3ร—3 systems, especially on exams where you need a quick, formulaic approach.
  • For larger systems, the number of determinant calculations grows very fast (factorially), making Gaussian elimination or matrix inversion far more practical.
  • One nice advantage: if you only need the value of one variable, you can compute just two determinants instead of solving the entire system.

Real-world interpretation of solutions

The solution to a system represents the set of values that satisfy all equations at once. Depending on context, these values might represent:

  • Intersection points of lines or planes in geometry
  • Equilibrium forces or velocities in physics
  • Prices or quantities that balance supply and demand in economics
Calculation of matrix determinants, Determinant โ€“ Wikipedie

Systems of Equations and Their Properties

Types of systems

  • Consistent system: Has at least one solution. If there's exactly one solution, it's called independent. If there are infinitely many, it's dependent.
  • Inconsistent system: Has no solution. Graphically, this means the lines (or planes) never all intersect at a common point.

For Cramer's Rule specifically: the system has a unique solution when Dโ‰ 0D \neq 0. When D=0D = 0, you can't use Cramer's Rule, and you'll need another method to determine whether the system is inconsistent or dependent.

Matrix representation

Any system of linear equations can be written in matrix form as AX=BAX = B, where:

  • AA is the coefficient matrix (the grid of coefficients from the left-hand side)
  • XX is the column vector of variables
  • BB is the column vector of constants from the right-hand side

The augmented matrix [AโˆฃB][A | B] combines both into one matrix, which is what you'd use for Gaussian elimination. For Cramer's Rule, you work with AA and BB separately.