Math Core

Lesson 2.1 · Differentiation: Definition and Basic Rules

Average and instantaneous rate of change

A speedometer shows how fast you're going right now, but every measurement of speed you can actually make uses two moments: distance traveled divided by time elapsed. Calculus closes that gap. In this lesson you'll see how the average rate of change over an interval turns into an instantaneous rate of change at a single point, using the limits you learned in Unit 1.

Average rate of change

Suppose a quantity y=f(x)y = f(x) changes as xx goes from aa to bb. The average rate of change compares the change in output to the change in input.

Definition

Average rate of change

The average rate of change of ff on the interval [a,b][a, b] is

ΔyΔx=f(b)−f(a)b−a\frac{\Delta y}{\Delta x} = \frac{f(b) - f(a)}{b - a}

Geometrically, it is the slope of the secant line through the points (a,f(a))\big(a, f(a)\big) and (b,f(b))\big(b, f(b)\big).

The units of an average rate are always "output units per input unit." If s(t)s(t) is position in meters and tt is time in seconds, the average rate of change of ss is an average velocity in meters per second.

Worked example: Average rate from a formula

Find the average rate of change of f(x)=x3−2xf(x) = x^3 - 2x on [1,3][1, 3].

f(3)=27−6=21f(3) = 27 - 6 = 21 and f(1)=1−2=−1f(1) = 1 - 2 = -1, so

f(3)−f(1)3−1=21−(−1)2=222=11\frac{f(3) - f(1)}{3 - 1} = \frac{21 - (-1)}{2} = \frac{22}{2} = 11

On average, ff increases 11 units for every 1 unit increase in xx on this interval.

From secant lines to a tangent line

An average rate hides everything that happens inside the interval. To learn how fast ff is changing at exactly x=ax = a, make the interval smaller and smaller. Let the second point be a+ha + h, where hh is a small nonzero number. The average rate on the interval from aa to a+ha + h is the difference quotient

f(a+h)−f(a)h\frac{f(a + h) - f(a)}{h}

As h→0h \to 0, the second point slides toward the first, and the secant line pivots toward a single line that just touches the curve at x=ax = a: the tangent line.

The curve y = x², the secant line through x = 1 and x = 3 (dashed, slope 4), and the tangent line at x = 1 (slope 2).Open in grapher →

In the graph, the secant line from x=1x = 1 to x=3x = 3 has slope 9−13−1=4\dfrac{9 - 1}{3 - 1} = 4. Bring the right-hand point closer to x=1x = 1 and the slope drops toward 2, the slope of the tangent line.

Instantaneous rate of change

The instantaneous rate of change of ff at x=ax = a is the limit of average rates of change as the interval shrinks to zero width:

lim⁡h→0f(a+h)−f(a)h\lim_{h \to 0} \frac{f(a + h) - f(a)}{h}

provided this limit exists. It equals the slope of the tangent line to the graph of ff at x=ax = a.

You can't just plug in h=0h = 0: that gives 00\dfrac{0}{0}. This is exactly the kind of indeterminate limit you simplified algebraically in Unit 1.

Worked example: Watching the average rates settle down

A ball's position is s(t)=4t2s(t) = 4t^2 meters after tt seconds. Estimate its velocity at t=1t = 1 using shorter and shorter intervals.

intervalΔs\Delta sΔt\Delta taverage velocity (m/s)
[1,1.1][1, 1.1]4.84−4=0.844.84 - 4 = 0.840.10.18.48.4
[1,1.01][1, 1.01]4.0804−4=0.08044.0804 - 4 = 0.08040.010.018.048.04
[1,1.001][1, 1.001]4.008004−4=0.0080044.008004 - 4 = 0.0080040.0010.0018.0048.004

The average velocities approach 8, so the instantaneous velocity at t=1t = 1 appears to be 88 m/s.

To confirm it exactly, simplify the difference quotient:

s(1+h)−s(1)h=4(1+2h+h2)−4h=8h+4h2h=8+4h(h≠0)\begin{aligned} \frac{s(1 + h) - s(1)}{h} &= \frac{4(1 + 2h + h^2) - 4}{h} \\ &= \frac{8h + 4h^2}{h} = 8 + 4h \quad (h \ne 0) \end{aligned}

As h→0h \to 0, 8+4h→88 + 4h \to 8. The velocity at t=1t = 1 is exactly 88 m/s.

Estimating from a table

On the AP exam you'll often get a function only as a table of values. You can't take a limit of a table, but you can estimate an instantaneous rate with the average rate over the smallest interval that contains the point. When the point sits between two data values, use the two values that bracket it.

Worked example: Rate of change from data

The temperature T(t)T(t) of a cup of coffee, in degrees Fahrenheit, is measured tt minutes after it is poured.

tt (minutes)0259
T(t)T(t) (°F)180168153137

Estimate the rate at which the temperature is changing at t=4t = 4.

The data values closest to t=4t = 4 on either side are t=2t = 2 and t=5t = 5:

T(5)−T(2)5−2=153−1683=−5\frac{T(5) - T(2)}{5 - 2} = \frac{153 - 168}{3} = -5

At t=4t = 4, the temperature is decreasing at about 55 degrees Fahrenheit per minute. The negative sign means the temperature is going down; the units are °F per minute.

Common mistake

Don't confuse the average rate of change with the average of the function's values. The average rate is f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}, a slope. Adding f(a)f(a) and f(b)f(b) and dividing by 2 answers a completely different question.

Tip

Always attach units and a direction word when you interpret a rate: "decreasing at 5 °F per minute at t=4t = 4" earns credit on an AP free-response question; "−5-5" by itself usually doesn't.

Practice

Practice 1

Find the average rate of change of f(x)=x2+3xf(x) = x^2 + 3x on the interval [0,2][0, 2].

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the average rate of change of g(x)=xg(x) = \sqrt{x} on [4,9][4, 9].

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

A particle moves along a line so that its position at time tt is s(t)=t3−ts(t) = t^3 - t. What is the average velocity of the particle on the interval 1≤t≤31 \le t \le 3?

Practice 4

Water drains from a tank. The volume V(t)V(t), in liters, is recorded at selected times tt, in minutes.

tt (minutes)0259
V(t)V(t) (liters)40342513

Use the data to estimate the rate of change of VV at t=3.5t = 3.5, in liters per minute.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Let f(x)=x2−4xf(x) = x^2 - 4x. Find the instantaneous rate of change of ff at x=5x = 5 by evaluating lim⁡h→0f(5+h)−f(5)h\displaystyle \lim_{h \to 0} \frac{f(5 + h) - f(5)}{h}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Find the instantaneous rate of change of f(x)=1xf(x) = \dfrac{1}{x} at x=2x = 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Which expression gives the instantaneous rate of change of a function ff at x=3x = 3?