Ctrl+k

Write a linear equation in slope-intercept form

A nonvertical linear relationship can be represented as y=mx+by=mx+b, where mm is the constant rate of change (slope) and bb is the yy-intercept, the output when x=0x=0. The equation may be constructed from a graph, table, or two points by relating changes in the variables and identifying the intercept, while preserving the connection among symbolic, graphical, and contextual representations; vertical lines and nonlinear relationships are not included because they cannot be expressed in this form.

Detailed Explanation: Write a linear equation in slope-intercept form

A linear equation in slope-intercept form is

y=mx+by=mx+b

where:

  • mm is the slope, or constant rate of change
  • bb is the yy-intercept, the value of yy when x=0x=0

Example

Write the equation of the line passing through (2,5)(2,5) and (6,13)(6,13).

Step 1: Find the slope.

Use

m=change in ychange in x=y2−y1x2−x1m=\frac{\text{change in }y}{\text{change in }x} =\frac{y_2-y_1}{x_2-x_1}

Substitute the two points:

m=13−56−2=84=2m=\frac{13-5}{6-2}=\frac{8}{4}=2

The slope is 22. This means yy increases by 22 for every increase of 11 in xx.

Step 2: Start with slope-intercept form.

y=mx+by=mx+b

Substitute m=2m=2:

y=2x+by=2x+b

Step 3: Find the yy-intercept.

Use either given point. Substitute (2,5)(2,5):

5=2(2)+b5=2(2)+b 5=4+b5=4+b b=1b=1

So the line crosses the yy-axis at (0,1)(0,1).

Step 4: Write the equation.

y=2x+1\boxed{y=2x+1}

Check: If x=6x=6, then

y=2(6)+1=13y=2(6)+1=13

This matches the second point, so the equation is correct.

Learn by doing: Write a linear equation in slope-intercept form

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

Practice with unlimited practice problems

Equation of a Line from Coordinates of Points


    ?