3.5 Determinants and Cramer’s Rule
We have learned how to solve systems of equations in two variables and three variables, and by multiple methods: substitution, addition, Gaussian elimination, using the inverse of a matrix, and graphing. Some of these methods are easier to apply than others and are more appropriate in certain situations. In this section, we will study two more strategies for solving systems of equations.
Evaluating the Determinant of a 2×2 Matrix
A determinant is a real number that can be very useful in mathematics because it has multiple applications, such as calculating area, volume, and other quantities. Here, we will use determinants to reveal whether a matrix is invertible by using the entries of a square matrix to determine whether there is a solution to the system of equations. Perhaps one of the more interesting applications, however, is their use in cryptography. Secure signals or messages are sometimes sent encoded in a matrix. The data can only be decrypted with an invertible matrix and the determinant. For our purposes, we focus on the determinant as an indication of the invertibility of the matrix. Calculating the determinant of a matrix involves following the specific patterns that are outlined in this section.
Find the Determinant of a 2 2 Matrix
The determinant of 2 2 matrix, given
is defined as:
det
Notice that for determinants, we use straight vertical lines. In other words, det.
Does look familiar? It should. Remember this was the denominator in the scalar we multiply to the 2 2 matrix with the diagonals switched and the off-diagonals opposite to create the inverse. So the inverse of a 2 2 matrix like above would be:
Example Finding the Determinant of a 2 2 Matrix
Find the determinant of the given matrix
det
Using Cramer’s Rule to Solve a System of Two Equations in Two Variables
We will now introduce a final method for solving systems of equations that uses determinants. Known as Cramer’s rule, this technique dates back to the middle 18th century and is named for its innovator, the Swiss mathematician Gabriel Cramer (1704-1752), who introduced it in 1750. Cramer’s Rule is a viable and efficient method for finding solutions to systems with any number of unknowns, provided that we have the same number of equations as unknowns.
Cramer’s Rule will give us the unique solution to a system of equations, if it exists. However, if the system has no solution or an infinite number of solutions, this will be indicated by a determinant, . Inconsistent Solutions have at least one numerator determinant that is non-zero. Dependent solutions have zero as the determinant in both the numerators. Another method must be used to find the general solution.
To see how and why Cramer’s Rule works, we will direct you to the source material at OpenStax College Algebra.
In short, Cramer’s rule begins with a system of equations, such as:
and we can show that
Notice that the denominator for both and is the determinant of the coefficient matrix.
We can use these formulas to solve for and but Cramer’s Rule also introduces new notation:
- : determinant of the coefficient matrix
- : determinant of the matrix created by the coefficient matrix with the -coefficient replaced by the constants
- : determinant of the matrix created by the coefficient matrix with the -coefficient replaced by the constants
Notice that they key to Cramer’s Rule is replacing the variable column of interest with the constant column and calculating the determinants. We can then express and as:
Cramer’s Rule for 2 2 Systems
Cramer’s Rule is a method that uses determinants to solve systems of equations that have the same number of equations as variables.
Consider a system of two linear equations in two variables.
The solution using Cramer’s Rule is given as:
For
If we are solving for , the column is replaced with the constant column. If we are solving for , the column is replaced with the constant column.
Example Using Cramer’s Rule to Solve a System
Solve the following system using Cramer’s Rule
Find
Find
Find
The solution is (2,-3).
Try it Now 1
Use Cramer’s Rule to solve system of equations.
Evaluating the Determinant of a Matrix
Finding the determinant of a matrix is straightforward, but finding the determinant of a matrix is more complicated. One method is to augment the matrix with a repeat of the first two columns, giving a matrix. Then we calculate the sum of the products of entries down each of the three diagonals (upper left to lower right) and subtract the products of the entries up each of the three opposite diagonals (lower left to upper right). This is more easily understood with a visual and an example.
Find the determinant of the matrix.
Step 1: Augment with the first two columns:
Step 2: From upper left to lower right: Multiply the entries down the first diagonal. , then start at and multiply left to right diagonally and then . Add those three products.
Step 3: Now from upper right: Multiply the entries down the reverse diagonal. , then start at and multiply right to left diagonally and then . Add those three products and subtract that value from the one in step 2.
The algebra is as follows:
Example Finding the Determinant of a
Find the determinant of matrix :
Augment the matrix with the first two columns and then follow the formula. Thus,
Determinants can also be found using technology. Once a matrix is entered into your calculator. Going to MATRIX – MATH and det and calling up the matrix in question will provide the determinant for a matrix. In Excel, =mdeterm will find the determinant of a matrix as well. The methods mentioned in this section only work for the specified size. For larger matrices, it is recommended to use a calculator, Excel, or another program.
Try it Now 2
Find the determinant of the matrix .
det
Using Cramer’s Rule to Solve a System of Three Equations in Three Variables
Now that we can find the determinant of a matrix, we can apply Cramer’s Rule to solve a system of three equations and three unknowns. Cramer’s Rule for systems follows the same pattern as for systems. However, there are more calculations required.
Consider the system:
where:
If we are writing the determinant , we replace the column with the constant column. If we are writing the determinant , we replace the column with the constant column. If we are writing the determinant , we replace the column with constant column. Always check the answer.
Example Solving a System Using Cramer’s Rule
Solve the following system using Cramer’s Rule.
Use Cramer’s Rule.
Then,
The solution is (1,3,-2).
Try it Now 3
Use Cramer’s Rule to solve the system:
Examples of Cramer’s Rule when D = 0
a. Solve the system of equations (if possible) using Cramer’s Rule.
We begin by finding determinants:
Now we know that it is either dependent or inconsistent. Let’s see one of the other determinants.
Since -16 \neq 0, we have an inconsistent solution.
b. Solve the following system of equations (if possible, or give general solution if dependent).
Let’s find D using technology, via calculator or Excel.
We know that this is a dependent or inconsistent system. We could find all three of the other determinants to see if it is dependent and if it is, we’d then have to use rref in a calculator to find a general solution. For this reason, it’s faster to simply use rref now. There is an online version by planetcalc.
The reduced row echelon form of the matrix is:
As equations, these are:
So if is any real number then:
Properties of Determinants
Here are few properties that may make find determinants quicker and easier.
- If the matrix is in the upper triangular form (the bottom triangle below the diagonal is all 0’s), then the determinant equals the product of the entries down the main diagonal.
- When two rows are interchanged, the determinant changes sign.
- If either two rows or two columns are identical, the determinant is zero.
- If a matrix contains either a row or column of 0’s, the determinant is 0.
- The determinant of an inverse matrix is the reciprocal of the determinant of the matrix .
- If any row or column is multiplied by a constant, the determinant is multiplied by the same factor.
Try it Now Answers
Media Attributions
- takenote is licensed under a Public Domain license
- This section adapted from OpenStax College Algebra by Jay Abramson, Arizona State University, et. al. under a Creative Commons License 4.0 CC-BY ↵