Understanding the average rate of change calculator — concept and principle
This calculator finds the average rate of change of a function between two x-values: the change in output divided by the change in input. It also shows both function values, Δy and Δx, the secant line through the two points and the percent change. Use it for algebra and precalculus homework or to describe how fast a quantity changed over an interval.
How it is calculated
Average rate of change m = (f(x₂) − f(x₁)) ÷ (x₂ − x₁) = Δy ÷ Δx
Secant line: y = m x + b, with b = f(x₁) − m x₁
Percent change of f = (f(x₂) − f(x₁)) ÷ |f(x₁)| × 100
- Type the function in x, for example x^2 + 3x or sin(x). Trigonometric functions use radians; log is base 10 and ln is natural.
The principle
Over an interval, a function may speed up and slow down, but the average rate of change replaces it with a straight line that starts and ends at the same points. That line is the secant, and its slope is rise over run. The idea is the same as average speed: distance travelled divided by time taken, whatever happened in between. As x₂ moves closer to x₁, the secant approaches the tangent line and the average rate approaches the derivative, the instantaneous rate of change.
Worked example
Default inputs: f(x) = x² + 3x, from x₁ = 1 to x₂ = 4.
- f(1) = 1 + 3 = 4; f(4) = 16 + 12 = 28.
- Δy = 28 − 4 = 24; Δx = 4 − 1 = 3.
- Average rate of change = 24 ÷ 3 = 8.
- Secant: b = 4 − 8 × 1 = −4, so y = 8x − 4.
- Percent change of f = 24 ÷ 4 × 100 = 600 %.
| Start of the interval x₁ | Average rate of change |
|---|---|
| 0.25 | 7.25 |
| 0.5 | 7.5 |
| 0.75 | 7.75 |
| 1 | 8 |
| 1.25 | 8.25 |
| 1.5 | 8.5 |
| 2 | 9 |
How to read the result
A positive rate means the function rose on average, a negative one that it fell, and zero that it ended where it started. The units are output units per input unit, such as metres per second or won per month. Because it only uses the end points, the average rate says nothing about what happened in between: here the instantaneous rate grows from 5 at x = 1 to 11 at x = 4, and the average 8 lies between them.
Common mistakes
- Subtracting the x-values and f-values in different orders.
- Dividing by x₂ instead of by x₂ − x₁.
- Using degrees for trigonometric functions.
- Confusing the rate of change with the percent change.
Frequently asked questions
What is the average rate of change formula?
(f(b) − f(a)) ÷ (b − a), the slope of the line through the two points.
How is it different from the derivative?
The derivative is the limit of the average rate as the interval shrinks to zero.
Can the average rate of change be zero?
Yes, whenever f(x₂) = f(x₁), even if the function moved in between.
Sources: OpenStax, Algebra and Trigonometry 2e, §3.3 Rates of Change and Behavior of Graphs