How to write the equation of a line in point-slope form
If you know a point on a line and how steep the line is, you already have what you need to write its equation. We’ll plug those values into point-slope form, then see how to find the slope when we’re given two points.
Start with a point and the slope
If a line has slope and passes through , its point-slope form is
The slope describes how much changes for each unit of change in . So the change in , which is , equals the slope times the change in , which is .
Example: Use the given point and slope
The slope is and the point is . Use and . Subtracting the negative x-coordinate gives .
Example: Find the slope from two points
Use and . Subtract the y-coordinates and the x-coordinates in the same order. The change in is and the change in is .
We used as the known point. Using gives , which describes the same line.
Example: Keep the point visible in the equation
For the points and , the slope is . Using gives
Leaving the equation in this form keeps the point and slope visible. If you want the y-intercept, you can rewrite it in slope-intercept form.
Write a vertical line as x equals a constant
If two distinct points have the same x-coordinate , then and the slope is undefined. The equation of that vertical line is . A horizontal line has slope zero, so point-slope form simplifies to .