# 2.3 Rates of Change and Behavior of Graphs

Since functions represent how an output quantity varies with an input quantity, it is natural to ask about the rate at which the values of the function are changing.

For example, the function below gives the average cost, in dollars, of a gallon of gasoline years after 2000.

t |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |

C(t) |
1.47 | 1.69 | 1.94 | 2.30 | 2.51 | 2.64 | 3.01 | 2.14 |

If we were interested in how the gas prices had changed between 2002 and 2009, we could computer that the cost per gallon had increased from $1.47 to $2.14, an increase of 0.67. While this is interesting, it might be more useful to look at how much the price changed *per year*. You are probably noticing that the price didn’t change the same amount each year, so we would be finding the **average rate of change** over a specified amount of time.

The gas price increased by 0.67 from 2002 to 2009, over 7 years, for an average of dollars per year. On average, the price of gas increased by about 9.6 cents each year.

Rate of Change

A **rate of change** describes how the output quantity changes in relation to the input quantity. The units on a rate of change are “output units per input units”

Some other examples of rates of change would be quantities like:

- A population of rats increases by 40 rats per week
- A barista earns 9 dollars per hour
- A farmer plants 60,000 onions per acre
- A car can drive 27 miles per gallon
- A population of grey whales decreases by 8 whales per year
- The amount of money in your college account decreases by 4,000 dollars per quarter

Average Rate of Change

The **average rate of change** between two input values is the total change of the function values (output values) divided by the change in the input values.

Example

**Using the cost-of-gas function from earlier, find the average rate of change between 2007 and 2009**

From the table, in 2007 the cost of gas was 2.64. In 2009 the cost was 2.14.

The input (years) has changed by 2. The output has changed by 2.14 – 2.64 = -0.50. The average rate of change is then dollars per year.

Notice that in the last example the change of output was *negative *since the output value of the function had decreased. Correspondingly, the average rate of change is negative.

Try it Now 1

Using the same cost-of-gas function, find the average rate of change between 2003 and 2008

Examples

**a. On a road trip, after picking up your friend who lives 10 miles away, you decide to record your distance from home over time. Find your average speed over the first 6 hours.**

t (hours) |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |

D(t) (miles) |
10 | 55 | 90 | 153 | 214 | 240 | 292 | 300 |

Here, your average speed is the average rate of change. You traveled 282 miles in 6 hours for an average speed of miles per hour.

**b. Given the function shown here, find**

** the average rate of change on the interval [0,3].**

At , the graph shows

At , the graph shows

The output has changed by 3 while the input has changed by 3, giving an average rate of change of:

We can more formally state the average rate of change calculation using function notation.

Average Rate of Change using Function Notation

Given a function , the average rate of change on the interval is

Examples

**a. Compute the average rate of change of on the interval **

We can start by computing the function values at each endpoint of the interval:

Now computing the average rate of change

Average rate of change

**b. The magnetic force F, measured in Newtons, between two magnets is related to the distance between the magnets d, in centimeters, by the formula . **

**Find the average rate of change of force if the distance between the magnets is increased from 2 cm to 6 cm.**

We are computing the average rate of change of on the interval [2,6]

Average rate of change

Evaluate:

Combine:

Simplify:

Newtons per centimeter

This tells us the magnetic force decreases, on average, by Newtons per centimeter over this interval.

**c. Find the average rate of change of on the interval . Your answer will be an expression involving .**

Using the average rate of change formula

Evaluate:

Simplify:

Factor:

Cancel:

This result tells us the average rate of change between and any other point . For example, on the interval , the average rate of change would be

Try it Now 2

a. Find the average rate of change of on the interval

b. Find the average rate of change of on the interval

#### The Difference Quotient

Notice the problem b in the Try it Now 2. We want to find the rate of change between a and a+h. When we want to find the rate of change of a function over an interval of size h, we usually call the interval . Using the formula for average rate of change in function notation, this becomes:

Difference Quotient

Given a function, , the average rate of change between x and a point h units greater than x is given by the difference quotient:

We can also think of the difference quotient as the slope of a line than passes through x and x+h. The line that connects two points on a graph is called the **secant line, **as illustrated by the figure below.

Examples using the Difference Quotient

Compute the difference quotient for the following functions:

a.

Evaluate Function:

Distribute the 3 and the -:

