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