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.

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: slope −3/2 and y-intercept 4.

Your turn

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

Show the answer and explanation

y = 2x − 5.

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

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

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.

Make it concrete

Try in the workspace

Open the example inputs, change a value and keep a useful result on your board.

Graph the line Check the line in Math Open worked example on a board Slope formula in Math Reference

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