Euler Hall — free maths guides

Write the equation of a line through two points

A plain-language explanation of the line through two points. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

Slope first, then either point

Two points supply a slope, and then either point supplies the position. So the procedure is:

  1. 1. Compute the slope from the two points.
  2. 2. Put that slope and one point into point-slope form.
  3. 3. Simplify if a slope-intercept answer is wanted.
Why either point works

Once the slope is known, a point fixes the line. Both points lie on the line, so either can be the named point in point-slope form.

The two versions look different before simplifying and become identical afterwards, which is a useful check on the arithmetic.

Worked, with a negative slope

Write the line through(−2, 5)(-2,\,5) and(2, −3)(2,\,-3).

  • - Slope:(−3−5)/(2+2)=−8/4=−2(-3-5)/(2+2) = -8/4 = -2.
  • - Point-slope with(−2, 5)(-2,\,5):y−5=−2(x+2)y - 5 = -2(x + 2).
  • - Simplify:y=−2x+1y = -2x + 1.

Check with the other point:−2cdot2+1=−3-2 \\cdot 2 + 1 = -3, which matches.

By the end you can
  • Compute the slope between two points
  • Write the line through two points in slope-intercept form
  • Check the equation against the point that was not used
Check yourself

Write the line through(2 ,−1)(2\,,-1) and(6 ,7)(6\,,7).

Answers

Slope22, soy=2x−5y = 2x - 5.

Work out where to start — free, no accountAnswer six real questions — free, no account