Suppose you want to integrate a function defined by two different formulas on two pieces of an interval — a ramp that flattens halfway through, say. The integral over the whole interval is just the sum of the integrals over the two pieces. This is additivity, and it turns out to be both easy to prove from first principles and far-reaching in its consequences: it underlies the variable-upper-limit function that connects the integral to differentiation.
Why additivity matters
Many functions in practice are piecewise-defined: they obey different formulas on different sub-intervals. Without additivity you would need a single formula to integrate over the entire domain; with it, you can break the domain at every junction point, integrate each piece, and add the results. Additivity also lets you subtract integrals: ∫cbf=∫abf−∫acf, which is essential for estimating tails and for isolating contributions from sub-regions.
Formal statement and proof
Theorem (Additivity). Let f be Riemann integrable on [a,b], and let c∈(a,b). Then f is integrable on both [a,c] and [c,b], and
∫abf(x)dx=∫acf(x)dx+∫cbf(x)dx.
Proof. Recall that f is integrable on [a,b] if and only if for every ε>0 there exists a partition P of [a,b] with U(f,P)−L(f,P)<ε, where U and L denote the upper and lower Darboux sums.
Step 1 — refining a partition by inserting c.
Let P be any partition of [a,b], and let P∗=P∪{c} be the partition obtained by inserting the point c. If c already belongs to P then P∗=P. Otherwise c falls in the interior of some sub-interval [xk−1,xk] of P, which gets split into [xk−1,c] and [c,xk]. For the upper sum, the supremum over the original interval satisfies
so replacing Mk(xk−xk−1) with two smaller (or equal) terms can only decrease the upper sum: U(f,P∗)≤U(f,P). By the analogous argument for infima, L(f,P∗)≥L(f,P). Therefore
U(f,P∗)−L(f,P∗)≤U(f,P)−L(f,P).
Step 2 — integrability on sub-intervals.
Since f is integrable on [a,b], for any ε>0 pick P with U(f,P)−L(f,P)<ε. Refine to P∗ as above, and set P1:=P∗∩[a,c] and P2:=P∗∩[c,b]. The Darboux sums split:
and the same holds for P2. As ε>0 was arbitrary, f is integrable on [a,c] and on [c,b].
Step 3 — the sum formula.
Denote I:=∫abf, I1:=∫acf, I2:=∫cbf. For any partition P∗ of [a,b] containing c:
L(f,P1)+L(f,P2)≤I1+I2≤U(f,P1)+U(f,P2).
But the outer expressions equal L(f,P∗) and U(f,P∗) respectively, and both converge to I as the mesh of P∗ shrinks. Hence I1+I2=I. □
Orientation convention and signed integrals
The Darboux definition implicitly assumes a<b. To handle all orderings uniformly, adopt the conventions
∫aaf(x)dx:=0,∫baf(x)dx:=−∫abf(x)dx(a<b).
With these in place, the additivity formula ∫abf=∫acf+∫cbf holds for any ordering of a, b, c on the real line. To see why, consider the case c<a<b:
∫abf=∫cbf−∫caf=∫cbf+∫acf,
which is just the original additivity formula with the roles of c and a swapped. All other cases follow similarly. The sign conventions ensure you can freely insert or remove intermediate limits without tracking which endpoint is larger.
The variable-upper-limit function
Fix a base point a in the domain of integration, and define
F(x):=∫axf(t)dt
for all x in the interval [a,b]. This is the variable-upper-limit function of f based at a (also called the integral function).
Well-definedness. By additivity applied to [a,x]⊂[a,b], integrability of f on [a,b] implies integrability on [a,x] for every x∈[a,b]. Hence F(x) is a well-defined real number for each such x.
Change of base point. If you replace a by another base point a′, the resulting function Fa′(x)=∫a′xf(t)dt satisfies
Fa′(x)=F(x)−constantF(a′)=F(x)+C.
Changing the base point shifts F by a constant. This is the first hint of why primitives are unique only up to an additive constant — a theme developed fully in the Primitives checkpoint.
The function F is the crucial bridge to the Newton–Leibniz formula: when f is continuous, F is differentiable with F′(x)=f(x), which means F is a primitive of f.
Worked example: piecewise linear function
Consider the tent function
f(x)={x2−x0≤x≤1,1<x≤2.
It rises linearly from 0 to 1 on [0,1], then falls back to 0 on [1,2]. Apply additivity at c=1:
∫02f(x)dx=∫01xdx+∫12(2−x)dx.
The graph of each piece is a right triangle with base 1 and height 1, so each integral equals 21(1)(1)=21. Therefore
∫02f(x)dx=21+21=1.
Now use the variable-upper-limit function to trace how the accumulated area grows. For x∈[0,1],