Introduction
In this lesson, you will learn how to graph a line using the slope and y-intercept.
This video illustrates the lesson material below. Watching the video is optional.
Graphing a Line Using the Slope and Y-Intercept
The slope-intercept form of a line is \(y=mx+b\), where m represents the slope and b is the y-intercept.
Example 1
Graph the following line that is given in y-intercept form: \(y=3x+\frac{1}{2}\).
You could graph this by substituting in values for x and solving for y, but with the slope-intercept form of a line, one of the points is already given (b, or the y-intercept). The y-intercept is at \(y=\frac{1}{2}\). This point is written as \((0,\frac{1}{2})\), where x is 0, and y is \(\frac{1}{2}\).
Figure 1
You only need two points in order to determine a straight line. Use the slope (m), or \(\frac{rise}{run}\), to find a second point in relation to the y-intercept (b).
\begin{align*} m=\frac{rise}{run} = \frac{3}{1}\end{align*}
In other words, for every three units you go up, you take one step to the right. To plot the second point, follow these steps:
- Start at the point that you already have, which is known as the y-intercept, \((0,\frac{1}{2})\).
- Go three units up and one unit to the right.
- You get to \((1,3\frac{1}{2})\). Plot this point as your second point.
Now that you have two points, you can draw a line between them, and that will be the graph of this line.
Figure 2
Example 2
Graph the following line that is given in y-intercept form: \(y=-\frac{3}{4}x-2\).
Once again, you know the first point is at \((0, -2)\) because -2 is the y-intercept, so when \(x = 0\), then \(y = -2\) (see to Figure 3).
Figure 3
Now you just need to find another point using the slope (m).
\begin{align*} m = \frac{Rise}{Run} = -\frac{3}{4}\end{align*}
A negative slope goes from the top left down toward the bottom right. You can easily find the second point using this slope. It is really important to remember that the following slopes below are the same.
\begin{align*} \frac{-3}{4} = \frac{3}{-4} \end{align*}
- You could either go down three and to the right four, which gives this point: \((4,-5)\)
- Or, you could go up three and then to the left four and this point: \((-4,1)\).
Either way, one of the directions needs to be in the negative direction, and the other needs to be in the positive direction.
Figure 4
Figure 4 shows the line of \(y=-\frac{3}{4}x-2\). Any point on this line will make this equation correct.
Things to Remember
- You need a minimum of two points to find the line of an equation.
- Steps for graphing an equation using the slope and y-intercept:
- Step 1: Plot the y-intercept from the slope-intercept form.
- The y-intercept = b of the equation \( y = mx + b \)
- The point will be \((0, b)\).
- Step 2: Use the slope (m) or \(\frac{rise}{run}\) to find the second point of the line from the y-intercept.
- Make single steps, using the rise and run from the y-intercept.
- Plot the second point.
- Step 3: Connect those two points with your line.
- Step 1: Plot the y-intercept from the slope-intercept form.
Practice Problems
- Plot the line \(y=−3x+2\) starting with the y-intercept and then using the slope. (Solution
- Plot the line \(y=\dfrac{1}{2}x−3\) starting with the y-intercept and then using the slope. (Solution
- Plot the line \(y=−\dfrac{3}{5}x+1\) starting with the y-intercept and then using the slope. (Solution
- Plot the line \(y=2x+3\) starting with the y-intercept and then using the slope. (Solution
- Plot the line \(y=−x−4\) starting with the y-intercept and then using the slope. (Solution
- Plot the line \(y=\dfrac{4}{5}x+4\) starting with the y-intercept and then using the slope. (Solution