Contents / Calculus / Integrals
Chapter 4
Integrals
The definite integral, the Fundamental Theorem of Calculus, substitution, and numerical integration.
Introduction
Differentiation takes a function apart to measure how fast it changes at each instant. Integration puts the pieces back together to measure how much has accumulated over a whole interval. The two operations turn out to be inverses of one another, and the theorem that says so — the Fundamental Theorem of Calculus — is the center of this chapter.
The definite integral begins life as a limit of sums: chop the interval into thin strips, add up thin rectangles, and let the strips shrink. That limit is the net area between the curve and the -axis, but it is also distance traveled from velocity, total flow from a flow rate, work from force, and any other quantity that is built up from a rate. Once the Fundamental Theorem is in hand, the limit is almost never computed directly: an antiderivative does the work.
The chapter has four movements. First the sums themselves — sigma notation, Riemann sums, and the definition of the integral. Then antiderivatives and the Fundamental Theorem, which convert the definition into a computation. Then the substitution rule, the one technique that every later technique relies on. Finally, the numerical rules that take over when no antiderivative can be written down. Integration by parts, trigonometric integrals, partial fractions and improper integrals belong to the next chapter, Techniques of Integration.
4.1Sigma notation and the sums you will need
An integral is a limit of sums with many terms, so a compact way of writing long sums comes first.
Definition 4.1 (Sigma notation). For integers and numbers ,
The letter is the index of summation, its lower limit and its upper limit.
The index is a dummy variable: and are the same number. Anything that does not involve the index is a constant as far as the sum is concerned, which is what makes the following bookkeeping rules true.
Proposition 4.2 (Linearity of sums). For constants and sequences , ,
Proof. Each is the distributive or commutative law applied to a finite sum: , the terms of may be regrouped, and added to itself times is .∎
Three closed forms carry the whole of the next two sections. They are the only sums a Riemann-sum computation ever needs.
Theorem 4.3 (Sums of powers). For every positive integer ,
Proof. For the first, write the sum forwards and backwards and add the two copies column by column:
since every column adds to and there are columns.
For the second, sum the identity from to . The left side telescopes to , and the right side is . Substituting the first formula and solving,
which is the claim after dividing by . The third formula follows in exactly the same way from , using the first two formulas to eliminate the lower sums.∎
Intuition. The first formula is the schoolroom trick attributed to Gauss: to add through , pair with , with , and so on. Fifty pairs, each summing to , give . The telescoping proof of the other two is the same idea run through a difference of cubes: almost everything cancels, and what survives is the formula.
Example 4.4 (Expanding a sum). Evaluate .
Solution. Write out the terms: give , so the sum is . As a check, linearity gives . (The sum of the first odd numbers is always .)□
Example 4.5 (A closed form). Find a formula for and evaluate it at .
Solution.
- Split by linearity: .
- Apply the power sums:
- At this is . Check directly: .
Example 4.6 (A limit of a sum). Compute .
Solution. By the theorem,
and as this tends to . This is the sum that computes the area under on , as the next section shows.□
Pitfall. The number of terms in is , not . And is , not : a constant summed times is counted times.
4.2Areas and distances: Riemann sums
Finding the area of a rectangle or a triangle is a formula. Finding the area of the region under a curve is a limit, and the way the limit is set up is the template for every integral in the subject.
Take a function on and divide the interval into subintervals of equal width
so that and . On the th subinterval stand a rectangle of width whose height is the value of at some chosen point of that subinterval. The rectangles together approximate the region.
Definition 4.7 (Riemann sum). With and as above and a sample point in each subinterval, the sum
is a Riemann sum for on . Choosing gives the left endpoint sum , choosing gives the right endpoint sum , and choosing the midpoint gives the midpoint sum .
For a function that is increasing on , each left rectangle sits below the curve and each right rectangle pokes above it, so
with the inequalities reversed for a decreasing function. The gap is , the area of a single thin strip, which shrinks to zero as grows. That squeeze is what makes the following definition reasonable.
Definition 4.8 (Area under a curve). If is continuous and on , the area of the region under from to is
The same limit results from left endpoints, midpoints, or any other choice of sample points.
That the limit exists for a continuous function, and does not depend on the sample points, is the content of the integrability theorem in the next section.
Intuition. A digital photograph of a curved shape is a grid of square pixels, and the picture's area is just a count of pixels. At low resolution the count is crude; at high resolution the jagged edge becomes invisible and the count is, for every practical purpose, the area. Riemann sums are the resolution dial, and the integral is the picture at infinite resolution.
Example 4.9 (Left, right and midpoint sums). Estimate with using right endpoints, left endpoints and midpoints.
Solution.
- Here and the partition points are .
- Right endpoints have heights , so
- Left endpoints have heights , so .
- Midpoints have heights , so .
The true area, computed exactly in the next example with , is . Since is increasing on , underestimates and overestimates, and the truth is trapped between and . The midpoint sum is far closer than either, which is a pattern rather than a coincidence: the section on numerical integration explains why.□
Example 4.10 (An exact area from the limit of Riemann sums). Find the area under on exactly.
Solution.
- With subintervals, and .
- The right endpoint sum is
- As both parentheses tend to their leading terms, so
For this is , consistent with the sandwich above. Archimedes obtained this result two thousand years before calculus; the power-sum formula does in three lines what took him a treatise.□
The same construction measures distance. If a car's velocity were constant, distance would be velocity times time. When the velocity varies, hold it constant over each short time interval, multiply, and add: that is a Riemann sum of the velocity function, and its limit is the distance.
Example 4.11 (Distance from velocity readings). A car's speedometer is read every two seconds:
Estimate the distance traveled during the ten seconds.
Solution.
- On each two-second interval, pretend the velocity is the reading at the start: distance with .
- Using the reading at the end of each interval instead,
- The velocity is increasing, so the true distance lies between m and m. Halving the sampling interval would narrow the bracket; sampling continuously would give the integral exactly.
Pitfall. The right endpoint sum uses and the left endpoint sum uses ; both have exactly terms, and neither uses all partition points. Using all of them double-counts a strip.
4.3The definite integral
The area construction did not really use ; the same limit makes sense for any function, and the only change is the interpretation.
Definition 4.12 (Definite integral). Let be defined on . Divide into subintervals of width with endpoints , and let be any point in . The definite integral of from to is
provided this limit exists and has the same value for every choice of sample points . When it does, is integrable on .
Every part of the notation has a name. The sign is an elongated S for "sum". The function is the integrand, and are the lower and upper limits of integration, and records the variable of integration and is the ghost of . The whole expression is a number; the letter is a dummy variable, and is the same number.
The phrase "for every choice of sample points" is what makes the definition usable. It is also demanding: a function could in principle produce different limits for different sampling schemes, and then it would have no integral. The following theorem, whose proof belongs to real analysis (it rests on the uniform continuity of a continuous function on a closed interval), says this never happens for the functions of this course.
Theorem 4.13 (Integrability of continuous functions). If is continuous on , or bounded on with only finitely many jump discontinuities, then is integrable on .
The idea is the squeeze from the previous section. For a continuous function, the largest and smallest values of on a subinterval of width differ by an amount that goes to zero uniformly as , so every Riemann sum is trapped between an upper sum and a lower sum whose difference vanishes. Once integrability is known, any convenient sample points may be used, and right endpoints are the usual choice:
Intuition. A Riemann sum is a stack of thin rectangles, and each rectangle's contribution is height times width. Where the function is negative the "height" is negative, and that rectangle subtracts. The definite integral is the total of the stack at infinite resolution, with contributions above the axis counted positively and those below counted negatively.
Example 4.14 (Recognizing an integral). Express as a definite integral.
Solution. Match the pattern . The factor is for an interval of length ; with that makes , and the summand is . So the limit is
The value, , is easiest to obtain from the Fundamental Theorem later in the chapter.□
Example 4.15 (An integral from the definition). Evaluate directly from the definition.
Solution.
- and , so .
- The right endpoint sum is
- Insert the power sums:
- Let :
The answer is negative because lies below the axis on and above it only on ; more of the graph is below than above.□
Example 4.16 (An integral from geometry). Evaluate and without any limits.
Solution.
- The graph of for is the quarter of the circle in the first quadrant, so the integral is one quarter of , namely .
- The graph of on lies above the axis and, with the axis and the lines , , bounds a trapezoid with parallel sides and and width . Its area is .
Whenever the region is a shape with a known area, the definite integral is that area and no limit is needed.□
4.4Net area and total area
Definition 4.17 (Net area and total area). For an integrable on , the definite integral is the net (signed) area: the area of the region above the -axis and below the graph, minus the area of the region below the axis and above the graph. The total area between the graph and the axis is
The two agree exactly when does not change sign on . When it does, the recipe for total area is to locate the zeros of , split the interval at each of them, integrate on each piece, and add the absolute values. Net area needs no splitting: one integral does it, and the cancellation between positive and negative parts is the point.
Intuition. Net area is the change in your bank balance after a month of deposits and withdrawals; total area is the total volume of money that moved through the account. A month in which the balance ends exactly where it started may have been a very busy month.
Example 4.18 (Net and total area by geometry). Find and the total area between and the -axis on .
Solution.
- The line crosses the axis at . On the graph is below the axis and bounds a triangle with legs and , area . On it is above the axis and bounds a triangle with legs and , area .
- Net area: .
- Total area: .
Example 4.19 (A symmetric cancellation). Evaluate and .
Solution. The graph of bounds two congruent triangles of area , one below the axis on and one above it on . The net area is and the total area is .□
Pitfall. An exam question that says "find the area" wants total area; one that says "evaluate the integral" wants net area. Reading as "there is no area" is the classic confusion. The area is ; the integral is .
4.5Properties of the definite integral
The definition produces a small set of rules, and every computation in the rest of the chapter leans on them. One convention comes first: the definition assumed , and for the other orderings we set
Both are forced by the Riemann sum: swapping and turns into its negative, and makes .
Theorem 4.20 (Properties of the definite integral). Let and be integrable on an interval containing , and , and let be a constant.
- .
- Linearity: and .
- Additivity: , whatever the order of , , .
- Positivity: if on then .
- Comparison: if on then .
- Bounds: if on then .
- .
Proof. Each property is true of every Riemann sum and survives the limit.
- Every Riemann sum of a constant is .
- and ; now apply the limit laws.
- For , choose partitions of and ; together they partition (with unequal widths, which the general theory allows), and the Riemann sum over is the sum of the two. Passing to the limit gives the identity. The other orderings follow from the reversal convention: for instance if , rearrange .
- Every term is nonnegative, so every Riemann sum is, and so is the limit.
- Apply positivity to and use linearity.
- Apply comparison to and and evaluate the constant integrals by property 1.
- Since , comparison gives , which is the claim.
The bounds property is the crude version of an idea that recurs constantly: an integral is controlled by the size of its integrand. It is also a useful sanity check, because a computed value outside is certainly wrong.
Intuition. Think of as the total rainfall over a stretch of days. Additivity says rain over the week is rain over Monday-to-Wednesday plus rain over Thursday-to-Sunday. Comparison says if it rained at least as hard every hour in Town B as in Town A, then B's total is at least A's. The bounds property says a week whose hourly rate never exceeded cannot have delivered more than times the number of hours.
Example 4.21 (Evaluating with the properties). Given and , evaluate .
Solution. By linearity and the constant rule,
Example 4.22 (Using additivity). If and , find .
Solution. Additivity with , , gives , so .□
Example 4.23 (Estimating an integral). Use the bounds property to estimate .
Solution.
- On the exponent runs from down to , so is decreasing, with maximum at and minimum at .
- Property 6 with , and gives
This integral has no elementary antiderivative, so estimates of this kind, refined by the numerical rules later in the chapter, are the only way to get at it. (Its value is about .)□
Pitfall. There is no product rule for integrals: is not . Try on : the left side is and the right side is . Linearity covers sums and constant multiples, nothing more.
4.6Antiderivatives and the indefinite integral
Computing integrals from the definition is possible, as the example showed, and hopeless as a general method. The way out is to run differentiation backwards.
Definition 4.24 (Antiderivative). A function is an antiderivative of on an interval if for every in .
An antiderivative is never unique: and are both antiderivatives of . But that is the only freedom there is.
Theorem 4.25 (Antiderivatives differ by a constant). If is an antiderivative of on an interval , then every antiderivative of on has the form for some constant .
Proof. Let be another antiderivative. Then on , and a function with zero derivative on an interval is constant there (this is the corollary of the Mean Value Theorem proved in the Derivatives chapter). So .∎
The word "interval" is doing real work. The function is defined on , and for , for is a perfectly good antiderivative of on its domain that is not of the form for a single . On each interval separately the theorem holds.
Definition 4.26 (Indefinite integral). The indefinite integral of is the family of all its antiderivatives on an interval:
and is an arbitrary constant, the constant of integration.
The notation is deliberately the same as the definite integral, because the Fundamental Theorem will show they are the same idea. But keep the distinction in mind: is a number, while is a family of functions.
Intuition. If someone tells you a car's speed at every instant of a trip, you can reconstruct how far it has traveled since the start — but not where it started. Every possible starting position gives a valid position function, and they all differ by a constant. The is the unknown starting position, and a single extra piece of information (an initial value) pins it down.
Example 4.27 (The general antiderivative). Find the most general antiderivative of .
Solution. Guess and check term by term. differentiates to , to , and to , so
Check: . An antiderivative is always verified by differentiating it.□
Example 4.28 (A second-order initial value problem). Find if , and .
Solution.
- Antidifferentiate once: .
- Antidifferentiate again: .
- .
- , so .
- Therefore . Check: , , .
Example 4.29 (Position from acceleration). A particle moves along a line with acceleration , initial velocity and initial position . Find .
Solution.
- Velocity is an antiderivative of acceleration: , and gives .
- Position is an antiderivative of velocity: , and gives .
- So .
Each antidifferentiation introduced one constant, and each initial condition removed one.□
4.7The table of basic antiderivatives
Every differentiation formula, read from right to left, is an antidifferentiation formula. The table below is the derivative table of the previous chapters reversed, and it is the entire vocabulary of integration: every technique in this chapter and the next is a way of rewriting an integral until it matches a line of this table.
Theorem 4.30 (Basic antiderivatives). Each formula holds on any interval where the integrand is defined; , , .
Moreover the indefinite integral is linear: and .
Proof. Differentiate each right-hand side. The two that need a word: ; and for , has derivative , which is why the absolute value makes the logarithm formula valid on both sides of . Linearity is the linearity of the derivative read backwards.∎
Two entries deserve attention. The power rule fails at , where it would produce ; the logarithm formula fills exactly that hole, and nothing else does. And the last four lines are the reason inverse trigonometric and hyperbolic functions appear in integration at all: they are what comes out when the integrand is or , shapes that arise constantly from substitutions in the next chapter.
Intuition. The table is a phone book read backwards: you know the number () and need the name (). There is no algorithm for reading a phone book backwards, but for a short list you can simply learn it. And there is a foolproof check that costs nothing: differentiate your candidate. If the derivative is the integrand, the answer is right.
Example 4.31 (Term by term). Find .
Solution. By linearity and the table,
Check: .□
Example 4.32 (Rewrite before integrating). Find and .
Solution.
- Divide through: , so the integral is
using and the minus sign in front of it. 2. Rewrite , which is in the table: the integral is .
Neither integrand appears in the table as written; algebra makes it appear. This is the basic move of integration.□
Example 4.33 (Exponentials and hyperbolic functions). Find .
Solution. Line by line: , , . So the integral is
Pitfall. is by the power rule with , not a logarithm. The logarithm is for only. In the other direction, is not ; it is .
4.8The Mean Value Theorem for integrals
The proof of the Fundamental Theorem needs one fact about continuous functions: on any interval, the integral equals the length of the interval times some value the function actually takes.
Theorem 4.34 (Mean Value Theorem for integrals). If is continuous on , then there is a number in such that
Proof. By the Extreme Value Theorem has a minimum and a maximum on , so the bounds property gives , that is,
The middle number lies between two values of , so by the Intermediate Value Theorem it equals for some in .∎
The number is the average value of on , and the theorem says a continuous function attains its average. The applications chapter develops average value properly; here it is a tool.
Intuition. If a car averages km/h over a journey, then at some instant its speedometer read exactly : it cannot have been below the whole way (the average would be lower) or above the whole way (the average would be higher), and the speedometer moves continuously between the two.
Example 4.35 (Finding the point ). Find the value guaranteed by the Mean Value Theorem for integrals for on .
Solution. From the exact area computed earlier, . The theorem asks for with , so and , which does lie in . The rectangle of height over has the same area as the region under the parabola.□
4.9The Fundamental Theorem of Calculus
The definite integral was defined as a limit of sums and the antiderivative as an inverse of differentiation, two ideas with no visible connection. The Fundamental Theorem joins them, and it does so in two parts. The first says that integrating a function and then differentiating gives the function back; the second says that a definite integral can be evaluated from any antiderivative.
Part 1 is about the function obtained by integrating up to a variable endpoint,
the accumulated area under from to . Note the two different variables: is the upper limit, is the dummy variable of integration, and depends only on .
Theorem 4.36 (Fundamental Theorem of Calculus, Part 1). If is continuous on , then the function is continuous on , differentiable on , and
In Leibniz notation, .
Proof. Fix in and take small enough that is in . By additivity,
By the Mean Value Theorem for integrals there is a point between and with (for the reversal convention supplies the sign). Hence
As the point , squeezed between and , tends to , and since is continuous . So . At the endpoints the same argument with one-sided limits gives one-sided derivatives, which implies continuity of on the closed interval.∎
The heart of the proof is the picture: is the area of a thin strip of width , and for small that strip is almost a rectangle of height , so the strip's area divided by its width is almost . Continuity of is what makes "almost a rectangle" precise; for a function with a jump at , the strip's height depends on which side of it lies, and has a corner there rather than a tangent.
Part 1 says every continuous function has an antiderivative, namely , even when no formula for one exists. The function is a perfectly good function with derivative ; it merely has no expression in terms of the functions in the table.
Corollary 4.37 (Variable limits and the chain rule). If is continuous and , are differentiable, then
Proof. With , the first integral is , and the chain rule gives . For the second, split at with additivity: , and differentiate each piece by the first formula.∎
Theorem 4.38 (Fundamental Theorem of Calculus, Part 2). If is continuous on and is any antiderivative of on , then
Proof. Let . By Part 1, is an antiderivative of on , so by the theorem on antiderivatives for some constant . Then
since .∎
The difference is written or . The constant of integration is irrelevant here: it cancels in the subtraction, which is why definite integrals are computed without a .
Part 2 is why the definite integral is computable. A limit of Riemann sums that needed the power-sum formulas and a page of algebra for now takes one line:
Every integral whose integrand has a table antiderivative is now trivial, and every technique from here on is a way of manufacturing an antiderivative.
Intuition. Your speedometer is the derivative and your odometer is the integral. Part 1 says: if you record your odometer continuously and then ask how fast it is increasing at any moment, you get the speedometer reading. Part 2 says: to find how far you drove between two times, you do not need to add up thousands of speedometer readings; just subtract the odometer at the start from the odometer at the end. The odometer is an antiderivative of the speedometer, and any other odometer, one that started at a different reading, gives the same difference.
Example 4.39 (Differentiating an accumulation function). Find the derivative of .
Solution. The integrand is continuous, so Part 1 applies directly: . No antiderivative of was needed, and none is easy to find.□
Example 4.40 (A variable upper limit). Find .
Solution. Here , so by the chain-rule corollary,
Forgetting the factor is the standard error; the integral is a composite function and the chain rule is not optional.□
Example 4.41 (Both limits variable). Find .
Solution. With and , the corollary gives
Example 4.42 (Evaluating a definite integral). Compute .
Solution.
- An antiderivative is (no is needed).
- By Part 2, .
- Check by geometry: the region is a trapezoid with parallel sides and and width , area .
Example 4.43 (Keeping a promise). Evaluate , and hence .
Solution. By Part 2,
The limit was identified earlier as this integral, so it equals too. A sum that has no closed form for finite has a limit that takes one line.□
Example 4.44 (Total area with the FTC). Find the net area and the total area between and the -axis on .
Solution.
- Net area:
- The integrand is negative on and positive on , so split at :
- Total area: . The net area is the same two pieces with the first one subtracted: .
Example 4.45 (When Part 2 does not apply). What is wrong with the computation ?
Solution. The integrand is positive wherever it is defined, so by positivity the integral cannot be negative: the answer is impossible. The error is that is not continuous on — it is not even defined at — so the hypothesis of Part 2 fails and the formula has no justification. The integral does not exist as a definite integral; it is an improper integral, and the next chapter shows it diverges.□
Example 4.46 (Extrema of an accumulation function). Let . Find the local maximum and local minimum of .
Solution.
- By Part 1, , with zeros at and .
- is positive for , negative on and positive for . By the first derivative test has a local maximum at and a local minimum at .
- Their values come from Part 2: and .
The graph of rises while the integrand is positive (area is being added), falls while it is negative, and turns exactly where the integrand crosses zero.□
Pitfall. Part 2 requires to be continuous on the whole closed interval . Before writing , look for points where the integrand is undefined or blows up: , , , and are the usual offenders.
4.10The net change theorem
Read with , Part 2 of the Fundamental Theorem becomes a statement about rates.
Theorem 4.47 (Net change theorem). If is continuous on , then the integral of the rate of change is the net change:
Proof. is an antiderivative of ; apply Part 2.∎
Every rate in science is an instance. If is the volume of water in a tank, is the change in volume. If is the cost of producing items, is the cost of raising production from to . If is the position of a particle, is its displacement.
Displacement is not distance. If the particle moves forward m and back m, its displacement is m and the distance it traveled is m. Displacement is the integral of ; distance is the integral of , the total area between the velocity graph and the axis, computed by splitting where changes sign.
Intuition. A hiker's altimeter records altitude every second. The integral of the rate of climb over the day is the net change in altitude, which is zero if the hike is a loop. The total climb, the number a hiker actually cares about, is the integral of the absolute rate of climb, and a loop with a mountain in the middle has plenty of it.
Example 4.48 (Displacement versus distance). A particle moves along a line with velocity (m/s). Find the displacement and the distance traveled for .
Solution.
- Displacement is the integral of velocity:
The particle ends m to the left of where it began. 2. For distance, find where changes sign: is negative on and positive on . 3. Integrate on each piece:
- Distance m.
Sanity check: the two pieces add to the displacement, , as they must.□
Example 4.49 (Volume from a flow rate). Water drains from a tank at the rate liters per minute for . How much water leaves during the first five minutes?
Solution. The amount drained is the net change in the volume that has left the tank, the integral of the rate:
The rate is positive throughout, so no sign splitting is needed.□
Example 4.50 (Cost from marginal cost). A manufacturer's marginal cost is dollars per unit. Find the cost of raising production from to units.
Solution.
Pitfall. is displacement. If a problem asks for distance and the velocity changes sign on the interval, you must split at the zeros of and flip the sign of the negative pieces. Getting a displacement of for a round trip and reporting "no distance traveled" is the error to avoid.
4.11The substitution rule
The table handles integrands that are literally table entries. The substitution rule extends it to integrands that are table entries in disguise, and it is the chain rule run backwards.
Theorem 4.51 (Substitution rule). If is a differentiable function whose range is an interval on which is continuous, then
Proof. Let be an antiderivative of . By the chain rule,
so is an antiderivative of the left-hand integrand: . On the other side, . The two agree.∎
The rule licenses treating as an algebraic identity: replace by , replace by , and integrate in . If the derivative of the inner function is present only up to a constant factor, adjust with a constant; if it is missing entirely, substitution will not work and another technique is needed.
Method 4.52 (Substitution for an indefinite integral).
- Choose , an inner function whose derivative appears (up to a constant) as a factor of the integrand.
- Compute and rewrite the whole integral in terms of and . No may remain.
- Integrate in .
- Substitute back.
- Differentiate the result to check.
Intuition. Substitution is renaming. The integral looks unfamiliar, but if you call the awkward part and notice that is exactly what the chain rule would have produced from it, the integral reads , which you know. The skill is choosing what to rename: usually the inside of a composite function, the base of a power, the argument of an exponential, or a denominator.
Example 4.53 (The inner function and its derivative). Find .
Solution.
- The inner function is , whose derivative matches the factor up to the constant . Let , so and .
- Then
- Back-substitute: .
- Check: .
Example 4.54 (A linear inner function). Find .
Solution. Let , , so . Then
In general : a linear inner function only costs a factor . This is how and come about.□
Example 4.55 (Adjusting a constant). Find .
Solution.
- Let , so and .
- Then
- Check: .
Compare , which has no factor : there the substitution is and the answer is . The presence or absence of the factor changes everything.□
Example 4.56 (The tangent integral). Find .
Solution. Write and let , :
The last step uses . Both forms are standard.□
For a definite integral there are two ways to finish. Either substitute back and use the original limits, or change the limits along with the variable and never return to .
Theorem 4.57 (Substitution for definite integrals). If is continuous on and is continuous on the range of , then
Proof. Let be an antiderivative of . By the substitution rule is an antiderivative of , so by Part 2 the left side equals . By Part 2 again, so does the right side.∎
The new limits are the -values at the old endpoints, not the old endpoints themselves. Once they are changed, the integral is a number in and is gone for good.
Example 4.58 (Changing the limits). Evaluate both ways.
Solution. Changing the limits: with , , the endpoints and become and , so
Back-substituting: from the earlier example the antiderivative is , and
Same answer, as it must be. Changing the limits is usually shorter; the one thing it forbids is mixing, evaluating a -antiderivative at -limits.□
Example 4.59 (A rational integrand). Evaluate .
Solution.
- Let , , so . When , ; when , .
- Then
The integrand is positive on and the answer is positive; the lower -limit being larger than the upper one is not a problem, it simply reflects that decreases as increases.□
Example 4.60 (Substitution with a definite integral). Compute .
Solution.
- The inner function is and its derivative is present exactly. Let , .
- Limits: gives ; gives .
- In the new variable,
Example 4.61 (A logarithmic substitution). Evaluate .
Solution. Let , ; the limits become and . Then
Pitfall. After substituting, every must be gone, including the hiding in . An integral like becomes , but becomes with an left over, which means the substitution has failed and the integral needs a different idea (in this case, it has no elementary antiderivative at all).
4.12Symmetry
An integral over an interval centered at can often be simplified, or seen to vanish, by the symmetry of the integrand.
Theorem 4.62 (Integrals of even and odd functions). Let be continuous on .
- If is even, , then .
- If is odd, , then .
Proof. Split at : . In the first integral substitute , ; the limits , become , , so
If is even this is and the two halves add to . If is odd it is and the two halves cancel.∎
The geometry is the proof made visible. An even function's graph is a mirror image across the -axis, so the two halves have equal area. An odd function's graph is a half-turn image through the origin, so the region on the left is the region on the right flipped below the axis, and the signed areas cancel.
Intuition. Fold the paper along the -axis. For an even function the two halves of the graph land on top of each other, so you only need to measure one half and double it. For an odd function one half lands on the mirror image of the other, above the axis where the other is below; the two contributions are equal and opposite and the total is zero before any calculation.
Example 4.63 (An even integrand). Evaluate .
Solution. is even, so
Example 4.64 (An odd integrand). Evaluate .
Solution. The numerator is odd and the denominator is even, so their quotient is odd: replacing by flips the sign of the top and leaves the bottom alone. The interval is symmetric, so the integral is . Nobody could find this antiderivative; nobody needs to.□
Example 4.65 (Splitting by parity). Evaluate .
Solution. The term is odd (odd times even) and integrates to ; the term is even. So the integral is
Pitfall. The theorem needs both a symmetric interval and a function of definite parity. is not (the interval is not symmetric), and is not (the integrand is neither even nor odd; split it into , which contributes , and , which contributes ).
4.13Numerical integration
Two situations defeat the Fundamental Theorem. The integrand may have no elementary antiderivative, as with , or ; or the function may be known only from measurements, with no formula at all. In both cases the integral is approximated by a finite sum, and the question is how to choose the sum so that a small number of function values gives a good answer.
Throughout, is divided into equal subintervals of width with endpoints , and is the midpoint of the th subinterval. Left and right endpoint sums are the crudest options: their errors are of size proportional to , so doubling only halves the error. The three rules below do much better.
Definition 4.66 (Midpoint, Trapezoidal and Simpson's Rules).
The Midpoint Rule is the midpoint Riemann sum. The Trapezoidal Rule replaces each rectangle by the trapezoid with vertices at , , , , whose area is ; adding these gives every interior value twice and each endpoint once, which is the pattern of coefficients. Equivalently, : the chord through two points on the curve averages the left and right rectangles.
Simpson's Rule replaces the chords by parabolas. Take two adjacent subintervals , shift so the middle point is at , and call the width ; the three data points are , , . The parabola through them satisfies , , , and
But as well, so the parabola's integral is , in terms of the three function values alone, with never needed. Doing this on each pair of subintervals and adding gives : the endpoints once, the odd-indexed points (middles of pairs) four times, the even-indexed points (shared by two pairs) twice. This is why must be even. A pleasant consequence of the algebra is that , a weighted average of the two simpler rules.
The three rules differ in accuracy, and the following bounds say by how much.
Theorem 4.67 (Error bounds). Let , and denote the errors , and similarly for and .
- If on , then
- If on and is even, then
The proofs belong to numerical analysis. The idea for the trapezoidal bound: on one subinterval the error is the integral of minus its chord, and Taylor's theorem bounds that difference by , whose integral is ; summing of these and writing gives the bound. The midpoint bound is the same argument with the tangent line at in place of the chord (the midpoint rectangle and the tangent-line trapezoid have equal area), and the factor of improvement comes from the tangent hugging the curve more closely than the chord. Simpson's parabolas match the function to third order, hence the fourth derivative and the .
Three consequences are worth knowing. For a function that is concave up, chords lie above the curve and tangents below, so overestimates and underestimates; concave down reverses both. The midpoint error is about half the trapezoidal error and of opposite sign. And doubling divides the trapezoidal and midpoint errors by about but the Simpson error by about , which is why Simpson's Rule is the default in practice.
Intuition. To estimate the area of a pond from a few depth soundings across it, you could assume the bottom is flat between soundings (rectangles), sloped in a straight line between them (trapezoids), or gently curved (parabolas). The more the assumed shape resembles a real pond bottom, the fewer soundings you need. Simpson's parabolas are usually the best guess a few numbers can support.
Example 4.68 (All three rules on one integral). Approximate with using the Trapezoidal, Midpoint and Simpson's Rules, and compare with the exact value .
Solution.
- ; the endpoints are with -values .
- Trapezoidal:
- Midpoint: the midpoints are with -values , so
- Simpson:
- Errors: , , . The function is concave up, so the trapezoidal estimate is too big and the midpoint estimate too small, with the midpoint error about half the size. Simpson's Rule, with the same five function values as , is thirty-six times more accurate than it.
Example 4.69 (Error bounds and how many subintervals). For the integral above, (a) compute the error bounds for and (b) find how large must be to guarantee an error below with each rule.
Solution.
- For , , which on is largest at : take . Similarly .
- With and :
All three actual errors from the previous example are comfortably inside their bounds; the bounds are guarantees, not predictions. 3. For the trapezoidal error to be below , it suffices that , that is , so : take . 4. For the midpoint rule, gives , : take . 5. For Simpson, gives , ; the smallest even that works is .
Eight function evaluations with Simpson's Rule buy the accuracy that costs the trapezoidal rule forty-one.□
Example 4.70 (An integral with no elementary antiderivative). Use Simpson's Rule with to approximate .
Solution. and the required values are
Then
The true value is to four places. No antiderivative exists in elementary terms, so a numerical rule is not a shortcut here but the only route.□
Example 4.71 (Integrating measured data). A car's speed (m/s) was recorded every seconds for a minute: . Estimate the distance traveled.
Solution. Distance is , with and . The Trapezoidal Rule gives
and since is even Simpson's Rule is available too:
The speed graph is concave down (the increments shrink), so is an underestimate and the truth is likely a little above m, consistent with Simpson's figure. With data there is no error bound, because there is no to bound.□
Pitfall. Simpson's Rule needs an even number of subintervals, and its coefficients alternate : the pattern begins and ends with , and the s sit on the odd-indexed points. The most common slip is applying the trapezoidal coefficient to every interior point, or starting the alternation with instead of .
4.14Area between curves: a preview of applications
Everything so far has measured the area between one curve and the axis. The same slicing argument measures the area between two curves, and it is the template for volume, arc length, work and every other application in the next chapter.
Theorem 4.72 (Area between two curves). If and are continuous and on , the area of the region between and from to is
Proof. Slice the region into vertical strips of width . The th strip is approximately a rectangle of width and height , the vertical distance from the lower curve to the upper one. The total is a Riemann sum for , and its limit is the integral. When both curves lie above the axis this is also the area under minus the area under , but the slicing argument does not need that and works wherever the curves are.∎
The single rule to remember is top minus bottom. If the curves cross inside the interval, the roles switch at the crossing, and the region must be split there so that the integrand is never negative.
Intuition. The area of a garden between two curved fences is the sum of the areas of thin north-south strips, and each strip is as long as the gap between the fences at that point. Which fence is "top" can change along the way; where it does, the integral must change with it.
Example 4.73 (Top minus bottom). Find the area of the region bounded by , , and .
Solution. On , , so is the top curve:
Example 4.74 (Curves that cross). Find the area enclosed by the parabola and the line .
Solution.
- The curves meet where , that is at and ; these are the limits.
- Between them, at say, , so the line is on top.
- .
Volume is the next step, and it is the same idea one dimension up: revolve a region about an axis, slice the solid into thin disks, washers or cylindrical shells, and integrate the cross-sectional area. Those formulas, together with arc length, average value, work and the rest, are the subject of the Applications of Integration chapter.
Two other chapters follow directly from this one. Techniques of Integration develops integration by parts (the product rule backwards), trigonometric integrals and substitutions, partial fractions and improper integrals, all of which are ways of turning an integral into one the table can handle. Differential Equations begins where antiderivatives leave off, with equations in which the unknown is a function and the constant of integration becomes an initial condition.
Summary. , , provided the limit is the same for every choice of sample points — which it is whenever is continuous on , or bounded there with finitely many jumps. It measures net signed area; total area is , split at the zeros of . Integrals are linear, additive (), monotone, and bounded by when . Antiderivatives on an interval differ by a constant. For continuous on : some in has ; satisfies , and ; and for any antiderivative . Substitution gives , and once the limits are converted. On an even integrates to and an odd one to ; with on the area between the curves is .
- Forgetting the on an indefinite integral, or adding one to a definite integral, which is a number.
- Treating as . Integrals are linear over sums and constant multiples only.
- Applying the power rule to . The antiderivative of is , and the antiderivative of is , not a logarithm.
- Using when the integrand is not continuous on , as in . Check for singularities before applying Part 2.
- Dropping the chain-rule factor in , or forgetting the minus sign from a variable lower limit.
- Leaving an behind after a substitution. Every , including the one in , must be converted to or the substitution has failed.
- Evaluating a -antiderivative at the original -limits. Either change the limits to -values or back-substitute first; never mix.
- Reporting net area when total area was asked, or displacement when distance was asked. Split at the zeros of the integrand and add absolute values.
- Using the symmetry theorem on a non-symmetric interval, or on a function that is neither even nor odd.
- Counting the terms of a Riemann sum wrongly: uses and uses , each exactly terms.
- Using Simpson's Rule with odd , or getting the coefficient pattern wrong.
- Trusting a numerical estimate without an error bound when one is available, or reading the bound as the actual error rather than a guarantee.