CalculusLesson 5 of 6
From derivatives to integrals
The fundamental theorem of calculus
The running total
Section titled “The running total”Fix a start and let slide. For a continuous function , let be its signed area from up to : the accumulated total. How quickly does this total change as moves?
Slide right by . The area grows by one new sliver, width and height :
Divide by and shrink:
The slope of the running total is the height you are adding right now. Where the curve is tall, area piles up fast and climbs steeply. Where the curve is near zero, goes flat. For a continuous density, the running total of probability works this way: the density is the slope of the CDF.
The shortcut
Section titled “The shortcut”You want . Find any function whose slope is . That is an antiderivative. On the interval from to , and have the same slope, so they are the same curve shifted up or down: . At nothing has been collected, so , which means . Therefore:
Find a function whose slope is the curve. Subtract its values at the two ends. For , the slope of is , so
This gives the same limit as the rectangle sums. For the hill in the widget, has antiderivative , so the area from 0 to 3 is .
Small changes add up to the total change
Section titled “Small changes add up to the total change”Here is the same theorem read the other way. Take any smooth and chop into steps. The total change is the sum of the step changes. Every middle value appears once with a plus and once with a minus, and cancels:
Each step change is about , one sliver under the curve . Shrink the steps:
Add up all the small changes and you get the total change. Integrate speed, get distance. Integrate a slope, get the climb. This is the other direction of the fundamental theorem: integrating a continuous derivative recovers the total change.
Why the constant C appears
Section titled “Why the constant C appears”On an interval, any two antiderivatives of differ by a constant. , , and all have slope . Written without ends, . The cancels in . So antiderivatives are the derivative table read backwards:
Apply these formulas on an interval where the function is continuous. For arbitrary real powers, use ; for , the interval cannot cross zero.
| height | an antiderivative | because |
|---|---|---|
| () | ||
| () | the log’s slope | |
| its own slope | ||
| a line’s slope is |
Some continuous functions have no antiderivative expressible using elementary functions such as polynomials, exponentials, and logarithms. One example is . Its integrals can still be defined and approximated numerically. The standard normal CDF is a related integral, using the normalized density .
Go deeper: the telescoping sum, with numbers
from 0 to 2 in four steps of . The step changes are , which sum to . The predictions at each step’s left end are , sum 3. At the right ends, , sum 5. Shrink the steps and both close on 4.
A model’s loss can depend on many parameters. The next lesson holds all but one input fixed to define partial derivatives, then combines them to predict changes in several inputs.