Chalk−1

Math · College algebra · Worked example

Find the equation of a line through two points

Find the equation of the line through (−2,7) and (4,−2) in slope-intercept form.

Try one — Chalk checks each line

Find the slope

Subtract in the same order on top and bottom, the second point minus the first.

−2−74−(−2)=−32

Use point-slope form

Start from the point (−2,7) with slope −3⁢/2: y−7=−(3⁢/2)⁢(x+2). Add 7 to both sides and expand to reach slope-intercept form.

y=7−32⁢(x+2)y=−32x+4

Read the intercept

The line crosses the y-axis at (0,4). From any point on it, 2 units to the right the line is 3 units lower.

Check the other point

At x=4 the line gives y=−2, the second point.

−32⁢(4)+4=−2

Result

y=−(3⁢/2)⁢x+4, with slope −3⁢/2 and y-intercept 4.

Your turn

1. One like the example

Find the equation of the line through (1,−3) and (5,5).

Show the answer and explanation

y=2⁢x−5.

The slope is (5−(−3))⁢/⁢(5−1) =8⁢/4 =2. Then y=−3+2⁢(x−1) =2⁢x−5, and x=5 gives y=5 as it should.

y=−3+2⁢(x−1)y=2⁢x−5

2. A variation

A line crosses the x-axis at 6 and the y-axis at −4. Write its equation in slope-intercept form.

Show the answer and explanation

y=(2⁢/3)⁢x−4.

The intercepts are the points (6,0) and (0,−4). The slope is (−4−0)⁢/⁢(0−6) =4⁢/6 =2⁢/3. Starting from (6,0) gives y=0+(2⁢/3)⁢(x−6), which expands to (2⁢/3)⁢x−4, and the y-intercept −4 checks.

y=0+23⁢(x−6)y=23x−4

3. Somewhere new

A candle is 20 cm tall when lit and 14 cm tall after 3 hours, burning at a steady rate. Write its height h⁢(t) after t hours, and find when it burns out.

Show the answer and explanation

h⁢(t)=20−2⁢t, and it burns out after 10 hours.

The slope is (14−20)⁢/⁢(3−0) =−2 cm per hour, negative because the candle gets shorter. The intercept is the height at t=0, 20 cm. It burns out when 20−2⁢t=0, at t=10. The model holds only from t=0 to t=10.

h⁢(t)=20−2⁢th⁢(3)=14h⁢(10)=0

Keep exploring

Graph plots y=−(3⁢/2)⁢x+4 with both points and the intercept marked. Change the slope or intercept to see which points the line leaves behind.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Graph the line Check the line in Math Study the 7 key terms Open worked example on a board Slope formula in Math Reference

Your existing work stays on this device. Examples open as editable copies.