Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

Integration by parts and partial fractions

Print the chapter

Every lesson of the chapter, ready for paper. Exercise sets are lettered A, B, C… and answered at the end.

To save a PDF, choose “Save as PDF” in the print dialog.

1. Integration by parts

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x3sin⁡xf(x) = x^{ 3 }\sin x. Find f′(x)f'(x).
  2. f(x)=(x+3)exf(x) = (x + 3)e^x. Find f′(x)f'(x).
  3. f(2)=4f(2) = 4, f′(2)=4f'(2) = 4, g(2)=−4g(2) = -4 and g′(2)=−1g'(2) = -1. Find (fg)′(2)(fg)'(2).

Discover

The product rule says (xex)′=ex+xex(x e^x)' = e^x + x e^x. Integrate both sides: xex=∫ex dx+∫xex dxx e^x = \displaystyle\int e^x\,dx + \int x e^x\,dx. So what is ∫xex dx\displaystyle\int x e^x\,dx?

  1. xex−ex+Cx e^x - e^x + C
  2. x22ex+C\dfrac{x^2}{2}e^x + C

Key idea

Trade one integral for an easier one.

Integration by parts: ∫u dv=uv−∫v du\displaystyle\int u\,dv = uv - \int v\,du. For definite integrals: ∫abu dv=[uv]ab−∫abv du\displaystyle\int_a^b u\,dv = \big[uv\big]_a^b - \int_a^b v\,du. Choose uu so that dudu is simpler.

Worked example

∫xsin⁡x dx\displaystyle\int x\sin x\,dx.

u=xu = x, du=dxdu = dx, v=−cos⁡xv = -\cos x
u = x simplifies; dv = sin x dx is easy to integrate.
−xcos⁡x+∫cos⁡x dx-x\cos x + \displaystyle\int \cos x\,dx
uv − ∫v du.
−xcos⁡x+sin⁡x+C-x\cos x + \sin x + C
Finish.

Your turn, guided

Your turn: ∫xe2x dx\displaystyle\int x e^{2x}\,dx, u=xu = x, v=12e2xv = \tfrac{1}{2}e^{2x}.

12xe2x−14e2x+C\tfrac{1}{2}xe^{2x} - \tfrac{1}{4}e^{2x} + C
½xe^{2x} − ∫½e^{2x} dx.

Practice ★

  1. Find FF with F′(x)=1xexF'(x) = 1x e^x and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=49xexF'(x) = 49x e^x and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=2xexF'(x) = 2x e^x and F(0)=0F(0) = 0.

Watch out!

Practice ★★

  1. Evaluate ∫0π/22xcos⁡x dx\displaystyle\int_0^{\pi/2} 2x\cos x\,dx.
  2. Evaluate ∫0π/234xcos⁡x dx\displaystyle\int_0^{\pi/2} 34x\cos x\,dx.
  1. Evaluate ∫1e3ln⁡x dx\displaystyle\int_1^{e^{ 3 } } \ln x\,dx.

Exit ticket

Three questions to check you have got it.

  1. Find FF with F′(x)=1xexF'(x) = 1x e^x and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=49xexF'(x) = 49x e^x and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=2xexF'(x) = 2x e^x and F(0)=0F(0) = 0.

Summary card

Integration by parts

∫u dv=uv−∫v du\displaystyle\int u\,dv = uv - \int v\,du.

Watch out: the minus sign, and signs inside ∫v du\int v\,du.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Evaluate ∫015x2ex dx\displaystyle\int_0^1 5x^2 e^x\,dx (integrate by parts twice).

2. Integration by parts: choosing u, repeated parts

Warm-up

Three quick questions from earlier lessons.

  1. Find FF with F′(x)=1xexF'(x) = 1x e^x and F(0)=0F(0) = 0.
  2. Evaluate ∫0π/22xcos⁡x dx\displaystyle\int_0^{\pi/2} 2x\cos x\,dx.
  3. Evaluate ∫1e3ln⁡x dx\displaystyle\int_1^{e^{ 3 } } \ln x\,dx.

Discover

For ∫xln⁡x dx\displaystyle\int x\ln x\,dx you could take u=xu = x or u=ln⁡xu = \ln x. With u=xu = x you need v=∫ln⁡x dxv = \displaystyle\int \ln x\,dx first. Which choice is easier?

  1. u=ln⁡xu = \ln x
  2. u=xu = x

Key idea

Let uu be the factor that simplifies when differentiated.

Good uu choices, in order: Logarithms, Inverse trig, Algebraic (powers of xx), Trig, Exponentials (LIATE). With xnx^n times exe^x or sin⁡x\sin x, apply parts nn times.

