Step by step
The question
Question: solve x − y + z = 1, 3x − y + z = 5, 2x + y + z = 9 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: 1 × (−1) × 1, −1 × 1 × 2, 1 × 3 × 1.
−1, −2, 3.
Together: 0.
Up: 2 × (−1) × 1, 1 × 1 × 1, 1 × 3 × (−1).
−2, 1, −3.
Together: −4.
Down minus up: 0 minus (−4) is 4.
So D = 4.
2 Find Dx
D x: the x column is replaced by the right sides, 1, 5, 9.
Down: 1 × (−1) × 1, −1 × 1 × 9, 1 × 5 × 1.
−1, −9, 5.
Together: −5.
Up: 9 × (−1) × 1, 1 × 1 × 1, 1 × 5 × (−1).
−9, 1, −5.
Together: −13.
Down minus up: −5 minus (−13) is 8.
So D x = 8.
3 Find Dy
D y: the y column is replaced by the right sides, 1, 5, 9.
Down: 1 × 5 × 1, 1 × 1 × 2, 1 × 3 × 9.
5, 2, 27.
Together: 34.
Up: 2 × 5 × 1, 9 × 1 × 1, 1 × 3 × 1.
10, 9, 3.
Together: 22.
Down minus up: 34 minus 22 is 12.
So D y = 12.
4 Find Dz
D z: the z column is replaced by the right sides, 1, 5, 9.
Careful!
For D z we replace the z column, the third one.
The other two stay.
Down: 1 × (−1) × 9, −1 × 5 × 2, 1 × 3 × 1.
−9, −10, 3.
Together: −16.
Up: 2 × (−1) × 1, 1 × 5 × 1, 9 × 3 × (−1).
−2, 5, −27.
Together: −24.
Down minus up: −16 minus (−24) is 8.
So D z = 8.
5 Divide
x is D x over D: 8/4 is 2.
y is D y over D: 12/4 is 3.
z is D z over D: 8/4 is 2.
So the answer is (2, 3, 2).
6 Check
Let's check in every equation.
We put x = 2, y = 3, z = 2 into ①.
We get 1, the same as the right side.
Now ②.
We get 5, the same as the right side.
Now ③.
We get 9, 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.