Average Rate of Change Calculator
The average rate of change is one of the most useful concepts for understanding how a quantity evolves over an interval. It answers the question: on average, how fast is this function changing between two x values? You calculate it by finding the difference in function output divided by the difference in input, a formula that is identical to the slope of the straight line connecting the two points on the graph, which is called the secant line. This idea bridges the gap between simple linear relationships, where the rate of change is always the same, and the instantaneous rate of change at a single point, which is the derivative from differential calculus. As the interval shrinks the average rate of change approaches the derivative, so understanding AROC is the natural first step before tackling limits and differentiation. This calculator takes any function of x written in standard notation, for example x^2, and two x values x1 and x2. It returns the average rate of change, the equation of the secant line in y = mx + c form, the rise, the run, and the two function values f(x1) and f(x2). Use standard operators +, -, *, / and ^ for powers, plus Math functions like sin, cos, exp, log, sqrt, and abs. The default example shows f(x) = x^2 from x = 1 to x = 3 with AROC = 4 and secant line y = 4x - 3.
AROC = (f(x2) - f(x1)) / (x2 - x1). Use ^ for powers and * for multiplication.
How it works
The calculator evaluates f(x1) and f(x2), then computes the average rate of change as (f(x2) - f(x1)) / (x2 - x1). The rise is f(x2) - f(x1) and the run is x2 - x1. The secant line passes through (x1, f(x1)) with slope equal to the AROC. Using point-slope form, y - f(x1) = AROC * (x - x1), which rearranges to y = AROC * x + (f(x1) - AROC * x1). The y-intercept c = f(x1) - AROC * x1 is shown in the equation. If x1 = x2 the AROC is undefined because you cannot divide by zero.
Worked example
For f(x) = x^2, x1 = 1, x2 = 3: f(1) = 1 and f(3) = 9. The rise is 9 - 1 = 8 and the run is 3 - 1 = 2, giving AROC = 8 / 2 = 4. The secant line equation is y = 4x + (1 - 4 * 1) = y = 4x - 3. At x = 1, y = 1 and at x = 3, y = 9, confirming the line passes through both points.
Related calculators
- Tangent Line Calculator: find the instantaneous rate of change and tangent at a single point.
- Partial Derivative Calculator: extend derivatives to functions of two variables.
- Riemann Sum Calculator: approximate area using rectangular sums over an interval.
- Critical Points Calculator: find where the derivative equals zero.
- Cofactor Matrix Calculator: 2x2 and 3x3 Step-by-Step.
- Coffee Ratio Calculator: brew the Perfect Cup Every Time.