The area function
Let \(f\) be integrable on \([a, b]\). Instead of one area, consider all of them at once: the area function
\[ F(x) = \int_a^x f(t)\,dt, \]the area accumulated from \(a\) up to \(x\). As \(x\) moves right, \(F\) grows when \(f\) is positive and shrinks when \(f\) is negative.
The picture already tells the story: the strip from \(x\) to \(x + h\) is nearly a rectangle of height \(f(x)\), so \(F(x + h) - F(x) \approx f(x)\,h\). Divide by \(h\) and the rate at which area accumulates is the height of the curve.
Even with no continuity, \(F\) is well behaved: if \(|f| \le M\), then \(|F(x) - F(y)| \le M|x - y|\), so \(F\) is (uniformly) continuous. Integration smooths things out.
Part 1: differentiating an area
Fundamental theorem of calculus, part 1
If \(f\) is continuous on \([a, b]\), then \(F(x) = \int_a^x f\) is differentiable, and \(F'(x) = f(x)\).
Proof
For \(h > 0\), \(\dfrac{F(x + h) - F(x)}{h} = \dfrac1h\displaystyle\int_x^{x+h} f\). This is the average of \(f\) on \([x, x + h]\), so it lies between the minimum and maximum of \(f\) there. As \(h \to 0\), both tend to \(f(x)\), by continuity. The squeeze gives the limit \(f(x)\). The case \(h < 0\) is the same. ∎
So every continuous function has an antiderivative, even when no formula for it exists. \(\int_0^x e^{-t^2}dt\), the heart of the normal distribution, is a perfectly good function with derivative \(e^{-x^2}\), but it can't be written with elementary functions.
Going deeper: defining the logarithm
Part 1 lets you build functions rigorously. Define \(\ln x = \int_1^x \frac{dt}{t}\) for \(x > 0\). Then \(\ln\) is differentiable with derivative \(\frac1x\), and substituting \(t = as\) gives \(\ln(ab) = \ln a + \ln b\). Its inverse is \(\exp\), which is its own derivative, and \(e = \exp(1)\). Many careful textbooks construct logarithms and exponentials exactly this way, rather than starting from the vague idea of "\(2^x\) for irrational \(x\)".
Part 2: computing integrals
Fundamental theorem of calculus, part 2
If \(G\) is differentiable on \([a, b]\) and \(G' = f\) is integrable, then
\[ \int_a^b f(x)\,dx = G(b) - G(a). \]Proof
Take any partition. The total change of \(G\) is the sum of its changes over the pieces, and on each piece the mean value theorem gives a point \(c_i\) with \(G(x_i) - G(x_{i-1}) = G'(c_i)(x_i - x_{i-1})\):
\[ G(b) - G(a) = \sum_{i=1}^n f(c_i)\,(x_i - x_{i-1}). \]The right side is a Riemann sum, so it lies between \(L(f, P)\) and \(U(f, P)\), for every partition. The only number with that property is the integral. ∎
This is why integration in practice is about finding antiderivatives. The infinite process of Unit 9 collapses to two evaluations:
Examples
\(\displaystyle\int_0^1 x^2\,dx = \left[\frac{x^3}{3}\right]_0^1 = \frac13\), confirming the hard calculation of Unit 9 in one line.
\(\displaystyle\int_0^\pi \sin x\,dx = \big[-\cos x\big]_0^\pi = 1 - (-1) = 2\). One arch of the sine wave has area exactly 2.
Notice the hypothesis "\(G'\) is integrable". It can fail: Volterra constructed, in 1881, a function whose derivative exists everywhere and is bounded, yet is so badly discontinuous that it has no Riemann integral. The Lebesgue integral repairs this.
Substitution and integration by parts
Every differentiation rule, read backwards through the fundamental theorem, becomes an integration rule.
Examples
Substitution, \(u = x^2\): \(\displaystyle\int_0^{\sqrt{\pi/2}} 2x\cos(x^2)\,dx = \int_0^{\pi/2}\cos u\,du = 1\).
Parts, with \(f = x\), \(g' = e^x\): \(\displaystyle\int_0^1 xe^x\,dx = \big[xe^x\big]_0^1 - \int_0^1 e^x\,dx = e - (e - 1) = 1\).
Improper integrals
The Riemann integral needs a bounded function on a bounded interval. To go further, take a limit:
\[ \int_1^\infty f = \lim_{R\to\infty}\int_1^R f, \qquad \int_0^1 f = \lim_{\varepsilon\to0^+}\int_\varepsilon^1 f, \]when the limits exist. Then the integral converges; otherwise it diverges.
The p-test for integrals
\(\displaystyle\int_1^\infty \frac{dx}{x^p}\) converges if and only if \(p > 1\). \(\displaystyle\int_0^1 \frac{dx}{x^p}\) converges if and only if \(p < 1\).
For example \(\int_0^1 \frac{dx}{\sqrt x} = \big[2\sqrt x\big]_0^1 = 2\), even though the function is unbounded. The two halves of the test have opposite conditions: near infinity the function must die quickly; near 0 it must not blow up too fast.
The integral test
Series and integrals are cousins: a series is an integral of a step function. This turns into a powerful test.
The integral test
If \(f\) is positive and decreasing on \([1, \infty)\), then \(\sum_{n=1}^\infty f(n)\) converges if and only if \(\int_1^\infty f\) converges.
Shift the rectangles one step left and they sit under the curve instead, which bounds the series above. Together these give the p-series test of Unit 4 at once: \(\sum \frac1{n^p}\) converges exactly when \(p > 1\).
The two bounds also show how fast the harmonic series grows: \(H_N = 1 + \frac12 + \cdots + \frac1N\) satisfies \(\ln(N + 1) \le H_N \le 1 + \ln N\). In fact \(H_N - \ln N\) decreases to Euler's constant \(\gamma = 0.5772\ldots\) For \(N = 1000\): \(H_N = 7.4855\) and \(\ln N = 6.9078\). Nobody knows whether \(\gamma\) is rational.
History
Isaac Barrow, Newton's teacher, gave a geometric version of the fundamental theorem in 1670. Newton and Leibniz independently turned it into the engine of calculus, and quarrelled bitterly over priority. Cauchy gave the first proof meeting modern standards in 1823.
Practice set
Mixed questions covering the whole unit. Try each one before opening the answer.
1. Find the derivative of \(\displaystyle F(x) = \int_0^{x^2} \cos t\,dt\).
Show answer
\(F = G(x^2)\) where \(G' = \cos\). By the chain rule, \(F'(x) = \cos(x^2)\cdot 2x\).
2. Compute \(\displaystyle\int_1^e \ln x\,dx\).
Show answer
By parts with \(f = \ln x\), \(g' = 1\): \(\big[x\ln x\big]_1^e - \int_1^e 1\,dx = e - (e - 1) = 1\).
3. Let \(f = 0\) on \([0, 1)\) and \(1\) on \([1, 2]\). Find \(F(x) = \int_0^x f\). Is \(F' = f\) everywhere?
Show answer
\(F = 0\) for \(x \le 1\) and \(x - 1\) for \(x \ge 1\). It's continuous, with a corner at 1, where it isn't differentiable. Part 1 needs continuity of \(f\) at the point.
4. Does \(\displaystyle\int_0^\infty e^{-x}\,dx\) converge? To what?
Show answer
\(\int_0^R e^{-x}dx = 1 - e^{-R} \to 1\). It converges to 1.
5. Use the integral test to decide whether \(\displaystyle\sum_{n=2}^\infty \frac{1}{n\ln n}\) converges.
Show answer
Substitute \(u = \ln x\): \(\int_2^R \frac{dx}{x\ln x} = \ln\ln R - \ln\ln2 \to \infty\). It diverges, though more slowly than anything you could ever observe numerically.
6. Explain, using part 1, why \(\frac{d}{dx}\displaystyle\int_x^b f = -f(x)\) for continuous \(f\).
Show answer
\(\int_x^b f = \int_a^b f - \int_a^x f\). The first term is constant; the second has derivative \(f(x)\).
Summary and glossary
- The area function \(F(x) = \int_a^x f\) is always continuous.
- Part 1: if \(f\) is continuous, \(F' = f\). Every continuous function has an antiderivative.
- Part 2: \(\int_a^b G' = G(b) - G(a)\), proved with the MVT on each piece of a partition.
- Substitution and parts are the chain and product rules read backwards.
- Improper integrals are limits; \(\int_1^\infty x^{-p}\) and \(\sum n^{-p}\) both converge exactly when \(p > 1\).
- Area function
- \(F(x) = \int_a^x f(t)\,dt\).
- Antiderivative
- A function \(G\) with \(G' = f\).
- Improper integral
- A limit of integrals over growing intervals, or towards a blow-up.
- Integral test
- For positive decreasing \(f\), \(\sum f(n)\) and \(\int f\) converge together.
- Euler's constant
- \(\gamma = \lim (H_N - \ln N) = 0.5772\ldots\)