Steply

Solve x + 3y = 5, 2x - y = 10 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 x + 3y = 5 and 2x − y = 10 by Cramer's rule.

x + 3y = 5①

We call them ① and ②.

We want the x and y that make both true.

2x − y = 10②

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 = |1, 3; 2, −1|

So D = 1 × (−1) − 2 × 3.

D = 1 × (−1) − 2 × 3

1 times (−1) is −1.

2 times 3 is 6.

D = −1 − 6

−1 minus 6 is −7.

So D = −7.

D = −7

2 Find Dx

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

Dx = |5, 3; 10, −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 = 5 × (−1) − 10 × 3.

Dx = 5 × (−1) − 10 × 3

5 times (−1) is −5.

10 times 3 is 30.

Dx = −5 − 30

−5 minus 30 is −35.

So D x = −35.

Dx = −35

3 Find Dy

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

Dy = |1, 5; 2, 10|

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

Dy = 1 × 10 − 2 × 5

1 times 10 is 10.

2 times 5 is 10.

Dy = 10 − 10

10 minus 10 is 0.

So D y = 0.

Dy = 0

4 Divide

x is D x over D: −35 over (−7).

x = DxD = −35−7

−35 divided by (−7) is 5.

So x = 5.

x = 5

y is D y over D: 0 over (−7).

y = DyD = 0−7

0 divided by (−7) is 0.

So y = 0.

y = 0

So x = 5 and y = 0, both at the same time.

We write it as (5, 0).

(x, y) = (5, 0)

5 Check

Let's check in every equation.

We put x = 5, y = 0 into ①.

① 5 + 3(0) = 5 + 0 = 5

We get 5, the same as the right side.

Now ②.

② 2(5) − 0 = 10 + 0 = 10

We get 10, 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) = (5, 0)

Your turn

Try this one yourself, then check:

Solve x + 3y = 14, 3x − y = 2
Show the answer
(x, y) = (2, 4)

More from Cramer's rule

The whole lesson: Cramer's rule →