Learning goals and preparation
We assume limits, continuity, derivatives, the product and chain rules, and elementary trigonometric identities. This chapter develops definite integrals and the main hand-calculation techniques: substitution, integration by parts, trigonometric identities and substitutions, and rational partial fractions. It also explains how an infinite interval changes an integration problem into a limit problem.
The aim is not to force every integrand into one formula. A useful method exploits structure, preserves domains, and leaves an answer that can be verified by differentiation or by a limiting calculation.
3.1 Definite integrals and antiderivatives
Why the real numbers need more than arithmetic
The rational numbers support the familiar ordered arithmetic, yet the set has no rational least upper bound. The real number system adds a completeness property: bounded nonempty sets have least upper bounds. This is the source of many existence results later in analysis, not simply another rule for manipulating inequalities.
Definition
Upper bound and supremum
For a nonempty , is an upper bound if for every . A number is if it is an upper bound and for every upper bound . A maximum is an element of that is also an upper bound. The maximum, when it exists, is the supremum; a supremum need not belong to . Lower bounds, infimum and minimum are defined by reversing inequalities.
Theorem
Completeness axiom
Every nonempty subset of that is bounded above has a real supremum. Equivalently, every nonempty subset bounded below has a real infimum, via .
For example, although is not a maximum of that set. Conversely, and it is a maximum. The empty set and an unbounded-above set do not have a real supremum under this definition.
Theorem
Supremum approximation criterion
An upper bound of a nonempty set is if and only if, for every , there exists such that .
Proof
Proving both directions
If and no element exceeds , then is a smaller upper bound, contradiction. Conversely, suppose is an upper bound and the approximation property holds. If another upper bound were smaller than , choose . The property gives , contradicting that is an upper bound. Thus is the least upper bound.
Worked example
Use both halves of a supremum proof
Let . Every element is less than , so is an upper bound. Given , choose by the Archimedean property below. Then . Thus . No element equals , so has no maximum. An upper-bound calculation alone would not prove leastness: is also an upper bound.
Archimedean property and density
Theorem
Archimedean property
For every real there exists a positive integer . Consequently, for every there is such that .
Proof
Completeness forces integers to be unbounded
If the positive integers were bounded above, completeness would give . Since is not an upper bound, some satisfies . But and , contradicting that bounds the set. Apply this to to obtain the second statement.
Between any real numbers there is a rational number. Indeed choose with ; the Archimedean property and the integer-part property yield an integer with , so . The integer-part property follows from the unboundedness of integers in both directions and the well-ordering of the natural numbers. An irrational also lies between and : choose a rational with ; then is irrational and lies in the interval. Thus density does not say rationals and irrationals are equal sets.
Worked example
An infimum via reflection
For , every element exceeds . Given , choose to obtain . Therefore is the infimum, but not a minimum. The maximum is , attained at .
Quantifiers in convergence
Definition
Convergence of a real sequence
A sequence converges to if for every there exists such that for every , . Write . The index may depend on but must work for all later indices.
To negate convergence to , there must be some such that for every there is an with . A few early terms do not affect convergence; a recurring failure arbitrarily late does.
Worked example
Construct an epsilon–N proof
For , guess . Since
choose . Then every gives . The guess is motivation; the inequality and quantified choice establish the proof.
Theorem
Uniqueness, boundedness and limit laws
A convergent real sequence has a unique limit and is bounded. If and , then , , and when and the quotient is defined eventually. If eventually and both outer sequences converge to , then .
Proof
Uniqueness and boundedness
If and , then for any , sufficiently late terms satisfy both and . The triangle inequality yields . Since this holds for every positive , . For boundedness choose so that for . The finite initial terms and the bound for the tail together give a finite bound for the whole sequence.
The converse of boundedness is false: is bounded but does not converge. If it converged to , its even subsequence would converge to and its odd subsequence to , violating uniqueness.
Proof
Product law mechanism
A convergent sequence is bounded, say . Write
Both terms tend to zero. For the quotient, implies eventually; this keeps the denominator away from zero and gives .
Subsequences
Definition
Subsequence
A subsequence of is where are positive integers. If , then every subsequence converges to because and therefore eventually lies beyond any prescribed index.
Theorem
Bolzano–Weierstrass
Every bounded real sequence has a convergent subsequence.
Proof
Nested-interval proof
Place every term in a closed bounded interval . Bisect it. At least one half contains infinitely many terms; choose that half as . Continue, obtaining nested closed intervals of lengths tending to zero, each containing infinitely many terms. Choose indices strictly increasing with ; this is possible because each interval contains infinitely many terms. Completeness gives a common point in all intervals: the supremum of their left endpoints lies in each interval because every left endpoint is at most every right endpoint. Since , their distance is at most the interval length and tends to zero.
The conclusion is about a subsequence, not necessarily the whole sequence. For example, has constant subsequences converging to and , but does not converge.
Real closed sets: the sequence criterion and the open complement
Work on the real line in the usual classical set-theoretic setting, with countable witness selections available. A set is open when every in has some with contained in . We use the Archimedean consequence that tends to zero. For every subset of the real line, the following conditions are equivalent:
- Every sequence of points of that converges in the real line has its limit in .
- The complement of is open.
Proof of 2 implies 1. Suppose belongs to and tends to . If were outside , openness would give with disjoint from . Convergence gives a threshold after which , contradicting in . Therefore belongs to .
Proof of 1 implies 2. Fix outside . If no positive-radius interval around avoided , then for every positive integer there would be a point in with . Choose these witnesses as a sequence. Given , choose with . For , , so tends to . Condition 1 would force into , a contradiction. Hence some interval around avoids . This holds for every point of the complement, proving it open. The witness-sequence step uses the stated classical setting; this proof is not offered as a theorem about choice-free foundations. If is empty there is no sequence in , and its complement is the whole open line. If is the whole line, its empty complement is open vacuously. Both edge cases also satisfy the equivalence.
Learning goals and definitions
A set is compact if every family of open sets whose union contains has a finite subfamily still covering . A set is closed if it contains all limits of convergent sequences of its points, equivalently if its complement is open. Sequential compactness means every sequence in has a subsequence converging to a member of .
The empty set is compact, closed and bounded, and sequentially compact vacuously. In proofs using a selected point or an infinite sequence, treat that case separately. We may assume the real completeness property and its nested-interval and Bolzano–Weierstrass consequences from the earlier sequence units.
Theorem: Heine–Borel in the real line
For , the following are equivalent: compactness by open covers; closedness and boundedness; sequential compactness.
Compact implies closed and bounded. The intervals , , cover , hence . A finite subcover gives a bound. To show closedness, take . For each , the interval avoids . A finite subfamily covers . Let be the minimum of their positive half-distances to . Every point in the chosen interval centered at has distance from strictly greater than . Thus misses , showing its complement open. If is empty this is immediate.
Closed and bounded implies compact. Enclose nonempty in a closed bounded interval . Suppose an open cover of has no finite subcover. Bisect . At least one closed half meets in a set not finitely coverable; otherwise two finite collections would cover . Choose such a half and repeat. We obtain nested closed intervals with lengths tending to zero, and not finitely coverable. Each intersection is nonempty; choose . The nested-interval property gives a unique common point , and because both lie in . Closedness gives . Some member of the cover contains , and openness gives a ball around inside . For large , the whole interval lies in that ball, so alone covers , a contradiction.
Closed and bounded implies sequentially compact. Every sequence in is bounded, so Bolzano–Weierstrass supplies a convergent subsequence. Closedness retains its limit in .
Sequentially compact implies closed and bounded. If unbounded, choose with ; no subsequence can converge to a finite real number, a contradiction. If is a limit of points in , choose with . A subsequence converges to a point of by sequential compactness, but it also converges to ; uniqueness of real limits gives . Thus is closed. This completes all implications.
Compact subsets of the real line
A set is compact if every open cover has a finite subcover. In , Heine–Borel says this is equivalent to being closed and bounded; it is also equivalent to every sequence in having a subsequence converging to a point of . The closedness requirement keeps the subsequential limit in the set; boundedness permits extraction. We use the sequential form in the proofs below.
Theorem
Extreme value theorem
If is nonempty and compact and is continuous, then is bounded and attains both a maximum and a minimum on .
Proof
Extract a maximizing subsequence
If were unbounded above, choose with . A subsequence exists; continuity would give , contradicting divergence to infinity. The same reasoning applied to gives boundedness below. Let . Choose with . A convergent subsequence tends to some , and continuity implies . Apply the argument to for a minimum.
Worked example
Which hypothesis fails?
The continuous function on is bounded but has no maximum or minimum: and are not in the domain. The set is bounded but not closed, hence not compact. On , both endpoints are present and the extrema are attained. Compactness is a sufficient global hypothesis, not a condition required for every individual function to attain extrema.
Fermat's necessary condition. At a differentiable interior local maximum or minimum, .
Proof. At a local maximum, sufficiently small positive increments give nonpositive difference quotients and negative increments give nonnegative ones. A two-sided derivative can satisfy both sign limits only by being zero. Negating the function treats a minimum.
The interior hypothesis matters: on has extrema at endpoints despite derivative 1. The converse fails: has zero derivative at zero but no extremum there.
Rolle's theorem. If , is continuous on , differentiable on and , then for some .
Proof. The extreme-value theorem supplies maximum and minimum. If the function is constant, every interior point works. Otherwise a value differs from the equal endpoint values, so either a maximum or a minimum occurs in the interior. Fermat's condition applies there.
Mean value theorem. Under the same continuity and differentiability hypotheses but without equal endpoint values, some satisfies .
Subtract the secant line from and apply Rolle. This proves the theorem without assuming is continuous. Consequences include: derivative zero on an interval makes the function constant; nonnegative derivative makes it nondecreasing; and on an interval gives for points in it. An interval-wide derivative bound cannot be inferred from one derivative value.
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 .
The integral is signed; negative values of contribute negatively.
The notation describes antiderivatives on an interval. Different constants may be required on disconnected domain components. For example, separately on each of and . It is not an integral across the singularity at zero.
A working table. For on a suitable real interval,
Also , , , and . Differentiate these formulas to check coefficients, signs and domains. A definite integral is a number and does not acquire a final .
3.2 Substitution and correct bounds
The chain rule implies
For definite integrals,
A one-variable substitution of this form does not require global injectivity of when justified by an antiderivative composition. More general change-of-variable interpretations do require attention to orientation and multiplicity; do not treat every transformation as an unsigned replacement of intervals.
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, .
Worked example 1: a missing coefficient. For , set , . The integral is . Differentiation gives , confirming the factor .
Worked example 2: a nonmonotone inner function. Evaluate . The antiderivative is , so the answer is . Transforming both endpoints by gives the same oriented integral from to . This is valid because the factor retains orientation. It does not mean the different integral is zero.
3.3 Integration by parts and repeated use
The product rule yields
For definite integrals replace with and keep both bounds on the remaining integral. Choose so its derivative simplifies, if possible.
Worked example 3: polynomial times exponential. For , choose , . Then
The second integration by parts reduces the polynomial degree again. A derivative check cancels the unwanted lower-degree terms.
Worked example 4: a logarithm without a visible product. Write for . Let , . Then . This method uses the logarithm's domain; it is not an antiderivative formula for a real at negative .
Some products lead back to the original integral. For , integration by parts twice gives . Hence . Treating the repeated integral as an unknown and solving the resulting linear equation is legitimate, with the arbitrary constant absorbed at the end.
3.4 Trigonometric powers and substitutions
For an odd power of sine or cosine, save one factor for a differential and convert the remaining even power using .
Worked example 5: an odd power. For , use , , and . The integral becomes
For even powers, half-angle identities often help: and . Thus .
A radical can suggest a trigonometric substitution. For with , set on . Then the radical equals , not , because cosine is nonnegative on the selected branch. Also .
Worked example 6: a semicircle integral with branch control. Calculate . The substitution gives
The geometric quarter-circle area independently checks the result. Without a branch restriction one would have , not automatically .
The related choices for and for can simplify other radicals, but their intervals and signs must likewise be stated. Choose a substitution because it simplifies the integrand, not just because a square root appears.
3.5 Rational functions and partial fractions
For a rational function , first divide polynomials if the numerator degree is at least the denominator degree. Then factor the denominator over the reals. Distinct linear factors produce terms ; repeated factors need all powers up to their multiplicity; an irreducible quadratic needs a linear numerator.
Worked example 7: distinct factors. Decompose
Equating numerators gives and , so . Therefore the antiderivative is on intervals avoiding .
For a repeated factor, requires . Equating coefficients gives . An antiderivative is . Omitting the first power or repeated power would prevent a general decomposition.
For an irreducible denominator, split a numerator into a multiple of the derivative and a remainder. For example,
The logarithm needs no absolute value because .
3.6 Improper integrals are limits
Define when that limit exists and is finite. Likewise a singular endpoint requires a one-sided limit. An interior singularity must be split into two separately convergent integrals; cancellation across it is not ordinary convergence.
Worked example 8: the power threshold. For ,
As , this converges to exactly when . For , the integral is and diverges. Thus decay to zero of an integrand alone does not imply finite total accumulation.
The integral of across is not zero as an ordinary improper integral: each side diverges. A symmetric cutoff may cancel, but that is a different concept, not justification for evaluating an antiderivative across an undefined point.
3.7 Graded exercises
Foundation
- Evaluate .
- Find and check it by differentiation.
- Evaluate by parts.
Core
- Find .
- Evaluate .
- Evaluate by a trigonometric substitution with a stated branch.
- Decompose and integrate .
- Find .
Synthesis
- Determine whether and converge, calculating the appropriate limits.
- Explain precisely why cannot be evaluated as . Evaluate the one-sided pieces as improper limits and identify the failed fundamental-theorem hypothesis.
3.8 Full solutions
- An antiderivative is . The result is .
- Set , . The answer is . Its derivative is .
- The antiderivative is . Evaluating gives .
- Let , , so . The result is . Differentiating cancels the extra sine terms and leaves .
- With , the bounds change from to , and the integral is .
- Set , . The radical is and , giving .
- Equating , gives . The antiderivative is , on each interval avoiding the two poles.
- Split the numerator: the part is , giving . The remaining integral . Thus the answer is .
- On , the antiderivative is , giving , so the first converges. On , it gives as , so the second diverges.
- The integrand is undefined and unbounded at zero, so it is not continuous on the whole interval and the ordinary fundamental theorem cannot be used across that point. On the integral is . On it is . Both improper pieces diverge positively, consistent with the nonnegative integrand; the claimed negative value is impossible.
Summary and onward map
The fundamental theorem evaluates continuous definite integrals through antiderivatives. Substitution follows the chain rule; parts follows the product rule. Identities simplify trigonometric powers, branch-controlled substitutions simplify radicals, and partial fractions separate rational terms. Every technique must preserve its domain. Improper integrals require limits, and internal singularities must be treated on each side separately.