Chapter 6 ยท Proportional relationships, lines, and slope

Slope-Intercept Form: Read It and Write It

See what the two numbers in a slope-intercept equation mean. Read the slope and y-intercept from an equation, then write an equation from those two numbers.

15 min read

You already know the slope of a line that is not vertical: the change in yy divided by the change in xx between any two different points on the line. Slope tells you how steep a line is, but not where it sits. Different lines can have the same slope.

To pin down one line, you need one more fact. A line that is not vertical crosses the y-axis exactly once. The value of yy at that crossing point is the line's y-intercept. Every point on the y-axis has x=0x = 0, so a line with y-intercept bb crosses at the point (0,b)(0, b).

In this lesson you will read the slope and the y-intercept straight from a linear equation, which is an equation whose graph is a straight line. Then you will go the other way and write the equation from those two numbers. Start with one equation, y=2x+3y = 2x + 3, and watch what its two numbers do.

Some points on the line y = 2x + 3
xSubstitute into 2x + 3y
00
2(0)+3=0+32(0) + 3 = 0 + 3
33
11
2(1)+3=2+32(1) + 3 = 2 + 3
55
22
2(2)+3=4+32(2) + 3 = 4 + 3
77
33
2(3)+3=6+32(3) + 3 = 6 + 3
99

The table shows two patterns.

  • The starting value. When x=0x = 0, the term 2x2x becomes 2(0)=02(0) = 0, so only the 33 is left and y=3y = 3. The line crosses the y-axis at (0,3)(0, 3), so the y-intercept is 33.
  • The steady change. Each time xx goes up by 11, the term 2x2x gains one more 22, so yy goes up by 22. The slope is the change in yy divided by the change in xx, so it is 21=2\frac{2}{1} = 2. Any two rows agree: from (0,3)(0, 3) to (3,9)(3, 9), the slope is 9โˆ’33โˆ’0=63=2\frac{9 - 3}{3 - 0} = \frac{6}{3} = 2.

So in y=2x+3y = 2x + 3, the number multiplying xx is the slope, and the number added to the xx term is the y-intercept.

Now go the other way: start with a line and build its equation. Take any line that is not vertical, with slope mm and y-intercept bb, so it passes through (0,b)(0, b). Let (x,y)(x, y) be any other point on the line. On a line that is not vertical, two different points never share the same value of xx, so xโ‰ 0x \neq 0.

A line that is not vertical has the same slope between any two of its points. So the slope from (0,b)(0, b) to (x,y)(x, y) equals mm. That is the first equation below. Its denominator, xโˆ’0x - 0, is just xx, and it is not 00, so the fraction makes sense.

Multiply both sides by xx to get the second equation. Then add bb to both sides to get the third. Each move does the same thing to both sides, so the two sides stay equal. The point (0,b)(0, b) fits the last equation too, because m(0)+b=bm(0) + b = b. So every point on the line makes y=mx+by = mx + b true.

yโˆ’bxโˆ’0=mโŸนyโˆ’b=mxโŸนy=mx+b\frac{y - b}{x - 0} = m \quad\Longrightarrow\quad y - b = mx \quad\Longrightarrow\quad y = mx + b

Key concept

Slope-intercept form

An equation written as y=mx+by = mx + b is in slope-intercept form, and its graph is a line that is not vertical. Here (x,y)(x, y) is any point on that line, xx can be any number, and mm and bb are fixed numbers.

  • mm, the number multiplying xx (the coefficient of xx), is the slope. When xx goes up by 11, yy changes by mm.
  • bb, the number with no xx attached (the constant term), is the y-intercept. When x=0x = 0, y=m(0)+b=by = m(0) + b = b, so the line crosses the y-axis at (0,b)(0, b).

Every line that is not vertical has exactly one equation of this form. A vertical line, such as x=4x = 4, has an undefined slope, so it has none.

y=mx+by = mx + b
Rewrite each equation to match y = mx + b, then read the slope and y-intercept
EquationMatched to y = mx + bSlopey-interceptWhat to notice
y=5x+2y = 5x + 2
y=5x+2y = 5x + 2
55
22
It already matches the form.
y=12xโˆ’4y = \frac{1}{2}x - 4
y=12x+(โˆ’4)y = \frac{1}{2}x + (-4)
12\frac{1}{2}
โˆ’4-4
Subtracting 44 is the same as adding โˆ’4-4.
y=โˆ’x+6y = -x + 6
y=โˆ’1x+6y = -1x + 6
โˆ’1-1
66
โˆ’x-x means โˆ’1-1 times xx.
y=3xy = 3x
y=3x+0y = 3x + 0
33
00
Adding 00 changes nothing, so b=0b = 0.
y=7y = 7
y=0x+7y = 0x + 7
00
77
0x0x is 00 for every xx, so m=0m = 0.

Worked example

Read the slope and y-intercept

Find the slope and the y-intercept of the line y=4xโˆ’3y = 4x - 3.

  1. Check the form. The variable y is alone on the left side, so the equation is solved for y. That means you can match it to slope-intercept form.

    y=4xโˆ’3y = 4x - 3
  2. Rewrite the subtraction as adding the opposite, because the form has a plus sign in front of b. Subtracting 3 is the same as adding negative 3, so the equation still says the same thing.

    y=4x+(โˆ’3)y = 4x + (-3)
  3. Match the parts. The number multiplying x is the slope m, and the constant term is the y-intercept b. Keep the negative sign with the 3.

    m=4,b=โˆ’3m = 4, \quad b = -3
  4. Check the y-intercept. Substitute 0 for x in the original equation. The result should equal b, and it does.

    y=4(0)โˆ’3=0โˆ’3=โˆ’3y = 4(0) - 3 = 0 - 3 = -3
  5. Find a second point so you can check the slope. Substitute 1 for x.

    y=4(1)โˆ’3=4โˆ’3=1y = 4(1) - 3 = 4 - 3 = 1
  6. From x = 0 to x = 1, y goes from negative 3 up to 1. Divide the change in y by the change in x. The result matches m.

    1โˆ’(โˆ’3)1โˆ’0=41=4\frac{1 - (-3)}{1 - 0} = \frac{4}{1} = 4

Answer

The slope is 44 and the y-intercept is โˆ’3-3, so the line crosses the y-axis at (0,โˆ’3)(0, -3).

Now for the second skill: writing an equation. You saw that a line that is not vertical, with slope mm and y-intercept bb, has the equation y=mx+by = mx + b. So when you know those two numbers, put the slope in place of mm and the y-intercept in place of bb.

Keep the sign of each number. If bb is negative, write the result as a subtraction, because adding a negative number is the same as subtracting its opposite. For example, y=2x+(โˆ’5)y = 2x + (-5) becomes y=2xโˆ’5y = 2x - 5.

A slope and a y-intercept together fit exactly one line, so they give exactly one equation of this form.

Worked example

Write an equation from a slope and y-intercept

A line has slope โˆ’2-2 and y-intercept 55. Write its equation in slope-intercept form.

  1. Start with slope-intercept form. The slope is a number, so the line is not vertical and this form fits it.

    y=mx+by = mx + b
  2. Replace m with the slope, negative 2, and replace b with the y-intercept, 5. This works because m stands for the slope and b stands for the y-intercept.

    y=โˆ’2x+5y = -2x + 5
  3. Check the y-intercept by substituting 0 for x. You should get 5.

    y=โˆ’2(0)+5=0+5=5y = -2(0) + 5 = 0 + 5 = 5
  4. Find a second point so you can check the slope. Substitute 1 for x.

    y=โˆ’2(1)+5=โˆ’2+5=3y = -2(1) + 5 = -2 + 5 = 3
  5. From x = 0 to x = 1, y goes from 5 down to 3. Divide the change in y by the change in x. The result matches the given slope.

    3โˆ’51โˆ’0=โˆ’21=โˆ’2\frac{3 - 5}{1 - 0} = \frac{-2}{1} = -2

Answer

The equation of the line is y=โˆ’2x+5y = -2x + 5.

Worked example

Fraction slope and negative y-intercept

A line has slope 34\frac{3}{4} and crosses the y-axis at the point (0,โˆ’2)(0, -2). Write its equation in slope-intercept form.

  1. Name the two numbers. The problem gives the slope. The crossing point has x = 0, so its y-value is the y-intercept.

    m=34,b=โˆ’2m = \frac{3}{4}, \quad b = -2
  2. Substitute both numbers into slope-intercept form. The slope is a number, so the line is not vertical and the form applies.

    y=34x+(โˆ’2)y = \frac{3}{4}x + (-2)
  3. Adding negative 2 is the same as subtracting 2, so write the equation the shorter way.

    y=34xโˆ’2y = \frac{3}{4}x - 2
  4. Check with a second point. Use x = 4, a multiple of the denominator, so the arithmetic stays in whole numbers. Then divide the change in y by the change in x from the given crossing point to the new point. The result matches the given slope.

    y=34(4)โˆ’2=3โˆ’2=1,1โˆ’(โˆ’2)4โˆ’0=34y = \frac{3}{4}(4) - 2 = 3 - 2 = 1, \qquad \frac{1 - (-2)}{4 - 0} = \frac{3}{4}

Answer

The equation of the line is y=34xโˆ’2y = \frac{3}{4}x - 2.

Here is the idea to keep. For any line that is not vertical, the equation y=mx+by = mx + b shows two facts at once: the number multiplying xx is the slope, and the constant term is the y-intercept, so the line crosses the y-axis at (0,b)(0, b). You can read mm and bb from an equation solved for yy, or substitute them into the form to write the equation. Next, you will use these same two numbers to graph a line from its equation and to write an equation from a graph.