Cramer's rule for solving systems

 
 
 
 
 

What is Cramer’s Rule?

Cramer’s Rule is a simple rule that lets us use determinants to solve a system of equations. It tells us that we can solve for any variable in the system by calculating

DvD\frac{D_v}{D}

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

where DvD_v is the determinant of the coefficient matrix, with the answer column values substituted into the column representing the variable for which we’re trying to solve, and where DD is the determinant of the coefficient matrix.

Which means that, if we want to find the value of xx, we need to find Dx/DD_x/D, and if we want to find the value of yy, we need to find Dy/DD_y/D. All that sounds tricky, but let’s look at an example to break it down.

 
 

How to use Cramer’s rule to solve systems of equations


 
 

Take the course

Want to learn more about Linear Algebra? I have a step-by-step course for that. :)

 
 

 
 

Solving for individual variables using Cramer’s Rule

Example

Solve for xx in the system.

2x3y=52x-3y=5

3x+12y=83x+12y=-8

Because we’re looking for the value of xx, we want to find Dx/DD_x/D. We need to start with the coefficient matrix for the system,

The answer column matrix is the matrix of constants from the right side of the system,

DxD_x is the determinant of the coefficient matrix with the answer column matrix substituted into the xx-column,

DD is the determinant of the coefficient matrix,

Putting these values together, Cramer’s Rule tells us that the value of xx in the system is


Let’s do another example where we use Cramer’s Rule to solve for yy.


If we want to find x, we need to find D_x/D, and if we want to find Y, we need to find D_y/D.

Example

Use Cramer’s Rule to solve for the value of yy that satisfies the system.

3x2y=73x-2y=7

5x8y=215x-8y=21


The coefficient matrix is

The answer column matrix is

Then DyD_y is what we get when we substitute the answer column matrix into the second column of the coefficient matrix, and then take the determinant of the result.

The determinant of the coefficient matrix is

Putting these values together, Cramer’s Rule tells us that the value of yy in the system is


 
 

Get access to the complete Linear Algebra course