Slope
The steepness of any incline can be measured as the ratio of the vertical change to the horizontal change. For example, a \(5\)% incline can be written as \(\frac{5}{100}\), which means that for every \(100\) feet forward, the height increases \(5\) feet.
Figure \(\PageIndex{1}\)
In mathematics, we call the incline of a line the slope and use the letter \(m\) to denote it. The vertical change is called the rise and the horizontal change is called the run.
\[\color{Cerulean}{Slope}\quad\color{black}{m=\frac{\text{vertical change}}{\text{horizontal change}}=\frac{rise}{run}}\]
The rise and the run can be positive or negative. A positive rise corresponds to a vertical change up and a negative rise corresponds to a vertical change down. A positive run denotes a horizontal change to the right and a negative run corresponds to a horizontal change to the left. Given the graph, we can calculate the slope by determining the vertical and horizontal changes between any two points.
Example \(\PageIndex{1}\)
Find the slope of the given line:
Figure \(\PageIndex{2}\)
Solution:
From the given points on the graph, count \(3\) units down and \(4\) units right.
\(m=\frac{rise}{run}=\frac{-3\:\text{units}}{4\:\text{units}}=-\frac{3}{4}\)
Answer:
\(m=-\frac{3}{4}\)
Here we have a negative slope, which means that for every \(4\) units of movement to the right, the vertical change is \(3\) units downward. There are four geometric cases for the value of the slope.
Figure \(\PageIndex{3}\)
Reading the graph from left to right, we see that lines with an upward incline have positive slopes and lines with a downward incline have negative slopes.
Figure \(\PageIndex{4}\)
If the line is horizontal, then the rise is \(0\):
\(m=\frac{rise}{run}=\frac{0}{run}=0\)
The slope of a horizontal line is \(0\). If the line is vertical, then the run is \(0\):
\(m=\frac{rise}{run}=\frac{rise}{0}\quad\color{Cerulean}{Undefined}\)
The slope of a vertical line is undefined.
Exercise \(\PageIndex{1}\)
Find the slope of the given line:
Figure \(\PageIndex{5}\)
- Answer
-
\(m=\frac{2}{3}\)
Calculating the slope can be difficult if the graph does not have points with integer coordinates. Therefore, we next develop a formula that allows us to calculate the slope algebraically. Given any two points \((x_{1}, y_{1})\) and \((x_{2}, y_{2})\), we can obtain the rise and run by subtracting the corresponding coordinates.
Figure \(\PageIndex{6}\)
This leads us to the slope formula. Given any two points \((x_{1}, y_{1})\) and \((x_{2}, y_{2})\), the slope is given by
\(m=\frac{rise}{run}=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\)
Example \(\PageIndex{2}\)
Find the slope of the line passing through \((−3, −5)\) and \((2, 1)\).
Solution:
Given \((−3, −5)\) and \((2, 1)\), calculate the difference of the \(y\)-values divided by the difference of the \(x\)-values. Since subtraction is not commutative, take care to be consistent when subtracting the coordinates.
\(\begin{array}{cc}{(x_{1},y_{1})}&{(x_{2},y_{2})}\\{(-3,-5)}&{(2,1)}\end{array}\)
\(\begin{aligned} m&=\frac{y_{2}-y_{1}}{x_{2}-x_{1}} \\ &=\frac{1-(-5)}{2-(-3)} \\ &=\frac{1+5}{2+3} \\ &=\frac{6}{5} \end{aligned}\)
Answer:
\(m=\frac{6}{5}\)
We can graph the line described in the previous example and verify that the slope is \(\frac{6}{5}\).
Figure \(\PageIndex{7}\)
Certainly the graph is optional; the beauty of the slope formula is that we can obtain the slope, given two points, using only algebra.
Example \(\PageIndex{3}\)
Find the slope of the line passing through \((−4, 3)\) and \((−1, −7)\).
Solution:
\(\begin{array}{cc}{(x_{1},y_{1})}&{(x_{2},y_{2})}\\{(-4,3)}&{(-1,-7)} \end{array}\)
\(m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{-7-(3)}{-1-(-4)}=\frac{-7-3}{-1+4}=\frac{-10}{3}\)
Answer:
\(m=-\frac{10}{3}\)
When using the slope formula, take care to be consistent since order does matter. You must subtract the coordinates of the first point from the coordinates of the second point for both the numerator and the denominator in the same order.
Example \(\PageIndex{4}\)
Find the slope of the line passing through \((7, −2)\) and \((−5, −2)\).
Solution:
\(\begin{array}{cc}{(x_{1},y_{1})}&{(x_{2},y_{2})}\\{(7,-2)}&{(-5,-2)} \end{array}\)
\(m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{-2-(-2)}{-5-(7)}=\frac{-2+2}{-5-7}=\frac{0}{-12}=0\)
Answer:
\(m=0\). As an exercise, plot the given two points and verify that they lie on a horizontal line.
Example \(\PageIndex{5}\)
Find the slope of the line passing through \((−4, −3)\) and \((−4, 5)\).
Solution:
\(\begin{array}{cc}{(x_{1},y_{1})}&{(x_{2},y_{2})}\\{(-4,-3)}&{(-4,5)} \end{array}\)
\(m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{5-(-3)}{-4-(-4)}=\frac{5+3}{-4+4}=\frac{8}{0}\quad\color{Cerulean}{Undefined}\)
Answer:
The slope \(m\) is undefined. As an exercise, plot the given two points and verify that they lie on a vertical line.
Exercise \(\PageIndex{2}\)
Calculate the slope of the line passing through \((−2, 3)\) and \((5, −5)\).
- Answer
-
\(m=-\frac{8}{7}\)
When considering the slope as a rate of change it is important to include the correct units.
Example \(\PageIndex{6}\)
A Corvette Coupe was purchased new in 1970 for about $\(5,200\) and depreciated in value over time until it was sold in 1985 for $\(1,300\). At this point, the car was beginning to be considered a classic and started to increase in value. In the year 2000, when the car was 30 years old, it sold at auction for $\(10,450\). The following line graph depicts the value of the car over time.
Figure \(\PageIndex{8}\)
- Determine the rate at which the car depreciated in value from 1970 to 1985.
- Determine the rate at which the car appreciated in value from 1985 to 2000.
Solution:
Notice that the value depends on the age of the car and that the slope measures the rate in dollars per year.
a. The slope of the line segment depicting the value for the first 15 years is
\(m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{$1,300-$5,200}{15\text{ years}-0\text{ years}}=\frac{-$3,900}{15\text{ years}}=-$260\text{ per year}\)
b. The slope of the line segment depicting the value for the next 15 years is
\(m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{$10,450-$1,300}{30\text{ years}-15\text{ years}}=\frac{$9,150}{15\text{ years}}=$610\text{ per year}\)
Answer:
- The value of the car depreciated $\(260\) per year from 1970 to 1985.
- The value of the car appreciated $\(610\) per year from 1985 to 2000.
To this point, we have learned how to graph lines by plotting points and by using the \(x\)- and \(y\)-intercepts. In addition, we have seen that we need only two points to graph a line. In this section, we outline a process to easily determine two points using the \(y\)-intercept and the slope. The equation of any nonvertical line can be written in slope-intercept form \(y=mx+b\). In this form, we can identify the slope, \(m\), and the \(y\)-intercept, \((0, b)\).
Example \(\PageIndex{7}\)
Determine the slope and \(y\)-intercept:
\(y=−\frac{4}{5}x+7\).
Solution:
In this form, the coefficient of \(x\) is the slope, and the constant is the \(y\)-value of the \(y\)-intercept. Therefore, by inspection, we have
Figure \(\PageIndex{9}\)
Answer:
The \(y\)-intercept is \((0, 7)\), and the slope is \(m=−\frac{4}{5}\).
It is not always the case that the linear equation is given in slope-intercept form. When it is given in standard form, you have to first solve for \(y\) to obtain slope-intercept form.
Example \(\PageIndex{8}\)
Express \(3x+5y=30\) in slope-intercept form and then identify the slope and \(y\)-intercept.
Solution:
Begin by solving for \(y\). To do this, apply the properties of equality to first isolate \(5y\) and then divide both sides by \(5\).
\(\begin{aligned} 3x+5y&=30 \\ 3x+5y\color{Cerulean}{-3x}&=30\color{Cerulean}{-3x} \\ 5y&=-3x+30 \\ \frac{5y}{\color{Cerulean}{5}}&=\frac{-3x+30}{\color{Cerulean}{5}} \\ y&=\frac{-3x}{5}+\frac{30}{5} \\ y&=-\frac{3}{5}x+6 \end{aligned}\)
Answer:
Slope-intercept form: \(y=−\frac{3}{5}x+6\); \(y\)-intercept: \((0, 6)\); slope: \(m=−\frac{3}{5}\)
Once the equation is in slope-intercept form, we immediately have one point to plot, the \(y\)-intercept. From the intercept, you can mark off the slope to plot another point on the line. From the previous example we have
\(y=-\frac{3}{5}x+6\)
\(y\)-intercept: \((0,6)\)
slope: \(m=-\frac{3}{5}=\frac{-3}{5}=\frac{rise}{run}\)
Starting from the point \((0, 6)\), use the slope to mark another point \(3\) units down and \(5\) units to the right.
Figure \(\PageIndex{10}\)
It is not necessary to check that the second point, (5, 3), solves the original linear equation. However, we do it here for the sake of completeness.
\(\begin{aligned} 3x+5y&=30 \\ 3(\color{OliveGreen}{5}\color{black}{)+5(}\color{OliveGreen}{3}\color{black}{)}&=30 \\ 15+15&=30 \\ 30&=30\quad\color{Cerulean}{\checkmark} \end{aligned}\)
Marking off the slope in this fashion produces as many ordered pair solutions as we desire. Notice that if we mark off the slope again, from the point \((5, 3)\), then we obtain the \(x\)-intercept, \((10, 0)\).
Example \(\PageIndex{9}\)
Graph:
\(−x+2y=4\).
Solution:
In this example, we outline the general steps for graphing a line using slope-intercept form.
Step 1: Solve for \(y\) to obtain slope-intercept form.
\(\begin{aligned} -x+2y&=4 \\ -x+2y\color{Cerulean}{+x}&=4\color{Cerulean}{+x} \\ 2y&=x+4 \\ \frac{2y}{\color{Cerulean}{2}}&=\frac{x+4}{\color{Cerulean}{2}} \\ y&=\frac{1x}{2}+\frac{4}{2} \\ y&=\frac{1}{2}x+2 \end{aligned}\)
Step 2: Identify the \(y\)-intercept and slope.
\(y\)-intercept: \((0,2)\)
slope: \(m=\frac{1}{2}=\frac{rise}{run}\)
Step 3: Plot the \(y\)-intercept and use the slope to find another ordered pair solution. Starting from the \(y\)-intercept, mark off the slope and identify a second point. In this case, mark a point after a rise of \(1\) unit and a run of \(2\) units.
Figure \(\PageIndex{11}\)
Step 4: Draw the line through the two points with a straightedge.
Answer:
Figure \(\PageIndex{12}\)
In this example, we notice that we could get the \(x\)-intercept by marking off the slope in a different but equivalent manner. Consider the slope as the ratio of two negative numbers as follows:
\(m=\frac{1}{2}=\frac{-1}{-2}=\frac{rise}{run}\)
We could obtain another point on the line by marking off the equivalent slope down \(1\) unit and left \(2\) units. We do this twice to obtain the \(x\)-intercept, \((−4, 0)\).
Figure \(\PageIndex{13}\)
Marking off the slope multiple times is not necessarily always going to give us the \(x\)-intercept, but when it does, we obtain a valuable point with little effort. In fact, it is a good practice to mark off the slope multiple times; doing so allows you to obtain more points on the line and produce a more accurate graph.
Example \(\PageIndex{10}\)
Graph and find the \(x\)-intercept:
\(y=\frac{3}{4}x−2\).
Solution:
The equation is given in slope-intercept form. Therefore, by inspection, we have the \(y\)-intercept and slope.
\(y\)-intercept: \((0,-2)\)
slope: \(m=\frac{3}{4}=\frac{rise}{run}\)
Figure \(\PageIndex{14}\)
We can see that the \(x\)-value of the \(x\)-intercept is a mixed number between \(2\) and \(3\). To algebraically find \(x\)-intercepts, recall that we must set \(y = 0\) and solve for \(x\).
Answer:
The \(x\)-intercept is \((2\frac{2}{3}, 0)\).
Example \(\PageIndex{11}\)
Graph:
\(x−y=0\).
Solution:
Begin by solving for \(y\).
\(\begin{aligned} x-y&=0\\x-y\color{Cerulean}{-x}&=0\color{Cerulean}{-x} \\ -y&=-x \\ \color{Cerulean}{-1\cdot}\color{black}{(-y)}&=\color{Cerulean}{-1\cdot}\color{black}{(-x)} \\ y&=x \end{aligned}\)
The equation \(y=x\) can be written \(y=1x+0\), and we have
\(y\)-intercept: \((0,0)\)
slope: \(m=1=\frac{1}{1}=\frac{rise}{run}\)
Answer:
Figure \(\PageIndex{15}\)
Exercise \(\PageIndex{3}\)
Graph \(−2x+5y=20\) and label the \(x\)-intercept.
- Answer
-
Figure \(\PageIndex{16}\)