Worked example

∫x2ex dx\displaystyle\int x^2 e^x\,dx.

x2ex−∫2xex dxx^2 e^x - \displaystyle\int 2x e^x\,dx
u = x², v = eˣ.
x2ex−(2xex−2ex)x^2 e^x - (2xe^x - 2e^x)
Parts again on ∫2xeˣ: 2xeˣ − 2eˣ.
(x2−2x+2)ex+C(x^2 - 2x + 2)e^x + C
Tidy.

Your turn, guided

Your turn: ∫xln⁡x dx\displaystyle\int x\ln x\,dx with u=ln⁡xu = \ln x, v=x22v = \tfrac{x^2}{2}.

x22ln⁡x−x24+C\tfrac{x^2}{2}\ln x - \tfrac{x^2}{4} + C
(x²/2) ln x − ∫x/2 dx.

Practice ★

  1. To integrate ∫x1ln⁡x dx\displaystyle\int x^{ 1 } \ln x\,dx by parts, which choice works?
    1. u=ln⁡xu = \ln x, dv=x1 dxdv = x^{ 1 }\,dx
    2. u=x1u = x^{ 1 }, dv=ln⁡x dxdv = \ln x\,dx
    3. u=x1ln⁡xu = x^{ 1 }\ln x, dv=dxdv = dx
  2. To integrate ∫x2ln⁡x dx\displaystyle\int x^{ 2 } \ln x\,dx by parts, which choice works?
    1. u=ln⁡xu = \ln x, dv=x2 dxdv = x^{ 2 }\,dx
    2. u=x2u = x^{ 2 }, dv=ln⁡x dxdv = \ln x\,dx
    3. u=x2ln⁡xu = x^{ 2 }\ln x, dv=dxdv = dx
  1. Evaluate ∫01xe2x dx\displaystyle\int_0^1 x e^{ 2x}\,dx.
  2. Evaluate ∫01xe5x dx\displaystyle\int_0^1 x e^{ 5x}\,dx.

Watch out!

Practice ★★

  1. Find FF with F′(x)=5x2exF'(x) = 5x^2 e^x and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=4x2exF'(x) = 4x^2 e^x and F(0)=0F(0) = 0.

Exit ticket

Three questions to check you have got it.

  1. Evaluate ∫01xe2x dx\displaystyle\int_0^1 x e^{ 2x}\,dx.
  2. Evaluate ∫01xe5x dx\displaystyle\int_0^1 x e^{ 5x}\,dx.
  3. Evaluate ∫01xe3x dx\displaystyle\int_0^1 x e^{ 3x}\,dx.

Summary card

Choosing uu

  • LIATE: logs, inverse trig, powers, trig, exponentials.
  • xnexx^n e^x: parts nn times.

Watch out: if the new integral is harder, swap uu and dvdv.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Evaluate ∫1e6xln⁡x dx\displaystyle\int_1^{e} 6x\ln x\,dx (exact).

3. Partial fractions

Warm-up

Three quick questions from earlier lessons.

  1. Evaluate ∫012xx2+81 dx\displaystyle\int_0^{ 12 } x\sqrt{x^2 + 81}\,dx with u=x2+81u = x^2 + 81.
    1. The lower limit for uu:   ?\;?
    2. The upper limit for uu:   ?\;?
    3. The value of the integral:   ?\;?
    4. An antiderivative of xx2+81x\sqrt{x^2 + 81} (without +C+C):
    5. With the same substitution, ∫012xx2+81 dx\displaystyle\int_0^{ 12 } \dfrac{x}{x^2 + 81}\,dx (exact):
  2. Evaluate ∫012xx2+2 dx\displaystyle\int_0^1 \dfrac{2x}{x^2 + 2}\,dx.
  3. Find FF with F′(x)=tan⁡xF'(x) = \tan x on (−π2,π2)\left(-\tfrac{\pi}{2}, \tfrac{\pi}{2}\right) and F(0)=3F(0) = 3.

Discover

1x−1−1x+1\dfrac{1}{x - 1} - \dfrac{1}{x + 1} over a common denominator gives 2x2−1\dfrac{2}{x^2 - 1}. So how can you integrate 1x2−1\dfrac{1}{x^2 - 1}?

  1. Split it as 12(1x−1−1x+1)\tfrac{1}{2}\left(\tfrac{1}{x - 1} - \tfrac{1}{x + 1}\right)
  2. Use arctan⁡x\arctan x

Key idea

