Equation of a Line
3
-1
1/3
The dashed triangle shows the slope as rise over run: m = Δy / Δx.
Standard form (Ax + By = C)
Step-by-step solution
- 1
The given information
The line passes through two points.
- 2
Slope
The slope is rise over run: the change in y divided by the change in x.
- 3
Point-slope form
Substitute the slope m = 3 and the point (1, 2) into the point-slope form y − y₁ = m(x − x₁).
- 4
Slope-intercept form
Solve for y: distribute the slope and collect the constant term. The constant is the y-intercept b = -1, giving y = 3x - 1. Check with the second point: m·x₂ + b = 8, which matches y₂ ✓
- b = y₁ − m·x₁ = 2 − 3·1 = -1
- 5
Standard form
All coefficients are already integers; rearrange y = mx + b into Ax + By = C by moving the x-term to the left side.
- 6
Intercepts
Set x = 0 to find the y-intercept: y = -1. Set y = 0 and solve 0 = mx + b for x: x = −b/m = 1/3. The line crosses the axes at (0, -1) and (1/3, 0).
- 7
Result
The line has slope 3 and crosses the y-axis at (0, -1). Equation: y = 3x - 1.
About equations of a line
The slope m = rise/run measures steepness; with the y-intercept b it gives the slope-intercept form y = mx + b, the most common way to describe a straight line.
Two distinct points determine exactly one line: m = (y₂ − y₁)/(x₂ − x₁), then substitute one point to find b. A single point plus a slope works the same way (point-slope form).
Slopes and intercepts stay exact fractions — the line through (1/2, 1/3) and (2, 3) has slope exactly 16/9 — and vertical lines, where the slope is undefined, are handled as their own case.