Learning Outcomes
- Define slope for a linear function
- Calculate slope given two points
One well known form for writing linear functions is known as slope-intercept form, where is the input value, is the rate of change or slope, and is the initial value of the dependant variable.
We often need to calculate the slope given input and output values. Given two values for the input, and , and two corresponding values for the output, and —which can be represented by a set of points, and —we can calculate the slope , as follows
where is the vertical displacement and is the horizontal displacement. Note in function notation two corresponding values for the output and for the function are and , so we could equivalently write
The graph below indicates how the slope of the line between the points, and is calculated. Recall that the slope measures steepness. The greater the absolute value of the slope, the steeper the line is.
The slope of a function is calculated by the change in divided by the change in . It does not matter which coordinate is used as the and which is the , as long as each calculation is started with the elements from the same coordinate pair.
The units for slope are always . Think of the units as the change of output value for each unit of change in input value. An example of slope could be miles per hour or dollars per day. Notice the units appear as a ratio of units for the output per units for the input.
Calculating Slope
The slope, or rate of change, of a function can be calculated using the following formula:
where and are input values, and are output values.
When the slope of a linear function is positive, the line is moving in an uphill direction from left to right across the coordinate axes. This is also called an increasing linear function. Likewise, a decreasing linear function is one whose slope is negative. The graph of a decreasing linear function is a line moving in a downhill direction from left to right across the coordinate axes.
In mathematical terms,
For a linear function , if , then is an increasing function.
For a linear function , if , then is a decreasing function. For a linear function , if , then is a constant function. Sometimes we say this is neither increasing nor decreasing. In the following example, we will first find the slope of a linear function through two points then determine whether the line is increasing, decreasing, or neither.
Example
If is a linear function and and are points on the line, find the slope. Is this function increasing or decreasing?
In the following video we show examples of how to find the slope of a line passing through two points and then determine whether the line is increasing, decreasing or neither.
Example
The population of a city increased from to between and . Find the change of population per year if we assume the change was constant from to .
In the next video, we show an example where we determine the increase in cost for producing solar panels given two data points.
The following video provides an example of how to write a function that will give the cost in dollars for a given number of credit hours taken, x.
Candela Citations
- Precalculus. Authored by: Jay Abramson, et al.. Provided by: OpenStax. Located at: http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175. License: CC BY: Attribution. License Terms: Download For Free at : http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.
- Revision and Adaptation. Provided by: Lumen Learning. License: CC BY: Attribution
- Write and Graph a Linear Function by Making a Table of Values (Intro). Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. Located at: https://youtu.be/X3Sx2TxH-J0. License: CC BY: Attribution
- Ex: Find the Slope Given Two Points and Describe the Line. Authored by: James Sousa (Mathispower4u.com) . Located at: https://youtu.be/in3NTcx11I8. License: CC BY: Attribution
- Ex: Slope Application Involving Production Costs. Authored by: James Sousa (Mathispower4u.com) . Located at: https://youtu.be/4RbniDgEGE4. License: CC BY: Attribution