Intermediate Algebra 2e — Original English

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 [abcd], we first write it as |abcd|. To get the real number value of the determinant 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.

Evaluate the determinant of [4−23−1] [−3−4−20].

Solution

A 2x2 matrix is shown, containing the numbers 4, -2, 3, and -1. The first row elements are 4 and -2, while the second row elements are 3 and -1.
Write the determinant. A 2x2 matrix with values 4, -2, 3, -1, illustrating diagonal multiplication with blue arrows, often used for determinants.
Subtract the products of the diagonals. A mathematical expression showing 4 multiplied by -1, minus 3 multiplied by -2. The expression is 4(-1) - 3(-2).
Simplify. The mathematical expression -4 + 6 is displayed in a dark gray font against a white background, showing the addition of a negative number and a positive number.
Simplify. The numeral 2 is prominently displayed in the center of a plain white background, rendered in a dark gray hue with a slight gradient effect.



A 2x2 matrix is shown, containing the elements -3, -4 in the first row and -2, 0 in the second row, enclosed within square brackets.
Write the determinant. A mathematical diagram showing cross-multiplication with numbers -3, -4, -2, and 0 arranged in a grid, featuring diagonal blue arrows indicating pairings.
Subtract the products of the diagonals. An algebraic expression featuring multiplication and subtraction of integers: -3(0) - (-2)(-4).
Simplify. The image displays the numbers '0-8' in a simple, grayscale font on a plain white background, likely representing a range or identifier.
Simplify. A vertical representation of the number -8, with the minus sign positioned to the left of the numeral eight, against a plain white background.

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.

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.

For the determinant |4−2310−3−2−42|, find and then evaluate the minor of a1 b3 c2.

Solution

A 3x3 matrix with elements [4, -2, 3; 1, 0, -3; -2, -4, 2] enclosed by vertical bars, typically denoting a determinant or the absolute value of the matrix.
Eliminate the row and column that contains a1. A 3x3 matrix showing numerical values: top row is 4, -2, 3; middle row is 1, 0, -3; and bottom row is -2, -4, 2. Vertical and horizontal lines are drawn over some of the numbers.
Write the 2×2 determinant that remains. A mathematical expression showing the minor of a1 as a 2x2 matrix with elements 0, -3 in the first row and -4, 2 in the second row, enclosed by vertical lines indicating a determinant.
Evaluate. A mathematical expression 0(2) - (-3)(-4) is displayed, requiring calculation of a product of zero and two, minus the product of negative three and negative four.
Simplify. The image displays the number -12.



Eliminate the row and column that contains b3. A 3x3 matrix with values: 4, -2, 3 in the first row; 1, 0, -3 in the second; and 2, 4, 2 in the third. Light brown grid lines intersect between the numbers.
Write the 2×2 determinant that remains. The image shows the mathematical notation for the minor of b_3, which is represented by a 2x2 determinant with the first row containing 4 and 3, and the second row containing 1 and -3.
Evaluate. A mathematical expression displaying 4 multiplied by -3, followed by a subtraction sign, and then the product of 1 and 3.
Simplify. The number -15 is centrally displayed in a bold, sans-serif font against a plain white background, appearing as simple numerical text.



A 3x3 matrix with integer entries. The first row is 4, -2, 3. The second row is 1, 0, -3. The third row is -2, -4, 2.
Eliminate the row and column that contains c2. A 3x3 mathematical matrix is shown with elements 4, -2, 3; 1, 0, -3; -2, -4, 2. Red horizontal and vertical lines highlight specific rows and columns, indicating a calculation step.
Write the 2×2 determinant that remains. The image displays the mathematical expression 'minor of c₂' next to a 2x2 matrix. The matrix contains the elements 4, -2 in the first row and -2, -4 in the second row, enclosed by vertical bars.
Evaluate. A mathematical expression showing the calculation: 4 multiplied by -4, minus the product of -2 and -2.
Simplify. The number negative twenty (-20) isolated on a white background.

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.

Evaluate the determinant |2−3−1320−1−1−2| by expanding by minors along the first row.

Solution
A 3x3 matrix with numerical entries. The first row, in red, is 2, -3, -1. The second row is 3, 2, 0. The third row is -1, -1, -2.
Expand by minors along the first row Calculation of a 3x3 matrix determinant using cofactor expansion, with minors of 2, -3, and -1 explicitly shown.
Evaluate each determinant. A mathematical expression reads 2(4-0)+3(6-0)-1(-3-(-2)), presented in a horizontal line with red-orange coloring on the leading coefficients and plus/minus signs.
Simplify. A mathematical expression displays 2 multiplied by -4, added to 3 multiplied by -6, and then subtracting 1 multiplied by -1. The calculation is 2(-4) + 3(-6) - 1(-1).
Simplify. A mathematical expression displays the numbers -8, -18, and +1, representing an arithmetic problem involving addition and subtraction of integers.
Simplify. The number -25 is displayed in a dark gray font on a plain white background.

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.

