Write a nonvertical line as y = mx + b by finding the slope and using a known point to calculate the intercept. A vertical line instead has a fixed x-value.

Free writing linear equations practice: PDF set 1, PDF set 2, PDF set 3, word-problem practice PDF, additional practice PDF, topic quiz. The original short practice below includes explained solutions.

A reliable method

  1. Calculate the slope using consistent coordinate differences.
  2. Use point-slope form y-y1=m(x-x1).
  3. Distribute and isolate y.
  4. Substitute both points; a vertical line instead has equation x=constant.

Key rules and restrictions

From two distinct points, use \(m=(y_2-y_1)/(x_2-x_1)\), then \(y-y_1=m(x-x_1)\). If the x-coordinates match, do not divide by zero: write \(x=x_1\). In a word problem, identify the initial value and rate, including their units.

Example 1

Write an equation for the line through \(\left( 1, \ 4\right)\) and \(\left( 3, \ 10\right)\).

Compute \(m=(10-4)/(3-1)=6/2=3\). Then \(y-4=3(x-1)\), so \(y-4=3x-3\) and \(y=3x+1\). Check both points: \(3(1)+1=4\) and \(3(3)+1=10\).

Answer: \(y=3 x + 1\)

Example 2

Write an equation for the line through \(\left( -2, \ 5\right)\) and \(\left( 2, \ -3\right)\).

Compute \(m=(-3-5)/(2-(-2))=-8/4=-2\). Use \(y-5=-2(x+2)\), giving \(y-5=-2x-4\), so \(y=-2x+1\). Checks: \(-2(-2)+1=5\), \(-2(2)+1=-3\).

Answer: \(y=1 - 2 x\)

Common mistakes

  • The point-slope subtraction signs must be preserved for negative coordinates.
  • Different-looking equations may describe the same line after simplification.

Practice without the answer first

  1. Write an equation for the line through \(\left( 0, \ -1\right)\) and \(\left( 4, \ 1\right)\).
  2. Write an equation for the line through \(\left( -3, \ -2\right)\) and \(\left( 1, \ -2\right)\).
  3. Write an equation for the line through \(\left( 2, \ 7\right)\) and \(\left( 5, \ 1\right)\).
Answers and step-by-step explanations

Practice 1

The slope is \((1-(-1))/(4-0)=2/4=1/2\). Since the point at x = 0 is \((0,-1)\), the intercept is -1. Thus \(y=x/2-1\). At x = 4 this gives \(2-1=1\).

Answer: \(y=\frac{x}{2} - 1\)

Practice 2

The slope is \((-2-(-2))/(1-(-3))=0/4=0\). Both points have y-coordinate -2, so the line is \(y=-2\).

Answer: \(y=-2\)

Practice 3

Compute \(m=(1-7)/(5-2)=-6/3=-2\). Use \(y-7=-2(x-2)=-2x+4\). Add 7: \(y=-2x+11\). Checks: \(-4+11=7\) and \(-10+11=1\).

Answer: \(y=11 - 2 x\)

Related skills

Writing Linear Equations worksheets; Finding Midpoints lesson; Graphing Lines From Equations lesson; Graphing Linear Inequalities lesson.