Solve Systems of Equations Using Determinants

By the end of this section, you will be able to:

Before you get started, take this readiness quiz.

  1. Simplify: 5(−2)(−4)(1).

    If you missed this problem, review [link].

  2. Simplify: −3(810)+(−2)(63)4(−3(−4)).

    If you missed this problem, review [link].

  3. Simplify: −12−8.

    If you missed this problem, review [link].

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 [abcd],

we first write it as \|abcd\|.

To get the real number value of the determinate we subtract the products of the diagonals, as shown.

A 2 by 2 determinant is show, with its first row being a, b and second one being c, d. These values are written between two vertical lines instead of brackets as in the case of matrices. Two arrows are shown, one from a to d, the other from c to b. This determinant is equal to ad minus bc. <div data-type="note" markdown="1">

Determinant

The determinant of any square matrix [abcd],

where a, b, c, and d are real numbers, is

\|abcd\|=adbc

</div>

Evaluate the determinate of [4−23−1]

[−3−4−20].

* * *

| | . | {: valign=”top”}| Write the determinant. | . | {: valign=”top”}| Subtract the products of the diagonals. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}{: .unnumbered .unstyled summary=”Row 1 of the 2 by 2 matrix is 4, minus 2. Row 2 is 3, minus 1. The same is written in determinant form with diagonal arrows. Subtracting the products of the diagonals, we get 4 times minus 1 minus 3 times minus 2. We simplify to get 2.” data-label=””}



* * *

| | . | {: valign=”top”}| Write the determinant. | . | {: valign=”top”}| Subtract the products of the diagonals. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}{: .unnumbered .unstyled summary=”Row 1 of the 2 by 2 matrix is minus 3, minus 4. Row 2 is minus 2, 0. The same is written in determinant form with diagonal arrows. Subtracting the products of the diagonals, we get minus 3 times 0 minus minus 2 times minus 4. We simplify to get minus 8.” data-label=””}

Evaluate the determinate of [5−32−4]

[−4−607].

−14;

−28

Evaluate the determinate of [−13−24]

[−7−3−50].

2 −15

Evaluate the Determinant of a 3×3

Matrix

To evaluate the determinant of a 3×3

matrix, we have to be able to evaluate the minor of an entry in the determinant. The minor of an entry is the 2×2

determinant found by eliminating the row and column in the 3×3

determinant that contains the entry.

Minor of an entry in 3×3 a Determinant

The minor of an entry in a 3×3

determinant is the 2×2

determinant found by eliminating the row and column in the 3×3

determinant that contains the entry.

To find the minor of entry a1,

we eliminate the row and column which contain it. So we eliminate the first row and first column. Then we write the 2×2

determinant that remains.

The first row of the 3 by 3 determinant is a1, b1, c1. Row 2 is a2, b2, c2. Row 3 is a3, b3, c3. a1 is highlighted. Lines strike out the first row and the first column. What remains is called minor of a1. It is shown as a separate determinant whose first row is b2, c2 and second row is b3, c3. To find the minor of entry b2,

we eliminate the row and column that contain it. So we eliminate the 2nd row and 2nd column. Then we write the 2×2

determinant that remains.

The first row of the 3 by 3 determinant is a1, b1, c1. Row 2 is a2, b2, c2. Row 3 is a3, b3, c3. b2 is highlighted. Lines strike out the second row and second column. What remains is minor of b2. It is written as a separate determinant whose first row is a1, c1 and second row is a3, c3. <div data-type="example">

For the determinant \|4−2310−3−2−42\|,

find and then evaluate the minor of a1

b3

c2.

* * *

  .
{: valign=”top”} Eliminate the row and column that contains a1.
.  
{: valign=”top”} Write the 2×2

determinant that remains. | . | {: valign=”top”}| Evaluate. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}{: .unnumbered .unstyled summary=”The first row of the 3 by 3 determinant is 4, minus 2, 3. Row 2 is 1, 0, minus 3. Row 3 is minus 2, minus 4, 2. Eliminating the row and column containing a1, we get the minor of a1. This 2 by 2 determinant has row 1: 0, minus 3 and row 2: minus 4, 2. Evaluate and simplify to get minus 12.” data-label=””}



* * *

