# Cramer’s rule

On this post we explain what Cramer’s rule is and, in addition, you will find examples and exercises of systems of equations solved by Cramer’s rule.

## Cramer’s rule formula

Cramer’s rule is a formula used to solve systems of linear equations using determinants. Let’s see how to use the Cramer’s rule:

Given a system of linear equations: Let A be a square matrix with the coefficients of the unknowns: Cramer’s rule states that the solution of a system of equations can be computed as follows:

Note that the determinants of the numerators are like the determinant of matrix A but changing the column of each unknown by the column of the constants. And the determinant of the denominator of the fraction is always the determinant of matrix A.

Therefore, Cramer’s method is used to solve systems of linear equations. But there are many other ways to solve a system of equations, for example the Gaussian elimination method.

Below you can see an example of how to solve a system of linear equations using Cramer’s rule.

## Cramer’s rule example

• Solve the following system of 3 equations with 3 unknowns using Cramer’s rule: First of all, we construct matrix A with the coefficients of the unknowns: Now we apply the Cramer’s rule to solve the system of equations. To do this, we first have to find the determinant of matrix A: To calculate the unknown x with Cramer’s rule, we replace the first column of the determinant of A by the column of constants and divide it by the determinant of A: To find the unknown y with Cramer’s rule, we change the second column of the determinant of A for the column of constants and divide it by the determinant of A: And finally, to compute variable z with Cramer’s rule we interchange the third column of the determinant of A with the column of constants and divide it by the determinant of matrix A: Therefore, the solution of the system of linear equations is: ## Practice problems of Cramer’s rule

### Problem 1

Apply Cramer’s rule to solve the following system of two equations with 2 unknowns:

First we construct matrix A with the coefficients of the variables: Now we use the Cramer’s rule to solve the system of equation. So we evaluate the determinant of matrix A: To calculate the unknown x with Cramer’s rule, we change the first column of the determinant of A for the column of constants and divide it by the determinant of A: And to find the value of the unknown y, we change the second column of the determinant of A for the column of contants and divide it by the determinant of matrix A: Thus, the solution of the system of equations is: ### Problem 2

Find the solution of the following system of three equations with 3 unknowns using Cramer’s rule:

Matrix A is the matrix with all the coefficients of the variables: We calculate the determinant of matrix A to apply Cramer’s rule: To calculate the unknown x using Cramer’s method, we change the first column of the determinant of A for the column of constants and divide it by the determinant of A: Secondly, to find the unknown y with Cramer’s method, we replace the second column of the determinant of A by the column of constants and divide it by the determinant of A: And finally, to compute z with Cramer’s rule, we change the third column of the determinant of A for the column of constants and divide it by the determinant of A: Thus, the solution of the system of equations is: ### Problem 3

Solve the following system of linear equations applying Cramer’s rule: First, we find matrix A of the system: Now we use Cramer’s rule to solve the system. First we take the determinant of matrix A: To calculate the unknown x with Cramer’s rule, we change the first column of the determinant of A for the column of constants and divide it by the determinant of A: To find the unknown y using Cramer’s rule, we interchange the second column of the determinant of A with the column of constants and divide it by the determinant of A: To compute the unknown z with Cramer’s rule, we replace the third column of the determinant of A by the column of constants and divide it by the determinant of A: So the solution of the system of linear equations is: 