Steply

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

2x − 5y = −1①

We call them ① and ②.

We want the x and y that make both true.

3x + 2y = 18②

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

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

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

2 times 2 is 4.

3 times (−5) is −15.

D = 4 − (−15)

Taking away a negative is adding: 4 + 15.

4 − (−15) = 4 + 15

4 minus (−15) is 19.

So D = 19.

D = 19

2 Find Dx

D x: the same, but the x column is replaced by the numbers on the right: −1 and 18.

Dx = |−1, −5; 18, 2|

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 = −1 × 2 − 18 × (−5).

Dx = −1 × 2 − 18 × (−5)

−1 times 2 is −2.

18 times (−5) is −90.

Dx = −2 − (−90)

Taking away a negative is adding: −2 + 90.

−2 − (−90) = −2 + 90

−2 minus (−90) is 88.

So D x = 88.

Dx = 88

3 Find Dy

D y: now the y column is replaced by −1 and 18.

Dy = |2, −1; 3, 18|

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

Dy = 2 × 18 − 3 × (−1)

2 times 18 is 36.

3 times (−1) is −3.

Dy = 36 − (−3)

Taking away a negative is adding: 36 + 3.

36 − (−3) = 36 + 3

36 minus (−3) is 39.

So D y = 39.

Dy = 39

4 Divide

x is D x over D: 88/19.

x = DxD = 8819

Made simpler: x = 88/19.

x = 8819

y is D y over D: 39/19.

y = DyD = 3919

Made simpler: y = 39/19.

y = 3919

So x = 88/19 and y = 39/19, both at the same time.

We write it as (88/19, 39/19).

(x, y) = (8819, 3919)

5 Check

Let's check in every equation.

We put x = 88/19, y = 39/19 into ①.

① 2(8819) − 5(3919) = 17619 − 19519 = −1

We get −1, the same as the right side.

Now ②.

② 3(8819) + 2(3919) = 26419 + 7819 = 18

We get 18, 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) = (8819, 3919)

Your turn

Try this one yourself, then check:

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

More from Cramer's rule

The whole lesson: Cramer's rule →