Average Rate of Change Calculator
Calculate the average rate of change of any function between two points. Enter f(x), specify interval [a, b], and get the slope of the secant line instantly.
About
The average rate of change of a function f(x) over an interval [a, b] quantifies how the output shifts per unit of input. It is numerically identical to the slope of the secant line connecting the points (a, f(a)) and (b, f(b)). Confusing this with instantaneous rate (the derivative) is a common error in coursework and engineering estimates. A wrong interval or a misread sign can cascade into incorrect velocity readings, flawed cost projections, or misjudged growth trends. This calculator parses your function symbolically and evaluates the difference quotient without floating-point shortcuts.
The tool supports polynomial, trigonometric, exponential, and logarithmic expressions. It plots the curve with the secant line for visual verification. Note: the formula assumes f is defined and finite at both endpoints. Discontinuities or division by zero at a or b will produce an error. For piecewise functions, evaluate each piece separately across its valid sub-interval.
Formulas
The average rate of change of f(x) on the interval [a, b] is defined as the difference quotient:
This is geometrically equivalent to the slope of the secant line through the two points (a, f(a)) and (b, f(b)). The secant line equation is:
Where f(x) is the function expression, a is the left endpoint of the interval, b is the right endpoint of the interval (b โ a), f(a) is the function value at a, and f(b) is the function value at b. The constraint b โ a is mandatory to avoid division by zero. As b โ a, the average rate of change approaches the instantaneous rate (derivative) fโฒ(a).
Reference Data
| Function Type | Example f(x) | Interval | Average Rate of Change | Notes |
|---|---|---|---|---|
| Linear | 3x + 2 | [1, 5] | 3 | Constant slope; equals the derivative everywhere |
| Quadratic | x2 | [1, 4] | 5 | (16 โ 1) รท (4 โ 1) = 5 |
| Cubic | x3 โ 2x | [0, 3] | 7 | (21 โ 0) รท 3 |
| Square Root | sqrt(x) | [4, 9] | 0.2 | (3 โ 2) รท 5 |
| Exponential | ex | [0, 1] | 1.7183 | e โ 1 ≈ 1.7183 |
| Natural Log | ln(x) | [1, 10] | 0.2558 | ln(10) รท 9 |
| Sine | sin(x) | [0, ฯ] | 0 | Symmetric interval; net change is zero |
| Cosine | cos(x) | [0, ฯรท2] | โ0.6366 | โ1 รท (ฯรท2) |
| Tangent | tan(x) | [0, ฯรท4] | 1.2732 | 1 รท (ฯรท4) |
| Absolute Value | abs(x) | [โ3, 5] | 0.25 | (5 โ 3) รท 8 |
| Reciprocal | 1รทx | [1, 5] | โ0.2 | (0.2 โ 1) รท 4 |
| Power | x1.5 | [1, 4] | 2.3333 | (8 โ 1) รท 3 |
| Polynomial | 2x3 โ 5x + 1 | [โ1, 2] | 1 | (7 โ 4) รท 3 |
| Log Base 10 | log(x) | [1, 100] | 0.0202 | 2 รท 99 |
| Composite | x2 โ sin(x) | [0, ฯ] | 0 | sin(ฯ) = 0 |