- Learn
- Mathematics
- University Math
- Calculus 2
- Numerical and Improper Integrals
Numerical and Improper Integrals
IntermediateLesson 2 of 8 in Calculus 2 Course
What you will learn
- Build midpoint and trapezoidal approximations from a formula or a table of values, and use the shape of the graph to tell whether an estimate is too high or too low.
- Approximate an integral with the midpoint ruleSplit the interval into equal subintervals, evaluate the function at their midpoints and add the rectangle areas.
- Approximate an integral with the trapezoidal ruleJoin neighboring points of the graph with straight segments, use the 1, 2, …, 2, 1 pattern, and add trapezoids for tables with equal or unequal spacing.
- Judge whether an approximation is too high or too lowMeasure errors, use concavity to decide whether midpoint and trapezoidal estimates are too high or too low, and compare their sizes.
- Approximate an integral with the midpoint rule
- Use parabolic arcs to get much more accurate estimates, and choose a rule that fits the information you have, whether a formula or a table of measurements.
- Apply Simpson's ruleFit parabolas through groups of three points, use the 1, 4, 2, 4, …, 4, 1 pattern with an even number of subintervals, and see why the rule is so accurate.
- Choose and apply a rule to formulas and dataCompare the three rules on the same integral, apply them to measured values, and pick the rule that the available values allow.
- Apply Simpson's rule
- Use the error-bound formulas to guarantee how close an approximation is, and choose enough subintervals to reach a required accuracy.
- Compute an error boundFind a bound for the second or fourth derivative on the interval and substitute it into the midpoint, trapezoidal or Simpson error bound.
- Choose n for a required accuracySet the error bound at or below a tolerance, solve for n, and round up correctly.
- Compute an error bound
- Define integrals over infinite intervals and integrals of unbounded functions as limits, evaluate the ones that converge, recognize the ones that diverge, and use them in applications.
- Integrate over an infinite intervalReplace an infinite limit of integration by a variable, evaluate the proper integral and take the limit; split integrals over the whole real line.
- Integrate a function that is unbounded on the intervalSpot a vertical asymptote at an endpoint or inside the interval, write the integral as a one-sided limit, and handle integrals that are improper in more than one place.
- Model with improper integralsUse convergent improper integrals for areas and volumes of unbounded regions, for probabilities and averages, and for quantities that build up without end.
- Integrate over an infinite interval
- Use benchmark integrals and comparison tests to decide whether an improper integral converges, even when no antiderivative can be found.
- Use p-integrals and exponentials as benchmarksKnow exactly when integrals of powers of x and of exponentials converge, and use these results as reference points.
- Apply the direct comparison testBound a nonnegative integrand above by a convergent benchmark or below by a divergent one, check the direction of the inequality, and use comparisons to estimate tails.
- Choose a comparison and use limit comparisonFind the dominant behavior of an integrand, use the limit comparison test, and handle logarithms, exponentials and integrands that change sign.
- Use p-integrals and exponentials as benchmarks
Numerical and Improper Integrals study guide
1Build estimates from rectangles and trapezoids
A definite integral can be useful even when an antiderivative is unavailable. Measurements may give only a table, and a formula such as has no elementary antiderivative. Rectangles and trapezoids turn those function values into estimates of a total. The choice of sample points determines the rule; the graph's concavity helps you judge the result. Start by keeping subinterval widths, sample locations and signed areas separate.
1.1 Rectangles centered on each subinterval
Numerical integration estimates a definite integral from finitely many function values. It works for formulas whose antiderivatives are unavailable and for measured data. The midpoint rule represents each piece of the integral by a rectangle whose height is measured at the center of that piece.
Lay out the partition
To estimate with equal subintervals, calculate
The points run from to . There are partition points but only subintervals. For each subinterval, average its two endpoint coordinates:
This gives the location where you evaluate the function. Averaging the coordinates and then evaluating the function is different from averaging the two function values.
Add the signed rectangle areas
The midpoint formula is
List the midpoints, evaluate the function at each one, add those heights, and multiply by the width once. A negative height contributes negatively, just as it does to the definite integral. Keep about six significant digits during the calculation and round the final result.
For with four subintervals, the width is . The partition points are , giving midpoints . Their heights are
Thus
The exact value is , so this estimate is low by about . Using eight subintervals gives ; the error is then about .
Distinguish the sample rules
Left and right sums use the two different endpoints of each piece:
For an increasing function, the left sum is low and the right sum is high; decreasing functions reverse that ordering. The midpoint rule usually improves accuracy by sampling between those endpoints.
On the first subinterval of the example, the midpoint height is . The average endpoint height is . Using that second height makes a trapezoidal estimate. Also check the width: dividing by five because five partition points are listed would leave the interval incorrectly partitioned.
For continuous functions, midpoint sums approach the integral as . An individual refinement need not reduce the actual error. The usual midpoint error bound, when its derivative conditions hold, is divided by four whenever doubles.
Key Takeaways
- Use subintervals, partition points and midpoints.
- Evaluate at each midpoint, add the heights and multiply by .
- Keep negative contributions when estimating a signed integral.
- Average endpoint coordinates to locate a midpoint; averaging heights gives a different rule.
1.2 Trapezoids from neighboring measurements
A trapezoidal estimate joins consecutive points on the graph with straight segments. Each segment contributes the width times the average of its two endpoint heights. This makes the rule especially useful for a table of measurements.
Build the formula from one trapezoid
On with width , the signed area under the segment is
When the pieces are added, every interior height belongs to two trapezoids. Each outer endpoint belongs to just one. For equal widths,
The weights are . For a constant height , their sum is , so the formula gives . This checks both the weights and the factor of one half. The same estimate is the average of the left and right sums: .
Work an equal-width example
For with , use and the endpoint heights
Weight the interior values twice:
The result is above by about . As an independent check, and have that same average.
The rule is exact for a linear function because the connecting segments coincide with its graph. Curvature introduces error: for on , two trapezoids give , while the integral is .
Give every measured interval its own width
A car has speeds of 0, 6, 10, 14 and 15 m/s at times 0, 5, 10, 20 and 30 s. The widths are 5, 5, 10 and 10 s. Its distance estimate is
The contributions are 15, 40, 120 and 145 m, totaling 320 m. Multiplying speed by time gives meters. If the readings were signed velocities, the signed total would estimate displacement; speed readings give distance.
Unequal spacing prevents the single equal-width weight formula from applying to the whole table. Add each trapezoid with its own width instead. Writing one average width changes the weight of individual measurements and can change the answer.
When entering a calculation, put the entire weighted sum inside parentheses. Doubling both outer endpoint heights overcounts them, while omitting the factor one half doubles the entire estimate.
Key Takeaways
- Each trapezoid contributes its width times its average endpoint height.
- Equal widths produce weights and an outside factor .
- The identity reuses endpoint sums.
- For unequal spacing, add trapezoids with their individual widths.
- The trapezoidal rule is exact for linear functions.
1.3 Read the direction and size of an error
An estimate needs an interpretation: how far is it from the integral, and on which side? When the exact integral is known, calculate the error directly. When it is unknown, the shape of the graph can still place midpoint and trapezoidal estimates above or below it.
Keep the error sign consistent
For exact value and approximation , define
A positive error means the estimate is too low. A negative error means it is too high. For , relative error is ; multiply by 100 to report a percentage. For the estimates of , the midpoint absolute error is about , or , and the trapezoidal absolute error is about , or . Relative error is undefined when the exact value is zero.
Use concavity for midpoint and trapezoidal sums
A concave-up graph has . Its chords lie above the graph, so trapezoids overestimate. At each midpoint, a tangent line lies below the graph. The area under that tangent across the subinterval equals the midpoint rectangle's area: its extra height on one side balances the missing height on the other. Thus the midpoint estimate is low.
| Shape on the whole interval | Midpoint estimate | Trapezoidal estimate |
|---|---|---|
| Concave up | Too low | Too high |
| Concave down | Too high | Too low |
For on , . Consequently,
These conclusions concern signed integrals, including graphs below the axis. They depend on concavity throughout the interval.
Separate concavity from increasing or decreasing
Monotonicity controls left and right sums. Concavity controls midpoint and trapezoidal sums. An increasing, concave-down function has a low left sum and a low trapezoidal sum, for different reasons. An increasing function alone does not determine the trapezoidal error's sign.
Concavity must be known between measured points as well as at them. A table alone gives no guarantee. For on , concavity changes at . The whole-interval sign needs more than the fixed-concavity ordering; separate the regions or use another error argument. Here . The exponential factor is positive, so the sign changes where . The part before that point is concave down and the part after it is concave up; their trapezoidal errors have opposite signs.
Understand refinement patterns
When is continuous and , large partitions usually show
For the four-piece logarithm estimates the ratio is about . Doubling the number of pieces typically reduces each actual error by a factor approaching four under these conditions. If the endpoint derivatives agree, that leading error can cancel, so the pattern can fail.
Error bounds behave more predictably: doubling divides the usual midpoint and trapezoidal bounds by exactly four. Also, existing samples can be reused through ; the old midpoints become new partition points. Here this gives .
Key Takeaways
- With , a positive error means an underestimate.
- Concave up gives ; concave down reverses the inequalities.
- Monotonicity governs left and right sums; concavity governs midpoint and trapezoidal sums.
- A change in concavity prevents a single whole-interval sign conclusion.
- The usual factor-four actual-error pattern needs a nonzero leading error.
- Doubling divides both derivative-based error bounds by four.
2Use Simpson's rule and select a method
Straight segments are only one way to fit a graph between sampled values. Simpson's rule fits a parabola through three neighboring points, often gaining accuracy without adding measurements. Its pattern depends on equal spacing and paired subintervals. Learn how to apply those weights, then check which rule a table actually supports. A finer-looking answer still depends on the smoothness of the function and the quality of the measurements.
2.1 Parabolas and the Simpson weight pattern
Simpson's rule fits a parabola through three equally spaced graph points at a time. Each parabola spans two subintervals. This pairing explains why the total number of subintervals must be even.
Apply the weights
For even and ,
The endpoint weights are 1. Odd-indexed interior points receive 4, and even-indexed interior points receive 2. For two subintervals the pattern is just . The width outside the sum is the width of one subinterval, even though a parabola covers a pair.
For with four subintervals, and
The error is . Using the same five endpoint values, the trapezoidal error is about thirteen times larger in magnitude.
Estimate an integral without an elementary antiderivative
For with , the values at spacing are approximately
The weighted sum is about , giving . The integral is approximately , so the absolute error is about . Being able to sample a function is enough to compute the estimate; an antiderivative is unnecessary.
Connect Simpson to the other rules
If and use the same coarse partition, their combined values give
Simpson's partition has half the coarse width and twice as many subintervals. The coarse midpoints become its odd-indexed points. Since the leading midpoint and trapezoidal errors often satisfy , this weighting cancels the leading error. The logarithm example gives from and .
Simpson's rule is exact for every polynomial of degree at most three. For instance, for on is , the exact integral. The fourth derivative of any such polynomial is zero, so its Simpson error bound is zero.
Check the partition before calculating
Four subintervals require five values. An even number of data values means an odd number of subintervals, which prevents this rule from covering the whole table in one piece. Check that the weights end in and that the outside factor is .
Doubling divides Simpson's error bound by exactly sixteen. For a continuous fourth derivative and , the actual-error ratio approaches sixteen as the partition becomes fine. Equal endpoint third derivatives can make the error shrink faster. For the logarithm integral, the actual-error reduction factor is about 12.3 from to , 14.6 from to and 15.6 from to . The bound's exact factor of sixteen describes its formula; it does not force the observed error to follow that factor on a coarse partition.
Key Takeaways
- Simpson's rule requires equal spacing and even .
- Use weights with factor .
- The identity uses two different partition sizes.
- Every polynomial of degree at most three is integrated exactly.
- Doubling divides the Simpson error bound by sixteen.
2.2 Choose a rule that fits the available values
The best rule is one you can apply to the information available. A formula lets you evaluate new sample points. A table restricts you to its readings unless more information is supplied about the function between them.
Match locations and spacing
| Rule | Values needed | Partition requirement |
|---|---|---|
| Midpoint | Centers of the chosen subintervals | Equal widths in the usual formula |
| Trapezoidal | Endpoints of each subinterval | Equal or unequal widths |
| Simpson | Endpoints of each subinterval | Equal widths and even |
If readings occur at with spacing , the odd-indexed readings are midpoints of wider subintervals of width . Using every other reading this way estimates the same full interval, with fewer, wider rectangles.
Compare rules on a depth table
A river is 8 m wide. Depths measured every 2 m across it are 0, 1.2, 2.0, 1.6 and 0 m. Integrating depth across the width gives cross-sectional area in square meters.
Four-subinterval Simpson gives
Four trapezoids give . Two midpoint rectangles instead use the readings at 2 m and 6 m, each with width 4 m:
Two coarse trapezoids use depths at 0, 4 and 8 m, giving . Hence , agreeing with . Averaging with would mix incompatible partitions and lose this identity.
Handle an odd number of subintervals
When an equally spaced table has an odd number of subintervals, use trapezoids throughout or combine Simpson on an even number of consecutive subintervals with one trapezoid on the remaining piece. Add the estimates over adjacent pieces; do not extend Simpson's alternating weights across an unpaired final subinterval.
Weigh accuracy against the data
For the smooth logarithm example with , the estimates are , and . Simpson is closest to . Its bound decreases as , while midpoint and trapezoidal bounds decrease as .
Smoothness matters. A corner such as the one in prevents the usual fourth-derivative guarantee across the corner. Measurement error can also outweigh the difference between numerical rules. Extra displayed digits cannot repair uncertain readings.
If an endpoint value is undefined, trapezoidal and Simpson formulas cannot be applied there directly. Midpoint samples can avoid that endpoint, but the usual derivative bound may still fail. For near zero, evaluate the improper integral with limits or a justified transformation before claiming guaranteed numerical accuracy.
Key Takeaways
- Choose the partition and rule together; sample locations must match.
- Odd-indexed readings can be midpoints of a coarser partition.
- An odd number of subintervals can be handled by Simpson plus one trapezoid.
- Smoothness and measurement quality affect the accuracy a rule can deliver.
3Turn an estimate into a guarantee
Two numerical answers can agree closely and still lack a guaranteed accuracy. Derivative bounds provide a separate way to control the largest possible error. The second derivative controls midpoint and trapezoidal estimates; the fourth derivative controls Simpson estimates. Once a bound is established over the entire interval, solve an inequality to choose enough subintervals. The resulting count guarantees the tolerance before you calculate the estimate.
3.1 Find a derivative bound and bound the error
An error bound limits the distance between an estimate and the exact integral. It gives a guarantee, not the actual error and not its sign. The guarantee relies on a derivative bound over the entire interval.
Select the right derivative and formula
For continuous on with everywhere,
For continuous with everywhere and even ,
Simpson uses a different derivative bound, so the same letter need not mean the same numerical value for all three rules. The midpoint bound is half the trapezoidal bound for the same interval, partition and second-derivative bound.
Find K over the whole interval
Differentiate first. Then bound the absolute value of the required derivative. Check endpoints and interior extrema, or justify the maximum from monotonicity. A large negative derivative matters just as much as a positive one of the same magnitude.
A convenient number above the true maximum is valid, though less sharp. Choosing a value below that maximum breaks the guarantee. Sampling the derivative at a few calculator points cannot establish a global maximum by itself. For example, if a second derivative ranges from to 3 and attains both values, its smallest valid magnitude bound is 7. Using 3 would ignore the part of the interval with the greatest curvature magnitude.
For on ,
Both are positive and decreasing, so their maxima occur at 1. Use for midpoint and trapezoidal rules and for Simpson.
With , the bounds are
The actual errors are much smaller. A bound can be loose and still correct. If an approximation is and its bound is , the exact value lies in .
Check smoothness before using the formulas
For on , has absolute value at most 2. Its fourth derivative is , with absolute value at most 12. For four subintervals, these give trapezoidal and Simpson bounds of about and .
For on , however, is unbounded near zero. There is no finite for this midpoint or trapezoidal guarantee. The integral is still proper and the numerical sums still converge; the missing derivative bound prevents this particular error estimate.
If the required derivative is identically zero, the bound is zero. This explains exactness for linear functions under midpoint and trapezoidal rules and for polynomials through degree three under Simpson's rule. Increasing changes the denominator: doubling it divides the first two bounds by four and the Simpson bound by sixteen.
Key Takeaways
- Bound for midpoint and trapezoidal rules; bound for Simpson.
- The bound must hold at every point of the interval.
- An error bound controls magnitude, not the sign of the error.
- Any upper bound on the required derivative magnitude is valid; a larger one is weaker.
- Without the required smoothness and finite derivative bound, these guarantees do not apply.
3.2 Choose enough subintervals for a tolerance
To guarantee an absolute error at most , require the error bound to be at most . Solve that inequality before rounding the number of subintervals. This finds a sufficient count; it may exceed the smallest count that would work in practice.
Solve for n
For a valid second-derivative bound ,
For a valid fourth-derivative bound ,
Choose a positive integer satisfying the inequality. Simpson additionally requires an even integer. Choose the smallest admissible integer at or above the threshold; ordinary rounding to the nearest integer can violate the bound.
Compare counts for the same integral
Estimate within . The second-derivative bound is 2, so trapezoidal requires
Choose . With 115, the bound is about , above the allowed tolerance. A threshold only slightly above an integer still requires rounding up.
Midpoint requires , giving and hence 82. For Simpson, use the fourth-derivative bound 24:
The next integer is 15, but it is odd. Choose . The stronger power of in the Simpson denominator makes the required partition much smaller here.
Use the tolerance exactly as stated
For , bounds and give thresholds for trapezoidal and for Simpson at tolerance . The admissible choices are 41 and 6. Tightening Simpson's tolerance to raises its threshold to , requiring 18.
An error of at most is a precise absolute tolerance. A common convention for “correct to four decimal places” uses an error below , half a unit in the last place. State the numerical tolerance being guaranteed. Such a bound controls error magnitude; exact agreement with a rounded decimal also depends on where the true value lies relative to a rounding boundary.
After choosing the count, substitute it back into the original bound. This checks the direction of the inequality and any arithmetic or rounding. Keep the derivative bound and interval length unchanged during this check.
Key Takeaways
- Set the bound at or below the stated absolute tolerance.
- Solve for before rounding, and always round upward.
- Round upward to an even integer for Simpson's rule.
- The resulting count is sufficient; the actual error may meet the tolerance with fewer pieces.
4Use limits to evaluate improper integrals
An infinite interval or an unbounded integrand changes what an integral means. Begin with an ordinary integral over a safe finite interval, then let its endpoint approach the problem point. A finite limit gives a convergent total; a missing or infinite limit gives divergence. Separate every problematic endpoint before combining results. The same limit process describes areas, volumes, probabilities and work that accumulate over an unbounded range.
4.1 Replace infinite endpoints with independent limits
An integral over an infinite interval is defined through limits of ordinary definite integrals. Infinity describes the direction in which an endpoint moves; it is not a number to substitute into an antiderivative.
Define and evaluate one tail
For a continuous function on ,
For a left-hand tail, use . The integral converges if this limit exists as a finite real number. Otherwise it diverges.
For on ,
The region extends forever but has finite area. By contrast,
grows without bound, so it diverges. Both integrands tend to zero. That fact alone does not settle whether their accumulated areas are finite.
Use familiar integration techniques inside the limit
For a decaying exponential,
For , integration by parts first gives
To evaluate the tail term, write it as . L'Hôpital's rule shows its limit is zero. Therefore . Keep the limiting process attached to the expression until it has a finite value or its failure to converge is established.
Split the whole real line
Choose a finite point and test
independently. Only when both converge can you add their values. For , split at zero and use the antiderivative . The two limits are each, so the whole integral is .
A symmetric cutoff can conceal divergent pieces. Although for every finite , the two independent tails of do not converge. Thus the improper integral over the whole real line diverges. Cancellation between separate divergent limits cannot give it a value.
Recognize divergence without unbounded growth
For ,
The accumulated value oscillates and has no limit. Bounded partial integrals are therefore insufficient for a function that changes sign.
Changing a finite starting point does not change convergence when the intervening piece is an ordinary finite integral. For a left-tail example, . The moving lower endpoint stays below ; the endpoint subtraction still puts the fixed upper value first.
The tails from 1 and from 5 of a function continuous on differ only by its integral from 1 to 5. Their values can differ, but they converge or diverge together.
Key Takeaways
- Define an infinite tail as a limit of finite-interval integrals.
- Convergence requires a finite limit; oscillation also causes divergence.
- Test the two tails over the whole real line independently.
- An integrand tending to zero can still have a divergent integral.
- Adding or removing a proper finite piece preserves convergence.
4.2 Approach each vertical asymptote from its own side
Finite integration endpoints do not guarantee an ordinary integral. A function can become unbounded at an endpoint or at a point inside the interval. Locate those points before applying the Fundamental Theorem of Calculus.
Write the one-sided definition
If the problem is at the lower endpoint , approach it from the right:
If the problem is at the upper endpoint , use . A finite limit means convergence. For example,
The height becomes unbounded, but the area is finite. For on the same interval, the partial integral is , which tends to infinity; that integral diverges.
A negative unbounded function can also be integrable. Integration by parts gives
Here by L'Hôpital's rule. The result is negative because the graph lies below the axis. At an upper-end singularity, .
Split an interior singularity
If the function is unbounded at inside , evaluate the integrals from to and from to with separate one-sided limits. Both must converge.
For , use the real cube root and the antiderivative . The left piece is
The right piece is . Their sum is .
Skipping the split can produce a false answer. Direct endpoint subtraction for gives , even though the function is positive. The right-hand piece actually has limit , so the full integral diverges. For on , the antiderivative gives zero by direct endpoint subtraction. But , so its left piece diverges. The interior asymptote prevents assigning zero to the whole improper integral.
Separate multiple problems
The integral has problems at zero and infinity. Split at 1. Substitution gives antiderivative . The limits of the two pieces are and , so the integral converges to .
Endpoint-based numerical rules need finite endpoint heights. They cannot directly use the value of at zero. Midpoint rectangles avoid that value, but their usual second-derivative error bound still fails there. A finite calculator output is not a convergence argument.
Key Takeaways
- Inspect the whole interval for unbounded values before subtracting antiderivatives.
- Approach a lower singular endpoint from the right and an upper one from the left.
- Split at every interior singularity and require all pieces to converge.
- An unbounded height can have finite integral.
- Separate endpoint singularities from infinite tails.
- Numerical samples alone do not establish convergence.
4.3 Interpret finite totals over an unbounded range
Improper integrals model accumulation over an unlimited distance, time or range of values. Define the quantity being accumulated first. Its units equal the integrand's units multiplied by the variable's units.
Compare area with volume
The region under for has area square unit. The region under for has infinite area, but rotating it about the horizontal axis gives disk areas . Its volume is
This solid is called Gabriel's horn. Area and volume use different integrands, so one can diverge while the other converges.
Build probabilities and means
A probability density is nonnegative and has total integral 1. The probability of an interval is the integral of the density over that interval. An exponential waiting-time density has
and is zero for negative time. Its total is . Its tail probability beyond is , and its mean is .
For a component with mean lifetime 2000 hours, per hour. The probability of lasting more than 3000 hours is ; the probability of failing within 1000 hours is . These are probabilities, so they have no units; the density has units of inverse time. To obtain the mean, integration by parts gives . The final term tends to zero, leaving with time units. This calculation weights longer lifetimes more heavily instead of merely repeating the density's normalization.
A finite mean requires , and then . Normalization alone is insufficient. The density has total 1, but its absolute first moment diverges like the integral of in the tails. Symmetry cannot supply a mean when the required integrals diverge.
Accumulate work over distance
For a mass at distance from Earth's center, the gravitational force magnitude is . The work to move from radius to unlimited distance is
Using m³/s² and m gives about J per kilogram. Equating this work to gives km/s. A force proportional to would instead require unbounded work because its tail integral diverges.
Discount a continuing payment stream
A continuous payment rate in currency units per year, discounted at continuous rate per year, has present value
For and , this is currency units. Discounting makes later payments contribute less to today's total.
For nonnegative accumulating quantities, divergence means the total grows without bound. With signed integrands, the accumulated value can instead oscillate without a limit.
Key Takeaways
- Area, volume and work require their own integrands and units.
- A density is nonnegative and has total integral 1.
- A finite mean requires a finite absolute first moment.
- An exponential density has tail probability and mean .
- Inverse-square gravitational work to infinity is finite.
- A continuous endless payment stream has present value when .
- Nonnegative divergent accumulation grows without bound.
5Decide convergence without finding an antiderivative
An exact antiderivative is often unnecessary when the question is whether a total is finite. Power functions and exponentials provide benchmarks with known behavior. Comparison transfers that behavior through an inequality or a positive finite ratio limit. Choose the benchmark near the point that makes the integral improper, check the comparison's conditions, and separate a convergence conclusion from an exact value. Tail estimates also let comparison support numerical accuracy.
5.1 Choose a benchmark for the problem endpoint
A benchmark integral is one whose convergence is already known. Powers provide the basic dividing line, but the condition changes depending on whether you approach infinity or a singular point.
Powers on an infinite interval
For ,
If , the power tends to zero, giving
For the partial integral grows without bound. For it is , which also grows without bound. Thus a reciprocal power converges at infinity exactly when . For example, gives value 2, while gives divergence. A positive constant multiple changes the value but preserves convergence.
Powers near zero
For , is unbounded at zero. Its integral over converges exactly when , and then
For it diverges. When , the function has a continuous extension at zero and the integral is ordinary. The same formula for the value still follows from the power rule.
| Location of the improper endpoint | Convergence condition for a reciprocal power |
|---|---|
| Infinity | |
| Zero |
At infinity, faster decay helps. Near zero, a gentler blowup helps. The borderline diverges at both ends. No real makes converge: splitting at 1 exposes incompatible requirements.
A shift changes the location, not the local power test. For example, is integrable near 2 from the right, while is not integrable near 3 from the left.
Exponential and logarithmic benchmarks
For ,
For the integral diverges. Exponential decay eventually beats every reciprocal power: becomes smaller than for any fixed positive . It can bound an even faster-decaying function from above; for , .
Logarithms require care near the power threshold. Substituting transforms into . Therefore
diverges like , while
The substitution changes the lower endpoint 2 to . For the squared logarithm, the cutoff integral becomes , whose limit is finite. With only the first power it becomes , which grows without bound. The logarithmic factor is decisive in these borderline cases. Do not discard it simply because it grows slowly. Identify the troublesome endpoint before choosing a power: terms dominant at infinity can be negligible near zero.
Key Takeaways
- At infinity, converges exactly for .
- Near zero, converges for .
- The borderline reciprocal power diverges at both ends.
- A decaying exponential has a finite tail integral.
- Use for logarithmic factors paired with .
5.2 Use inequalities to bound total area and tails
Direct comparison works by ordering nonnegative integrands. It can establish that an improper integral is finite without finding its exact value, and it can bound the tail omitted by a numerical calculation.
Choose a useful direction
Suppose on a tail where both functions are continuous. If the integral of converges, the integral of converges. If the integral of diverges, the integral of diverges. These are the two useful directions:
- A larger convergent function proves convergence.
- A smaller divergent function proves divergence.
For nonnegative functions the partial integrals increase as the interval expands. An upper bound on the larger total therefore bounds the smaller total. Being below a divergent function gives no decision, and being above a convergent one gives no decision. The same comparison reasoning applies near an unbounded finite endpoint.
Establish the inequality on the tested interval
For ,
The right-hand integral converges, so the left-hand integral converges and has value below 1. Comparison alone does not identify that value.
For divergence, implies
The smaller benchmark has divergent integral, so the target diverges. The oscillation in the numerator cannot remove its positive lower bound.
Taking reciprocals reverses inequalities between positive numbers. This matters for . It is larger than , which is an unhelpful comparison. On , however, , giving . That proves convergence of its tail, and hence of the integral starting at 2.
Compare near an unbounded endpoint
For ,
The upper benchmark integrates to , so the target converges near zero. Conversely, on that interval gives , which proves divergence there.
Add a tail bound to numerical error
To estimate , first approximate its finite piece on . For , , so
If the finite-interval estimate has error bound , its error as an estimate of the whole integral is at most . There are two sources of error: approximating the retained piece and dropping the tail. A tiny tail does not guarantee that the finite-piece numerical error is tiny. If a required total tolerance is and the tail bound is , reserve first and require the finite-piece bound to be at most . If the tail already exceeds the error budget, move the cutoff or find a sharper tail bound before choosing the partition count.
The inequality only needs to hold from a suitable finite cutoff onward, provided the omitted initial piece is proper. State that cutoff and check nonnegativity before applying the test.
Key Takeaways
- Bound above by a convergent integrand to prove convergence.
- Bound below by a divergent nonnegative integrand to prove divergence.
- Reciprocals reverse inequalities between positive denominators.
- Check the inequality and nonnegativity over the entire tested interval.
- Total numerical error can be bounded by finite-piece error plus omitted-tail bound.
- A comparison establishes convergence or a bound, not an exact value.
5.3 Match local behavior and handle sign changes
A useful comparison matches the integrand near its improper endpoint. At infinity, keep the fastest-growing terms. Near zero, a smaller power can dominate a denominator. A positive finite ratio limit turns this matching intuition into a convergence test.
Apply limit comparison
Let and be positive and continuous on the tested tail. If
then their improper integrals converge or diverge together. Near a finite singular endpoint, take the corresponding one-sided limit instead. A ratio tending to zero or infinity is outside this two-way test; it needs another argument.
For at infinity, the dominant terms suggest . Check
The benchmark converges, so the target converges. Their values need not agree. To see why the ratio test works, choose a sufficiently late tail on which . Then . Positive constant multiples of a benchmark share its convergence behavior, and direct comparison traps the target between them. For , compare with : the ratio tends to 1, proving divergence.
Change the dominant term near zero
For near zero, is the important denominator term. Dividing by gives , so its integral diverges near zero. For , the square-root term dominates there. The direct bound by proves convergence. Using the largest exponent from a polynomial at every endpoint would reverse these local judgments.
Deal with logarithms and exponential factors
A logarithm grows more slowly than every positive power. On , , so
This proves convergence. But diverges because its partial integral is .
Exponential decay beats polynomial growth. Since , it is at most 1 on a sufficiently late tail; every works. There . The exponential upper bound is integrable. The initial interval is proper, so the whole integral from zero converges.
Use absolute values for sign-changing functions
Direct and limit comparison in these forms require nonnegative functions. If the target changes sign, try its absolute value. If converges, then converges absolutely.
For , the inequality proves absolute convergence on . The converse fails: converges, but its absolute-value integral diverges. Failure to prove absolute convergence therefore does not by itself settle ordinary convergence.
Key Takeaways
- Match the dominant behavior at the actual improper endpoint.
- A positive finite ratio limit transfers convergence in both directions.
- A ratio limit of zero or infinity needs further reasoning.
- Logarithmic and exponential factors can decide convergence.
- Convergence of the absolute-value integral guarantees convergence of the signed integral.
Numerical and Improper Integrals examples
1Estimate one integral in two ways
13 steps
- 1IntroductionTurn samples into a total
A numerical integral starts with function values and ends with an estimated signed total. We will estimate using four subintervals, first with rectangles and then with trapezoids (midpoint, trapezoidal).
The sample locations change between the two methods. Keeping those locations clear makes the arithmetic easier to check and helps explain why the estimates fall on different sides of the exact value, a matter of concavity.
- 2ExplanationCount the pieces before sampling
For four pieces across , the common width is
The partition points are . Five points define four pieces, so the denominator is four. Each midpoint lies halfway between consecutive partition points; it does not add another subinterval to the count.
- 3ExampleEvaluate at the centers
The midpoints are . Evaluate at those coordinates:
These are rectangle heights. On the first interval, the height is . Averaging and would sample a different geometric approximation.
- 4ExampleMultiply the height sum by the width
Add the four heights and multiply by their common width:
The exact integral is . Its signed error, exact minus estimate, is about . The midpoint answer is therefore low. Keep unrounded heights during calculation so that rounding does not needlessly change the final digits.
- 5ChallengeFind a new midpoint sum
Estimate using two midpoint rectangles. What sample locations and signed total do you get?
---reveal---
The width is 2 and the centers are 1 and 3. Their heights are 0 and 2, so . A negative height, if present, would stay negative in the sum. Counting three partition points as three intervals would give the wrong width.
- 6ExplanationTrade rectangles for straight segments
A trapezoid uses the average of its two endpoint heights. Its contribution is
An interior point belongs to the trapezoids on both sides, so its height is counted twice. Outer endpoints appear only once. This produces the composite weights for four subintervals.
- 7ExampleApply the trapezoidal weights
For the logarithm integral, use endpoint heights , keeping the same width :
The result is high by about . The outside factor includes one half because each trapezoid averages its two heights.
- 8ChallengeLet unequal time gaps keep their widths
A rate is 2, 6 and 4 L/s at 0, 3 and 8 s. What trapezoidal volume estimate uses all three readings?
---reveal---
The widths are 3 and 5 s. The estimate is L. A common width of 4 s would assign the two gaps equal importance even though they last different lengths of time.
- 9Key InsightExplain why the two answers surround the integral
For on , , so the graph is concave up. The trapezoidal chords lie above it. Midpoint tangent areas lie below it and equal the midpoint rectangles’ areas.
Consequently, . This ordering comes from concavity, not from the fact that the function is decreasing.
- 10ExplanationMeasure error without losing the sign
Write . Positive error means a low estimate; absolute error is . Relative error divides that magnitude by when the exact value is nonzero.
For the midpoint logarithm estimate, relative error is about . The percentage compares error with the exact integral’s size, not with the estimate’s size.
- 11ChallengeUse shape and samples together
A decreasing, strictly concave-up function has and . Where is its exact integral, and what value follows for ?
---reveal---
Concavity places the integral strictly between 2.1 and 2.4. Reusing the old midpoints as new partition points gives . Decreasing behavior alone would order left and right sums, not settle the trapezoidal sign.
- 12TipSeparate a pattern from a guarantee
For many smooth functions, midpoint and trapezoidal actual errors shrink by about four when the partition count doubles. Their usual leading-error pattern needs ; cancellation can change it when those derivatives agree.
Their standard error bounds divide by exactly four whenever the bounds apply. Use that guaranteed statement when planning accuracy.
- 13RecapCheck an estimate in a useful order
Identify the interval and sample locations first. Calculate widths and weighted heights, then interpret the result using units and graph shape.
If the exact integral is unknown, concavity can give an error direction. A derivative bound supplies a separate guarantee on error size.
2Build a Simpson estimate from a table
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionUse curved pieces between readings
- 2ExplanationPair the subintervals
- 3ExampleWeight the river depths
- 4Key InsightUnderstand cubic exactness
- 5ChallengeCheck the weights with a cubic
- 6ExampleReuse the river’s center readings
- 7ConnectionCombine estimates on the correct partitions
- 8TipHandle an unpaired final interval
- 9ChallengeChoose a table method and count its pieces
- 10ChallengeCheck the limits of the guarantee
- 11RecapMake the table determine the method
3Choose a partition that guarantees accuracy
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionPlan accuracy before computing the sum
- 2ExplanationChoose the derivative for the rule
- 3ExampleCalculate a four-piece bound
- 4ChallengeChoose a valid magnitude bound
- 5ExampleTurn the trapezoidal bound into an inequality
- 6TipSubstitute the chosen count back
- 7ExampleCompare midpoint with Simpson
- 8ChallengeRound to the next admissible value
- 9ConnectionInspect a derivative that becomes unbounded
- 10ChallengeAllocate a tighter accuracy goal
- 11RecapKeep the guarantee traceable
4Evaluate every improper endpoint
19 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAsk whether the accumulating total settles
- 2ExplanationReplace infinity by a cutoff
- 3ExampleEvaluate a convergent tail
- 4ChallengeIntegrate an exponential tail
- 5Key InsightRequire independent tails
- 6ConnectionRecognize bounded divergence
- 7ExplanationApproach an unbounded endpoint from inside
- 8ExampleSplit an interior problem point
- 9ChallengeDiagnose an endpoint subtraction
- 10ExampleIsolate zero and infinity
- 11ExplanationNormalize a probability density
- 12ExampleFind a waiting-time tail
- 13Key InsightCheck the mean separately
- 14ConnectionCompare area and rotated volume
- 15ExampleAccumulate work over unlimited distance
- 16ExampleDiscount a stream of continuing payments
- 17ChallengeFind a normalizing constant and a mean
- 18ChallengeCheck a finite endpoint and a tail together
- 19RecapInspect before integrating
5Choose comparisons that settle convergence
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionReplace a hard integral with a known benchmark
- 2ExplanationRead the power threshold at infinity
- 3ExplanationReverse the inequality near zero
- 4ChallengeTest both ends of a new integrand
- 5ConnectionUse the logarithm as a new variable
- 6ExplanationPick the useful inequality direction
- 7ExampleReverse a denominator inequality correctly
- 8ChallengeFind an upper comparison that works
- 9ExplanationTurn matching behavior into a ratio
- 10ExampleCheck the dominant rational terms
- 11ChallengeChoose the comparison at zero
- 12Key InsightLet decay beat polynomial growth
- 13ExplanationControl sign changes with absolute values
- 14ConnectionBound the tail of a numerical calculation
- 15ChallengeSeparate a failed test from a divergent integral
- 16RecapWrite a complete comparison argument
Numerical and Improper Integrals practice questions
Set 1: Choose methods and justify convergence10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Estimates, error signs and first limits10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Connect estimates, guarantees and endpoints10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Plan complete solutions and check near misses10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Absolute convergence
Absolute error
Absolute first moment
Absolute tolerance
Admissible subinterval count
B
Borderline exponent
C
Coarse partition
Composite rule
Concavity
Conditional convergence
Convergence
Convergent upper comparison
Cubic exactness
Cutoff
D
Derivative bound
Direct comparison test
Divergence
Divergent lower comparison
Dominant term
E
Endpoint weight
Equal spacing
Error bound
Eventual comparison
Exponential decay
Exponential density
F
Fourth derivative
G
Gabriel’s horn
Global maximum magnitude
Gravitational work
I
Improper integral
Interior singularity
L
Limit comparison test
Logarithmic substitution
M
Mean
Measurement error
Midpoint rule
Monotonicity
N
Numerical integration
O
One-sided limit
Overestimate
P
p-integral
Parabolic interpolation
Partition
Present value
Probability density
R
Refinement
Relative error
Riemann sum
S
Second derivative
Signed area
Signed error
Simpson weight pattern
Simpson’s rule
Smoothness
Subinterval width
Sufficient condition
T
Tail integral
Trapezoidal rule
Truncation error
U
Unbounded integrand
V
Vertical asymptote
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.