13.3 Using Cramer 'S Rule To Solve Systems: Definitions: Matrix
13.3 Using Cramer 'S Rule To Solve Systems: Definitions: Matrix
Definitions: Matrix
A matrix is a rectangular array of numbers written inside of brackets.
Each number in a matrix is called an entry, each horizontal set of numbers is called a row and
each vertical set of numbers is called a column.
Matrices come in a wide variety of sizes. When writing the size of a matrix, we always list the
rows first. So a 2x3 matrix would have 2 rows and 3 columns, for example.
Example1:
rd nd st
List the entries of the following matrix. What is the 3 entry of the 2 row and the 1 entry of the
rd
3 column?
1 5 2 6 8
0 3 2 7 6
10 0 4 1 3
Solution:
Since this matrix has 3 rows and 5 columns, it is a 3x5 matrix.
rd nd st rd
So, with this in mind, the 3 entry of the 2 row would be a 2, and the 1 entry of the 3 column
would be -2.
With the basic idea of a matrix now down, we need to talk about a couple of different kinds of
matrices. Namely, the coefficient matrix and the augmented matrix.
Example 2:
Write the coefficient matrix and the augmented matrix of the following systems.
2x y z 4
3x 2 y 3
a. b. y 3z 2
9x 8 y 0
3x 2 y 4
Solution:
a. The coefficient matrix is the matrix that is generated by coefficients, but not the constant terms
of the given system. The augmented matrix is generated by the coefficients and the constants of
the system. So this means we must have
3x 2 y 3 3 2 3 2 3
9 8 9 8 0
9x 8 y 0
Coefficient Matrix Augmented Matrix
b. Like in part a. above, we generate the coefficient matrix by only the coefficients and the
augmented matrix by using the entire system. This gives us
2x y z 4 2 1 1 2 1 1 4
y 3z 2 0 1 3 0 1 3 2
3x 2 y 4 3 2 0 3 2 0 4
Coefficient Matrix Augmented Matrix
There are a number of operations and other things we can do with a matrix, but for the sake of
simplicity, let’s take a look at only the operation that we need for solving systems. That is, the
operation of the determinant.
Definition: Determinant
A number associated with a square matrix. This number has numerous uses in a variety of
applications.
More important than the definition of a determinant is how we find a determinant. It varies slightly
depending on the size of your matrix. We will only look at evaluating a 2x2 and a 3x3
determinant since that is the size of the systems we will be solving.
Evaluating a Determinant
Determinant of a 2x2 matrix:
a b1
A 1
b2
The determinant of the matrix is given by
a 2
a b1
det A A 1 a1b2 a 2 b1
a 2 b2
Example 3:
Solution:
a. To find the determinant of a matrix, we simply need to follow the formula given above.
3 2 3 2
det 9 8
9 8
3 (8) 9 2
24 18
42
Notice that an easy way to remember the formula for a 2x2 determinant is to multiply along the
diagonals and subtract those products. Just make sure you put the first entry in the matrix as the
first product in the determinant.
b. Again, to find the determinant we just use the formula, that is, find the difference of the product
of the diagonals. We get
1 2
1 0 1 (2)
1 0
02
2
c. To find the determinant of a 3x3 matrix, we also just apply the formula. It’s just that the
formula is much larger. However, there is a pattern to it. Notice the first row is the number in
front of each “minor” determinant (with the pattern of + - + signs) and each “minor” determinant is
what we get by simply crossing out the corresponding row and column of the first row we are
using.
2 1 1 2 1 1
det 0 1 3 0 1 3 2
1 3 0 3 0 1
1 (1)
3 2 0 3 2 0 2 0 3 0 3 2
Now we simply have to evaluate the smaller determinants and finish our computations.
1 3 0 3 0 1
2 1 (1)
2 0 3 0 3 2
4 2 1
2 0 3 0 3 2
3 2 0 4 (2) 1
2 3 5 3 5 2
5 2 3
The determinant is a very powerful tool in matrices and can to numerous things. However, we
are only interested in using the determinant to solve systems of equations.
th
To do this we use something called Cramer’s Rule. This rule is named after 16 century Swiss
mathematician Gabriel Cramer.
a1 b1 c1 b1 a1 c1
D Dx Dy
a2 b2 c2 b2 a2 c2
Dx Dy
x y
D D
Although Cramer’s rule seems complicated, it’s merely a matter of computing the coefficient
matrix determinant and then computing that same determinant where each column is replaced by
the constants in the system. Then, generating the fractions to get the solution.
Example 4:
5x 9 y 7 2x 3 y 0
a. b.
3x 7 y 5 x y 1
Solution:
a. The first this we need to do is determine all of the determinants D , D x and D y . We use the
formulas given above to do so as follows.
a1 b1 c1 b1 a1 c1
D Dx Dy
a2 b2 c2 b2 a2 c2
5 9 7 9 5 7
D Dx Dy
3 7 5 7 3 5
This gives
Dx Dy
So then we just need to evaluate and y
x to get our solution. These give
D D
D 4 1 Dy 4 1
x x and y
D 8 2 D 8 2
1 1
So the solution is , .
2 2
b. As in part a. above, we need to determine the determinants in order to solve the system.
This gives
2 3 0 3 2 0
D Dx Dy
1 1 1 1 1 1
23 03 2 0
1 3 2
Dx 3 Dy 2
Calculating x and y we get x 3 and y 2
D 1 D 1
So the solution is (-3, 2).
Although solving a 2x2 system with Cramer’s Rule is not too difficult, it is a bit more time
consuming and labor intensive to do 3x3 systems as we see next.
a1 b1 c1 d1 b1 c1 a1 d1 c1 a1 b1 d1
D a2 b2 c2 Dx d 2 b2 c2 D y a2 d2 c2 Dz a2 b2 d2
a3 b3 c3 d3 b3 c3 a3 d3 c3 a3 b3 d3
Dx Dy Dz
x y z
D D D
As above with the 2x2 case, this seems complicated. However, it’s just a matter of calculating
several determinants and plugging the values in.
Example 5:
x y 2 z 4 x y z 2
a. 3x y 4 z 6 b. x yz 0
2x 3y 4z 4 4x 2 y z 3
Solution:
a. The first thing we need to do here is to evaluate all of the corresponding determinants. We
start with the coefficient determinant.
a1 b1 c1 1 1 2
1 4 3 4 3 1
D a2 b2 c2 3 1 4 1 (1) 2
3 4 2 4 2 3
a3 b3 c3 2 3 4
(4 12) (12 8) 2(9 2)
8 4 14
18
Now we compute the other determinants
d1 b1 c1 4 1 2
1 4 6 4 6 1
Dx d 2 b2 c2 6 1 4 4 (1) 2
3 4 4 4 4 3
d3 b3 c3 4 3 4
4(4 12) (24 16) 2(18 4)
32 40 44
36
a1 d1 c1 1 4 2
6 4 3 4 3 6
D y a2 d2 c2 3 6 4 1 (4) 2
4 4 2 4 2 4
a3 d3 c3 2 4 4
(24 16) 4(12 8) 2(12 12)
40 16 48
72
a1 b1 d1 1 1 4
1 6 3 6 3 1
Dz a 2 b2 d2 3 1 6 1 (1) (4)
3 4 2 4 2 3
a3 b3 d3 2 3 4
(4 18) (12 12) 4(9 2)
22 24 28
18
Now that we have that, we simply need to determine the solutions by the formulas
Dx Dy Dz
x y z
D D D
We get
36 72 18
x y z
18 18 18
2 4 1
So the solution to the system is (-2, 4, 1).
b. As we did in part a. above, we need to start by determining all of the determinants required for
Cramer’s Rule. We get
1 1 1 2 1 1 1 2 1 1 1 2
D 1 1 1 Dx 0 1 1 Dy 1 0 1 Dz 1 1 0
4 2 1 3 2 1 4 3 1 4 2 3
We will leave it to the reader to work through the details of these determinants. It can be shown
that these determinants give us
D6 Dx 12 D y 6 Dz 18
Plugging in gives us
Dx Dy Dz
x y z
D D D
12 6 18
6 6 6
2 1 3
So the solution to the system is (2, -1, -3).
The only real “hang-up” with Cramer’s Rule is the unfortunate situation in which the denominator
determinant ends up as zero. If this is the case, Cramer’s Rule does not work. You would have
to go back and solve the system using one of the other methods that you have learned for solving
a system.
13.3 Exercises
Write the coefficient matrix and the augmented matrix of the following systems.
x y 4 x 2y 0 x 2y 5
1. 2. 3.
x y 2 2x y 6 3x 6 y 4
x y 2z 9 x 10 x z4
4. y z
7
2
17
2
5. 3x 2 y 2 6. y 2
z3 x y 2z 0 4x z7
4 2 3 1 0 2
10. 5 4 11. 6 2 12. 1 0
2 1 2 2 2 1 0 1 0
0 1 0
14. 1 1 2
13.
15.
5 1 2
1 2 0 0 2 4 3 4 0
5 1 3 2 1 3 1 10 10
16.
6 3 2 17.
2 4 1
18. 0 1 5
5 4 1 4 2 6 0 0 1
x y 5 x y 1 1
2 x y 0
22. 23. 24.
2x y 4 3x y 5 x y 3
3x 2 y 6 y 3x y 6 x
25. 26. 27.
2 y 6 4 y 12 x 8 y x5
y x3 10 x 5 y 7 2x 5 y 1
28. 29. 30.
3x 2 y 9 2x y 4 4x 3 y 0
x 3 2y z 7 3x y 5
31. x y 3 32. 2x z 3 33. 3y z 2
y 2z 4 x y 3 x z 5
2x 3z 5 x yz 6 x y z2
34. 3y 2z 3 35. 2x y z 3 36. x 3y 2z 8
3x 4 y 10 3x z0 4x y 4
x y 8z 3 2x y z 4 3x y z 2
37. 2 x y 11z 4 38. y 3z 2 39. 4x 2z 1
x 3z 0 3x 2 y 4 5 x y 3z 0
2x z 1 x y 2 z 4 x y z 3
40. 5 y 3z 2 41. 3x y 4 z 6 42. 4 x y 3z 11
6 x 20 y 9 z 11 2x 3y 4z 4 2x 3y 2z 9
x 2 y 6z 5 x 2 y 2z 4 2 x y 3z 1
43. x y 2z 3 44. 2x 5 y 7z 5 45. 2 x 6 y 8z 3
x 4 y 2z 1 3x 7 y 9 z 10 6 x 8 y 18 z 5
4 x y 3z 11 2 x 5 y z 10 2 x 13 y 6 z 1
46. 2x 3y 2z 9 47. x 3y 4 48. x 3z 7
x y z 3 x 2 y 2z 9 2 x 10 y 8 z 8
3x 2 y 3z 4 3x 3 y 4 z 6 3x y 2 z 2
49. 2 x y 3z 2 50. 4 x 5 y 2 z 10 51. 4x 2 y 7z 0
3x 4 y 5 z 8 x 2 y 3z 4 2 x 3 y 5z 7