|+++++|

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.

Solution

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.

A 3x3 determinant with elements: first row (4, -1, -3), second row (3, 0, 2) in red, and third row (5, -4, -3).
Expand using the second row.
Be careful of the signs. This image illustrates the process of calculating a 3x3 determinant using cofactor expansion. It shows the alternating sign pattern for cofactors and the terms for the expansion, where each term is a coefficient multiplied by its 2x2 minor.
Evaluate each determinant. A mathematical expression featuring negative numbers, parentheses, and arithmetic operations: -3(3-12)+0(-12-(-15))-2(-16-(-5)).
Simplify. A mathematical expression featuring negative numbers, multiplication, and addition/subtraction: -3(-9) + 0 - 2(-11).
Simplify. The image displays the mathematical expression '27 + 0 + 22' in bold, dark gray text against a plain white background.
Add. The number 49 is displayed.

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.

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.

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

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

Solution
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. 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. 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. 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. Step 5. Write the solution as an ordered pair minus 2, 0. Step 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!

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

Solution
Evaluate the determinant D. Matrix D with highlighted elements in the first column, showing their rows: (3, -5, 4), (5, 2, 1) and (2, 3, -2).
Expand by minors using column 1.
Be careful with the signs. Expansion of a 3x3 determinant by cofactors to calculate D.
Evaluate the determinants. A mathematical equation involving operations with whole numbers, including multiplication and subtraction within parentheses to be solved.
Simplify. The image shows the equation D = 3(-7) - 5(-2) + 2(-13), a mathematical operation with integers.
Simplify. A mathematical equation showing D is equal to negative 21 plus 10 minus 26.
Simplify. The image shows the equation D = -37.
Evaluate the determinant Dx. Use the
constants to replace the coefficients of x.
A 3x3 Dx matrix with elements 5, -5, 4 in the first row; 0, 2, 1 in the second; and 3, 3, -2 in the third. The first column is highlighted in red.
Expand by minors using column 1. Calculation of the determinant D_x using cofactor expansion, showing the algebraic sum of products of elements and subdeterminants.
Evaluate the determinants. A mathematical equation for Dx is shown on a white background: Dx = 5(-4-3) - 0(10-12) + 3(-5-8). The numbers 5, 0, and 3 are highlighted in red.
Simplify. Mathematical expression: Dx is equal to 5 multiplied by -7, minus 0, plus 3 multiplied by -13. Numbers in red highlight specific terms of the operation.
Simplify. The equation D subscript x equals -74 is displayed on a white background.
Evaluate the determinant Dy. Use the
constants to replace the coefficients of y.
The 3x3 matrix D_y with numeric elements, where the second column (5, 0, 3) is highlighted in red.
Math instructions: 'Expand by minors using column 2. Be careful with the signs.' A 3x3 matrix is ​​shown with the pattern of alternating signs (+ - + / - + - / + - +) to remember. Calculation of Dy through the expansion of a 3x3 determinant. The numbers in red indicate the elements used in the cofactor expansion for the first row.
Evaluate the determinants. A mathematical equation that calculates Dy: Dy = -5(-10-2) + 0(-10-12) - 3(3-20). Some numbers appear in red, possibly indicating key steps or coefficients.
Simplify. A mathematical equation, Dy = -5(-12) + 0 - 3(-17), is shown in black text on a white background, detailing a calculation with positive and negative integers.
Simplify. Equation showing Dy equal to the sum of 60, 0, and 51.
Simplify. D sub y is equal to 111.
Evaluate the determinant Dz. Use the
constants to replace the coefficients of z.
D_z matrix with the third column highlighted in red, showing the values ​​5, 0 and 3.
Expand by minors using column 3. Be careful with signs. (A sign matrix for cofactor expansion is shown) Calculation of the determinant D_x through expansion by cofactors.
Evaluate the determinants. A mathematical equation is displayed: Dx = 5(15-4) - 0(9-(-10)) + 3(6-(-25)).
Simplify. A mathematical expression for D subscript x showing the calculation as 5 multiplied by 11, minus 0, plus 3 multiplied by 31.
Simplify. Mathematical equation with D sub x equal to fifty-five minus zero plus ninety-three, showing a simple arithmetic operation.
Simplify. A close-up view of the equation Dx = 148 against a white background.
Find x, y, and z. Formulas to calculate x, y, and z using the determinants Dx, Dy, Dz, and the principal determinant D, as in Cramer's Rule.
Substitute in the values. The equations show values ​​for x, y, and z as fractions: x = -74/-37, y = 111/-37, and z = 148/-37.
Simplify. The values ​​of the variables are shown: x is equal to 2, y is equal to -3, and z is equal to -4.
Write the solution as an ordered triple. A set of three-dimensional coordinates, (2, -3, -4), is displayed in dark gray text against a plain white background.
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).

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.

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.

