Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Average Rate of Change


Local view · f(x) = ⅓x³ − x

f'(x) = x² − 1  ·  max at x = −1  ·  min at x = 1
Step
Drag P1 or P2, or pick a scenario to watch it unfold.
P1 x =-1.40
P2 x =-0.40
slope =-0.11
f(x)secantΔx, Δy







Key Terms

Average rate of change — the slope of the line through two points on a function's graph, measuring how much the output changes per unit of input across an interval.

Secant line — the straight line that passes through two distinct points on a curve. Its slope equals the average rate of change between those points.

$\Delta x$ — the change in the input, computed as x2x1x_2 - x_1.

$\Delta y$ — the change in the output, computed as f(x2)f(x1)f(x_2) - f(x_1).

Derivative — the instantaneous rate of change at a single point, defined as the limit of the average rate of change as Δx0\Delta x \to 0.

Local maximum / minimum — an interior point where the function reaches a peak or valley relative to nearby values.

Getting Started with the Visualizer

    The visualizer shows the cubic function f(x)=13x3xf(x) = \frac{1}{3}x^3 - x together with two sample points labeled P1P_1 and P2P_2. The straight line connecting them is the secant line, and its slope is the average rate of change between the two points.

    The interface is split into two parts. The left panel holds the graph, four scenario buttons, and a row of numeric readouts. The right panel is a tabbed sidebar with three views: Computation, Meaning, and Theory.

    There are two ways to drive the tool:

  • Drag P1P_1 or P2P_2 along the curve to place them anywhere you like. The slope, Δx\Delta x, and Δy\Delta y all update in real time.
  • Pick a scenario to play a guided animation that moves the points into a textbook configuration and walks through every measurement step by step.

  • Use dragging to explore freely; use scenarios to learn what each configuration is telling you.

Choosing Among the Four Scenarios

    Four buttons sit below the graph, each tied to a color theme and a short narrated animation.

  • Ascending (blue) — places both points on the left wing where the curve is climbing. The secant slope comes out positive.
  • Descending (red) — places the points on either side of the middle interval where the curve is falling. The slope is negative.
  • Local max (amber) — straddles the peak at x=1x = -1. The animation continues with two extra tighten steps that bring the points together symmetrically, shrinking the slope toward zero.
  • Local min (teal) — does the same around the valley at x=1x = 1, with the slope approaching zero from the other side.

  • Click Reset to clear the scenario and return P1P_1 and P2P_2 to their default positions for free dragging. While an animation is running, dragging is temporarily disabled so the scripted sequence can play out without interference.

Reading the Computation Tab

    The Computation tab breaks the slope calculation into three highlighted sections that light up as the animation reaches them.

  • The two points — shows the coordinates (x1,f(x1))(x_1, f(x_1)) and (x2,f(x2))(x_2, f(x_2)) for the current positions of P1P_1 and P2P_2.
  • Step 1 — horizontal and vertical change — computes Δx=x2x1\Delta x = x_2 - x_1 and Δy=f(x2)f(x1)\Delta y = f(x_2) - f(x_1) with the actual numbers substituted in.
  • Step 2 — average rate of change — divides Δy\Delta y by Δx\Delta x to produce the secant slope m=Δy/Δxm = \Delta y / \Delta x.

  • Each formula box dims while its quantity has not yet been revealed in the animation, so the panel mirrors the geometry on the canvas. Drag the points freely and all three blocks recalculate continuously, giving a live numeric companion to the visual.

Reading the Meaning and Theory Tabs

    The Meaning tab opens automatically once an animation finishes. It shows a colored verdict card that names the configuration — ascending, descending, local maximum, or local minimum — and explains what the sign of the slope says about the function on that interval. A second card underneath gives the deeper reason: why the sign tells you about monotonicity, or why a zero slope at a peak is necessary but not sufficient on its own.

    The Theory tab is always available and holds four reference blocks:

  • Definition — the formal limit definition of the derivative.
  • Sign and monotonicity — the connection between the sign of ff' and whether the function is increasing or decreasing.
  • Fermat's theorem — why smooth local extrema force f(c)=0f'(c) = 0.
  • On this function — what each of these statements looks like for the specific cubic shown.

  • Use Meaning for interpretation of the current scenario; use Theory for the underlying rules that apply to any differentiable function.

