Sub topic 4
Writing an Equation from a Point and a Slope
Prerequisites and the working model
Assume you know how to plot points, calculate slope as rise over run, use slope-intercept form \(y=mx+b\), and solve equations with fractions and negative numbers.
A line is determined by two pieces of information:
- A point \((x1,y1)\) that lies on the line.
- The slope \(m\), which measures the line's rate of change.
When one point and the slope are known, point-slope form is usually the fastest form to use:
\[ y-y1=m(x-x1) \]
The symbols \(x\) and \(y\) represent any point on the line. The values \(x1\) and \(y1\) are the coordinates of the known point.
The subtraction signs are part of the formula. Substitute the coordinates with their signs included.
Building the equation
Suppose the line has slope \(m=3\) and passes through \((2,5)\).
Substitute \(m=3\), \(x1=2\), and \(y1=5\):
\[ y-5=3(x-2) \]
This is a correct point-slope equation. You can expand it if the problem asks for slope-intercept form:
\[ \begin{aligned} y-5&=3x-6\\ y&=3x-1 \end{aligned} \]
Both equations describe the same line.
A point with negative coordinates
Consider a line with slope \(-\frac{2}{3}\) through \((-3,4)\). Substitute carefully:
\[ y-4=-\frac{2}{3}\bigl(x-(-3)\bigr) \]
The expression \(x-(-3)\) becomes \(x+3\):
\[ y-4=-\frac{2}{3}(x+3) \]
Expanding gives:
\[ \begin{aligned} y-4&=-\frac{2}{3}x-2\\ y&=-\frac{2}{3}x+2 \end{aligned} \]
Check the known point in the final equation:
\[ 4=-\frac{2}{3}(-3)+2=2+2 \]
The point works, so the equation passes this check.
Common errors and checks
| Error | Why it fails | Better practice |
|---|---|---|
| Writing \(y+y_1\) instead of \(y-y_1\) | The point-slope formula uses subtraction | Copy the formula before substituting |
| Losing a negative coordinate | \(x-(-3)\) is not \(x-3\) | Use parentheses around negative values |
| Using the point's coordinates as the slope | Coordinates and slope have different roles | Label \(m\), \(x_1\), and \(y_1\) first |
| Simplifying incorrectly | Algebra changes the equation | Substitute the known point into the result |
A reliable check is to substitute the known point into your final equation. The left and right sides must be equal. You can also test a second point after choosing a convenient \(x\)-value.
A repeatable procedure
- Identify the slope \(m\).
- Identify the known point \((x1,y1)\).
- Write \(y-y1=m(x-x1)\).
- Substitute the slope and both coordinates.
- Simplify only if needed.
- Check the known point by substitution.
This procedure also works when the slope is a fraction. Keep the fraction exact instead of rounding it.
from fractions import Fraction
def point_slope(m, x1, y1):
m = Fraction(m)
return f"y - ({y1}) = ({m})(x - ({x1}))"
print(point_slope(Fraction(-2, 3), -3, 4))
# y - (4) = (-2/3)(x - (-3))Exercise
Write an equation in point-slope form for the line with slope 5/2 passing through (-4, -1). Then check that the point satisfies your equation.
Show answer
y + 1 = (5/2)(x + 4). Substituting x = -4 and y = -1 gives 0 = (5/2)(0), so the point satisfies the equation.