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. The original short practice below includes explained solutions.
Before using the worksheets
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.
Worked examples for worksheet practice
Example 1
Write the line through \((2,5)\) and \((6,-3)\).
The slope is \((-3-5)/(6-2)=-8/4=-2\). Substitute \((2,5)\): \(5=-2(2)+b\), so \(b=9\). Thus \(y=-2x+9\). Check the second point: \(-2(6)+9=-3\).
Example 2
A rental costs $12 plus $4 per hour. Write a cost rule.
Let \(h\) be hours and \(C\) the cost in dollars. The initial fee is 12 and the rate is 4 dollars per hour, so \(C=12+4h\), \(h\ge0\). At 3 hours, \(C=12+12=24\) dollars. If the rental bills only whole hours, restrict h to nonnegative integers.
Try these before opening the solutions
- Find the line with slope \(3/2\) through \((4,1)\).
- Find the line through \((-1,4)\) and \((5,4)\).
- Find the line through \((3,-2)\) and \((3,7)\).
Show step-by-step solutions
- Use \(y-1=\frac32(x-4)\). Distribute: \(y-1=\frac32x-6\); add 1 to get \(y=\frac32x-5\). Check: \(\frac32(4)-5=1\).
- The slope is \((4-4)/(5-(-1))=0/6=0\). Both points have y-coordinate 4, so the equation is \(y=4\), a horizontal line.
- The denominator of the slope would be \(3-3=0\). Both points have x-coordinate 3, so the vertical line is \(x=3\), not \(y=3\).
Common mistakes
The intercept is not always a supplied y-coordinate; that is true only when x = 0. Two identical points do not determine a unique line.
Related skills
Writing Linear Equations lesson; Finding Midpoints worksheets; Graphing Lines From Equations worksheets; Graphing Linear Inequalities worksheets.

