Monotonicity and Triangle Inequality for Integrals
Suppose you know two functions satisfy everywhere on an interval. Does the same inequality survive integration? In other words, is the area under at most the area under ? This question sits at the heart of how integrals let us compare, bound, and estimate quantities we cannot compute exactly. The answer is yes. Proving it rigorously from the definition of the Riemann integral is the goal of this article. Monotonicity of the integral is one of the load-bearing walls of integration theory. It converts pointwise information into global information about accumulated area. Pointwise information is an inequality that holds at every single point of a domain. This is exactly the kind of translation calculus is built to perform. Local data, like derivatives or pointwise bounds, becomes global conclusions, like total change or total area. Without monotonicity, we would have no way to bound an integral we cannot evaluate. We do this by comparing it to one we can evaluate. This technique is used constantly in analysis. It appears in convergence tests for series and error estimates in numerical methods. The triangle inequality for integrals, , is the single most-used corollary of monotonicity. It is the integral analogue of . It appears everywhere estimates are needed. Examples include bounding remainder terms in Taylor's theorem, proving convergence of improper integrals, and controlling errors in approximation schemes. It also foreshadows deep structural facts, such as why and spaces are normed vector spaces. This article builds these results from the ground up. We use only the definition of the Riemann integral and the previously established Basic Properties: Linearity and Additivity. We state precise hypotheses. We give complete proofs by direct manipulation of Riemann sums and infima/suprema. We work two asymmetric examples. We show exactly what breaks when a hypothesis — integrability, or the direction of the inequality — is dropped.
- If pointwise on and both are Riemann integrable, then .
- Bounding between constants forces .
- If on , then ; this is the special case that drives everything else.
- The triangle inequality follows from monotonicity applied to .
- Integrability of forces integrability of , which is proved separately using a Riemann-sum estimate.
- Strict pointwise inequality does not imply strict inequality of integrals — equality on a single point set of measure zero can still occur.
- Key idea: integration is an order-preserving, norm-shrinking linear operation, and every such fact reduces to comparing sup/inf of Riemann sums.
Where this lives today
Monotonicity and the triangle inequality for integrals are the quiet workhorses behind an enormous range of later results. The Mean Value Theorem for Integrals uses exactly the sup/inf bound of part (c) to trap the average value of a continuous function between its extremes, then invokes the Intermediate Value Theorem to locate a point where the average is achieved exactly. The Integral Test for Series compares a series to an integral by bounding rectangles above and below a decreasing function, a direct application of order preservation applied term by term. In probability and statistics, monotonicity of the integral underlies the fact that expectations preserve order: if a random variable almost surely, then , a statement whose proof (in the measure-theoretic setting) mirrors the Riemann-sum argument given here almost verbatim. In numerical analysis, error bounds for quadrature rules (trapezoidal rule, Simpson's rule) rely on bounding using the triangle inequality applied to the difference of and its approximation. In physics and engineering, energy and norm estimates in differential equations frequently reduce to showing , chaining the triangle inequality with the sup/inf bound. In functional analysis and cryptographic protocol analysis (where integral or sum bounds control probability of failure events), the same two-line argument — replace a signed quantity by its absolute value, then bound by a supremum times a measure — recurs constantly, making this one of the most-reused proof patterns in all of analysis.
:::quiz[If for all , what does part (c) of the theorem give as a valid lower bound for , using ?]
- 0
- -3
- -12 ✓
- 12
:::quiz[Which hypothesis is essential for concluding from on ?]
- f and g must be differentiable
- f and g must both be Riemann integrable on [a,b] ✓
- f and g must be equal at the endpoints
- f and g must both be nonnegative
:::quiz[If is Riemann integrable on , does it follow that is Riemann integrable?]
- Yes, always, by the triangle inequality
- No — |f| integrable does not imply f integrable, e.g. f = ±1 based on rationality ✓
- Yes, but only if f is continuous
- No, integrability of |f| implies f is unbounded
:::faq[Why is proving a separate step rather than something obvious?] Because Riemann integrability is a nontrivial property tied to the oscillation of a function across partitions, and applying an operation to (like taking absolute value) could in principle worsen its oscillation. The proof must verify that it does not: using the reverse triangle inequality, one shows the oscillation of on any subinterval is never larger than the oscillation of itself. This lets a partition that makes 's upper-minus-lower sum small automatically make 's upper-minus-lower sum small too, which is precisely the Riemann integrability criterion.
Ask the tutor: Why must 's integrability be proved separately instead of just assumed once is known integrable?
Let be a bounded function. For a partition of , define
and the upper and lower Darboux sums
Define the upper and lower integrals
The function is Riemann integrable on if , and this common value is denoted . We write .
Intuition
Picture the integral as the net signed area trapped between the graph of and the -axis. If a second function never dips below , then any rectangle you use to approximate the area under from below must be at least as tall as the corresponding rectangle for . Every lower Darboux sum for dominates the corresponding lower sum for , and the same argument works for upper sums. Since the integral is squeezed between these sums, it inherits the inequality. The triangle inequality is a sharper version of the same idea: no matter how much oscillates between positive and negative values, replacing by can only increase the total area being summed, because cancellation between positive and negative pieces of is destroyed once you take absolute values. The signed area of is thus always dominated in magnitude by the unsigned area of .
Let .
(a) (Nonnegativity.) If for all , then
(b) (Order preservation.) If for all , then
(c) (Sup/inf bounds.) If for all and constants , then
(d) (Triangle inequality.) , and
We prove each part in turn, using only the definition of the Darboux/Riemann integral and previously established Basic Properties: Linearity and Additivity (linearity of the integral and additivity over the sum ).
Proof technique: direct estimation of Darboux sums, together with a -partition argument for integrability of .
(a) Nonnegativity. Suppose for every . Let be any partition of . On each subinterval , since pointwise,
because the infimum of a set of nonnegative numbers is nonnegative (any lower bound is not the greatest lower bound, since is also a lower bound and ; formally, since every value in the subinterval satisfies , so is a lower bound for , hence as the supremum of lower bounds). Since , we get for every , hence
This holds for every partition . Therefore is a lower bound for the set , so
(The supremum of a set that has a lower bound , and that is nonempty, is itself precisely because the supremum is an upper bound for the set and the set contains values ; more directly, since every element of the set is , the least upper bound cannot be negative — a negative number would fail to be an upper bound whenever the set is nonempty, but here we simply use that for any , and pick any particular .) Since by hypothesis, . This proves (a).
(b) Order preservation. Suppose for all , with . Define . By linearity (additivity of integrable functions under subtraction, a special case of Basic Properties: Linearity and Additivity), and
Moreover for every by hypothesis. Applying part (a) to ,
This proves (b).
(c) Sup/inf bounds. Suppose for all . Let and denote the constant functions. Constant functions are Riemann integrable (every Darboux sum for a constant on equals regardless of partition, so upper and lower integrals both equal ), with
Since for every , apply part (b) twice: once to the pair and once to the pair :
Substituting the values of the constant integrals gives
proving (c).
(d) Triangle inequality. We must first show , then deduce the inequality. Step 1: is Riemann integrable. Since is bounded (as requires boundedness), so is . Fix any for a subinterval of some partition . By the reverse triangle inequality for real numbers,
Taking the supremum over in the subinterval on both sides shows that the oscillation of on is at most the oscillation of on the same subinterval:
where denote the sup and inf of the respective function on . (To see this bound rigorously: for any in the subinterval, ; taking the supremum over and then over of the left side gives .) Now let . Since , the Riemann/Darboux integrability criterion (equivalence of upper and lower integrals) guarantees a partition with
Using the oscillation bound just proved, term by term,
Since was arbitrary, satisfies the Riemann integrability criterion, so . Step 2: the inequality. For every ,
Both and are Riemann integrable ( by linearity applied to , using ). Apply part (b) to the two inequalities and :
This chain of inequalities is exactly the statement
since for real numbers , the two-sided bound (with ) is equivalent to . Here and (by part (a), since pointwise). This completes the proof of (d).
∎Worked examples
Example 1 (order preservation with genuinely different functions). Let and on . We check on this interval: the difference is
which is nonnegative exactly when ; since , indeed for all . Both and are continuous, hence Riemann integrable on . Compute both integrals directly (using the Fundamental Theorem of Calculus, which presupposes only the integrability already established):
Indeed , confirming Theorem part (b) numerically. Notice the functions are not close to each other in shape — one is a parabola, one is a line — which is the point: monotonicity of the integral requires nothing about the functions except the pointwise inequality and integrability. We can also illustrate part (c): on , satisfies (with ), so the theorem predicts
which indeed holds, though the bound is far from tight — the sup/inf bound is a crude but always-valid estimate.
Example 2 (the triangle inequality with a sign-changing function). Let on , a function that is continuous (hence integrable) and changes sign on this interval, since while . First compute directly:
Numerically, , so , hence . Now we need . The expression vanishes when , i.e. at and in . On and , so ; on , . Split the integral accordingly:
Using an antiderivative for (so is an antiderivative of ): First piece:
Numerically: , , sum , minus gives . Second piece:
Since and :
Numerically: , , difference . Third piece (by the symmetry mapping to , and ): this equals the first piece, . Summing:
Check the theorem: . The inequality holds, and it is strict, exactly because changes sign — the negative contributions near the endpoints partially cancel the positive contribution in the middle when we do not take absolute values, so the signed integral is much smaller in magnitude than the unsigned one.
The theorem requires both functions to be Riemann integrable and the inequality to hold at every point of . Both hypotheses are essential.
Dropping integrability. Let and define
Certainly for every , and is integrable with . But is the Dirichlet function, which is not Riemann integrable: every subinterval of every partition contains both rational and irrational points, so and for every subinterval of every partition, giving
hence . Since , the statement "" is not merely false, it is meaningless — the symbol does not denote a number. The theorem's proof used additivity/linearity, which presupposes both functions are integrable; without that, the argument (and the conclusion) simply does not apply.
Dropping the everywhere hypothesis (pointwise inequality almost everywhere is not enough for the naive argument, though the conclusion happens to survive in this case with more machinery). More instructively, consider what happens if the inequality fails at even a single point, and we still try to compare sup and inf bounds carelessly. Take ,
Here fails only at the single point , yet both are Riemann integrable (a function differing from at only one point has , since the single point contributes nothing to any Darboux sum in the limit — the oscillation on any subinterval containing can be made to contribute arbitrarily little total area by shrinking that subinterval). Indeed , so equality (not strict violation) occurs; monotonicity as stated ( everywhere ) is not contradicted, since here fails at one point, yet the integrals still satisfy . This shows the everywhere-hypothesis is sufficient but the conclusion can survive violations on small sets — precisely the phenomenon that later motivates measure-zero refinements (e.g., in Lebesgue theory), but it also warns that one must never assume the theorem applies when the pointwise hypothesis fails; one must check it, or use finer tools.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| pointwise everywhere, both integrable | Nothing — this is the theorem | |
| except on a finite set, both integrable | Often still if violations are "small" | Requires separate justification; not covered directly by the theorem as stated |
| strictly everywhere | (only non-strict guaranteed in general) | Strict inequality of integrals is not automatic from strict pointwise inequality without extra hypotheses (e.g. continuity) |
| or not integrable | — | The statement is not even meaningful |
| integrable | Does not imply integrable | Classic example: on rationals, on irrationals; is integrable but is not |
The mathematician behind it
Origins · 1 minBernhard Riemann and how this was discovered
Riemann formalized the modern notion of the definite integral in his 1854 habilitation thesis, seeking the most general conditions under which a function could be integrated using a limit of sums over ever-finer partitions. His construction — later reformulated by Darboux using upper and lower sums, the version used throughout this article — replaced earlier, less rigorous notions of "area under a curve" with a precise, provable framework. Riemann's broader work, spanning complex analysis, differential geometry, and number theory, reshaped much of 19th-century mathematics, but the integral bearing his name remains the entry point through which nearly every student first encounters rigorous analysis.
Does pointwise and somewhere imply strictly?
No, not in general. Strict pointwise inequality at isolated points, or even on a "small" set, need not force strict inequality of the integrals. For instance, if and differ only at finitely many points but agree everywhere else, both integrals can be equal, because Riemann sums are insensitive to function values at finitely many points in the limit of fine partitions. Strict inequality of integrals is guaranteed only under extra hypotheses, such as holding on an entire subinterval with both functions continuous there — in that setting, continuity forces the integral of the (nonnegative, not-identically-zero) difference to be strictly positive.
Why does the proof of part (a) not just say "obviously, integrating a nonnegative function gives a nonnegative number"?
Because in a rigorous framework, "the integral" is defined as the common value of an infimum of upper sums and a supremum of lower sums, not as an intuitive area. To prove rigorously, one must show that every lower Darboux sum for a nonnegative is itself nonnegative (which follows because infima of nonnegative values are nonnegative), and then that the supremum of a set of nonnegative numbers is nonnegative. Skipping this and appealing to intuition would leave a gap: it would not explain why the definition guarantees the geometric intuition holds.
Is the triangle inequality for integrals related to the triangle inequality for absolute values?
Yes, directly. The inequality is the continuum analogue of for real numbers, since the Riemann integral is itself a limit of such finite sums (Riemann sums). Just as the discrete triangle inequality can make a sum's magnitude smaller than the sum of magnitudes due to cancellation of signs, the integral inequality can be strict whenever changes sign on , as shown explicitly in Worked Example 2.
Can the sup/inf bound in part (c) ever be an equality?
Yes. If is the constant function for all , then works, and both inequalities in part (c) become equalities: . More generally, equality on the upper bound forces almost everywhere in a suitable sense (exactly everywhere if is continuous), since any strict dip below on a subinterval of positive length would strictly lower the integral below .
Does monotonicity hold if , using the convention ?
The theorem as stated assumes (or at least ) so that all in the Darboux sums; this positivity is exactly what makes follow from . If one uses the standard orientation convention for , monotonicity flips: on gives , hence , i.e. — the inequality reverses. This is a common source of sign errors and should always be checked explicitly rather than assumed.
How does this theorem connect to the Mean Value Theorem for Integrals?
The Mean Value Theorem for Integrals states that for continuous on , there exists with . Its proof begins exactly with part (c) of this theorem: letting and (which exist by the Extreme Value Theorem, since is continuous on a compact interval), monotonicity gives , so the "average value" lies in . The Intermediate Value Theorem then produces the point where equals this average exactly.