Steply

Line (-3, 4) (3, 0)

Step by step, with the reason for every step · Equation of a line through two points · Algebra 1

Step by step

The question

Question: find the equation of the line through (−3, 4) and (3, 0).

(−3, 4) and (3, 0)

Every line that is not straight up and down is y = mx + b.

m is the slope.

b is where the line crosses the y-axis: where we start.

So we need m and b.

y = mx + b
m = slope
b = start

1 Find the slope

We call the slope m.

m = rise over run.

m = riserun

The top is the change in y: second y minus first y.

The bottom is the change in x: second x minus first x.

m = y2 − y1x2 − x1

Put the numbers in.

The second point is (3, 0).

The first point is (−3, 4).

m = 0 − 43 − (−3)

Taking away a negative is the same as adding.

− (−) = +

So it becomes (0 − 4)/(3 + 3).

m = 0 − 43 + 3

0 minus 4 is −4.

3 plus 3 is 6.

m = −46

We can make 4/6 simpler: divide top and bottom by 2.

The minus stays.

So m = −2/3.

m = −23

2 Find b

In y = mx + b, put m = −2/3.

Then use the point (−3, 4): put x = −3 and y = 4 in.

4 = −23 × (−3) + b

Minus times minus is plus.

−2/3 times −3 is 2.

4 = 2 + b

We want b by itself.

The 2 is in the way.

To remove 2, we take away 2.

We do it on both sides, so they stay equal.

4 − 2 = 2 + b − 2

2 and − 2 make zero.

Cross them out.

4 minus 2 is 2.

So b = 2.

2 = b

3 Write the equation

Put m = −2/3 and b = 2 into y = mx + b.

So the line is y = −(2/3)x + 2.

y = −23x + 2

4 Check

Let's check: put x = −3 in.

We get 4, the y of (−3, 4).

y = −23(−3) + 2 = 2 + 2 = 4

Now x = 3 in.

We get 0, the y of (3, 0).

y = −23(3) + 2 = −2 + 2 = 0

Let's see it.

Both points are on the line y = −(2/3)x + 2.

And it crosses the y-axis at 2, just like b says.

Let's look back.

First: find the slope.

Then: find b.

Then: write the equation.

Last: check.

Answer
y = −23x + 2

Your turn

Try this one yourself, then check:

Find the equation of the line through (−3, 6) and (3, 0)
Show the answer
y = −x + 3

More from Equation of a line through two points

The whole lesson: Equation of a line through two points →