Split a rational function into simple fractions, then integrate each to a logarithm.

Partial fractions: if (x−r)(x−s)(x - r)(x - s) with r≠sr \ne s, then p(x)(x−r)(x−s)=Ax−r+Bx−s\dfrac{p(x)}{(x - r)(x - s)} = \dfrac{A}{x - r} + \dfrac{B}{x - s} (degree of pp less than 2). Find AA by multiplying by x−rx - r and setting x=rx = r; likewise BB.

Worked example

∫5(x−2)(x+3) dx\displaystyle\int \dfrac{5}{(x - 2)(x + 3)}\,dx.

A=1A = 1, B=−1B = -1
x = 2: A = 5/5; x = −3: B = 5/(−5).
ln⁡∣x−2∣−ln⁡∣x+3∣+C\ln|x - 2| - \ln|x + 3| + C
Integrate each.
ln⁡∣x−2x+3∣+C\ln\left|\dfrac{x - 2}{x + 3}\right| + C
One log.

Your turn, guided

Your turn: 3(x−1)(x+2)=Ax−1+Bx+2\dfrac{3}{(x - 1)(x + 2)} = \dfrac{A}{x - 1} + \dfrac{B}{x + 2}.

A=1A = 1
x = 1: 3/(1 + 2).

Practice ★

  1. 8(x−4)(x−6)=Ax−4+Bx−6\dfrac{ 8 }{(x - 4)(x - 6)} = \dfrac{A}{x - 4} + \dfrac{B}{x - 6}. Find AA.
  2. 5(x−1)(x−3)=Ax−1+Bx−3\dfrac{ 5 }{(x - 1)(x - 3)} = \dfrac{A}{x - 1} + \dfrac{B}{x - 3}. Find AA.
  3. 8(x−1)(x−5)=Ax−1+Bx−5\dfrac{ 8 }{(x - 1)(x - 5)} = \dfrac{A}{x - 1} + \dfrac{B}{x - 5}. Find AA.

Watch out!

Practice ★★

  1. Evaluate ∫12dxx(x+3)\displaystyle\int_1^2 \dfrac{dx}{x(x + 3)}.
  2. Evaluate ∫12dxx(x+4)\displaystyle\int_1^2 \dfrac{dx}{x(x + 4)}.
  1. Evaluate ∫56dxx2−1\displaystyle\int_{ 5 }^{ 6 } \dfrac{dx}{x^2 - 1}.

Exit ticket

Three questions to check you have got it.

  1. 8(x−4)(x−6)=Ax−4+Bx−6\dfrac{ 8 }{(x - 4)(x - 6)} = \dfrac{A}{x - 4} + \dfrac{B}{x - 6}. Find AA.
  2. 5(x−1)(x−3)=Ax−1+Bx−3\dfrac{ 5 }{(x - 1)(x - 3)} = \dfrac{A}{x - 1} + \dfrac{B}{x - 3}. Find AA.
  3. 8(x−1)(x−5)=Ax−1+Bx−5\dfrac{ 8 }{(x - 1)(x - 5)} = \dfrac{A}{x - 1} + \dfrac{B}{x - 5}. Find AA.

Summary card

Partial fractions

  1. Factor the denominator.
  2. Find AA, BB by cover-up.
  3. Integrate: ∫Ax−r dx=Aln⁡∣x−r∣\displaystyle\int \dfrac{A}{x - r}\,dx = A\ln|x - r|.

Watch out: check by recombining the fractions.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Evaluate ∫019(x+1)(x+2) dx\displaystyle\int_0^1 \dfrac{ 9 }{(x + 1)(x + 2)}\,dx (exact).

4. Choosing an integration technique

Warm-up

Three quick questions from earlier lessons.

  1. Find FF with F′(x)=1x2+9F'(x) = \dfrac{1}{x^2 + 9} and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=1x2+6x+10F'(x) = \dfrac{1}{x^2 + 6x + 10} and F(−3)=0F(-3) = 0.
  3. Evaluate ∫12x2+5x+1x dx\displaystyle\int_1^2 \dfrac{x^2 + 5x + 1}{x}\,dx.

Discover

∫xcos⁡(x2) dx\displaystyle\int x\cos(x^2)\,dx and ∫xcos⁡x dx\displaystyle\int x\cos x\,dx look alike. Which one is a substitution?

  1. ∫xcos⁡(x2) dx\displaystyle\int x\cos(x^2)\,dx
  2. ∫xcos⁡x dx\displaystyle\int x\cos x\,dx

Key idea

Read the integrand before you start.

