Skip to main content

Section 2.1 Slope

In this section, we will learn how to calculate and interpret the slope between two points. We will also define a linear function using our understanding of slope.

Definition 2.1.1.

The Slope, \(m\text{,}\) between two points is determined by the change in output divided by the change in input between the two points. For points \((x_1, y_1)\) and \((x_2, y_2)\text{,}\) the slope is given by the formula:
\begin{equation*} m = \frac{y_2 - y_1}{x_2 - x_1}= \frac{y_1 - y_2}{x_1 - x_2} \end{equation*}
The above equation is showing that the order in which we subtract the y-values and x-values does not matter. However, make sure that if you start with \(y_2\) in the numerator, then you also start with \(x_2\) in the denominator, and similaryly, if you start with \(y_1\) in the numerator, then you also start with \(x_1\) in the denominator.
We also refer to the slope as the "rise over run" or the "change in y over change in x".
\begin{equation*} m = \frac{\text{Change in }y}{\text{Change in }x} = \frac{\text{Rise}}{\text{Run}} \end{equation*}

Example 2.1.2. Slope between Two Points.

What is the slope between the points \((4,-3)\) and \((1,3)\text{?}\)
Solution.
We first decide which point will be \((x_1, y_1)\) and which point will be \((x_2, y_2)\text{.}\) This choice is up to you, and is the reason behind the order not mattering as shown in DefinitionΒ 2.1.1.
Let’s choose \((4,-3)\) to be \((x_1, y_1)\) and \((1,3)\) to be \((x_2, y_2)\text{.}\) Then we can substitute into the formula for slope:
\begin{equation*} m = \frac{y_2 - y_1}{x_2 - x_1}=\frac{3 - (-3)}{1 - 4} = \frac{6}{-3} = -2 \end{equation*}
We could also have used the other order and get the same value in the end:
\begin{equation*} m = \frac{y_1 - y_2}{x_1 - x_2}=\frac{-3 - 3}{4 - 1} = \frac{-6}{3} = -2 \end{equation*}
So, the slope between the points \((4,-3)\) and \((1,3)\) is \(-2\text{.}\)

Example 2.1.3. Slope between Two Points (Function Notation).

Let \(f(x)=x^2 \) and \(g(x)=2x+1 \text{.}\) What is the slope between the points \((2,f(2))\) and \((1,g(1))\text{?}\)
Solution.
First, we need to find the coordinates of the two points. We can do this by substituting into the functions:
\begin{equation*} f(2) = 2^2 = 4 \end{equation*}
and
\begin{equation*} g(1) = 2(1)+1 = 3 \end{equation*}
So, the two points are \((2,4)\) and \((1,3)\text{.}\)
Now we can use the formula for slope to find the slope between these two points:
\begin{equation*} m = \frac{y_2 - y_1}{x_2 - x_1}=\frac{3 - 4}{1 - 2} = \frac{-1}{-1} = 1 \end{equation*}

Example 2.1.4. Slope between Two Points (Rise over Run).

What is the slope between the points \((1,1)\) and \((4,5)\text{?}\)
Diagram Exploration Keyboard Controls
Key Action
Enter, A Activate keyboard driven exploration
B Activate menu driven exploration
Escape Leave exploration mode
Cursor down Explore next lower level
Cursor up Explore next upper level
Cursor right Explore next element on level
Cursor left Explore previous element on level
X Toggle expert mode
W Extra details if available
Space Repeat speech
M Activate step magnification
Comma Activate direct magnification
N Deactivate magnification
Z Toggle subtitles
C Cycle contrast settings
T Monochrome colours
L Toggle language (if available)
K Kill current sound
Y Stop sound output
O Start and stop sonification
P Repeat sonification output
Figure 2.1.5. Graph of the two points
Solution.
You can find the slope just as we did in example ExampleΒ 2.1.2 by substituting into the formula for slope. However, let’s use the alternative definition for this example. Namely, let’s find the change in \(y\) and the change in \(x\) from the graph.
To do this, pick a point to start with. I’ll choose \((1,1)\text{.}\) Then, to get to \((4,5)\) I must go up 4 units (the change in \(y\)) and right \(3\) units (the change in \(x\)). Note that going up or to the right is positive, while going down or to the left is negative. So, the change in \(y\) is \(4\) and the change in \(x\) is \(3\text{.}\) Therefore, the slope is:
\begin{equation*} m = \frac{\text{Change in }y}{\text{Change in }x} = \frac{4}{3} \end{equation*}

Definition 2.1.6.

A function is called a Linear Function if the slope is constant. In other words, a function is linear if the slope between any two points is the same.

Exercises Preview 2.1

Read the section above and watch the video for review, then complete the following exercises for Preview 2.1.

1.

Determine the slope of the line between the points \((3,-4)\) and \((8,2)\text{.}\)
  • \(\frac{-6}{5} \)
  • \(\frac{6}{5} \)
  • \(\frac{-5}{6} \)
  • \(\frac{5}{6} \)

2.

Determine the slope of the line between the points \((-3.6,5.9)\) and \((2.4,4.4)\text{.}\)
  • \(-4 \)
  • \(-\frac{1}{4} \)
  • \(4 \)
  • \(\frac{1}{4} \)

3.