Learning goals and preparation
This chapter assumes limits, continuity, and basic differentiation, including the product and chain rules. It connects a rate with its accumulated total, introduces the definite integral, develops substitution and integration by parts, and applies integrals to hypothetical continuous probability models. Chapter 1 introduces limits and differentiation; Chapter 2 develops optimization and sensitivity.
Historical optional enrichment. Section 3.6 and its probability exercises are an optional historical extension.
An integral adds many small contributions. When the contributions have signs, the integral is a net total rather than an unsigned area. When a density is integrated, the result is a probability, not the height of the density at a point. Keeping those meanings separate prevents several common errors.
3.1 From small contributions to a definite integral
Divide into subintervals with endpoints . Choose a sample point and form the Riemann sum
The mesh is the largest . A bounded function is Riemann integrable when these sums approach the same finite number as the mesh tends to zero, regardless of the sample points. That number is . Every continuous function on a closed bounded interval is integrable.
If is a flow rate in litres per minute and is time in minutes, the integral has units litres. The sample rectangle's height is a rate and its width is a time; their product is an amount.
Uniform continuity
Definition
One delta for the entire domain
A function is uniformly continuous on if for every there exists such that for all , implies . The chosen can depend on but not on or .
Theorem
Heine–Cantor theorem
Every continuous real-valued function on a compact set is uniformly continuous.
Proof
Contradiction using compactness
If uniform continuity failed, some would permit, for every , points with but . Compactness supplies a subsequence . Since the paired distances tend to zero, also . Continuity gives both and , contradicting the output separation.
Worked example
Pointwise but not uniform on an unbounded domain
The function is continuous on but not uniformly continuous there. Take and . Then , but . On any closed bounded interval, Heine–Cantor does give uniform continuity. It is also direct: if , then .
Learning goals and definitions
Develop the proof behind integrability statements and distinguish boundedness from integrability. Let and be bounded on . For a partition , put , , and define , . The lower integral is the supremum of all lower sums; the upper integral is the infimum of all upper sums. Refining a partition makes lower sums nondecreasing and upper sums nonincreasing.
For any two partitions , their common refinement gives , so . Boundedness ensures these quantities are finite. The function is Riemann integrable when they agree.
Theorem: Darboux criterion
The bounded function is integrable if and only if for every there is a partition with .
Proof. If the two integrals equal , choose a lower sum above and an upper sum below , using supremum and infimum approximation. Their common refinement has gap less than . Conversely the inequalities force the integral gap to be zero when such partitions exist for every positive .
Theorem: finitely many discontinuities are permitted
If is bounded and continuous except possibly at finitely many points, it is integrable.
Proof. Let , taking . Surround the exceptional points by finitely many small intervals, with endpoints included in the partition, having total length less than . At endpoints of use one-sided intervals. Their contribution to the upper-lower gap is at most times their total length, hence less than . On the remaining finitely many closed intervals, is continuous and therefore uniformly continuous. Subdivide each sufficiently finely that its oscillation on every resulting subinterval is less than . Their total gap is less than . Combining all partition points gives gap below . If an exceptional interval endpoint would itself be exceptional, move it slightly so all actual exceptional points lie inside the selected intervals or at the domain endpoints. This keeps the remaining closed intervals continuous.
Continuous functions and all tagged meshes
Let be continuous, where . The extreme value theorem makes bounded, and Heine–Cantor makes it uniformly continuous. For a partition , write and for its lower and upper Darboux sums. The proved Darboux integrability theorem for continuous functions supplies the common integral .
Fix . Uniform continuity supplies such that whenever . If the mesh of is less than , every subinterval has oscillation at most . Therefore
For every selection of tags, its tagged sum lies between and ; so does . Thus . The same works for every partition of sufficiently small mesh and every choice of tags. This proves the tagged-mesh definition for continuous functions on the stated closed interval.
For , take a partition , with , tags , and mesh . A finite number is the definite integral if, for every , there is such that every partition with and every choice of tags satisfy . In that case is the common limit. Continuous functions on a closed interval are integrable.
Let be continuous on and . For and nonzero with , the integral estimate gives
Thus in the interior; at the endpoints the same argument gives one-sided derivatives. If is continuous on , differentiable on , and there, the mean value theorem makes constant on . Therefore .
Worked example 1: a sum with an exact limit. For on , use equal widths and right endpoints . The sum is
It tends to . Integrability, supplied here by continuity, ensures the same limit for all sufficiently fine tagged partitions; computing one convenient family alone would not prove that fact for an arbitrary function.
The integral is linear and additive across intervals:
If on an interval, their integrals obey the same order. Reversing endpoints changes the sign.
3.2 The fundamental theorem of calculus
If is continuous on and , then for . To understand why,
This is an average of over a short interval. Its difference from is bounded in magnitude by the largest on that interval, which tends to zero by continuity. The same conclusion holds for positive and negative .
A second form states that if is continuous on , is continuous on and differentiable on , and on , then
Indeed the accumulated-integral function and have the same derivative; their difference is constant by the mean value theorem. This converts an accumulation problem into an antiderivative calculation.
An indefinite integral denotes the family of antiderivatives on an interval. The constant is needed because differentiation erases constants. It is not appended after evaluating a definite integral.
Worked example 2: rate to total. Suppose a tank's net inflow is L/min for . The change in volume is
The inflow changes sign at . The total amount moved, counting flow in either direction positively, is L. A net change and a total movement need not agree.
3.3 Substitution reverses the chain rule
The chain rule says . Thus, under the usual continuity and differentiability assumptions,
For definite integrals, transform the bounds as well:
This formula follows by differentiating an antiderivative composition; it does not require to be globally one-to-one when used in this one-variable form.
2. Definite substitution and parts
Let , , and let be continuous on an interval containing . Define oriented integrals in the usual way if the bounds are reversed. Then
Proof. Extend continuously to an open interval containing by constant continuation at any finite endpoint of that lies in the image. Pick in that open interval and define . By the fundamental theorem throughout that open interval. The chain rule gives on . The fundamental theorem applied to the continuous integrand gives , which is the right-hand side. No monotonicity or injectivity of is required under these hypotheses.
If , then
Proof. Integrate the product rule and rearrange using linearity and the fundamental theorem. Continuity makes all integrals proper Riemann integrals.
Example. With on and , substitution gives even though is not one-to-one. For parts, .
Supplemental calculus practice: CR problems
CR-P01.
Differentiate for all real .
CR-P02.
Evaluate and state the substitution.
CR-P03.
Evaluate by parts.
Full solutions to the CR problems
CR-S01.
The inner function is positive, so the derivative is on .
CR-S02.
Put ; the bounds are , and the answer is .
CR-S03.
Choose , , so . The result is .
Worked example 3: an inner expression and its derivative. Calculate
Let , so ; the bounds become and . The result is . Alternatively evaluate between the original bounds. Do not mix transformed integrands with untransformed bounds.
For , the same substitution gives . A derivative check confirms the missing-factor risk has been handled correctly.
3.4 Integration by parts reverses the product rule
Integrating gives
For definite integrals, include the boundary term . The method helps when differentiating one factor simplifies it and the other factor can be integrated.
Worked example 4: a time-weighted exponential. For ,
The negative sign in the antiderivative of is essential. At the result is zero, as it must be. Differentiating the final expression with respect to returns , a second check.
3.5 Area and admissible splitting
If a continuous curve crosses the axis, its signed integral may cancel positive and negative contributions. The unsigned area between and the axis is , calculated by splitting at zeros. The area between two curves is ; the “top curve” may change across the interval.
Worked example 5: crossing curves. On , compare and . They meet at and . The area is
Using would give , the signed difference, not the area.
3.6 Density, distribution, and expectation
A continuous probability model can be specified by a nonnegative density with total integral . For an interval,
A density is not a point probability: an individual point has probability zero in this model, and density heights can exceed . The cumulative distribution function is . Where is continuous, .
When the relevant integrals converge absolutely, the expectation is and the variance is . These definitions require a chosen probability model; an arbitrary nonnegative graph is not a density until it is normalized.
Worked example 6: normalize first. Let for , and zero otherwise. Normalization requires , so . Then
Its CDF is for , for , and for . The mean lies in the support, but not at its midpoint because the density weights larger values more heavily.
An improper integral on is the limit . For the exponential density , , , this limit is . Its tail probability is for , and its mean is , using Worked example 4 and the limit . An improper integral is not obtained by treating infinity as an ordinary endpoint value.
3.7 Graded exercises
Foundation
- Evaluate and give a derivative check of the antiderivative.
- Find .
- A rate is for . Find its net integral and its total absolute accumulation.
Core
- Evaluate by substitution, including transformed bounds.
- Evaluate by integration by parts.
- Find the area between and on .
- Let on and zero elsewhere. Find , , and .
Synthesis
- For the density in Exercise 7, compute and the variance. Check that the variance is nonnegative.
- For an exponential density with parameter , derive for , using conditional probability and integrals. State why the conditional probability is defined.
- A student integrates a nonnegative function on and obtains , calling it a probability. Explain the missing condition. If the function is , normalize it to a density on and compute the probability of .
3.8 Full solutions
- An antiderivative is , whose derivative is . The definite integral is .
- The fundamental theorem followed by the chain rule gives .
- The net integral is . Split the absolute integral at : the first part is , and the second is , for total .
- Let ; then and the bounds remain and . The integral is .
- Choose , . Then .
- The difference is positive on and negative on . The area is .
- , so . The probability to is . The mean is .
- . The variance is .
- The tail integral is . Since , the conditional probability is . The denominator is positive for every finite .
- Nonnegativity alone is insufficient; a density's total integral over its support must be . Here . Thus on , zero elsewhere. The probability to is .
Summary and onward map
An integral is a limit of sums, interpreted through its units and signs. The fundamental theorem connects accumulation with derivatives. Substitution reverses the chain rule; integration by parts reverses the product rule. Unsigned area requires absolute values or a correct sign split. A density must be nonnegative and normalized, and its probabilities come from integrals, not heights.
Prerequisite map. Continuity supports integrability and the fundamental theorem. Product and chain rules justify the two main techniques. Logarithms and exponential limits support improper integrals. Ordinary differential equations and broader probability topics require further chapters; they are not covered by this slice.