hanegreefs.com/Math I
Chapter 7 of 8

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:

Formula
∫ab f(x) dx = limn→∞ Σi=1n f(xi*) Δx

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.

PropertyFormula
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
Symmetryodd 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),

Formula
∫ab f(x) dx = G(b) − G(a) = [G(x)]ab
Proof

Fundamental theorem, part 1

Proof, step by step.

1

Difference quotient of F

(F(x + h) − F(x))/h = (1/h) ∫xx+h f(t) dt
2

Mean value theorem for integrals

= f(ch) for some ch between x and x + h
3

Let h → 0

ch → x and, by continuity, f(ch) → f(x)
Answer

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".

IntegrandAntiderivative
xn (n ≠ −1)xn+1/(n + 1) + C
1/xln|x| + C
exex + C
axax/ln a + C
sin x−cos x + C
cos xsin x + C
1/cos2 xtan x + C
1/(1 + x2)arctan x + C
1/√(1 − x2)arcsin x + C
Worked example

Rewrite first, then integrate

Compute ∫14 (3√x − 2/x2) dx.

1

Write as powers

3x1/2 − 2x−2
2

Antiderivative

2x3/2 + 2x−1
3

Evaluate

(2 · 8 + 2/4) − (2 + 2) = 16.5 − 4 = 12.5
Answer

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).

Worked example

Two substitutions

Spot the inner function and its derivative.

1

∫ 2x/(x2 + 1) dx with u = x2 + 1

du = 2x dx, so ∫ du/u = ln(x2 + 1) + C
2

∫ dx/(x √(ln x)) with u = ln x

du = dx/x, so ∫ u−1/2 du = 2√(ln x) + C
Answer

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).

Worked example

By parts: ∫ x cos x dx

u = x and dv = cos x dx, so du = dx and v = sin x.

1

Apply the formula

x sin x − ∫ sin x dx
2

Finish

x sin x + cos x + C
3

Check

(x sin x + cos x)' = sin x + x cos x − sin x = x cos x
Answer

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 DPieces
(x − a)A/(x − a)
(x − a)2A/(x − a) + B/(x − a)2
(x2 + px + q) with no real roots(Ax + B)/(x2 + px + q)
Worked example

Integrate (5x − 1)/((x − 1)(x + 1))

Write it as A/(x − 1) + B/(x + 1).

1

Common denominator

5x − 1 = A(x + 1) + B(x − 1)
2

x = 1

4 = 2A, so A = 2
3

x = −1

−6 = −2B, so B = 3
4

Integrate

2 ln|x − 1| + 3 ln|x + 1| + C
Answer

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:

Formula
∫a∞ f dx = limb→∞ ∫ab f dx∫ab f dx with f unbounded at b: limt→b− ∫at f dx
Worked example

Three classic cases

Compare the powers.

1

∫1∞ dx/x2

lim (1 − 1/b) = 1: converges
2

∫1∞ dx/x

lim ln b = ∞: diverges
3

∫01 dx/√x

lim (2 − 2√t) = 2: converges, although the integrand is unbounded at 0
Answer

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.

Worked example

Surpluses in a linear market

Demand p = 30 − 2q, supply p = 3 + q, equilibrium q* = 9 and p* = 12.

1

Consumer surplus

∫09 (30 − 2q − 12) dq = [18q − q2]09 = 81
2

Producer surplus

∫09 (12 − 3 − q) dq = [9q − q2/2]09 = 40.5
Answer

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.

Loading cards
Question
Click, tap or press space to flip
Answer

Multiple choice (10)

Question 1 · Chapter 7

∫02 (3x2 − 1) dx equals...

Why: [x3 − x]02 = 8 − 2.
Question 2 · Chapter 7

∫ e2x dx equals...

Why: Substitute u = 2x.
Question 3 · Chapter 7

∫ x/(x2 + 4) dx equals...

Why: u = x2 + 4 gives du = 2x dx.
Question 4 · Chapter 7

For ∫ x2 ln x dx by parts, the best choice is...

Why: ln x simplifies when differentiated; x2 integrates easily.
Question 5 · Chapter 7

d/dx ∫0x et2 dt equals...

Why: FTC part 1.
Question 6 · Chapter 7

∫−22 x3 dx equals...

Why: x3 is odd.
Question 7 · Chapter 7

∫1∞ 2/x3 dx equals...

Why: [−1/x2]1∞ = 0 − (−1).
Question 8 · Chapter 7

1/((x − 2)(x + 3)) = A/(x − 2) + B/(x + 3). Then A equals...

Why: At x = 2: 1 = 5A.
Question 9 · Chapter 7

Demand p = 20 − q, price 12. Consumer surplus at q* = 8 is...

Why: ½ · 8 · (20 − 12).
Question 10 · Chapter 7

The Riemann sum with left end points for an increasing function...

Why: Each rectangle uses the lowest value on its strip.

Exam-style open questions (3)

Open question · Chapter 7

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.
Open question · Chapter 7

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.
Open question · Chapter 7

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.