Cancel 3x-3x and -8+8:

Cancel h’s:

b.

Evaluate Function:

Expand the square, distribute the 2 and the -:

Cancel x^2’s, 2x and 3’s:

Factor out h:

Cancel h’s:

Be Careful! You have to put (x+h) into the function as one piece and then simply within the function. As a general rule You also want to remember to put parentheses around the f(x) because do not want to forget to distribute the negative.

Try it Now 3

a.

b.

**Application to Business**

In business, average rate of change is related to the idea of marginal cost, marginal revenue, and marginal profit.

Marginal Cost/Revenue/Profit

**Marginal Cost** is typically defined as the change in total cost if the quantity of items produced increases by one. Likewise, **marginal revenue** and **marginal profit** are the change in revenue and profit if the quantity of items increases by one.

In practice, marginal cost is usually calculated another way, using calculus techniques you will learn in future courses. In this course, though, we will stick with calculating marginal cost by looking at the actual change of total cost when production increases by one.

Examples

**A company has determined the total cost of producing items is . Find the marginal cost, when production is currently 5000 items. **

We want to find the increase in total cost when increasing production from 5000 items to 5001 items. This is equivalent to finding the average rate of change on the interval [5000, 5001].

The total cost at 5000 items is:

The total cost at 5001 items is:

The marginal cost is .

To interpret this in words, after producing 5000 items, the additional cost of producing the 5001st item is 36 cents.

**Graphical Behavior of Functions**

As part of exploring how functions change, it is interesting to explore the graphical behavior of functions.

Increading/Decreasing

A function is **increasing** on an interval if the function values increase as the inputs increase. Or, as you read left to right, the graph is trending up. More formally, a function is increasing if for any two input values and in the interval with . The average rate of change on an increasing function is **positive**.

A function is **decreasing** on an interval if the function values decrease as the inputs increase. Or, as you read left to right, the graph is trending down. More formally, a function is decreasing if for any two input values and in the interval with . The average rate of change on an increasing function is **negative**.

Example on Increasing/Decreasing Intervals

*t*= 1 to

*t*= 3, and from

*t*= 4 on.

Local Extrema

A point where a function changes from increasing to decreasing is called a **local maximum**.

A point where a function changes from decreasing to increasing is called a **local minimum**.

Together, local maxima and minima are called the **local extrema**, or local extreme values, of the function.

Examples of Local Extrema

**a. Using the cost of gasoline function from the beginning of the section, find an interval on which the function appears to be decreasing. Estimate any local extrema using the table.**

t |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |

C(t) |
1.47 | 1.69 | 1.94 | 2.30 | 2.51 | 2.64 | 3.01 | 2.14 |

It appears that the cost of gas increased from to . It appears the cost of gas decreased from to , so the function appears to be decreasing on the interval (8,9).

Since the function appears to change from increasing to decreasing at , there is a local maximum at .

**b. Use a graph to estimate the local extrema of the function . **

**Use this or your favorite graphing software like Desmos or calculator to determine the intervals on which the function is increasing.**

Using technology to graph the function, it appears there is a local minimum somewhere between and , and a symmetric local maximum somewhere between and .

Most graphing calculators and graphing utilities can estimate the location of maxima and minima. Below are screen images from two different technologies, showing the estimate for the local maximum and minimum.

Based on these estimates, a local maximum occurs at about , a local minimum occurs at about and the function is increasing on the intervals and .

Desmos automatically puts a grey dot where the local extrema are which you can click on to display the coordinates, while on a TI-83/84 Calculator, here is a step-by step instruction on doing this. If you need a second set of instructions or have a CASIO, try this instruction page.

Try It Now 4

a. If a company has a total revenue function of , what would its marginal revenue be when they sell 2000 items?

b. Use a graph of the function (on Desmos or your calculator) to estimate the local extrema of the function. Use one of these to determine the intervals on which the function is increasing and decreasing.

Try it Now Answers

- dollars per year.

2. a. Average rate of change

b.

3. a.

b.

4. Based on the graph, the local maximum appears to occur at , and the local minimum occurs at . The function is increasing on and decreasing on .

### Media Attributions

- takenote is licensed under a Public Domain license
- examplegraph2.3
- diffq
- warningsign
- examplegraph2.4
- examplegraph2.3_2
- example2.3desmos
- tiscreenshot