Write the equation of a line in y = mx + b form given the slope and a
point on the line. The y-intercept b is computed independently from
b = y₀ - m·x₀ and verified by substituting the point back.
Example
Find b, then write the line as y = mx + b. This form names a line by two facts: its slope, how fast it rises, and its y-intercept, where it crosses the vertical axis. Once you know the slope and one point, you solve for the intercept, and the resulting equation lets you find the y for any x on the line.
highlighted = computed this step
Step 1 — Set up
Set up the expression.
m=2,(1,5)
Step 2 — Substitute
Substitute the point: 5 = 2 x 1 + b.
5=2×1+b
Step 3 — Find b
Solve for b: 5 - 2 x 1 = 3.
b=5−2×1=3
Step 4 — Result
Write y = 2x + 3.
y=2x+3
slope-intercept-formGiven slope m and a point (x₀, y₀), solve for b: b = y₀ - m·x₀. Then write y = mx + b. The point (x₀, y₀) must satisfy the line: m·x₀ + b = y₀.