Ctrl+k

Write an equation from a linear graph

A linear graph represents a constant rate of change: the slope gives the change in yy for each unit change in xx, and the yy-intercept gives the value of yy when x=0x=0. The relationship can be expressed in y=mx+by=mx+b form by reading or calculating these features from a coordinate grid, including positive, negative, zero, and simple fractional slopes; vertical lines and more general equation forms are outside this scope.

Detailed Explanation: Write an equation from a linear graph

A linear equation can be written in the form

y=mx+by=mx+b

where:

  • mm is the slope, or the change in yy for each change in xx.
  • bb is the yy-intercept, where the line crosses the yy-axis.

Example: A graph crosses the yy-axis at (0,−1)(0,-1) and also passes through (2,3)(2,3). Write an equation for the line.

  1. Find the yy-intercept.
    The graph crosses the yy-axis at −1-1, so

b=−1.b=-1.
  1. Find the slope.
    Use the two points (0,−1)(0,-1) and (2,3)(2,3):

m=change in ychange in x=3−(−1)2−0=42=2.m=\frac{\text{change in }y}{\text{change in }x} =\frac{3-(-1)}{2-0} =\frac{4}{2}=2.
  1. Substitute mm and bb into y=mx+by=mx+b.

y=2x−1y=2x-1

So, the equation of the line is

y=2x−1.\boxed{y=2x-1}.

You can check the equation using the points. When x=0x=0, y=2(0)−1=−1y=2(0)-1=-1, and when x=2x=2, y=2(2)−1=3y=2(2)-1=3, matching the graph.

Learn by doing: Write an equation from a linear graph

Click a topic below to practice the foundational skills you'll need, learn the steps, or master this skill

Practice with unlimited practice problems

Slope of a Line - Select Linear Equation Based on Graph


    ?