Solve Systems of Equations Using Determinants
In this section we will learn of another method to solve systems of linear equations called Cramer’s Rule. Before we can begin to use the rule, we need to learn some new definitions and notation.
Evaluate the determinant of a 2 × 2 matrix
If a matrix has the same number of rows and columns, we call it a square matrix. Each square matrix has a real number associated with it called its determinant. To find the determinant of the square matrix , we first write it as . To get the real number value of the determinant we subtract the products of the diagonals, as shown.
Determinant. The determinant of any square matrix , where , , , and are real numbers, is
Example. Evaluate the determinant of (a) (b) .
(a) We subtract the products of the diagonals:
(b)
Evaluate the determinant .
Subtract the product of the diagonals going the other way from the product of the main diagonal: .Evaluate the determinant .
Subtract the products of the diagonals: .Evaluate the determinant of a 3 × 3 matrix
To evaluate the determinant of a matrix, we have to be able to evaluate the minor of an entry in the determinant. The minor of an entry is the determinant found by eliminating the row and column in the determinant that contains the entry.
To find the minor of entry in , we eliminate the row and column that contain it — the first row and first column — and write the determinant that remains:
To find the minor of entry , we eliminate the row and column that contain it — the second row and second column — and write the determinant that remains:
Example. For the determinant , find and then evaluate the minor of (a) (b) (c) .
(a) We eliminate the row and column that contain (the first row and first column):
(b) We eliminate the row and column that contain (the third row and second column):
(c) We eliminate the row and column that contain (the second row and third column):
For the determinant , find and evaluate the minor of .
Eliminate the first row and first column, then evaluate the determinant that remains.For the determinant , find and evaluate the minor of .
Eliminate the third row and second column, then evaluate the determinant that remains.We are now ready to evaluate a determinant. To do this we expand by minors, which allows us to evaluate the determinant using determinants — which we already know how to evaluate! To evaluate a determinant by expanding by minors along the first row, we use the following pattern.
Expanding by minors along the first row to evaluate a determinant. To evaluate a determinant by expanding by minors along the first row, the following pattern is used. $$ \begin{vmatrix} a_1 & b_1 & c_1 \ a_2 & b_2 & c_2 \ a_3 & b_3 & c_3 \end{vmatrix} = a_1 \begin{vmatrix} b_2 & c_2 \ b_3 & c_3 \end{vmatrix}
- b_1 \begin{vmatrix} a_2 & c_2 \ a_3 & c_3 \end{vmatrix}
- c_1 \begin{vmatrix} a_2 & b_2 \ a_3 & b_3 \end{vmatrix} $$
Example. Evaluate the determinant by expanding by minors along the first row.
Evaluate the determinant by expanding by minors along the first row.
Evaluate the determinant by expanding by minors along the first row.
To evaluate a determinant we can expand by minors using any row or column. Choosing a row or column other than the first row sometimes makes the work easier. When we expand by any row or column, we must be careful about the sign of the terms in the expansion. To determine the sign of the terms, we use the following sign pattern chart.
Sign pattern. When expanding by minors using a row or column, the sign of the terms in the expansion follows this pattern.
Since we can expand by any row or column, how do we decide which one to use? Usually we try to pick a row or column that will make our calculation easier. If the determinant contains a , using the row or column that contains the will make the calculations easier.
Example. Evaluate the determinant by expanding by minors.
To expand by minors, we look for a row or column that will make our calculations easier. Since is in the second row and second column, expanding by either of those is a good choice. Since the second row has fewer negatives than the second column, we will expand by the second row — watching the signs for that row:
Evaluate the determinant by expanding by minors.
Pick a row or column that makes the arithmetic easier, and watch the sign pattern.Evaluate the determinant by expanding by minors.
Pick a row or column that makes the arithmetic easier, and watch the sign pattern.Use Cramer’s Rule to solve systems of equations
Cramer’s Rule is a method of solving systems of equations using determinants. It can be derived by solving the general form of the systems of equations by elimination. Here we will demonstrate the rule for both systems of two equations with two variables and for systems of three equations with three variables.
Let’s start with the systems of two equations with two variables.
Cramer’s Rule for solving a system of two equations. For the system of equations , the solution can be determined by
where
Example. Solve using Cramer’s Rule:
Evaluate the determinant , using the coefficients of the variables:
Evaluate the determinant . Replace the coefficients of , and , with the constants, and :
Evaluate the determinant . Replace the coefficients of , and , with the constants, and :
Substitute in the values of , , and to find and :
The solution is the ordered pair . Substituting into both original equations confirms is the solution to the system.
Solve a system of two equations using Cramer’s Rule.
- Evaluate the determinant , using the coefficients of the variables.
- Evaluate the determinant . Use the constants in place of the coefficients.
- Evaluate the determinant . Use the constants in place of the coefficients.
- Find and : .
- Write the solution as an ordered pair.
- Check that the ordered pair is a solution to both original equations.
Solve using Cramer's Rule: Enter the solution as an ordered pair.
Evaluate , , and , then form and .Solve using Cramer's Rule: Enter the solution as an ordered pair.
Evaluate , , and , then form and .To solve a system of three equations with three variables with Cramer’s Rule, we basically do what we did for a system of two equations. However, we now have to solve for three variables to get the solution. The determinants are also going to be which will make our work more interesting!
Cramer’s Rule for solving a system of three equations. For the system of equations , the solution can be determined by
where
Example. Solve the system of equations using Cramer’s Rule:
Evaluate the determinant , using the coefficients of the variables, by expanding by minors using column :
Evaluate the determinant . Use the constants to replace the coefficients of , then expand by minors using column :
Evaluate the determinant . Use the constants to replace the coefficients of , then expand by minors using column :
Evaluate the determinant . Use the constants to replace the coefficients of , then expand by minors using column :
Find , , and , then write the solution as an ordered triple:
The solution is . We leave the check, that this ordered triple is a solution to all three original equations, to you.
Solve the system of equations using Cramer's Rule: Enter the solution as an ordered triple.
Evaluate using the coefficients of , then , , by replacing one column of coefficients at a time with the constants .Solve the system of equations using Cramer's Rule: Enter the solution as an ordered triple.
Evaluate using the coefficients of , then , , by replacing one column of coefficients at a time with the constants .Cramer’s Rule does not work when the value of the determinant is , as this would mean we would be dividing by . But when , the system is either inconsistent or dependent.
When the value of and , , and are all zero, the system is consistent and dependent and there are infinitely many solutions.
When the value of and , , and are not all zero, the system is inconsistent and there is no solution.
Dependent and inconsistent systems of equations. For any system of equations, where the value of the determinant ,
| Value of determinants | Type of system | Solution |
|---|---|---|
| and and are all zero | consistent and dependent | infinitely many solutions |
| and and are not all zero | inconsistent | no solution |
In the next example, we will use the values of the determinants to find the solution of the system.
Example. Solve the system of equations using Cramer’s Rule:
Evaluate the determinant , using the coefficients of the variables:
We cannot use Cramer’s Rule to solve this system. But by looking at the value of the determinants and , we can determine whether the system is dependent or inconsistent.
Since all the determinants are not zero, the system is inconsistent. There is no solution.
Use Cramer's Rule to solve
Evaluate first. If , check whether or is nonzero.Use Cramer's Rule to solve
Rewrite the first equation as , then evaluate , , and .Solve applications using determinants
An interesting application of determinants allows us to test if points are collinear. Three points , and are collinear if and only if the determinant below is zero.
Test for collinear points. Three points , and are collinear if and only if
We will use this property in the next example.
Example. Determine whether the points , , and are collinear.
Substitute the values into the determinant, then evaluate it by expanding by minors using column :
The value of the determinant is , so the points are collinear.
Determine whether the points , , and are collinear.
Form the determinant with the coordinates and a column of ; it is zero exactly when the points are collinear.Determine whether the points , , and are collinear.
Form the determinant with the coordinates and a column of ; it is zero exactly when the points are collinear.Key terms
square matrix — a matrix that has the same number of rows and columns. determinant — a real number associated with a square matrix; for , its value is . minor of an entry — in a determinant, the determinant found by eliminating the row and column that contain the entry. Cramer’s Rule — a method of solving a system of equations using the determinant of the coefficient matrix, , and the determinants , (and ) formed by replacing one column of coefficients with the constants; , and so on. collinear points — points that lie on the same line; three points are collinear if and only if the determinant formed from their coordinates and a column of is zero.
This section is adapted from Intermediate Algebra 2e, Section 4.6: Solve Systems of Equations Using Determinants by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: represented determinants and the sign-pattern chart with KaTeX vmatrix notation instead of the source’s crossed-out row/column diagrams, and its step tables as single display equality chains; recreated the Dependent and Inconsistent Systems table as a markdown table; omitted the Be Prepared quiz, Media links, self-check, and section exercises; and converted the source Try Its into interactive exercises with instant feedback, reducing multi-part items to a single part each.