Eliminate the row and column that contains b3.
.  
{: valign=”top”} Write the 2×2

determinant that remains. | . | {: valign=”top”}| Evaluate. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}{: .unnumbered .unstyled summary=”The 3 by 3 matrix has row 1: 4, minus 2, 3, row 2: 1, 0, minus 3 and row 3: minus 2, minus 4, 2. Eliminating the row and column containing b3, we get minor of b3 with row 1: 4, 3 and row 2: 1, minus 3. Evaluate and simplify to get minus 15.” data-label=””}



* * *

  .
{: valign=”top”} Eliminate the row and column that contains c2.
.  
{: valign=”top”} Write the 2×2

determinant that remains. | . | {: valign=”top”}| Evaluate. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}{: .unnumbered .unstyled .can-break summary=”The 3 by 3 matrix has row 1: 4, minus 2, 3, row 2: 1, 0, minus 3 and row 3: minus 2, minus 4, 2. Eliminating the row and column containing c2, we get minor of c2 with row 1: 4, minus 2 and row 2: minus 2, 4. Evaluate and simplify to get 12” data-label=””}

</div>

For the determinant \|1−1402−1−2−33\|,

find and then evaluate the minor of a1

b2

c3.

3 11 2

For the determinant \|−2−1030−1−1−23\|,

find and then evaluate the minor of a2

b3

c2.

−3

2 3

We are now ready to evaluate a 3×3

determinant. To do this we expand by minors, which allows us to evaluate the 3×3

determinant using 2×2

determinants—which we already know how to evaluate!

To evaluate a 3×3

determinant by expanding by minors along the first row, we use the following pattern:

A 3 by 3 determinant is equal to a1 times minor of a1 minus b1 times minor of b1 plus c1 times minor of c1. Remember, to find the minor of an entry we eliminate the row and column that contains the entry.

Expanding by Minors along the First Row to Evaluate a 3×3 Determinant

To evaluate a 3×3

determinant by expanding by minors along the first row, the following pattern:

A 3 by 3 determinant is equal to a1 times minor of a1 minus b1 times minor of b1 plus c1 times minor of c1.

Evaluate the determinant \|2−3−1320−1−1−2\|

by expanding by minors along the first row.

| | . | {: valign=”top”}| Expand by minors along the first row | . | {: valign=”top”}| Evaluate each determinant. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}{: .unnumbered .unstyled summary=”The first row of the determinant is 2, minus 3, minus 1. Row 2 is 3, 2, 0. Row 3 is minus 1, minus 1, minus 2. Expanding by minors, we get 2 times minor of 2 minus 3 times minor of 3 plus minus 1 times minor of minus 1. Evaluating each determinant and simplifying, we get minus 25.” data-label=””}

Evaluate the determinant \|3−240−1−223−1\|,

by expanding by minors along the first row.

37

Evaluate the determinant \|3−2−22−14−10−3\|,

by expanding by minors along the first row.

7

To evaluate a 3×3

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 follow the following pattern.

\|+++++\|

Notice that the sign pattern in the first row matches the signs between the terms in the expansion by the first row.

A 3 by 3 determinant has row 1: plus, minus, plus, row 2: minus, plus, minus and row 3: plus, minus, plus. The three signs in the first row each point to a minor determinant in the expansion of a 3 by 3 determinant. Plus points to minor of a1, minus to the minor of b1 and plus to the minor of c1. Since we can expand by any row or column, how do we decide which row or column to use? Usually we try to pick a row or column that will make our calculation easier. If the determinant contains a 0, using the row or column that contains the 0 will make the calculations easier.

Evaluate the determinant \|4−1−33025−4−3\|

by expanding by minors.

To expand by minors, we look for a row or column that will make our calculations easier. Since 0 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.

| | . | {: valign=”top”}| Expand using the second row. | | {: valign=”top”}| Be careful of the signs. | . | {: valign=”top”}| Evaluate each determinant. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}| Simplify. | . | {: valign=”top”}| Add. | . | {: valign=”top”}{: .unnumbered .unstyled summary=”A 3 by 3 determinant has row 1 4, minus 1, minus 3, row 2: 3, 0, 2 and row 3 5, minus 4, minus 3. The second row is highlighted. Expand using the second row. Be careful of the signs. The middle row is minus, plus, minus. Expanding, we get minus 3 times minor of 3 plus 0 times minor of 0 minus 2 times minor of 2. Evaluating each minor determinant and simplifying, we get 49.” data-label=””}

