Learning goals and preparation
We assume Chapter 1's derivative rules, exponential/logarithmic functions, and elementary continuity. This chapter derives accumulation from sums, connects it with antiderivatives, and applies substitution, parts, and numerical quadrature. Business examples use hypothetical mathematical models.
2.1 From a marginal quantity to a total
If is marginal cost in dollars per unit, then approximates the cost of a small additional quantity.
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. A negative net cash-flow rate contributes negatively to the total; a probability density, by contrast, must be nonnegative. The meaning follows from the model and units, not the integral symbol alone.
If and is continuous, the fundamental theorem gives
An initial or fixed cost is needed to recover the absolute cost function. Integrating a derivative does not reveal its missing constant.
Worked example 1: reconstruct total cost. Let marginal cost be , , and fixed cost . Then
The cost increase from to is . This is not exactly , which uses one initial marginal rate for the whole interval.
2.2 Fundamental theorem and variable upper bounds
For differentiable bounds and continuous , the chain rule gives
The dummy variable distinguishes the integration variable from the input controlling the bounds.
Worked example 2: a moving accumulation window. Let . Then . There is both an entering boundary and a leaving boundary; differentiating only the upper endpoint would miss the second term.
2.3 Substitution reverses the chain rule
When ,
For a definite integral transform the bounds too. The formula is justified by differentiating , so it retains signs and inner derivative factors.
Worked example 3: a rational marginal law. Suppose a rate is for . Set , so and the bounds are . The total is . The rate's units and the time variable determine the accumulated output unit.
For an indefinite integral . The expression would be an invalid guess: differentiating it introduces an extra term. A derivative check is a decisive way to test proposed antiderivatives.
2.4 Parts and discounted accumulations
Integrating the product rule yields . For ,
using , . It follows that a hypothetical flow with a chosen continuous discount weight has weighted accumulation
The exponential weight must be dimensionless, so has inverse-time units.
Worked example 4: a simple exact total. For , weight , and horizon , the weighted amount is . Replacing a whole stream with its final flow times the horizon would produce a different calculation and ignore both timing and changing rates.
2.5 Areas and surplus models
If continuous demand price lies above a transaction price on , a geometric consumer-surplus model is
This is an area under a hypothetical willingness-to-pay curve; its interpretation requires the model's assumptions.
Worked example 5: a triangular surplus. Let and let , . Then , agreeing with the triangle of base eight and height eight. If two curves cross within an integration interval, a signed difference can cancel; an unsigned area requires splitting where their order changes.
The average value of a continuous function over , , is . Its units match the function, since integration multiplies by the input unit and division removes that interval length. An average cost per unit is not automatically the average value of a marginal-cost function unless the precise cost difference and interval are being compared.
2.6 Numerical quadrature and what an error estimate needs
For equally spaced points , , the composite trapezoidal rule is
It integrates the piecewise straight-line interpolant. For a twice continuously differentiable function with , a standard interpolation-error integration gives
For one subinterval, the interpolation error has the form under the usual smoothness hypothesis. Integrating its magnitude gives ; summing pieces gives the displayed bound. The unknown is not fixed across the interval, but the uniform bound is valid.
Why the interpolation error has this form
Let . Suppose is continuous on , twice differentiable on , and there, with . Continuity of the second derivative is sufficient but is not required for the following argument. The straight-line interpolant through and is .
For a fixed , define
The function vanishes at . Rolle's theorem on and gives and with . A second application to on gives with . The needed continuity of follows from its differentiability inside . Therefore and
At either endpoint the error is zero directly. The point can depend on ; we use the uniform bound , rather than integrate an unspecified moving .
Integrating the error and adding the panels
Put . Direct integration of gives . Since is continuous, the integral triangle inequality and the preceding bound give
For a positive integer and , put , , and . Assume the same bound throughout the open interval and continuity on its closure. Apply this argument to each panel, then add the absolute error bounds:
The two endpoint half-weights and the interior full weights arise by adding the panel interpolant integrals. The proof uses the Rolle theorem already established in this note. It bounds exact quadrature error; rounding and uncertainty in sampled data require their own analysis.
Worked example 6: a checked approximation. For on , using gives . The exact integral is , with error . Since and , the bound is , attained in this case. A mesh comparison alone would be weaker evidence than this explicit bound.
2.7 Improper totals
An infinite horizon requires a limit:
For , and , because exponential decay makes the boundary terms vanish. A flow tending to zero does not by itself guarantee finite total: tends to zero, but its integral grows as without bound.
2.8 Graded exercises
Foundation
- Marginal cost is and . Find and the cost increase from to .
- Evaluate and its average value on that interval.
- Differentiate for .
Core
- Evaluate by substitution.
- Evaluate by parts.
- For demand , price and quantity , compute the surplus-area model.
- Use the trapezoidal rule with to approximate . Bound the error using .
- Differentiate by the variable-bound formula and by explicit integration.
Synthesis
- Determine the convergence and value of .
- A student claims for every continuous . Give a counterexample, identify what approximation it represents, and state a condition under which it is exact.
2.9 Full solutions
- . The increase is .
- The integral is . Since the interval length is one, its average value is also .
- The chain rule and FTC give for . Positivity ensures the integral's upper bound stays in the logarithm's domain.
- Set , ; bounds are zero and two. The answer is .
- An antiderivative is . Thus the result is .
- Surplus is .
- . The exact value is , so error is . The theorem gives upper bound , a valid but not sharp bound.
- The boundary formula gives . Explicitly, , with the same derivative.
- Split the integral. The constant part gives , and the time-weighted part gives , for total . Both improper limits converge because the relevant exponential boundary terms vanish.
- Take on . The integral is , while the claimed formula gives . It is a single right-endpoint rectangle approximation, not a general integration identity. It is exact if is constant on the interval, and can be exact for some other special functions/intervals by cancellation, but continuity alone does not guarantee it.
Summary and onward map
An integral reconstructs total change from a marginal quantity and requires an initial constant for an absolute total. Variable bounds contribute through both endpoints. Substitution and parts follow differentiation rules. Weighted streams and surplus are model-dependent accumulations. Trapezoidal quadrature integrates an interpolant and needs derivative bounds for a certified error. Infinite horizons remain limit problems.