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.
A General Note: Find the Determinant of a 2 × 2 Matrix
The determinant of a [latex]2\text{ }\times \text{ }2[/latex] matrix, given
is defined as
Notice the change in notation. There are several ways to indicate the determinant, including [latex]\mathrm{det}\left(A\right)[/latex] and replacing the brackets in a matrix with straight lines, [latex]|A|[/latex].
Example 1: Finding the Determinant of a 2 × 2 Matrix
Find the determinant of the given matrix.
Solution
[latex]\begin{array}{l}\mathrm{det}\left(A\right)=|\begin{array}{cc}5& 2\\ -6& 3\end{array}|\hfill \\ =5\left(3\right)-\left(-6\right)\left(2\right)\hfill \\ =27\hfill \end{array}[/latex]
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 of the 18th century and is named for its innovator, the Swiss mathematician Gabriel Cramer (1704–1752), who introduced it in 1750 in Introduction à l’Analyse des lignes Courbes algébriques. Cramer’s Rule is a viable and efficient method for finding solutions to systems with an arbitrary 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 of zero. To find out if the system is inconsistent or dependent, another method, such as elimination, will have to be used.
To understand Cramer’s Rule, let’s look closely at how we solve systems of linear equations using basic row operations. Consider a system of two equations in two variables.
We eliminate one variable using row operations and solve for the other. Say that we wish to solve for [latex]x[/latex]. If equation (2) is multiplied by the opposite of the coefficient of [latex]y[/latex] in equation (1), equation (1) is multiplied by the coefficient of [latex]y[/latex] in equation (2), and we add the two equations, the variable [latex]y[/latex] will be eliminated.
[latex]\begin{array}\text{ }b_{2}a_{1}x+b_{2}b_{1}y=b_{2}c_{1} \hfill& \text{Multiply }R_{1}\text{ by }b_{2} \\−b_{1}a_{2}x−b_{1}b_{2}y=−b_{1}c_{2} \hfill& \text{Multiply }R_{2}\text{ by }−b_{2} \\ \text{______________________} \\ b_{2}a_{1}x−b_{1}a_{2}x=−b_{2}c_{1}−b_{1}c_{2}\end{array}[/latex]
Now, solve for [latex]x[/latex].
Similarly, to solve for [latex]y[/latex], we will eliminate [latex]x[/latex].
Solving for [latex]y[/latex] gives
Notice that the denominator for both [latex]x[/latex] and [latex]y[/latex] is the determinant of the coefficient matrix.
We can use these formulas to solve for [latex]x[/latex] and [latex]y[/latex], but Cramer’s Rule also introduces new notation:
- [latex]D:[/latex] determinant of the coefficient matrix
- [latex]{D}_{x}:[/latex] determinant of the numerator in the solution of [latex]x[/latex]
[latex]x=\frac{{D}_{x}}{D}[/latex]
- [latex]{D}_{y}:[/latex] determinant of the numerator in the solution of [latex]y[/latex]
[latex]y=\frac{{D}_{y}}{D}[/latex]
The key to Cramer’s Rule is replacing the variable column of interest with the constant column and calculating the determinants. We can then express [latex]x[/latex] and [latex]y[/latex] as a quotient of two determinants.
A General Note: 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
If we are solving for [latex]x[/latex], the [latex]x[/latex] column is replaced with the constant column. If we are solving for [latex]y[/latex], the [latex]y[/latex] column is replaced with the constant column.
Example 2: Using Cramer’s Rule to Solve a 2 × 2 System
Solve the following [latex]2\text{ }\times \text{ }2[/latex] system using Cramer’s Rule.
Solution
Solve for [latex]x[/latex].
Solve for [latex]y[/latex].
The solution is [latex]\left(2,-3\right)[/latex].
Try It 1
Use Cramer’s Rule to solve the 2 × 2 system of equations.