Steply

Solve 2x + y = 8, x + y = 5 by Cramer's rule

Step by step, with the reason for every step · Cramer's rule · Algebra 2

Step by step

The question

Question: solve 2x + y = 8 and x + y = 5 by Cramer's rule.

2x + y = 8①

We call them ① and ②.

We want the x and y that make both true.

x + y = 5②

Cramer's rule uses three determinants: D, D x and D y.

Then x is D x over D, and y is D y over D.

x = DxD, y = DyD

1 Find D

D: the numbers in front of x and y, in the same places as in the equations.

D = |2, 1; 1, 1|

So D = 2 × 1 − 1 × 1.

D = 2 × 1 − 1 × 1

2 times 1 is 2.

1 times 1 is 1.

D = 2 − 1

2 minus 1 is 1.

So D = 1.

D = 1

2 Find Dx

D x: the same, but the x column is replaced by the numbers on the right: 8 and 5.

Dx = |8, 1; 5, 1|

Careful!

For D x, we replace the x column: the first one.

The y column stays.

Careful: not the y column replaced ✗

So D x = 8 × 1 − 5 × 1.

Dx = 8 × 1 − 5 × 1

8 times 1 is 8.

5 times 1 is 5.

Dx = 8 − 5

8 minus 5 is 3.

So D x = 3.

Dx = 3

3 Find Dy

D y: now the y column is replaced by 8 and 5.

Dy = |2, 8; 1, 5|

So D y = 2 × 5 − 1 × 8.

Dy = 2 × 5 − 1 × 8

2 times 5 is 10.

1 times 8 is 8.

Dy = 10 − 8

10 minus 8 is 2.

So D y = 2.

Dy = 2

4 Divide

x is D x over D: 3/1.

x = DxD = 31

3 divided by 1 is 3.

So x = 3.

x = 3

y is D y over D: 2/1.

y = DyD = 21

2 divided by 1 is 2.

So y = 2.

y = 2

So x = 3 and y = 2, both at the same time.

We write it as (3, 2).

(x, y) = (3, 2)

5 Check

Let's check in every equation.

We put x = 3, y = 2 into ①.

① 2(3) + 2 = 6 + 2 = 8

We get 8, the same as the right side.

Now ②.

② 3 + 2 = 5

We get 5, the same as the right side.

Both work.

So the answer is right!

Let's look back.

First: find D.

Then: find Dx.

Then: find Dy.

Then: divide.

Last: check.

Answer
(x, y) = (3, 2)

Your turn

Try this one yourself, then check:

Solve 2x + y = 11, 2x + 2y = 16
Show the answer
(x, y) = (3, 5)

More from Cramer's rule

The whole lesson: Cramer's rule →