Evaluate the determinant \|2−1−303−43−4−3\|

by expanding by minors.

−11

Evaluate the determinant \|−2−1−3−1224−40\|

by expanding by minors.

8

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 {a1x+b1y=k1a2x+b2y=k2,

the solution (x,y)

can be determined by

x is Dx upon D and y is Dy upon D where D is determinant with row 1: a1, b1 and row 2 a2, b2, use coefficients of the variables; Dx is determinant with row 1: k1, b1 and row 2: k2, b2, replace the x coefficients with the consonants; Dy is determinant with row 1: a1, k1 and row 2: a2, k2, replace the y coefficients with constants

Notice that to form the determinant D, we use take the coefficients of the variables.

The equations are a1x plus b1y equals k1 and a2x plus b2y equals k2. Here, a1, a2, b1, b2 are coefficients. The determinant is D with row 1: a1, b1 and row 2: a2, b2. Column 1 has coefficients of x and column 2 has coefficients of Notice that to form the determinant Dx

and Dy,

we substitute the constants for the coefficients of the variable we are finding.

The equations are a1x plus b1y equals k1 and a2x plus b2y equals k2. Here, a1, a2, b1, b2 are coefficients. The determinant is Dx has row 1: k1, b1 and row 2: k2, b2. Here columns 1 and 2 re constants and coefficients of y respectively. Determinant Dy has row 1: a1, k1 and row 2: a2, k2. Here, columns 1 and 2 are coefficients of x and constants respectively. <div data-type="example">

How to Solve a System of Equations Using Cramer’s Rule

Solve using Cramer’s Rule: {2x+y=−43x2y=−6.

![The equations are 2x plus y equals minus 4 and 3x minus 2y equals minus 6. Step 1. Evaluate the determinant D, using the coefficients of the variables. Determinant D has row 1: 2, 1 and row 2: 3, minus 2. So, D is minus 7.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_06_016a_img.jpg) ![Step 2. Evaluate the determinant Dx. Use the constants in place of the x coefficients. We replace the coefficients of x, 2 and 3, with the constants, negative 4 and negative 6. We get Dx equal to 14.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_06_016b_img.jpg) ![Step 3. Evaluate the determinant Dy. Use the constants in place of the y coefficients. We replace the coefficients of y, 1 and 2, with the constants, negative 4 and negative 6. We get Dy equal to 0.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_06_016c_img.jpg) ![Step 4. Find x and y. Substituting values of D, Dx and Dy in the equations x equal to Dx upon D and y equal to Dy upon D, we get x equal to minus 2 and y equal to 0.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_06_016d_img.jpg) ![Step 5. Write the solution as an ordered pair minus 2, 0.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_06_016e_img.jpg) ![Step 6. Check that the ordered pair is a solution to both original equations.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_06_016f_img.jpg)

</div>

Solve using Cramer’s rule: {3x+y=−32x+3y=6.

(157,247)

Solve using Cramer’s rule: {x+y=22x+y=−4.

(−2,0)
Solve a system of two equations using Cramer’s rule.
  1. Evaluate the determinant D, using the coefficients of the variables.
  2. Evaluate the determinant Dx.

    Use the constants in place of the x coefficients.

  3. Evaluate the determinant Dy.

    Use the constants in place of the y coefficients.

  4. Find x and y. x=DxD, y=DyD
  5. Write the solution as an ordered pair.
  6. Check that the ordered pair is a solution to both original equations.

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 3×3

which will make our work more interesting!

Cramer’s Rule for Solving a System of Three Equations

For the system of equations {a1x+b1y+c1z=k1a2x+b2y+c2z=k2a3x+b3y+c3z=k3,

the solution (x,y,z)

can be determined by

x is Dx upon D, y is Dy upon D and z is Dz upon D, where D is determinant with row 1: a1, b1, c1, row 2: a2, b2, c2, row 3: a3, b3, c3, use coefficients of the variables; Dx is determinant with row 1: k1, b1, c1, row 2: k2, b2, c2 and rwo 3: k3, b3, c3, replace the x coefficients with the consonants; Dy is determinant with row 1: a1, k1, c1, row 2: a2, k2, c2 and row 3: a3, k3, c3, replace the y coefficients with constants; Dz is determinant with row 1: a1, b1, k1; row 2: a2, b2, k2, row 3: a3, b3, k3; replace the z coefficients with constants.

Solve the system of equations using Cramer’s Rule: {3x5y+4z=55x+2y+z=02x+3y2z=3.

Evaluate the determinant D. .
Expand by minors using column 1.
. .
Evaluate the determinants. .
Simplify. .
Simplify. .
Simplify. .
Evaluate the determinant Dx. Use the
constants to replace the coefficients of x.
.
Expand by minors using column 1. .
Evaluate the determinants. .
Simplify. .
Simplify. .
Evaluate the determinant Dy. Use the
constants to replace the coefficients of y.
.
. .
Evaluate the determinants. .
Simplify. .
Simplify. .
Simplify. .
Evaluate the determinant Dz. Use the
constants to replace the coefficients of z.
.
. .
Evaluate the determinants. .
Simplify. .
Simplify. .
Simplify. .
Find x, y, and z. .
Substitute in the values. .
Simplify. .
Write the solution as an ordered triple. .
Check that the ordered triple is a solution
to all three original equations.
We leave the check to you.
The solution is (2,−3,−4).

Solve the system of equations using Cramer’s Rule: {3x+8y+2z=−52x+5y3z=0x+2y2z=−1.

(−9,3,−1)

Solve the system of equations using Cramer’s Rule: {3x+y6z=−32x+6y+3z=03x+2y3z=−6.

(−6,3,−2)

Cramer’s rule does not work when the value of the D determinant is 0, as this would mean we would be dividing by 0. But when D=0,

the system is either inconsistent or dependent.

When the value of D=0

and Dx,Dy

and Dz

are all zero, the system is consistent and dependent and there are infinitely many solutions.

When the value of D=0

and Dx,Dy

and Dz

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 D=0,


Value of determinantsType of systemSolutionD=0andDx,DyandDzare all zeroconsistent and dependentinfinitely many solutionsD=0andDx,DyandDzare not all zeroinconsistentno solution

In the next example, we will use the values of the determinants to find the solution of the system.

Solve the system of equations using Cramer’s rule : {x+3y=4−2x6y=3.

{x+3y=42x6y=3 Evaluate the determinantD,using thecoefficients of the variables.D=\|13−2−6\| D=−6(6)D=0

We cannot use Cramer’s Rule to solve this system. But by looking at the value of the determinants Dx

and Dy,

we can determine whether the system is dependent or inconsistent.

Evaluate the determinantDx.Dx=\|433−6\|Dx=−249Dx=15

Since all the determinants are not zero, the system is inconsistent. There is no solution.

Solve the system of equations using Cramer’s rule: {4x3y=88x6y=14.

no solution

Solve the system of equations using Cramer’s rule: {x=−3y+42x+6y=8.

infinite solutions

Solve Applications using Determinants

An interesting application of determinants allows us to test if points are collinear. Three points (x1,y1),

(x2,y2)

and (x3,y3)

are collinear if and only if the determinant below is zero.

\|x1y11x2y21x3y31\|=0
Test for Collinear Points

Three points (x1,y1),

(x2,y2)

and (x3,y3)

are collinear if and only if

\|x1y11x2y21x3y31\|=0

We will use this property in the next example.

Determine whether the points (5,−5),

(4,−3),

and (3,−1)

are collinear.

.
Substitute the values into the determinant.
(5,−5), (4,−3), and (3,−1)
.
Evaluate the determinant by expanding
by minors using column 3.
.
Evaluate the determinants. .
Simplify. .
Simplify. .
The value of the determinate is 0, so the
points are collinear.

Determine whether the points (3,−2),

(5,−3),

and (1,−1)

are collinear.

yes

Determine whether the points (−4,−1),

(−6,2),

and (−2,−4)

are collinear.

yes

Access these online resources for additional instruction and practice with solving systems of linear inequalities by graphing.

Key Concepts

Practice Makes Perfect

Evaluate the Determinant of a 2 × 2 Matrix

In the following exercises, evaluate the determinate of each square matrix.

[6−23−1]
[−48−35]

4

[−350−4]
[−207−5]

10

Evaluate the Determinant of a 3 × 3 Matrix

In the following exercises, find and then evaluate the indicated minors.

\|3−14−10−2−415\|

Find the minor a1

b2

c3

\|−1−324−2−1−20−3\|

Find the minor a1

b1

c2

6 −14

−6

\|2−3−4−12−30−1−2\|

Find the minor a2

b2

c2

\|−2−231−30−23−2\|

Find the minor a3

b3

c3

9 −3

8

In the following exercises, evaluate each determinant by expanding by minors along the first row.

\|−23−1−12−231−3\|
\|4−1−2−3−21−2−57\|
−77
\|−2−3−45−67−120\|
\|13−25−640−2−1\|

49

In the following exercises, evaluate each determinant by expanding by minors.

\|−5−1−440−32−26\|
\|4−133−22−104\|
−24
\|354−130−261\|
\|2−4−35−1−4320\|

25

Use Cramer’s Rule to Solve Systems of Equations

In the following exercises, solve each system of equations using Cramer’s Rule.

{−2x+3y=3x+3y=12
{x2y=−52x3y=−4
(7,6)
{x3y=−92x+5y=4
{2x+y=−43x2y=−6
(−2,0)
{x2y=−52x3y=−4
{x3y=−92x+5y=4
(−3,2)
{5x3y=−12xy=2
{3x+8y=−32x+5y=−3
(−9,3)
{6x5y+2z=32x+y4z=53x3y+z=−1
{4x3y+z=72x5y4z=33x2y2z=−7
(−3,−5,4)
{2x5y+3z=83xy+4z=7x+3y+2z=−3
{11x+9y+2z=−97x+5y+3z=−74x+3y+z=−3
(2,−3,−2)
{x+2z=04y+3z=−22x5y=3
{2x+5y=43yz=34x+3z=−3
(−3,2,3)
{2y+3z=−15x+3y=−67x+z=1
{3xz=−35y+2z=−64x+3y=−8
(−2,0,−3)
{2x+y=36x+3y=9
{x4y=−1−3x+12y=3

infinitely many solutions

{−3xy=46x+2y=−16
{4x+3y=220x+15y=5

inconsistent

{x+y3z=−1yz=0x+2y=1
{2x+3y+z=12x+y+z=93x+4y+2z=20

inconsistent

{3x+4y3z=−22x+3yz=−12x+y2z=6
{x2y+3z=1x+y3z=73x4y+5z=7

infinitely many solutions

Solve Applications Using Determinants

In the following exercises, determine whether the given points are collinear.

(0,1), (2,0),

and (−2,2).

(0,−5), (−2,−2),

and (2,−8).

yes

(4,−3), (6,−4),

and (2,−2).

(−2,1), (−4,4),

and (0,−2).

no

Writing Exercises

Explain the difference between a square matrix and its determinant. Give an example of each.

Explain what is meant by the minor of an entry in a square matrix.

Answers will vary.

Explain how to decide which row or column you will use to expand a 3×3

determinant.

Explain the steps for solving a system of equations using Cramer’s rule.

Answers will vary.

Self Check

After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

This table has 4 columns, 4 rows and a header row. The header row labels each column: I ca, confidently, with some help and no, I don’t get it. The first column has the following statements: Evaluate the Determinant of a 2 by 2 Matrix, Evaluate the Determinant of a 3 by 3 Matrix, Use Cramer’s Rule to Solve Systems of Equations, Solve Applications Using Determinants. The remaining columns are blank. After reviewing this checklist, what will you do to become confident for all objectives?

Glossary

determinant
Each square matrix has a real number associated with it called its determinant.

minor of an entry in a 3×3

determinant
The minor of an entry in a 3×3

determinant is the

2×2

determinant found by eliminating the row and column in the

3×3

determinant that contains the entry.

square matrix
A square matrix is a matrix with the same number of rows and columns.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

You can also download for free at http://cnx.org/contents/02776133-d49d-49cb-bfaa-67c7f61b25a1@4.13

Attribution: