Steply

Solve y = x^2 - 6x + 5 and y = x - 5

Step by step, with the reason for every step · Nonlinear systems · Algebra 2

Step by step

The question

Question: solve y = x² − 6x + 5 and y = x − 5.

y = x2 − 6x + 5①

We call them ① and ②.

We want the points (x, y) that make both true.

y = x − 5②

① is a parabola, and ② is a line.

Not both lines, so this is called a nonlinear system.

y = ax² + ...: a parabola
y = mx + b: a line

1 Put ② into ①

In ②, y is already alone: y = x − 5.

Both ① and ② say what y is.

So the two right sides are equal.

x2 − 6x + 5 = x − 5

2 Get 0 on one side

We take x − 5 away from both sides.

x2 − 6x + 5 − x + 5 = x − 5 − x + 5

Careful!

The answers are points, not just x numbers.

After x, we must find each y.

Careful: each x needs its y: the answers are points

Now we have x² − 7x + 10 = 0.

x2 − 7x + 10 = 0

3 Factor

We need two numbers.

They multiply to 10, and they add to −7.

? × ? = 10
? + ? = −7

They multiply to a plus number, so the two numbers have the same sign.

They add to a minus number, so both are minus.

× is + → same signs: both −

We list the pairs that make 10, smallest first.

We add each pair.

We need 7.

2 and 5 give 7.

Yes!

With the signs: −2 and −5.

1 × 10: 1 + 10 = 11
2 × 5: 2 + 5 = 7 ✓

So it is (x − 2)(x − 5) = 0.

(x − 2)(x − 5) = 0

4 One bracket is 0

Two numbers multiply to 0.

That only happens if one of them is 0.

So one bracket must be 0.

A × B = 0 → A = 0 or B = 0

We make each bracket 0.

Two small equations.

x − 2 = 0 or x − 5 = 0

In x − 2 = 0, we add 2 on both sides.

In x − 5 = 0, we add 5 on both sides.

x − 2 + 2 = 0 + 2 or x − 5 + 5 = 0 + 5

So x = 2 or x = 5.

x = 2 or x = 5

5 Find y

Each x goes into the line ②: x = 2 gives y = −3.

y = 2 − 5 = −3

And x = 5 gives y = 0.

y = 5 − 5 = 0

So the two points are (2, −3) and (5, 0).

= (2, −3) and (5, 0)

6 Check

Let's check with a picture.

We draw both on a grid.

① is a parabola.

② is a line.

They meet at (2, −3) and (5, 0): our answers.

Let's check each point in both equations.

First (2, −3) in ①: the right side is −3, the same as y.

① (2, −3): 22 − 6(2) + 5 = 4 − 12 + 5 = −3

In ②: −3 again.

It works!

② (2, −3): y = 2 − 5 = −3

Now (5, 0) in ①: the right side is 0, the same as y.

① (5, 0): 52 − 6(5) + 5 = 25 − 30 + 5 = 0

In ②: 0 again.

It works!

② (5, 0): y = 5 − 5 = 0

Let's look back.

First: put ② into ①.

Then: get 0 on one side.

Then: factor.

Then: one bracket is 0.

Then: find y.

Last: check.

Answer
= (2, −3) and (5, 0)

Your turn

Try this one yourself, then check:

Solve y = x2 − 5x + 5, y = −2x + 5
Show the answer
(0, 5) and (3, −1)

More from Nonlinear systems

The whole lesson: Nonlinear systems →