Slope-intercept form
Write the equation y = mx + b.
Every straight line can be written y = mx + b, where m is the slope and b is where the line crosses the y-axis. If you know the slope and one point, plug them in to find b.
Example: slope 2, through (3, 1)
- y = 2x + b — Put in the slope
- 1 = 2(3) + b — Put in the point (3, 1)
- 1 = 6 + b, so b = −5 — Solve for b
- y = 2x − 5 — Answer
Why it works: b is the value of y when x is 0, which is where the line crosses the y axis. m says how much y grows for each step in x.
Tip: b is the y-value when x = 0.