Menu

From Two Points

Part of the Graphs & Systems section of Coddy's Algebra journey. Lesson 21 of 61.

To find the equation of a line through two points, first calculate the slope, then use point-slope form with either point. For the line through (1, 2) and (3, 8):

m=8−23−1=3m = \frac{8-2}{3-1} = 3

y−2=3(x−1)y-2 = 3\left(x-1\right)

y=3x−1y = 3x-1

You can use the other point instead, which gives y−8=3(x−3)y-8 = 3\left(x-3\right). Expanding and rearranging gives the same equation, y=3x−1y = 3x-1, because both points lie on the same line.

For two points with different x-coordinates, calculate the slope, substitute either point into point-slope form, and simplify. If the points have the same x-coordinate, the line is vertical.

challenge icon

Challenge

Medium

Find the equation of the line through (1, 3) and (4, 9).

Try it yourself

Find the equation: y = ...

All lessons in Graphs & Systems