Graphing a Line Using Its Slope and Intercept
Graphing a Line Using Its Slope and Intercept
Now that we know how to find the slope and y-intercept of a line from its equation, we can graph the line by plotting the y-intercept and then using the slope to find another point.
Example: How to Graph a Line Using its Slope and Intercept
Graph the line of the equation \(y=4x-2\) using its slope and y-intercept.
Solution
Graph a line using its slope and y-intercept.
- Find the slope-intercept form of the equation of the line.
- Identify the slope and y-intercept.
- Plot the y-intercept.
- Use the slope formula \(m=\frac{\text{rise}}{\text{run}}\) to identify the rise and the run.
- Starting at the y-intercept, count out the rise and run to mark the second point.
- Connect the points with a line.
Example
Graph the line of the equation \(y=\text{−}x+4\) using its slope and y-intercept.
Solution
| \(y=mx+b\) | |
| The equation is in slope–intercept form. | \(y=\text{−}x+4\) |
| Identify the slope and y-intercept. | \(m=-1\) |
| y-intercept is (0, 4) | |
| Plot the y-intercept. | See graph below. |
| Identify the rise and the run. | \(m=\frac{-1}{1}\) |
| Count out the rise and run to mark the second point. | rise −1, run 1 |
| Draw the line. | |
| To check your work, you can find another point on the line and make sure it is a solution of the equation. In the graph we see the line goes through (4, 0). | |
| Check. \(\begin{array}{}\\ \hfill y& =\hfill & \text{−}x+4\hfill \\ \hfill 0& \stackrel{?}{=}\hfill & -4+4\hfill \\ \hfill 0& =\hfill & 0✓\hfill \end{array}\) |
|
Example
Graph the line of the equation \(y=-\frac{2}{3}x-3\) using its slope and y-intercept.
Solution
| \(y=mx+b\) | |
| The equation is in slope–intercept form. | \(y=-\frac{2}{3}x-3\) |
| Identify the slope and y-intercept. | \(m=-\frac{2}{3}\); y-intercept is (0, −3) |
| Plot the y-intercept. | See graph below. |
| Identify the rise and the run. | |
| Count out the rise and run to mark the second point. | |
| Draw the line. |
Example
Graph the line of the equation \(4x-3y=12\) using its slope and y-intercept.
Solution
| \(4x-3y=12\) | |
| Find the slope–intercept form of the equation. | \(\phantom{\rule{1.43em}{0ex}}-3y=-4x+12\) |
| \(\phantom{\rule{1.26em}{0ex}}-\frac{3y}{3}=\frac{-4x+12}{-3}\) | |
| The equation is now in slope–intercept form. | \(\phantom{\rule{2.63em}{0ex}}y=\frac{4}{3}x-4\) |
| Identify the slope and y-intercept. | \(\phantom{\rule{2.37em}{0ex}}m=\frac{4}{3}\) |
| y-intercept is (0, −4) | |
| Plot the y-intercept. | See graph below. |
| Identify the rise and the run; count out the rise and run to mark the second point. | |
| Draw the line. |
We have used a grid with \(x\) and \(y\) both going from about \(-10\) to 10 for all the equations we’ve graphed so far. Not all linear equations can be graphed on this small grid. Often, especially in applications with real-world data, we’ll need to extend the axes to bigger positive or smaller negative numbers.
Example
Graph the line of the equation \(y=0.2x+45\) using its slope and y-intercept.
Solution
We’ll use a grid with the axes going from about \(-80\) to 80.
| \(y=mx+b\) | |
| The equation is in slope–intercept form. | \(y=0.2x+45\) |
| Identify the slope and y-intercept. | \(m=0.2\) |
| The y-intercept is (0, 45) | |
| Plot the y-intercept. | See graph below. |
| Count out the rise and run to mark the second point. The slope is \(m=0.2\); in fraction form this means \(m=\frac{2}{10}\). Given the scale of our graph, it would be easier to use the equivalent fraction \(m=\frac{10}{50}\). | |
| Draw the line. |
Now that we have graphed lines by using the slope and y-intercept, let’s summarize all the methods we have used to graph lines. See the figure below.
This lesson is part of:
Graphs and Equations