The area function
Fix a starting point and let the right edge move. The area under from up to is then a function of : the area function.
Rule: Area function
The signed area under from to . Inside the integral the letter runs along the axis, so that can name the right edge. At the start there is no width yet, so .
Take from 0. The region up to is a triangle with base and height , so .
| right edge | 1 | 2 | 3 |
|---|---|---|---|
| height | 2 | 4 | 6 |
| area | 1 | 4 | 9 |
Now differentiate: the slope of is , the function we started from. The area function is an antiderivative of . A constant height gives the same pattern: under , , whose slope is 3.
Why the slope of the area is the height
Push the right edge from to . The area grows by a thin strip of width under the curve. Its height is almost , so the extra area is about .
So the growth rate is about , and it gets closer as shrinks. In the limit (lesson 2.2.1) the slope of at is exactly .
Rule: Slope of the area function
The area grows fastest where the curve is tallest. It stops growing where , and it shrinks where , since area below the axis counts as negative. This holds for every continuous ; the Proof Gym has the proof.
The area under from 0 up to , and the graph of that area. At the area grows at rate ; it peaks at , where crosses zero, and falls once is negative.
Numbers show the same thing for at , where the height is . Each strip ratio below comes from Riemann sums, with no formula for .
| strip width | 0.1 | 0.01 | 0.001 |
|---|---|---|---|
| 2.896667 | 2.989967 | 2.999 |
Try it
area(x) is a midpoint sum (lesson 2.5.1) of from 0 to , with 10,000 strips. The loop prints the strip ratios of the table, which close in on .
Drag the right edge yourself. Watch the area function's tangent: its slope matches the height of the curve at every , and it turns flat at , where crosses zero. Then try , whose area function from 1 is (lesson 2.5.2).
Explore
Drag the right edge x. The upper graph shades the area under the curve from 0 to x; the lower graph plots that area for every x. Its slope at x is always the height f(x).
The area function A(x) = 4x − x³/3, with its tangent at x
- Area from 0 to x
- A(1) = 3.6667
- Height there
- f(1) = 3
- Next strip ÷ its width
- (A(1.1) − A(1)) ÷ 0.1 = 2.8967, close to the height
- So the area is
- growing, at rate f(x)
The fundamental theorem
To find , find any antiderivative and subtract its value at from its value at .
Here is why. The area function is an antiderivative of , and any other antiderivative differs from it by a constant (lesson 2.5.2), so . At the area is 0, which forces , so .
Rule: Fundamental theorem of calculus
For continuous on . Any antiderivative works: a would appear in both terms and cancel. The bracket is shorthand for .
Four examples
- . That is the number the Riemann sums of lesson 2.5.1 approached: 0.21875, 0.328125 and 0.46875 with 4 strips, and a midpoint sum of 0.333333 with 10,000.
- . It lies between that lesson's left and right sums with 4 strips, 0.759524 and 0.634524.
- . The lower limit gives , not 0.
- .
The theorem also explains the table above. For it gives , and then the strip ratio is exactly : 2.896667 for .
Where it breaks
The theorem needs continuous on the whole interval. is positive everywhere, yet the formula would give .
That is impossible for a curve above the axis. The trouble is at 0, where has no value and blows up. Its midpoint sums grow without limit (47 with 10 strips, 491 with 100, 4,933 with 1,000), and lesson 2.6.3 deals with such integrals.
Try it
sp.integrate(f, (x, a, b)) gives a definite integral exactly. SciPy's quad(f, a, b) finds it numerically, sometimes off in the last digit, and returns an estimate of its own error too; [0] keeps the value.
SymPy writes as log(2) and as -1 + E. The last line asks for the broken integral of : SymPy answers oo, infinity, rather than .
Net and total area
is the net area: parts below the axis count as negative (lesson 2.5.1). For the total area, split the interval where crosses zero and add the pieces as positive numbers.
Take on , the curve of the figure. With , the net area is .
For the total, split at , where crosses zero. The piece above the axis is , and the piece below is . So the total area is .
These are values of the area function in the figure. is its peak, and is lower because the last piece counts as negative.
Reversed and equal limits
The formula works for any two limits, in either order. That gives three rules.
Rule: Limits in any order
Equal limits give no width and no area. Swapping the limits flips the sign: in a Riemann sum, going from right to left makes negative. Areas side by side add.
So , and , even though has no antiderivative formula. Splitting at 1 gives , the whole of .
Try it
The first line splits at its zero: the two pieces, then the net area. quad of the absolute value gives the total area, .
Then the reversed and equal limits. quad accepts limits in either order; round hides float noise in the last digit.
The integral of a rate is a total change
If , then is the rate at which changes. Integrating the rate over gives the total change in .
Rule: Total change
The units are the rate's units times the input's units. A rate in cm per year, integrated over years, gives cm.
A tree trunk widens at cm per year, years after planting. Over the first 10 years it widens by
The antiderivative divides by , as in lesson 2.5.2. The rate and the time must use the same unit: ten years is , not 120 months.
A velocity can be negative, and then the net and total areas mean different things. At metres per second for 3 seconds, an object ends 3 m from where it started. It went forward m, then back m, so it travelled m in all.
Case study 2.5.5 integrates a cash-flow rate in dollars per year. Lesson 2.6.1 adds substitution, which finds many more antiderivatives.
Try it
The closed form and quad agree on the tree: 12.64 cm.
For the velocity, the net change in position is the integral of , and the distance travelled is the integral of .
Common mistakes
- Upper limit first. The answer is , not .
- The lower limit counts too. need not be 0: , not .
- Net area is not total area. For the total, split where crosses zero and add the pieces as positive numbers.
- Swapping the limits flips the sign. .
- The curve must be continuous on the whole interval. is not .
- Match the units. A rate per year needs the time in years.
The fundamental theorem
0 of 12 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- The area function has slope : the area grows at the rate of the curve's height.
- Fundamental theorem: for any antiderivative of a continuous .
- The theorem gives net area. For total area, split where crosses zero and add the pieces as positive numbers.
- , , and integrals over intervals side by side add.
- The integral of a rate is the total change, in the rate's units times the input's units.