Learning Outcomes
- Calculate the slope of a linear function and interpret its meaning
The easiest type of function to consider is a linear function. Linear functions have the form [latex]f(x)=ax+b[/latex], where [latex]a[/latex] and [latex]b[/latex] are constants. In Figure 1, we see examples of linear functions when [latex]a[/latex] is positive, negative, and zero. Note that if [latex]a>0[/latex], the graph of the line rises as [latex]x[/latex] increases. In other words, [latex]f(x)=ax+b[/latex] is increasing on [latex](−\infty, \infty)[/latex]. If [latex]a<0[/latex], the graph of the line falls as [latex]x[/latex] increases. In this case, [latex]f(x)=ax+b[/latex] is decreasing on [latex](−\infty, \infty)[/latex]. If [latex]a=0[/latex], the line is horizontal.
Slope
As suggested by Figure 1, the graph of any linear function is a line. One of the distinguishing features of a line is its slope. The slope is the change in [latex]y[/latex] for each unit change in [latex]x[/latex]. The slope measures both the steepness and the direction of a line. If the slope is positive, the line points upward when moving from left to right. If the slope is negative, the line points downward when moving from left to right. If the slope is zero, the line is horizontal. To calculate the slope of a line, we need to determine the ratio of the change in [latex]y[/latex] versus the change in [latex]x[/latex]. To do so, we choose any two points [latex](x_1,y_1)[/latex] and [latex](x_2,y_2)[/latex] on the line and calculate [latex]\dfrac{y_2-y_1}{x_2-x_1}[/latex]. In Figure 2, we see this ratio is independent of the points chosen.
Definition
Consider line [latex]L[/latex] passing through points [latex](x_1,y_1)[/latex] and [latex](x_2,y_2)[/latex]. Let [latex]\Delta y=y_2-y_1[/latex] and [latex]\Delta x=x_2-x_1[/latex] denote the changes in [latex]y[/latex] and [latex]x[/latex], respectively. The slope of the line is
Linear Function Formulas
We now examine the relationship between slope and the formula for a linear function. Consider the linear function given by the formula [latex]f(x)=ax+b[/latex]. As discussed earlier, we know the graph of a linear function is given by a line. We can use our definition of slope to calculate the slope of this line. As shown, we can determine the slope by calculating [latex](y_2-y_1)/(x_2-x_1)[/latex] for any points [latex](x_1,y_1)[/latex] and [latex](x_2,y_2)[/latex] on the line. Evaluating the function [latex]f[/latex] at [latex]x=0[/latex], we see that [latex](0,b)[/latex] is a point on this line. Evaluating this function at [latex]x=1[/latex], we see that [latex](1,a+b)[/latex] is also a point on this line. Therefore, the slope of this line is
We have shown that the coefficient [latex]a[/latex] is the slope of the line. We can conclude that the formula [latex]f(x)=ax+b[/latex] describes a line with slope [latex]a[/latex]. Furthermore, because this line intersects the [latex]y[/latex]-axis at the point [latex](0,b)[/latex], we see that the [latex]y[/latex]-intercept for this linear function is [latex](0,b)[/latex]. We conclude that the formula [latex]f(x)=ax+b[/latex] tells us the slope, [latex]a[/latex], and the [latex]y[/latex]-intercept, [latex](0,b)[/latex], for this line. Since we often use the symbol [latex]m[/latex] to denote the slope of a line, we can write
to denote the slope-intercept form of a linear function.
Sometimes it is convenient to express a linear function in different ways. For example, suppose the graph of a linear function passes through the point [latex](x_1,y_1)[/latex] and the slope of the line is [latex]m[/latex]. Since any other point [latex](x,f(x))[/latex] on the graph of [latex]f[/latex] must satisfy the equation
this linear function can be expressed by writing
We call this equation the point-slope equation for that linear function.
Since every nonvertical line is the graph of a linear function, the points on a nonvertical line can be described using the slope-intercept or point-slope equations. However, a vertical line does not represent the graph of a function and cannot be expressed in either of these forms. Instead, a vertical line is described by the equation [latex]x=k[/latex] for some constant [latex]k[/latex]. Since neither the slope-intercept form nor the point-slope form allows for vertical lines, we use the notation
where [latex]a,b[/latex] are both not zero, to denote the standard form of a line.
Definition
Consider a line passing through the point [latex](x_1,y_1)[/latex] with slope [latex]m[/latex]. The equation
is the point-slope equation for that line.
Consider a line with slope [latex]m[/latex] and [latex]y[/latex]-intercept [latex](0,b)[/latex]. The equation
is an equation for that line in slope-intercept form.
The standard form of a line is given by the equation
where [latex]a[/latex] and [latex]b[/latex] are both not zero. This form is more general because it allows for a vertical line, [latex]x=k[/latex].
Example: Finding the Slope and Equations of Lines
Consider the line passing through the points [latex](11,-4)[/latex] and [latex](-4,5)[/latex], as shown in Figure 3.
- Find the slope of the line.
- Find an equation for this linear function in point-slope form.
- Find an equation for this linear function in slope-intercept form.
Watch the following video to see the worked solution to Example: Finding the Slope and Equations of Lines
Try It
Consider the line passing through points [latex](-3,2)[/latex] and [latex](1,4)[/latex]. Find the slope of the line.
Find an equation of that line in point-slope form. Find an equation of that line in slope-intercept form.
Example: A Linear Distance Function
Jessica leaves her house at 5:50 a.m. and goes for a 9-mile run. She returns to her house at 7:08 a.m. Answer the following questions, assuming Jessica runs at a constant pace.
- Describe the distance [latex]D[/latex] (in miles) Jessica runs as a linear function of her run time [latex]t[/latex] (in minutes).
- Sketch a graph of [latex]D[/latex].
- Interpret the meaning of the slope.
Watch the following video to see the worked solution to Example: A Linear Distance Function