Slope-Intercept Form (y = mx + b): How to Write and Graph a Line

Slope-Intercept Form: y = mx + b
Spread the love

Slope-intercept form is the most popular way to write the equation of a straight line, because you can read the slope and the starting point straight from it.

Quick answer

y = mx + b

  • m is the slope: how much y changes when x goes up by 1.
  • b is the y-intercept: where the line crosses the y-axis (when x = 0).
  • Example: y = 2x + 3 has slope 2 and crosses the y-axis at 3.

How to graph y = mx + b

  1. First, plot the y-intercept: for y = 2x + 3, put a point at (0, 3).
  2. Then use the slope as rise over run: 2 = 2/1, so go up 2 and right 1 to (1, 5).
  3. Finally, draw a straight line through the points.

Writing the equation

  • Given m and b: slope −4, intercept 7 → y = −4x + 7.
  • Given m and a point: slope 3 through (2, 5): 5 = 3 × 2 + b, so b = −1 → y = 3x − 1.
  • Given two points: find m with the slope formula, then find b as above. Alternatively, start from point-slope form.

Converting from standard form

Standard form is Ax + By = C. Solve for y: 4x + 2y = 10 → 2y = −4x + 10 → y = −2x + 5.

Reading equations

Equation Slope (m) y-intercept (b) Line goes
y = 2x + 3 2 3 Up
y = −x + 4 −1 4 Down
y = ½x − 2 1/2 −2 Up, gently
y = 5 0 5 Flat
y = 3x 3 0 Up, through the origin

Real-world meaning

A taxi charges a $3 pick-up fee plus $2 per mile: cost = 2 × miles + 3. The slope is the rate ($2 per mile) and the intercept is the fixed starting cost ($3). The same pattern describes phone plans, savings with a starting balance, and more.

Frequently asked questions

What is slope-intercept form?

y = mx + b, where m is the slope and b is the y-intercept.

What does b represent?

The point where the line crosses the y-axis.

How do I find b?

Substitute a known point and the slope into y = mx + b and solve for b.

Can a vertical line be written as y = mx + b?

No. A vertical line is written x = a constant.

Related guides

Related guides

Leave a Reply

Your email address will not be published. Required fields are marked *