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:

adbcad - 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(eifh)b(difg)+c(dheg)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: eifhei - fh. Multiply by aa.

  2. Take the second element bb, cross out its row and column, and find the 2×2 determinant: difgdi - 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: dhegdh - 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=a1b1a2b2D = \begin{vmatrix}a_1 & b_1 \\ a_2 & b_2\end{vmatrix} (the determinant of the coefficient matrix).

x=c1b1c2b2Dx = \frac{\begin{vmatrix}c_1 & b_1 \\ c_2 & b_2\end{vmatrix}}{D} and y=a1c1a2c2Dy = \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=a1b1c1a2b2c2a3b3c3D = \begin{vmatrix}a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3\end{vmatrix}.

x=d1b1c1d2b2c2d3b3c3Dx = \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=a1d1c1a2d2c2a3d3c3Dy = \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=a1b1d1a2b2d2a3b3d3Dz = \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 D0D \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=7xy=1\begin{cases}3x + 2y = 7 \\ x - y = 1\end{cases}

  • D=3211=(3)(1)(2)(1)=5D = \begin{vmatrix}3 & 2 \\ 1 & -1\end{vmatrix} = (3)(-1) - (2)(1) = -5
  • x=72115=(7)(1)(2)(1)5=95=95x = \frac{\begin{vmatrix}7 & 2 \\ 1 & -1\end{vmatrix}}{-5} = \frac{(7)(-1) - (2)(1)}{-5} = \frac{-9}{-5} = \frac{9}{5}
  • y=37115=(3)(1)(7)(1)5=45=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 D0D \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 [AB][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.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly → and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot

2,589 studying →