Type the function in the f(x) box and the two ends of the interval in From a and To b. The rate appears at once, together with the secant line on the graph.
The ends can be whole numbers, decimals, fractions such as 1/2, or multiples of π typed as pi or pi/2. The order does not matter for the result: swapping a and b changes the sign of both Δy and Δx, and the ratio stays the same.
Both ends must be in the domain of f, and they must be different numbers.
Reading the answer
The first box shows the whole calculation in one line: the formula, your numbers, and the result. For x2 from 1 to 3 it reads 3−1f(3)−f(1)=29−1=4.
The second box gives the two changes separately: Δx=b−a and Δy=f(b)−f(a).
The third box is the equation of the secant line, the straight line through the two points. Its slope is the average rate of change.
A positive rate means f ends higher than it started, a negative rate lower, and 0 means it ends at the same height.
What the average rate of change is
The average rate of change of f from a to b is the change in the output divided by the change in the input:
ΔxΔy=b−af(b)−f(a)
It tells how much f changes per unit of x, on average, across the interval. For f(x)=x2 from 1 to 3, the output goes up by 8 while the input goes up by 2: on average, 4 units of output for each unit of input.
Geometrically it is the slope of the secant line through (a,f(a)) and (b,f(b)).
x2 from 1 to 3: the secant through (1,1) and (3,9) has slope 4.
What the average hides
The average looks at the two ends only. Whatever f does in between is not seen.
For f(x)=3x3−x from −2 to 1 the rate is exactly 0: both ends are at height −32. In between, the function climbs to a peak at x=−1 and comes back down. An average of 0 does not mean nothing happened.
For the same reason, a positive average does not mean the function rises all the way. It means only that it ends higher than it began.
3x3−x from −2 to 1: a level secant, although the curve rises and falls in between.
From average rate to instantaneous rate
DemoShrink the interval
Step 0 of 4
Keep one end fixed and move the other one towards it. The secant line turns about the fixed point, and its slope settles on a number.
For f(x)=x2 with a=1:
b=2: rate 3
b=1.5: rate 2.5
b=1.1: rate 2.1
b=1.01: rate 2.01
The rates close in on 2. That limit is the instantaneous rate of change at x=1, the derivative f′(1), and the secant line becomes the tangent line.
Written with h=b−a, the average rate is the difference quotienthf(a+h)−f(a), and the derivative is its limit as h→0.
Secants of x2 from 1 to 2 and from 1 to 1.5, and the tangent at 1 (navy) they close in on.
Linear functions have one rate
For a straight line f(x)=mx+c, the average rate of change is m on every interval:
b−a(mb+c)−(ma+c)=b−am(b−a)=m
That is what makes a line a line. For any other function the rate depends on which interval you choose, and comparing the rates on neighbouring intervals shows where the function is speeding up or slowing down.
On the line 2x−1 every pair of points gives the rate 2.
Where it is used
Whenever one quantity depends on another, the average rate of change has a name of its own:
position against time: average velocity;
velocity against time: average acceleration;
cost against number of items: average cost of each extra item;
population against time: average growth per year.
If a car's position is s(t)=t2 metres after t seconds, its average velocity between t=1 and t=3 is 3−19−1=4 metres per second. The units of the rate are always the units of the output divided by the units of the input.
Common mistakes
Subtracting in different orders.a−bf(b)−f(a) has the wrong sign. Top and bottom must start from the same end.
Dividing the function values instead of subtracting. The rate is a difference over a difference, not f(a)f(b).
Averaging the two values.2f(a)+f(b) is the average height at the ends, a different thing.
Forgetting brackets with negative numbers.f(−2) for f(x)=x2 is (−2)2=4, not −4.
Using the derivative formula.f′(a) is the rate at one point; the average rate needs two.
Related tools and lessons
To drag the two points along a curve and watch the secant turn into the tangent, open the Average Rate of Change visual tool. The theory of the limit of these rates is in the lessons on derivatives.