# Functions

## Rates of Change and Behavior of Graphs


### Learning Objectives

1. Find the slope of a line (IA 3.2.1)

### Objective 1: Find the slope of a line (IA 3.2.1)


In our work with functions we will make observations about when the function increases or decreases and how quickly this change takes place. The average rate of change is a measure of change of a function and tells us how an output quantity, or y value, changes relative to an input quantity, or x value. Finding the average rate of change between two points is equivalent to finding the slope of the line segment connecting these two data points.

 
When interpreting an average rate of change it will be important to consider the units of measurement. Make sure to always attach these units to both the numerator and denominator when they are provided to you.

### Activity: Finding slopes of lines.


          ⓐ Which pair of lines appear parallel?  ________ and ________.
          Find their slopes: ________;  _________

          ⓑ Which pair of lines appear perpendicular?  ________ and ________.
Find their slopes: ________;  _________

          ⓒ Complete the following:
Two lines are parallel if their slopes are _________.
Two lines are perpendicular if their slopes are _________.



### Practice Makes Perfect

Find the slope of a line and the average rate of change.

Gasoline costs have experienced some wild fluctuations over the last several decades. http://www.eia.gov/totalenergy/data/annual/showtext.cfm?t=ptb0524. Accessed 3/5/2014. lists the average cost, in dollars, of a gallon of gasoline for the years 2005–2012. The cost of gasoline can be considered as a function of year.
If we were interested only in how the gasoline prices changed between 2005 and 2012, we could compute that the cost per gallon had increased from $2.31 to $3.68, an increase of $1.37. While this is interesting, it might be more useful to look at how much the price changed per year. In this section, we will investigate changes such as these.

### Finding the Average Rate of Change of a Function

The price change per year is a rate of change because it describes how an output quantity changes relative to the change in the input quantity. We can see that the price of gasoline in  did not change by the same amount each year, so the rate of change was not constant. If we use only the beginning and ending data, we would be finding the average rate of change over the specified period of time. To find the average rate of change, we divide the change in the output value by the change in the input value.
The Greek letter 
  (delta) signifies the change in a quantity; we read the ratio as “delta-y over delta-x” or “the change in 
    divided by the change in 
   ” Occasionally we write 
  instead of 
  which still represents the change in the function’s output value resulting from a change to its input value. It does not mean we are changing the function into some other function.
In our example, the gasoline price increased by $1.37 from 2005 to 2012. Over 7 years, the average rate of change was
On average, the price of gas increased by about 19.6¢ each year.
Other examples of rates of change include:
1. A population of rats increasing by 40 rats per week
2. A car traveling 68 miles per hour (distance traveled changes by 68 miles each hour as time passes)
3. A car driving 27 miles per gallon (distance traveled changes by 27 miles for each gallon)
4. The current through an electrical circuit increasing by 0.125 amperes for every volt of increased voltage
5. The amount of money in a college account decreasing by $4,000 per quarter

### Using a Graph to Determine Where a Function is Increasing, Decreasing, or Constant

As part of exploring how functions change, we can identify intervals over which the function is changing in specific ways. We say that a function is increasing on an interval if the function values increase as the input values increase within that interval. Similarly, a function is decreasing on an interval if the function values decrease as the input values increase over that interval. The average rate of change of an increasing function is positive, and the average rate of change of a decreasing function is negative.  shows examples of increasing and decreasing intervals on a function.
While some functions are increasing (or decreasing) over their entire domain, many others are not. A value of the input where a function changes from increasing to decreasing (as we go from left to right, that is, as the input variable increases) is the location of a  local maximum. The function value at that point is the local maximum. If a function has more than one, we say it has local maxima. Similarly, a value of the input where a function changes from decreasing to increasing as the input variable increases is the location of a local minimum. The function value at that point is the local minimum. The plural form is “local minima.” Together, local maxima and minima are called local extrema, or local extreme values, of the function. (The singular form is “extremum.”) Often, the term local is replaced by the term relative. In this text, we will use the term local.
Clearly, a function is neither increasing nor decreasing on an interval where it is constant. A function is also neither increasing nor decreasing at extrema. Note that we have to speak of local extrema, because any given local extremum as defined here is not necessarily the highest maximum or lowest minimum in the function’s entire domain.
For the function whose graph is shown in , the local maximum is 16, and it occurs at 
  The local minimum is 
    and it occurs at 
   
  
To locate the local maxima and minima from a graph, we need to observe the graph to determine where the graph attains its highest and lowest points, respectively, within an open interval. Like the summit of a roller coaster, the graph of a function is higher at a local maximum than at nearby points on both sides. The graph will also be lower at a local minimum than at neighboring points.  illustrates these ideas for a local maximum.
These observations lead us to a formal definition of local extrema.

### Analyzing the Toolkit Functions for Increasing or Decreasing Intervals 

We will now return to our toolkit functions and discuss their graphical behavior in , , and .

###  Use A Graph to Locate the Absolute Maximum and Absolute Minimum

There is a difference between locating the highest and lowest points on a graph in a region around an open interval (locally) and locating the highest and lowest points on the graph for the entire domain. The 
  coordinates (output) at the highest and lowest points are called the absolute maximum and absolute minimum, respectively.
To locate absolute maxima and minima from a graph, we need to observe the graph to determine where the graph attains it highest and lowest points on the domain of the function. See .
Not every function has an absolute maximum or minimum value. The toolkit function 
    is one such function.

### Key Equations


### Key Concepts

1. A rate of change relates a change in an output quantity to a change in an input quantity. The average rate of change is determined using only the beginning and ending data. See .
2. Identifying points that mark the interval on a graph can be used to find the average rate of change. See .
3. Comparing pairs of input and output values in a table can also be used to find the average rate of change. See .
4. An average rate of change can also be computed by determining the function values at the endpoints of an interval described by a formula. See  and .
5. The average rate of change can sometimes be determined as an expression. See .
6. A function is increasing where its rate of change is positive and decreasing where its rate of change is negative. See .
7. A local maximum is where a function changes from increasing to decreasing and has an output value larger (more positive or less negative) than output values at neighboring input values.
8. A local minimum is where the function changes from decreasing to increasing (as the input increases) and has an output value smaller (more negative or less positive) than output values at neighboring input values.
9. Minima and maxima are also called extrema.
10. We can find local extrema from a graph. See  and .
11. The highest and lowest points on a graph indicate the maxima and minima. See .

### Section Exercises


### Verbal


### Algebraic

For the following exercises, find the average rate of change of each function on the interval specified for real numbers 
     or 
     in simplest form.


### Graphical

For the following exercises, consider the graph of 
     shown in .
For the following exercises, use the graph of each function to estimate the intervals on which the function is increasing or decreasing.
For the following exercises, consider the graph shown in .
For the following exercises, consider the graph in .

### Numeric

For the following exercises, find the average rate of change of each function on the interval specified.

### Technology

For the following exercises, use a graphing utility to estimate the local extrema of each function and to estimate the intervals on which the function is increasing and decreasing.

### Extension


### Real-World Applications
