Integration
The definite integral as a limit of Riemann sums, its properties, the fundamental theorem of calculus, antiderivatives, substitution, integration by parts, partial fractions, improper integrals, and economic uses such as consumer and producer surplus.
Syllabus: Syllabus ch. 7 · Sessions: Lectures 9 and 10, WPO 9 · About 65 minutes
The definite integralImportant
Split [a, b] into n strips of width Δx = (b − a)/n, pick a point xi* in each strip and add the areas of the rectangles: the Riemann sum Σ f(xi*) Δx. The definite integral is the limit of these sums as the strips get thinner:
For a continuous f the limit does not depend on how the points are picked. Geometrically the integral is the signed area between the graph and the x-axis: area above the axis counts positive, area below counts negative.
| Property | Formula |
|---|---|
| Constant rule | ∫ab c f(x) dx = c ∫ab f(x) dx |
| Sum rule | ∫ab (f + g) dx = ∫ab f dx + ∫ab g dx |
| Splitting the interval | ∫ab f dx = ∫ac f dx + ∫cb f dx |
| Reversing the bounds | ∫ba f dx = −∫ab f dx, and ∫aa f dx = 0 |
| Symmetry | odd f: ∫−aa f dx = 0; even f: ∫−aa f dx = 2∫0a f dx |
The fundamental theorem of calculusImportant
Mean value theorem for integrals: for a continuous f on [a, b] there is a c in [a, b] with ∫ab f dx = f(c)(b − a). The average value of f on [a, b] is therefore (1/(b − a)) ∫ab f dx.
Fundamental theorem of calculus, part 1: if f is continuous and F(x) = ∫ax f(t) dt, then F'(x) = f(x). Part 2: for any antiderivative G of f (so G' = f),
Fundamental theorem, part 1
Proof, step by step.
Difference quotient of F
Mean value theorem for integrals
Let h → 0
So F'(x) = f(x): integration and differentiation undo each other. Part 2 follows because two antiderivatives differ only by a constant.
Antiderivatives (indefinite integrals)Important
The indefinite integral ∫ f(x) dx = F(x) + C is the family of all functions with derivative f. The constant C matters: every check is "differentiate the answer and get the integrand back".
| Integrand | Antiderivative |
|---|---|
| xn (n ≠ −1) | xn+1/(n + 1) + C |
| 1/x | ln|x| + C |
| ex | ex + C |
| ax | ax/ln a + C |
| sin x | −cos x + C |
| cos x | sin x + C |
| 1/cos2 x | tan x + C |
| 1/(1 + x2) | arctan x + C |
| 1/√(1 − x2) | arcsin x + C |
Rewrite first, then integrate
Compute ∫14 (3√x − 2/x2) dx.
Write as powers
Antiderivative
Evaluate
The definite integral is 12.5.
Substitution and integration by partsImportant
Substitution reverses the chain rule. When the integrand contains a function g(x) together with its derivative g'(x), set u = g(x), so du = g'(x) dx: ∫ f(g(x)) g'(x) dx = ∫ f(u) du. For a definite integral, also change the bounds (or substitute back before evaluating).
Two substitutions
Spot the inner function and its derivative.
∫ 2x/(x2 + 1) dx with u = x2 + 1
∫ dx/(x √(ln x)) with u = ln x
Whenever a factor is (almost) the derivative of something else in the integrand, try substitution first.
Integration by parts reverses the product rule: ∫ u dv = uv − ∫ v du. Choose u as the factor that becomes simpler when you differentiate it (a polynomial, ln x) and dv as the factor you can integrate (ex, sin x, cos x).
By parts: ∫ x cos x dx
u = x and dv = cos x dx, so du = dx and v = sin x.
Apply the formula
Finish
Check
For ∫ ln x dx take u = ln x and dv = dx: the answer is x ln x − x + C.
Partial fractionsImportant
To integrate a rational function N(x)/D(x): if deg N ≥ deg D, first divide. Then factor D and split the fraction into simple pieces:
| Factor in D | Pieces |
|---|---|
| (x − a) | A/(x − a) |
| (x − a)2 | A/(x − a) + B/(x − a)2 |
| (x2 + px + q) with no real roots | (Ax + B)/(x2 + px + q) |
Integrate (5x − 1)/((x − 1)(x + 1))
Write it as A/(x − 1) + B/(x + 1).
Common denominator
x = 1
x = −1
Integrate
Plugging in the roots of the denominator is the quickest way to find the constants for simple factors.
Improper integralsNeutral
An integral is improper when a bound is infinite or the integrand blows up inside or at the edge of the interval. It is defined as a limit, and it converges if that limit is a finite number:
Three classic cases
Compare the powers.
∫1∞ dx/x2
∫1∞ dx/x
∫01 dx/√x
At infinity 1/xp is integrable only for p > 1; near 0 only for p < 1.
Applications: area and surplusImportant
The area between two curves y = f(x) ≥ g(x) on [a, b] is ∫ab (f − g) dx; find the intersection points first.
Consumer surplus is what buyers would have been willing to pay above the market price: CS = ∫0q* (D(q) − p*) dq. Producer surplus is what sellers receive above their minimum price: PS = ∫0q* (p* − S(q)) dq. Integrating a marginal function gives the total: TC(q) = F + ∫0q MC(t) dt.
Surpluses in a linear market
Demand p = 30 − 2q, supply p = 3 + q, equilibrium q* = 9 and p* = 12.
Consumer surplus
Producer surplus
Total surplus 121.5. The surplus lab adds a unit tax and shows tax revenue and the deadweight loss.
Key takeaways
- A definite integral is the limit of Riemann sums: signed area.
- FTC: ∫ab f dx = G(b) − G(a) for any antiderivative G, and (∫ax f)' = f(x).
- Check every antiderivative by differentiating it.
- Substitution undoes the chain rule; by parts undoes the product rule.
- Rational integrands: divide if needed, then partial fractions.
- Improper integrals are limits; surplus is an area between a curve and a price line.
Multiple choice (10)
∫02 (3x2 − 1) dx equals...
∫ e2x dx equals...
∫ x/(x2 + 4) dx equals...
For ∫ x2 ln x dx by parts, the best choice is...
d/dx ∫0x et2 dt equals...
∫−22 x3 dx equals...
∫1∞ 2/x3 dx equals...
1/((x − 2)(x + 3)) = A/(x − 2) + B/(x + 3). Then A equals...
Demand p = 20 − q, price 12. Consumer surplus at q* = 8 is...
The Riemann sum with left end points for an increasing function...
Exam-style open questions (3)
Choose two
Compute (a) ∫ (3x + 2)/(x2 + x − 2) dx and (b) ∫ x e−x dx.
Show the worked outline
- (a) x2 + x − 2 = (x − 1)(x + 2); 3x + 2 = A(x + 2) + B(x − 1) gives A = 5/3 and B = 4/3.
- (a) Answer: (5/3) ln|x − 1| + (4/3) ln|x + 2| + C.
- (b) By parts with u = x, dv = e−x dx: −x e−x + ∫ e−x dx.
- (b) Answer: −(x + 1)e−x + C.
An improper integral
Does ∫02 dx/√(2 − x) converge? Compute it if so.
Show the worked outline
- The integrand blows up at x = 2: take the limit t → 2−.
- Antiderivative −2√(2 − x).
- lim (−2√(2 − t) + 2√2) = 2√2 ≈ 2.83: it converges.
Producer surplus with a curved supply
Supply p = (q + 2)2 − 4 and market price 21. Find the producer surplus.
Show the worked outline
- Quantity: (q + 2)2 = 25, so q* = 3.
- PS = ∫03 (21 − (q2 + 4q)) dq = [21q − q3/3 − 2q2]03.
- = 63 − 9 − 18 = 36.
LabRiemann sum lab
See the definite integral appear as the limit of rectangle areas.
LabMarket, tax and surplus lab
Linear demand and supply with a unit tax paid by producers.