Substitution: an inside function with its derivative (up to a constant) as a factor. Parts: a product of unrelated types, such as a power times exe^x, sin⁡x\sin x or ln⁡x\ln x. Partial fractions: a rational function whose denominator factors. Algebra first: divide, or complete the square.

Worked example

Choose a method for three integrals.

∫2x(x2+1)5 dx\displaystyle\int 2x(x^2 + 1)^5\,dx: substitution
x² + 1 inside, 2x outside.
∫xe−x dx\displaystyle\int x e^{-x}\,dx: parts
Power times exponential.
∫dxx2−4\displaystyle\int \dfrac{dx}{x^2 - 4}: partial fractions
x² − 4 = (x − 2)(x + 2).

Your turn, guided

Your turn: ∫2xx2+9 dx\displaystyle\int \dfrac{2x}{x^2 + 9}\,dx is a substitution with u=x2+9u = x^2 + 9.

ln⁡(x2+9)+C\ln(x^2 + 9) + C
∫du/u.

Practice ★

  1. Which method suits ∫xe2x2 dx\displaystyle\int x e^{ 2x^2}\,dx best?
    1. Substitution, u=2x2u = 2x^2
    2. Integration by parts
    3. Partial fractions
  1. Which method suits ∫xe6x dx\displaystyle\int x e^{ 6x}\,dx best?
    1. Integration by parts, u=xu = x
    2. Substitution, u=6xu = 6x
    3. Partial fractions

Watch out!

Practice ★★

  1. Which method suits ∫dxx2−36\displaystyle\int \dfrac{dx}{x^2 - 36} best?
    1. Partial fractions: x2−36=(x−6)(x+6)x^2 - 36 = (x - 6)(x + 6)
    2. The arctangent formula
    3. Integration by parts

Missing exercise F.INT.21-t2

Exit ticket

Three questions to check you have got it.

  1. Which method suits ∫xe6x dx\displaystyle\int x e^{ 6x}\,dx best?
    1. Integration by parts, u=xu = x
    2. Substitution, u=6xu = 6x
    3. Partial fractions
  2. Which method suits ∫xe3x dx\displaystyle\int x e^{ 3x}\,dx best?
    1. Integration by parts, u=xu = x
    2. Substitution, u=3xu = 3x
    3. Partial fractions
  3. Which method suits ∫xe4x dx\displaystyle\int x e^{ 4x}\,dx best?
    1. Integration by parts, u=xu = x
    2. Substitution, u=4xu = 4x
    3. Partial fractions

Summary card

Which technique?

  • Inside + its derivative: substitution.
  • Unrelated product: parts.
  • Factorable denominator: partial fractions.

Watch out: x2+a2x^2 + a^2 (arctan) and x2−a2x^2 - a^2 (fractions) differ.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Choose a technique and evaluate ∫01xx2+6 dx\displaystyle\int_0^1 \dfrac{x}{x^2 + 6}\,dx (exact).

5. The trapezoidal rule

Discover

Many integrals have no antiderivative you can write down, such as ∫01e−x2 dx\displaystyle\int_0^1 e^{-x^2}\,dx. How can we still get its value?

  1. Add up the areas of simple shapes under the curve
  2. It has no value

Key idea

The trapezoidal rule.

Cut [a,b][a, b] into nn strips of width h=b−anh = \dfrac{b - a}{n}. Then

∫abf(x) dx≈h2(f(x0)+2f(x1)+⋯+2f(xn−1)+f(xn))\displaystyle\int_a^b f(x)\,dx \approx \dfrac{h}{2}\big(f(x_0) + 2f(x_1) + \dots + 2f(x_{n-1}) + f(x_n)\big).

Worked example

Estimate ∫02x2 dx\displaystyle\int_0^2 x^2\,dx with 2 strips.

12(0+2×1+4)\dfrac{1}{2}(0 + 2 \times 1 + 4)
h=1h = 1; the values are f(0)=0f(0) = 0, f(1)=1f(1) = 1, f(2)=4f(2) = 4.
=3= 3
The exact value is 83≈2.67\tfrac{8}{3} \approx 2.67.

Your turn, guided

Your turn: estimate ∫02x dx\displaystyle\int_0^2 x\,dx with 2 strips.

22
12(0+2×1+2)\dfrac{1}{2}(0 + 2 \times 1 + 2).

Practice ★

  1. Estimate ∫02(x2+4) dx\displaystyle\int_0^2 (x^2 + 4)\,dx with the trapezoidal rule and 2 strips.
  2. Estimate ∫02(x2+6) dx\displaystyle\int_0^2 (x^2 + 6)\,dx with the trapezoidal rule and 2 strips.
  3. Estimate ∫02(x2+9) dx\displaystyle\int_0^2 (x^2 + 9)\,dx with the trapezoidal rule and 2 strips.

