Cramer’s Rule for a 3×3 System (with Three Variables)
In our previous lesson, we studied how to use Cramer’s Rule with two variables. Our goal here is to expand the application of Cramer’s Rule to three variables usually in terms of [latex]\large{x}[/latex], [latex]\large{y}[/latex], and [latex]\large{z}[/latex]. I will go over five (5) worked examples to help you get familiar with this concept.
To do well on this topic, you need to have an idea of how to find the determinant of a 3⨉3 matrix. So, this is what we are going to do first. Ready?
Formula to Find the Determinant of a 3⨉3 Matrix
- Given a 3⨉3 matrix
- Its determinant can be calculated using the following formula.
Let’s do a quick example of this.
Find the determinant of matrix A
Solution: Make sure that you follow the formula on how to find the determinant of a 3×3 matrix carefully, as shown above. More so, don’t rush when you perform the required arithmetic operations in every step. This is where common errors usually occur, but it can be prevented. When you do it right, your solution should be similar to the one below.
Now, it’s time to go over the procedure on how to use Cramer’s Rule in a linear system involving three variables.
Cramer’s Rules for Systems of Linear Equations with Three Variables
- Given a linear system
- Labeling each of the four matrices
coefficient matrix:
X – matrix:
Y – matrix:
Z – matrix:
- To solve for [latex]x[/latex]:
- To solve for [latex]y[/latex]:
- To solve for [latex]z[/latex]:
Things to observe from the setup above:
1) The coefficients of variables [latex]x[/latex], [latex]y[/latex], and [latex]z[/latex] make use of subscripted [latex]a[/latex], [latex]b[/latex], and [latex]c[/latex], respectively. While the constant terms use subscripted [latex]d[/latex].
2) The denominators to find the values of [latex]x[/latex], [latex]y[/latex], and [latex]z[/latex] are all the same which is the determinant of the coefficient matrix (coefficients coming from the columns of [latex]x[/latex], [latex]y[/latex], and [latex]z[/latex]).
3) To solve for [latex]x[/latex], the coefficients of the [latex]x-[/latex]column is replaced by the constant column (in red).
4) To solve for [latex]y[/latex], the coefficients of the [latex]y-[/latex]column is replaced by the constant column (in red).
5) In the same manner, to solve for [latex]z[/latex], the coefficients of the [latex]z-[/latex]column is replaced by the constant column (in red).
Examples of How to Solve Systems of Linear Equations with Three Variables using Cramer’s Rule
Example 1: Solve the system with three variables by Cramer’s Rule.
From the given system of linear equations, I will construct the four matrices that will be used to solve for the values of [latex]\large{\color{green}x}[/latex], [latex]\large{\color{green}y}[/latex], and [latex]\large{\color{green}z}[/latex].
Use the guide above to correctly set up these special matrices.
- coefficient matrix
- X – matrix
- Y – matrix
- Z – matrix
Next, I will solve for the determinant of each matrix. To do this, I can manually solve the determinant of each matrix on paper using the formula provided above. It can be tedious, but it’s okay since good math skills are developed by doing lots of problems.
The values of the determinants are listed below.
Determinants of each matrix:
The final answers or solutions are easily computed or calculated once all the required determinants are found.
Solved values for [latex]\large{\color{green}x}[/latex], [latex]\large{\color{green}y}[/latex], and [latex]\large{\color{green}z}[/latex].
The final answer written in point notation is [latex]\color{blue}\left( {x,y,z} \right) = \left( { – 1,1, – 2} \right)[/latex].
Example 2: Solve the system with three variables by Cramer’s Rule.
I actually consider the coefficient matrix as the “primary” matrix because the other three matrices are derived from it. For instance, the [latex]x-[/latex]matrix is just the “primary” matrix with the [latex]x-[/latex]column replaced by the constant column (in red). You can observe that the same pattern is applied in constructing the other matrices: [latex]y[/latex] and [latex]z[/latex].
- coefficient matrix
- X – matrix
- Y – matrix
- Z – matrix
After solving the determinant of each matrix, I have them all written down.
Determinants of each matrix:
The values for [latex]x[/latex], [latex]y[/latex] and [latex]z[/latex] are calculated as follows. Notice that [latex]x[/latex] is obtained by taking the determinant of the [latex]x-[/latex]matrix divided by the determinant of the coefficient matrix. This rule holds for the rest.
Solved values for [latex]\large{\color{green}x}[/latex], [latex]\large{\color{green}y}[/latex], and [latex]\large{\color{green}z}[/latex].
Our final answer is [latex]\color{blue}\left( {x,y,z} \right) = \left( { – \,4,2,1} \right)[/latex].
Example 3: Solve the system with three variables by Cramer’s Rule.
This problem is much easier than the first two examples because of the presence of zero entries in the [latex]x[/latex], [latex]y[/latex], and constant columns. Do you see it? When we have zero entries in a matrix, the calculation of its determination is dramatically simplified.
In fact, as you increase the number of zeroes in a square matrix, the work done to find its determinant is greatly reduced.
Here are the matrices extracted from the system of linear equations.
- coefficient matrix
- X – matrix
- Y – matrix
- Z – matrix
Solving for their determinants, I got the following values.
Determinants of each matrix:
This leads us to easily set up and calculate the final answers.
Solved values for [latex]\large{\color{green}x}[/latex], [latex]\large{\color{green}y}[/latex], and [latex]\large{\color{green}z}[/latex].
The final answer is [latex]\color{blue}\left( {x,y,z} \right) = \left( { – \,1,6,1} \right)[/latex].
Example 4: Solve the system with three variables by Cramer’s Rule
Write down the four special matrices.
- coefficient matrix
- X – matrix
- Y – matrix
- Z – matrix
Evaluate each matrix to find its determinant.
These are the determinants of each matrix:
Use the Cramer’s Rule to get the following solutions.
Solved values for [latex]\large{\color{green}x}[/latex], [latex]\large{\color{green}y}[/latex], and [latex]\large{\color{green}z}[/latex].
The final answer is [latex]\color{blue}\left( {x,y,z} \right) = \left( { – \,1,2,0} \right)[/latex].
Example 5: Solve the system with three variables by Cramer’s Rule
Let’s do one final example! I hope that at this point, you have had enough practice on how to solve systems with three variables using Cramer’s Rule.
I suggest that you solve this on paper first and then come back to compare your answer. When you are ready, scroll down to see the solution.
Construct the four special matrices.
- coefficient matrix
- X – matrix
- Y – matrix
- Z – matrix
Find the determinant of each square matrix.
Determinants of each matrix
Solve for [latex]x[/latex], [latex]y[/latex] and [latex]z[/latex] using the given formula.
Solved values for [latex]\large{\color{green}x}[/latex], [latex]\large{\color{green}y}[/latex], and [latex]\large{\color{green}z}[/latex].
Done! The final answer in point form is [latex]\color{blue}\left( {x,y,z} \right) = {\large{\left( { – \,3, – {4 \over 5},{3 \over 5}} \right)}}[/latex].
You may also be interested in these related math lessons or tutorials: