Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

3.4: Slope-Intercept Form of a Line

( \newcommand{\kernel}{\mathrm{null}\,}\)

We start with the definition of the y-intercept of a line.

The y-intercept

The point (0,b) where the graph of a line crosses the y-axis is called the y-intercept of the line.

We will now generate the slope-intercept formula for a line having y-intercept (0,b) and Slope=m (see Figure 3.4.1). Let (x,y) be an arbitrary point on the line.

fig 3.4.1.png
Figure 3.4.1: Line with y-intercept at (0,b) and Slope=m.

Start with the fact that the slope of the line is the rate at which the dependent variable is changing with respect to the independent variable.

Slope=ΔyΔxSlope formula.

Substitute m for the slope. To determine both the change in y and the change in x, subtract the coordinates of the point (0,b) from the point (x,y).

m=ybx0 Substitute m for the Slope. Δy=yb and Δx=x0.m=ybx Simplify. 

Clear fractions from the equation by multiplying both sides by the common denominator.

mx=[ybx]x Multiply both sides by xmx=yb Cancel. 

Solve for y.

mx+b=yb+b Add b to both sides. mx+b=y Simplify. 

Thus, the equation of the line is y=mx+b.

The Slope-Intercept form of a line

The equation of the line having y intercept (0,b) and slope m is: y=mx+b

Because this form of a line depends on knowing the slope m and the intercept (0,b), this form is called the slope-intercept form of a line.

Example 3.4.1

Sketch the graph of the line having equation y=35x+1.

Solution

Compare the equation y=35x+1 with the slope-intercept form y=mx+b, and note that m=3/5 and b=1. This means that the slope is 3/5 and the y-intercept is (0,1). Start by plotting the y-intercept (0,1), then move uward 3 units and right 5 units, arriving at the point (5,4). Draw the line through the points (0,1) and (5,4), then label it with its equation y=35x+1.

fig 3.4.2.png
Figure 3.4.2: Hand-drawn graph of y=35x+1.
fig 3.4.3.png
Figure 3.4.3: Select 5:ZSquare from the ZOOM menu to draw the graph of y=35x+1.

When we compare the calculator image in Figure 3.4.3 with the hand-drawn graph in Figure 3.4.2, we get a better match.

Exercise 3.4.1

Sketch the graph of the line having equation y=43x2.

Answer

Exercise 3.4.1.png

Example 3.4.2

Sketch the line with y-intercept (0,2) and slope 7/3. Label the line with the slope-intercept form of its equation.

Solution

Plot the y-intercept (0,2). Now use the slope 7/3. Start at (0,2), then move down seven units, followed by a three unit move to the right to the point (3,5). Draw the line through the points (0,2) and (3,5). (See Figure 3.4.4).

Next, the y-intercept is (0,2), so b=2. Further, the slope is 7/3, so m=7/3. Substitute these numbers into the slope-intercept form of the line.

y=mx+b Slope-intercept form. y=73x+2 Substitute: 7/3 for m,2 for b.

Therefore, the slope-intercept form of the line is y=73x+2. Label the line with this equation.

fig 3.4.4.png
Figure 3.4.4: Hand-drawn graph of y=73x+2

Check: To graph y=73x+2, enter 7/3X+2 in Y1 in the Y= menu. Select 6:ZStandard from the ZOOM menu, followed by 5:ZSquare from the ZOOM menu to produce the graph shown in Figure 3.4.6.

fig 3.4.5.png
Figure 3.4.5: Hand-drawn graph of y=73x+2
fig 3.4.6.png
Figure 3.4.6: Select 6:ZStandard from the ZOOM menu, followed by 5:ZSquare from the ZOOM menu to produce the graph of the equation y=73x+2

This provides a good match of the hand-drawn graph in Figure 3.4.5 and our graphing calculator result in Figure 3.4.6.

Exercise 3.4.2

Sketch the line with y-intercept (0,3) and slope 5/2. Label the line with the slope-intercept form of its equation.

Answer

Exercise 3.4.2.png

Example 3.4.3

Use the graph of the line in the following figure to find the equation of the line.

Example 3.4.3.png

Solution

Note that the y-intercept of the line is (0,1) (See Figure 3.4.7). Next, we try to locate a point on the line that passes directly through a lattice point, a point where a vertical and horizontal grid line intersect. In Figure 3.4.7, we chose the point (5,6). Now, starting at the y-intercept (0,1), we move up 7 units, then to the right 5 units. Hence, the slope is m=Δy/Δx, or m=7/5.

Note

We could also subtract the coordinates of point (0,1) from the coordinates of point (5,6) to determine the slope. 6(1)50=75

fig 3.4.7.png
Figure 3.4.7: The line has y-intercept (0,1) and slope 7/5.

Next, state the slope-intercept form, the substitute 7/5 for m and 1 for b.

y=mx+b Slope-intercept form. y=75x+(1) Substitute: 7/5 for m,1 for b

Thus, the equation of the line is y=75x1.

Check: This is an excellent situation to run a check on your graphing calculator.

fig 3.4.8.png
Figure 3.4.8: Enter y=75x1 in the Y= menu.
fig 3.4.9.png
Figure 3.4.9: Select 6:ZStandard followed by 5:ZSquare (both from the ZOOM menu) to produce this graph.

When we compare the result in Figure 3.4.9 with the original hand-drawn graph (see Figure 3.4.7), we’re confident we have a good match.

Exercise 3.4.3

Use the graph of the line in the figure below to find the equation of the line.

Exercise 3.4.3.png

Answer

y=35x+3

Applications

Let’s look at a linear application.

Example 3.4.4

Jason spots his brother Tim talking with friends at the library, located 300 feet away. He begins walking towards his brother at a constant rate of 2 feet per second (2 ft/s).

  1. Express the distance d between Jason and his brother Tim in terms of the time t.
  2. At what time after Jason begins walking towards Tim are the brothers 200 feet apart?

Solution

Because the distance between Jason and his brother is decreasing at a constant rate, the graph of the distance versus time is a line. Let’s begin by making a rough sketch of the line. In Figure 3.4.10, note that we’ve labeled what are normally the x- and y-axes with the time t and distance d, and we’ve included the units with our labels.

fig 3.4.10.png
Figure 3.4.10: A plot of the distance d separating the brothers versus time t.

Let t=0 seconds be the time that Jason begins walking towards his brother Tim. At time t=0, the initial distance between the brothers is 300 feet. This puts the d-intercept (normally the y-intercept) at the point (0,300) (see Figure 3.4.10).

Because Jason is walking toward his brother, the distance between the brothers decreases at a constant rate of 2 feet per second. This means the line must slant downhill, making the slope negative, so m=2 ft/s. We can construct an accurate plot of distance versus time by starting at the point (0,300), then descending Δd=300, then moving to the right Δt=150. This makes the slope Δd/Δt=300/150=2 (See Figure 3.4.10). Note that the slope is the rate at which the distance d between the brothers is changing with respect to time t.

Finally, the equation of the line is y=mx+b, where m is the slope of the line and b is the y-coordinate (in this case the d-coordinate) of the point where the graph crosses the vertical axis. Thus, substitute 2 for m, and 300 for b in the slope-intercept form of the line.

y=mx+b Slope-intercept form. y=2x+300 Substitute: 2 for m,300 for b

One problem remains. The equation y=2x+300 gives us y in terms of x.

  1. The question required that we express the distance d in terms of the time t. So, to finish the solution, replace y with d and x with t (check the axes labels in Figure 3.4.10) to obtain a solution: d=2t+300
  2. Now that our equation expresses the distance between the brothers in terms of time, let’s answer part (b), “At what time after Jason begins walking towards Tim are the brothers 200 feet apart?” To find this time, substitute 200 for d in the equation d=2t+300, then solve for t.d=2t+300 Distance equation 200=2t+300 Substitute 200 for d
    Solve this last equation for the time t.200300=2t+300300 Subtract 300 from both sides. 100=2t Simplify both sides. 1002=2t2 Divide both sides by 250=t Simplify both sides. 
    Thus, it takes Jason 50 seconds to close the distance between the brothers to 200 feet.

Exercise 3.4.4

A swimmer is 50 feet from the beach, and then begins swimming away from the beach at a constant rate of 1.5 feet per second (1.5 ft/s). Express the distance d between the swimmer and the beach in terms of the time t.

Answer

d=1.5t+50


This page titled 3.4: Slope-Intercept Form of a Line is shared under a CC BY-NC-ND 3.0 license and was authored, remixed, and/or curated by David Arnold via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?