Practice ★★

  1. Estimate ∫04(x2+9) dx\displaystyle\int_0^4 (x^2 + 9)\,dx with the trapezoidal rule and 4 strips.
  2. Estimate ∫04(x2+0) dx\displaystyle\int_0^4 (x^2 + 0)\,dx with the trapezoidal rule and 4 strips.

Exit ticket

Two questions to check.

  1. Estimate ∫02(x2+4) dx\displaystyle\int_0^2 (x^2 + 4)\,dx with the trapezoidal rule and 2 strips.
  2. Estimate ∫02(x2+6) dx\displaystyle\int_0^2 (x^2 + 6)\,dx with the trapezoidal rule and 2 strips.

Summary card

Trapezoidal rule

  • Width hh; inner values count twice.
  • More strips give a better estimate.

Calculators and computers integrate this way, with refined rules.

6. History of the integral: from Archimedes to Riemann

Discover

Archimedes of Syracuse (287–212 BC) found the area of a segment of a parabola, and the volume of a sphere. He had no formulas for antiderivatives. How could he do it?

  1. By filling the shape with more and more pieces of known area
  2. By weighing water in a sphere

Key idea

From slices to the integral sign.

150010001500c. 250 BCEArchimedesc. 250 BCEArchimedes
  1. Step 1150010001500c. 250 BCEArchimedesc. 250 BCEArchimedesArchimedes c. 287 – 212 BCImagined portraitDomenico Fetti, about 1620. Public domainArchimedes (287–212 BC) squeezes areas and volumes between shapes he knows: the method of exhaustion.
  2. Step 2150010001500c. 250 BCEArchimedes1635Cavalieric. 250 BCEArchimedes1635CavalieriBonaventura Cavalieri 1598–1647Giuseppe Fusinati, 1837. CC0 1.01635: Cavalieri's indivisibles: shapes made of infinitely thin slices.
  3. Step 3150010001500c. 250 BCEArchimedes1635Cavalieri1675Leibnizc. 250 BCEArchimedes1635Cavalieri1675LeibnizGottfried Wilhelm Leibniz 1646–1716Christoph Bernhard Francke, before 1729. Public domain1675: Leibniz writes the integral sign for the first time.
  4. Step 4150010001500c. 250 BCEArchimedes1635Cavalieri1675Leibnizc. 1854Riemannc. 250 BCEArchimedes1635Cavalieri1675Leibnizc. 1854RiemannBernhard Riemann 1826–1866Unknown artist, 1863. Public domain1850s: Riemann defines the integral as a limit of sums of rectangles, the definition taught today.

Cavalieri (1635) thought of areas and volumes as made of infinitely thin slices, his indivisibles. Leibniz wrote ∫f(x) dx\displaystyle\int f(x)\,dx in 1675. Riemann gave the exact definition in the 1850s: the limit of sums of thin rectangles.

Worked example

Archimedes showed that a sphere's volume is 23\tfrac{2}{3} of the cylinder around it. Our check with a radius rr:

Vcyl=πr2×2r=2πr3V_{\text{cyl}} = \pi r^2 \times 2r = 2\pi r^3
The cylinder has radius rr and height 2r2r.
23×2πr3=43πr3\tfrac{2}{3} \times 2\pi r^3 = \tfrac{4}{3}\pi r^3, the sphere
Two thirds of it:

Practice ★

  1. What do we call Archimedes' way of finding areas, an early form of integration?
    1. The method of exhaustion
    2. The trapezoidal rule
    3. Riemann sums
  1. Archimedes: a sphere's volume is 23\tfrac{2}{3} of the cylinder around it. The cylinder holds 18 liters. How many liters does the sphere hold?
  2. Archimedes: a sphere's volume is 23\tfrac{2}{3} of the cylinder around it. The cylinder holds 51 liters. How many liters does the sphere hold?
  1. A Riemann sum, as Riemann defined it: estimate ∫03x dx\displaystyle\int_0^{ 3 } x\,dx with 3 rectangles of width 1, using the left end of each strip.

Summary card

Integrals today

  • Distance from speed, as in a car's trip computer.
  • Areas and volumes in design and medicine: a scanner adds up thin slices.
  • Probability: areas under curves give chances.

Sources: MacTutor biographies of Archimedes, Cavalieri, Leibniz and Riemann (see "Sources and credits").