
Amos J. answered 12/18/16
Tutor
4.9
(34)
Math and Physics
Hello Alissa,
So, Cramer's Rule is being taught in Algebra II now? I feel like each new generation of students is just getting smarter and smarter! :)
Given a system of equations:
a1x + b1y + c1z = d1
a2x + b2y + c2z = d2
a3x + b3y + c3z = d3,
where all of the as, bs, cs, and ds are constants, we can rewrite this system as a matrix equation:
⌈ a1 b1 c1 ⌉ ⌈ x ⌉ ⌈ d1 ⌉
| a2 b2 c2 |•| y | = | d2 |
⌊ a3 b3 c3 ⌋ ⌊ z ⌋ ⌊ d3 ⌋
Since it's really tough to type out these matrices, I'm going to call the left-hand matrix M, the middle matrix R, and the right-hand matrix D. That way we can write the above matrix equation as:
M • R = D.
Ok, cool.
Let's start filling in values for all of the constants in this equation. We're presented with the three equations:
- -3x + 4y - z = -5,
- x - y - z = -8,
- y + z = 3.
This means that:
- a1 = -3, b1 = 4, c1 = -1, and d1 = -5
- a2 = 1, b2 = -1, c2 = -1, and d2 = -8
- a3 = 0, b3 = 1, c3 = 1, and d3 = 3.
Now, before we can do anything else, we have to make sure that the determinant of M isn't equal to zero. So, let's calculate det(M). Since there's a zero in the bottom row of M, let's find the determinant by going across the bottom row:
det(M) = a3(b1c2 - c1b2) - b3(a1c2 - c1a2) + c3(a1b2 - b1a2)
= 0(doesn't matter) - 1{(-3)(-1) - (-1)(1)} + 1{(-3)(-1) - (4)(1)}
= 0 - 1(3 + 1) + 1(3 - 4)
= -4 - 1
det(M) = -5.
Okay, the determinant of M isn't zero. Great! We can move forward.
Cramer's Rule says that we can solve for the variables in a system of equations using only determinants. For a system of three equations and three variables,
x = det(Ma) / det(M)
y = det(Mb) / det(M)
z = det(Mc) / det(M)
The matrix Ma is the same as matrix M, except that a1 has been replaced with d1, a2 with d2, and a3 with d3.
Similarly, Mb is the same as matrix M, except that the bs have been replaced with the ds.
Finally, Mc is the same as matrix M, except that the cs have been replaced with the ds.
I'm going to go ahead and solve for z, as an example. I'll let you solve x on your own. First, let's write out the matrix Mc:
⌈ -3 4 -5 ⌉
Mc = | 1 -1 -8 |
⌊ 0 1 3 ⌋
The determinant of Mc is (we'll go across the bottom row because there's that convenient zero there):
det(Mc) = 0(doesn't matter) - 1{(-3)(-8) - (-5)(1)} + 3{(-3)(-1) - (4)(1)}
= 0 - 1(24 + 5) + 3(3 - 4)
= -29 - 3
det(Mc) = -32
Now, find z:
z = det(Mc) / det(M)
= -32 / -5
z = 6.4
Ok! Your turn. Solve for x. Good luck!