Average change is a ratio
For the function , moving from to changes the output from 1 to 4. The average change per input unit is . On the graph, it is the slope of the line connecting the two points: a secant line.
What if we want the rate at the starting point itself? Bring the second point closer.
Zoom in. Add up.
A derivative measures local change. An integral accumulates tiny contributions.
Preparing interactive controls…
Let a step shrink
Starting at any and taking a nonzero step gives
As approaches zero, the slope approaches . We define
We do not substitute into the fraction. We examine a limit of values with nonzero . At , the tangent slope is 2. For a small change , the output change is approximately .
The approximation is local. At , a step of predicts a change of ; the actual change is . The missing is the quadratic term.
Several inputs, one at a time
For , a partial derivative changes one coordinate while holding the others fixed:
At , the first rate is 2 and the second is 3. Collecting these rates produces the gradient . Module 5 will develop the geometry and formal rules; here the important idea is “one input direction at a time.”
Not every function has a derivative everywhere. The graph of has a corner at zero: slopes from the left approach , while slopes from the right approach 1.
Add small contributions
Switch the experiment to Area. Divide into intervals of width . Each rectangle uses the function value at the midpoint of its interval. Add the rectangle areas:
For , as the rectangles become narrower, this approaches
The integral is a limit of accumulated contributions. For a nonnegative function, it gives the area under the curve. More generally it is signed accumulation: portions below the axis contribute negatively. Integrating a speed over time gives distance; integrating a probability density over an interval gives probability.
Make a prediction