Solution

{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=-33

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

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

We will use this property in the next example.

Determine whether the points (5,−5), (4,−3), and (3,−1) are collinear.

Solution
Mathematical matrix or determinant showing three points (x1, y1), (x2, y2), (x3, y3) and a column of ones, commonly used in geometry for area calculations or collinearity tests.
Substitute the values into the determinant.
(5,−5), (4,−3), and (3,−1)
A 3x3 determinant is shown with values 5, -5, 1 in the first row; 4, -3, 1 in the second; and 3, -1, 1 in the third row.
Evaluate the determinant by expanding
by minors using column 3.
A mathematical expression showing the cofactor expansion of a 3x3 determinant, represented as a sum and difference of three 2x2 determinants with coefficients 1, -1, and 1.
Evaluate the determinants. A mathematical expression involving integers and operations is shown, featuring the sum and differences of parenthesized terms: 1(-4-(-9)) - 1(-5-(-15)) + 1(-15-(-20)).
Simplify. A mathematical expression 1(5) - 1(10) + 1(5) is shown on a white background, which simplifies to 0.
Simplify. A minimal black vertical line with a slight oval curvature is centered on a plain white background, creating a stark and simple abstract design.
The value of the determinant is 0, so the
points are collinear.

Key Concepts

  • Determinant: The determinant of any square matrix [abcd], where a, b, c, and d are real numbers, is
    |abcd|=adbc
  • 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.
  • Sign Pattern: When expanding by minors using a row or column, the sign of the terms in the expansion follow the following pattern.
    |+++++|
  • Cramer’s Rule: 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.
  • How to 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.
    7. 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
    8. Test for Collinear Points: Three points (x1,y1), (x2,y2), and (x3,y3) are collinear if and only if
      |x1y11x2y21x3y31|=0

Practice Makes Perfect

Evaluate the Determinant of a 2 × 2 Matrix

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

[6−23−1]

[−48−35]

Solution

4

[−350−4]

[−207−5]

Solution

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

Solution

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

Solution

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|

Solution

−77

|−2−3−45−67−120|

|13−25−640−2−1|

Solution

49

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

|−5−1−440−32−26|

|4−133−22−104|

Solution

−24

|354−130−261|

|2−4−35−1−4320|

Solution

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

Solution

(7,6)

{x3y=−92x+5y=4

{2x+y=−43x2y=−6

Solution

(−2,0)

{x2y=−52x3y=−4

{x3y=−92x+5y=4

Solution

(−3,2)

{5x3y=−12xy=2

{3x+8y=−32x+5y=−3

Solution

(−9,3)

{6x5y+2z=32x+y4z=53x3y+z=−1

{4x3y+z=72x5y4z=33x2y2z=−7

Solution

(−3,−5,4)

{2x5y+3z=83xy+4z=7x+3y+2z=−3

{11x+9y+2z=−97x+5y+3z=−74x+3y+z=−3

Solution

(2,−3,−2)

{x+2z=04y+3z=−22x5y=3

{2x+5y=43yz=34x+3z=−3

Solution

(−3,2,3)

{2y+3z=−15x+3y=−67x+z=1

{3xz=−35y+2z=−64x+3y=−8

Solution

(−2,0,−3)

{2x+y=36x+3y=9

{x4y=−1−3x+12y=3

Solution

infinitely many solutions

{−3xy=46x+2y=−16

{4x+3y=220x+15y=5

Solution

inconsistent

{x+y3z=−1yz=0x+2y=1

{2x+3y+z=12x+y+z=93x+4y+2z=20

Solution

inconsistent

{3x+4y3z=−22x+3yz=−12x+y2z=6

{x2y+3z=1x+y3z=73x4y+5z=7

Solution

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).

Solution

yes

(4,−3), (6,−4), and (2,−2).

(−2,1), (−4,4), and (0,−2).

Solution

yes

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.

Solution

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.

Solution

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?

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.