Example

Finding the Equation of a Line from its Graph Using Slope-Intercept Form

When the equation of a line must be determined from its graph, the slope and yy-intercept can be read directly from the graph and then substituted into y=mx+by = mx + b.

A line is graphed on a coordinate plane with axes from 8-8 to 88. It crosses the yy-axis at (0,4)(0, -4) and passes through the point (3,2)(3, -2).

Step 1 — Find the slope by counting the rise and run. Starting at (0,4)(0, -4) and moving to (3,2)(3, -2), the line rises 22 units and runs 33 units to the right:

m=riserun=23m = \frac{\text{rise}}{\text{run}} = \frac{2}{3}

Step 2 — Identify the yy-intercept. The line crosses the yy-axis at (0,4)(0, -4), so b=4b = -4.

Step 3 — Substitute into y=mx+by = mx + b:

y=23x+(4)y = \frac{2}{3}x + (-4)

y=23x4y = \frac{2}{3}x - 4

The equation of the line is y=23x4y = \frac{2}{3}x - 4. This method combines two skills: reading the slope and yy-intercept from a graph, and then using those values in the slope-intercept form.

Image 0

0

1

Updated 2026-05-03

Contributors are:

Who are from:

Tags

OpenStax

Elementary Algebra @ OpenStax

Ch.4 Graphs - Elementary Algebra @ OpenStax

Algebra

Math

Prealgebra

Intermediate Algebra @ OpenStax

Ch.3 Graphs and Functions - Intermediate Algebra @ OpenStax

Related
Learn After