Step by step
The question
Question: solve 2x + z = 3, x − y − z = −1, x + y = 6 by Cramer's rule.
Three equations, three letters: x, y and z.
Cramer's rule, like with two equations: x is D x over D, y is D y over D, z is D z over D.
Four determinants, each by the diagonals.
1 Find D
D: the numbers in front of x, y and z, in their places.
We write the first two columns again, on the right.
Then every diagonal has three numbers.
Down: 2 × (−1) × 0, 0 × (−1) × 1, 1 × 1 × 1.
0, 0, 1.
Together: 1.
Up: 1 × (−1) × 1, 1 × (−1) × 2, 0 × 1 × 0.
−1, −2, 0.
Together: −3.
Down minus up: 1 minus (−3) is 4.
So D = 4.
2 Find Dx
D x: the x column is replaced by the right sides, 3, −1, 6.
Down: 3 × (−1) × 0, 0 × (−1) × 6, 1 × (−1) × 1.
0, 0, −1.
Together: −1.
Up: 6 × (−1) × 1, 1 × (−1) × 3, 0 × (−1) × 0.
−6, −3, 0.
Together: −9.
Down minus up: −1 minus (−9) is 8.
So D x = 8.
3 Find Dy
D y: the y column is replaced by the right sides, 3, −1, 6.
Down: 2 × (−1) × 0, 3 × (−1) × 1, 1 × 1 × 6.
0, −3, 6.
Together: 3.
Up: 1 × (−1) × 1, 6 × (−1) × 2, 0 × 1 × 3.
−1, −12, 0.
Together: −13.
Down minus up: 3 minus (−13) is 16.
So D y = 16.
4 Find Dz
D z: the z column is replaced by the right sides, 3, −1, 6.
Careful!
For D z we replace the z column, the third one.
The other two stay.
Down: 2 × (−1) × 6, 0 × (−1) × 1, 3 × 1 × 1.
−12, 0, 3.
Together: −9.
Up: 1 × (−1) × 3, 1 × (−1) × 2, 6 × 1 × 0.
−3, −2, 0.
Together: −5.
Down minus up: −9 minus (−5) is −4.
So D z = −4.
5 Divide
x is D x over D: 8/4 is 2.
y is D y over D: 16/4 is 4.
z is D z over D: −4/4 is −1.
So the answer is (2, 4, −1).
6 Check
Let's check in every equation.
We put x = 2, y = 4, z = −1 into ①.
We get 3, the same as the right side.
Now ②.
We get −1, the same as the right side.
Now ③.
We get 6, the same as the right side.
All of them work.
So the answer is right!
Let's look back.
First: find D.
Then: find Dx.
Then: find Dy.
Then: find Dz.
Then: divide.
Last: check.