Tips for Exploring the Curve

    A few patterns are worth trying once you have the controls in hand.

  • Sweep through the interval — keep P1P_1 at a fixed position and slide P2P_2 across the curve. Watch the slope readout flip sign as P2P_2 crosses the local max and local min.
  • Shrink the interval manually — place P1P_1 and P2P_2 very close to each other near x=1x = -1. The slope approaches zero, mirroring what the tighten animation does automatically.
  • Compare equal intervals — put both points on the left wing, then on the right wing. Both readings are positive, but the magnitudes differ because the curve steepens away from the origin.
  • Cross the inflection — straddle x=0x = 0 symmetrically. The slope is exactly 1-1, the most negative average rate the function attains across any interval centered there.

  • The bottom-of-graph readouts and the formulas in the Computation tab stay synchronized, so any drag is immediately reflected in the arithmetic.

What is the Average Rate of Change?

The average rate of change of a function ff over an interval [x1,x2][x_1, x_2] is the slope of the secant line joining the points (x1,f(x1))(x_1, f(x_1)) and (x2,f(x2))(x_2, f(x_2)). It measures, on average, how many units the output gains or loses for each unit gained in the input.

The formula is:

Average rate of change=f(x2)f(x1)x2x1=ΔyΔx\text{Average rate of change} = \frac{f(x_2) - f(x_1)}{x_2 - x_1} = \frac{\Delta y}{\Delta x}


Geometrically, this is rise over run — exactly the slope formula from algebra applied to two points selected on the curve. It is the discrete, interval-based counterpart of the derivative, which deals with an infinitesimal interval.

For deeper coverage of slopes, see the slope theory page, and for the move from intervals to instants, see the derivative as a limit page.

From Secant Slope to Derivative

Holding P1P_1 fixed at a point cc and sliding P2P_2 toward it makes the interval Δx\Delta x shrink. The secant line connecting the two points rotates as it shrinks, and in the limit it becomes the tangent line at cc. The slope of that tangent line is the value of the derivative f(c)f'(c).

The formal statement is the limit definition of the derivative:

f(c)=limΔx0f(c+Δx)f(c)Δxf'(c) = \lim_{\Delta x \to 0} \frac{f(c + \Delta x) - f(c)}{\Delta x}


So the derivative is the average rate of change over a vanishing interval — an instantaneous rate. The Local max and Local min scenarios visualize this collapse directly: the slope readout falls toward zero as the two points squeeze together around the extremum.

For the full treatment see the derivative theory page and the limit definition page.

Sign of the Derivative and Monotonicity

    On any interval where ff is differentiable, the sign of ff' controls whether ff is increasing or decreasing.

  • f(x)>0f'(x) > 0 for every xx in the interval, then ff is strictly increasing there.
  • f(x)<0f'(x) < 0 for every xx in the interval, then ff is strictly decreasing there.

  • For the cubic in the visualizer, f(x)=x21f'(x) = x^2 - 1. This is positive when x>1|x| > 1 and negative when x<1|x| < 1, which is exactly what the Ascending and Descending scenarios are showcasing: the left and right wings climb, and the middle section falls.

    This connection is the practical engine of curve sketching — the sign chart of ff' tells you the monotonicity intervals of ff. For the rigorous statement and proof, see the monotonicity theorem page.

Local Extrema and Fermat's Theorem

Fermat's theorem states that if ff has a local maximum or local minimum at an interior point cc and f(c)f'(c) exists, then f(c)=0f'(c) = 0. Points where the derivative is zero or undefined are called critical points.

The intuition matches what the Local max and Local min scenarios animate: just before a peak the function is rising, just after it the function is falling, and a continuous slope must pass through zero in between. The same argument with the signs reversed applies to a valley.

A zero derivative on its own does not guarantee an extremum — it only certifies a horizontal tangent. To confirm a maximum or minimum, check that ff' actually changes sign at cc (the first derivative test) or that f(c)f''(c) has the right sign (the second derivative test).

For deeper coverage, see the critical points page and the extrema classification page.

Related Concepts and Tools

    Related concepts:

  • Slope formula — the algebraic origin of the average rate of change.
  • Derivative — the limit of the average rate of change as the interval shrinks to a single point.
  • Tangent line — the limiting position of the secant line as the two points coincide.
  • Monotonicity — the property of being increasing or decreasing, controlled by the sign of ff'.
  • Critical points — points where the derivative is zero or undefined, the candidates for local extrema.
  • Mean value theorem — guarantees that on a closed interval the derivative somewhere equals the average rate of change.

  • Related tools:

  • Function derivative visualizer — explore the derivative as a function in its own right.
  • Tangent line visualizer — see the tangent line rotate as the point of tangency moves.
  • Limit visualizer — watch a quantity approach a limit from both sides.