In this explainer, we will learn how to find the slope of a line using graphs and tables.
For this, you need to already be familiar with functions.
A linear function is a special function whose equation is of the form , where and are constants.
Let us fill in a function table for .
0 | 1 | 2 | |
3 | 5 | 7 |
We see that for , the function value (i.e., the value of ) is (here 3). The point is the point where the line intersects with the -axis, that is, the -intercept. For this reason, the constant is often called the -intercept (it is the -coordinate of the -intercept).
Then, when the value of increases by 1, the value of increases by 2, which comes from the number 2 in the in the equation. Hence, the way the value of increases when increases is given by the constant : when increases by 1, increases by .
This can be generalized with a function table for the general equation .
Let us look now at the effect of on the graph of a linear function. The figure shows six lines whose equations are , with , or .
We observe that all lines intersect at the -intercept of coordinates . The absolute value of determines the steepness of the line: the higher the absolute value, the steeper the line, while its sign determines whether the line goes up (positive ) or down (negative ) when increases (i.e., when we go from the left to the right).
For this reason, is called the slope of the line: its absolute value determines how steep the slope is and its sign gives the direction of the slope.
As mentioned above, a linear function of the equation is characterized by the fact that whenever increases by 1, increases by . This means that if increases by 2, then increases by 2; if increases by 3, then increases by 3; and so on, as shown in the figure for two different lines.
In other words, the change in the -coordinate between any two points is proportional to the change in the -coordinate between the two points, and the coefficient of proportionality is . The slope of the line is therefore the rate of change of the function the line represents.
From this, it follows that is simply the rate of the vertical change (in the -coordinate) to the horizontal change (in the -coordinate) between any two distinct points: , where and are two points lying on the line.
Let us summarize what we have just learned.
Characteristics of a Linear Function
The graph of a linear function is a straight line.
A linear function has a constant rate of change, which means that the difference in the -coordinates of any two points on the straight line representing the linear function is proportional to the difference in their -coordinates.
The rate of change is the slope of the line.
The equation of a line is generally written in the form , where is the slope of the line and is the -intercept.
How To: Finding the Slope of a Line given Two Points
The slope of a line, , is the rate of the vertical change to the horizontal change between two points.
For two points and lying on a line, the slope is then
Let us look at the first example in a real-world context.
Example 1: Finding the Slope of a Line in a Real-World Context
Find the slope of a road that rises 32 feet for every horizontal change of 400 feet.
Answer
It is said here that the road rises 32 feet for a horizontal change of 400 feet. This can be represented as shown in the figure.
The slope is the rate of the vertical change to the horizontal change, that is, .
This fraction can be expressed in its simplest form by dividing both the numerator and the divisor by 16. The result is then . Hence, the slope of the road is .
In the next example, we are going to find the slope of a line from its graph.
Example 2: Finding the Slope of a Line from Its Graph
Find the slope of the line shown.
Answer
The line shown goes through the points of the coordinates and . The horizontal change from the first point to the second is , and the vertical change is .
The slope is the rate of the vertical change to the horizontal change, that is, .
Hence, the slope of the line is .
Now, we are going to find the slope a line from a function table.
Example 3: Finding the Slope of a Line from a Function Table
Find the slope of the line that describes the relationship between the perimeter and the length as shown in the table.
Side Length | 6 | 8 | 10 | 12 |
---|---|---|---|---|
Perimeter | 36 | 48 | 60 | 72 |
Answer
We are given here four points lying on a line representing the perimeter in terms of the side length of a certain shape. We know that the slope is the rate of the vertical change to the horizontal change between any two points. Using this, we can easily find the slope by choosing any two points, for example, and . We find
We could have also noticed that there is a proportional relationship between and : each value is indeed 6 times the value; that is, . The slope of the line representing this relationship is 6.
Example 4: Finding the Slope of a Line from a Function Table
Given that the points shown in the table lie on a line, determine the slope of the line.
1 | 4 | 7 | 10 | |
15 | 19 | 23 | 27 |
Answer
We are given here four points lying on a line.
We know that the slope is the rate of the vertical change to the horizontal change between any two points. Using this, we can easily find the slope by choosing any two points, for example, and . We find, for the slope ,
This fraction can be simplified to , which can be written as .
The slope of the line is .
Finally, we are going to find the slope of a line given two points on it.
Example 5: Finding the Slope of a Line given Two Points
Determine the slope of the line that passes through the points and .
Answer
We are given the coordinates of two points that lie on the line.
We know that the slope is the rate of the vertical change to the horizontal change between any two points. Hence, we find, for the slope , that
This fraction can be reduced to 5.
Hence, the slope of the line is 5.
Key Points
- The graph of a linear function is a straight line.
- A linear function has a constant rate of change, which means that the difference in the -coordinates of any two points on the straight line representing the linear function is proportional to the difference in their -coordinates.
- The rate of change is the slope of the line.
- The equation of a line is generally written in the form , where is the slope of the line and is the -intercept.
- The slope of a line, , is the rate of the vertical change to the horizontal change between two points. For two points and lying on a line, the slope is