BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Integration by parts and reduction formulas

Partial fractions always work, though the general case can need a machine. Then the last technique: integration by parts, ∫uv′ dx = uv − ∫u′v dx, the product rule read backwards. Choose u to get simpler when differentiated and v′ not to get worse when integrated. Applied repeatedly it gives reduction formulas, such as ∫(ln x)ⁿ dx and ∫xⁿeˣ dx, and it computes the volume of an exponential wine glass two ways.

You need this first

Full reading path (21 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Definite integrals and Riemann sums (18.01)
  15. The first fundamental theorem of calculus (18.01)
  16. The second fundamental theorem of calculus (18.01)
  17. The logarithm from an integral, and areas between curves (18.01)
  18. Trigonometric integrals and substitution (18.01)
  19. Inverse substitution and completing the square (18.01)
  20. Partial fractions (18.01)
  21. Volumes by disks and shells (18.01)
On this page · 5 sections
  1. Partial fractions in general
  2. Integration by parts
  3. Reduction formulas
  4. The exponential wine glass
  5. Summary

The lecture first finishes partial fractions in general, then turns to the last technique of integration in the course (transcript, pp. 1, 5).

Partial fractions in general#

The full method is: Step 0, long division, so the remainder has lower degree than the denominator; Step 1, factor the denominator; Step 2, set up; Step 3, solve (transcript, p. 1; Steps 1–3 are those of the previous lecture). The set-up follows a pattern: for a linear factor raised to the fourth power, four terms with constant numerators, one per power; for each power of a quadratic factor, a term with a linear numerator, the numerator staying linear as the power rises (p. 2). For a denominator of degree 12 such as (x+2)4(x2+2x+3)(x2+4)3(x + 2)^4(x^2 + 2x + 3)(x^2 + 4)^3 (as the lecture's example is reconstructed here), the set-up is

A general set-up
A1x+2+A2(x+2)2+A3(x+2)3+A4(x+2)4+B0x+C0x2+2x+3+B1x+C1x2+4+B2x+C2(x2+4)2+B3x+C3(x2+4)3\frac{A_1}{x + 2} + \frac{A_2}{(x + 2)^2} + \frac{A_3}{(x + 2)^3} + \frac{A_4}{(x + 2)^4} + \frac{B_0x + C_0}{x^2 + 2x + 3} + \frac{B_1x + C_1}{x^2 + 4} + \frac{B_2x + C_2}{(x^2 + 4)^2} + \frac{B_3x + C_3}{(x^2 + 4)^3}
In words

capital A one over the quantity x plus 2, plus capital A two over the quantity x plus 2, all squared plus capital A three over the quantity x plus 2, all cubed plus capital A four over the quantity x plus 2, all to the power 4 plus the quantity capital B nought x plus capital C nought, all over the quantity x squared plus 2 x plus 3, plus the quantity capital B one x plus capital C one, all over the quantity x squared plus 4, plus the quantity capital B two x plus capital C two, all over the quantity x squared plus 4, all squared plus the quantity capital B three x plus capital C three, all over the quantity x squared plus 4, all cubed

with 12 unknowns, as many as the coefficients of a numerator of degree at most 11 (p. 2). That is twelve equations in twelve unknowns; cover-up finds only A4A_4, and the rest is a job for a machine (pp. 2–3). Two more pieces of bad news: factoring a big polynomial is itself hard in practice (p. 1), and each piece must still be integrated (p. 3). For example ∫x dx(x2+4)3=−14(x2+4)−2+c\int\frac{x\,dx}{(x^2 + 4)^3} = -\frac{1}{4}(x^2 + 4)^{-2} + c by advanced guessing, while ∫dx(x2+4)3\int\frac{dx}{(x^2 + 4)^3} needs x=2tan⁡ux = 2\tan u, which gives 132∫cos⁡4u du\frac{1}{32}\int\cos^4u\,du, then the double-angle formula, and so on (p. 4). The quadratic x2+2x+3x^2 + 2x + 3 needs completing the square (p. 5). The method always works, maybe slowly; the answers really are this complicated, and computer programs do it routinely (p. 5).

Integration by parts#

Integration by parts is the product rule read backwards (transcript, p. 5; notes, p. 1). From (uv)′=u′v+uv′(uv)' = u'v + uv', write uv′=(uv)′−u′vuv' = (uv)' - u'v and integrate; integrating a derivative gives back the function (pp. 5–6):

Integration by parts
∫u v′ dx=u v−∫u′ v dx\int u\,v'\,dx = u\,v - \int u'\,v\,dx
In words

the integral of u v prime d x equals u v minus the integral of u prime v d x

Source: 18.01 Lecture 30 transcript, pp. 5–6

and for a definite integral, by the fundamental theorem (p. 6; notes, p. 2):

Integration by parts, definite
∫abu v′ dx=[u v]ab−∫abu′ v dx\int_a^b u\,v'\,dx = \Big[u\,v\Big]_a^b - \int_a^b u'\,v\,dx
In words

the integral from a to b of u v prime d x equals ( u v ) sub a to the power b minus the integral from a to b of u prime v d x

Source: 18.01 Lecture 30 notes: Integration by Parts, Reduction Formulae, pp. 1–3 (the arc length and parametric curves on pp. 4–8 belong to the next lecture), p. 2

Another notation is ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du (notes, p. 2). Despite the name, it has nothing to do with partial fractions (transcript, p. 5).

Example: ∫ln⁡x dx\int\ln x\,dx. It looks hopeless, but take u=ln⁡xu = \ln x, which gets nicer when differentiated, u′=1/xu' = 1/x; and v′=1v' = 1, so v=xv = x (p. 6). Then (p. 6; notes, Example 2, p. 2):

Integral of the logarithm
∫ln⁡x dx=xln⁡x−∫x⋅1x dx=xln⁡x−x+c\int \ln x\,dx = x\ln x - \int x\cdot\frac{1}{x}\,dx = x\ln x - x + c
In words

the integral of log x d x equals x log x minus the integral of x times 1 over x, times d x equals x log x minus x plus c

The notes check it by advanced guessing: (xln⁡x)′=ln⁡x+1(x\ln x)' = \ln x + 1, so subtract xx (notes, p. 2). They also do ∫tan⁡−1x dx=xtan⁡−1x−12ln⁡(1+x2)+c\int\tan^{-1}x\,dx = x\tan^{-1}x - \frac{1}{2}\ln(1 + x^2) + c with u=tan⁡−1xu = \tan^{-1}x, v′=1v' = 1 (notes, Example 1, p. 1).

Reduction formulas#

For ∫(ln⁡x)2 dx\int(\ln x)^2\,dx, take u=(ln⁡x)2u = (\ln x)^2 and v=xv = x; then u′=2ln⁡x⋅1xu' = 2\ln x\cdot\frac{1}{x}, the xx and 1x\frac{1}{x} cancel, and what is left is the previous integral (transcript, pp. 6–7). The same step works for any power. With Fn(x)=∫(ln⁡x)n dxF_n(x) = \int(\ln x)^n\,dx (dropping the constant), it gives a reduction formula (p. 7; notes, Example 3, p. 2):

Reduction formula for powers of the logarithm
Fn(x)=x(ln⁡x)n−n Fn−1(x)F_n(x) = x(\ln x)^n - n\,F_{n-1}(x)
In words

F sub n (x) equals x( log x) to the power n minus n F sub n minus 1 (x)

Starting from F0(x)=∫dx=xF_0(x) = \int dx = x, it gives F1=xln⁡x−xF_1 = x\ln x - x and F2=x(ln⁡x)2−2(xln⁡x−x)F_2 = x(\ln x)^2 - 2(x\ln x - x) (p. 8). Each step lowers nn by one until the bottom is reached (p. 7).

For ∫xnex dx\int x^n e^x\,dx, the choice matters: take u=xnu = x^n, which drops a degree when differentiated, and v′=exv' = e^x, which stays the same when integrated; the other way round makes no progress (p. 8). With Gn(x)=∫xnex dxG_n(x) = \int x^n e^x\,dx (pp. 8–9; notes, Example 4, pp. 2–3):

Reduction formula for powers times the exponential
Gn(x)=xnex−n Gn−1(x),G0=ex,G1=xex−exG_n(x) = x^n e^x - n\,G_{n-1}(x), \qquad G_0 = e^x, \qquad G_1 = x e^x - e^x
In words

G sub n (x) equals x to the power n e to the power x minus n G sub n minus 1 (x), G nought equals e to the power x, G one equals x e to the power x minus e to the power x

(On p. 9 the lecturer first writes xex−xxe^x - x and corrects it on p. 10.) The method has a chance when one factor gets simpler when differentiated and the other no worse when integrated, as in xnexx^n e^x, xncos⁡xx^n\cos x, xnsin⁡xx^n\sin x and powers of the logarithm; only practice tells (p. 9). Advanced guessing works for many of these too (p. 10).

The notes add a warning: change these integrals a little and they have no formula at all, for example ∫(tan⁡−1x)2 dx\int(\tan^{-1}x)^2\,dx or ∫exx dx\int\frac{e^x}{x}\,dx. Then the integral itself is the answer; setting it up is what matters, and a computer can evaluate it (notes, p. 3).

The exponential wine glass#

Rotate the curve y=exy = e^x about the yy-axis, between the heights y=1y = 1 and y=ey = e (so 0≤x≤10 \le x \le 1), to make a wine glass, and find the volume it holds (transcript, p. 10). With disks, horizontal slices of radius x=ln⁡yx = \ln y (pp. 10–11):

Wine glass by disks
V=∫1eπ(ln⁡y)2 dy=π[y(ln⁡y)2−2(yln⁡y−y)]1e=π(e−2)V = \int_1^e \pi(\ln y)^2\,dy = \pi\Big[y(\ln y)^2 - 2(y\ln y - y)\Big]_1^e = \pi(e - 2)
In words

capital V equals the integral from 1 to e of pi ( log y) squared d y equals pi the quantity y( log y) squared minus 2 the quantity y log y minus y, sub 1 to the power e equals pi the quantity e minus 2

Source: 18.01 Lecture 30 transcript, pp. 10–11

using F2F_2. With shells, vertical strips at xx from height exe^x up to ee (p. 11):

Wine glass by shells
V=∫01(e−ex) 2πx dx=2πe∫01x dx−2π∫01xex dx=πe−2π⋅1V = \int_0^1 (e - e^x)\,2\pi x\,dx = 2\pi e\int_0^1 x\,dx - 2\pi\int_0^1 x e^x\,dx = \pi e - 2\pi \cdot 1
In words

capital V equals the integral from 0 to 1 of the quantity e minus e to the power x, 2 pi x d x equals 2 pi e the integral from 0 to 1 of x d x minus 2 pi the integral from 0 to 1 of x e to the power x d x equals pi e minus 2 pi times 1

Source: 18.01 Lecture 30 transcript, pp. 11–12

using G1G_1: ∫01xex dx=[xex−ex]01=1\int_0^1 xe^x\,dx = \big[xe^x - e^x\big]_0^1 = 1. Both give π(e−2)≈2.26\pi(e - 2) \approx 2.26. (The lecture says "πe−2\pi e - 2" for this, and corrects a missing minus sign in the evaluation the next time, pp. 11 and 12.)

Worked example

Three integrals by parts

Evaluate (a) ∫0π/2xcos⁡x dx\int_0^{\pi/2}x\cos x\,dx, (b) ∫01x2ex dx\int_0^1 x^2e^x\,dx, (c) ∫1exln⁡x dx\int_1^e x\ln x\,dx.

(a) u=xu = x, v′=cos⁡xv' = \cos x

∫xcos⁡x dx=xsin⁡x−∫sin⁡x dx=xsin⁡x+cos⁡x+c\int x\cos x\,dx = x\sin x - \int\sin x\,dx = x\sin x + \cos x + c. From 0 to π/2\pi/2: (π2+0)−(0+1)=π2−1≈0.571\left(\frac{\pi}{2} + 0\right) - (0 + 1) = \frac{\pi}{2} - 1 \approx 0.571.

(b) The reduction formula

G2=x2ex−2G1=x2ex−2(xex−ex)G_2 = x^2e^x - 2G_1 = x^2e^x - 2(xe^x - e^x). At 1 this is e−2(e−e)=ee - 2(e - e) = e; at 0 it is 0−2(0−1)=20 - 2(0 - 1) = 2. So the integral is e−2≈0.718e - 2 \approx 0.718.

(c) u=ln⁡xu = \ln x, v′=xv' = x

∫xln⁡x dx=x22ln⁡x−∫x22⋅1x dx=x22ln⁡x−x24+c\int x\ln x\,dx = \frac{x^2}{2}\ln x - \int\frac{x^2}{2}\cdot\frac{1}{x}\,dx = \frac{x^2}{2}\ln x - \frac{x^2}{4} + c. From 1 to ee: (e22−e24)−(0−14)=e2+14≈2.097\left(\frac{e^2}{2} - \frac{e^2}{4}\right) - \left(0 - \frac{1}{4}\right) = \frac{e^2 + 1}{4} \approx 2.097.

Summary#

  • Partial fractions always work, but large cases need long division, hard factoring, many unknowns and several techniques for the pieces.
  • Integration by parts: ∫uv′ dx=uv−∫u′v dx\int uv'\,dx = uv - \int u'v\,dx, the product rule integrated.
  • Choose uu to simplify when differentiated and v′v' not to worsen when integrated.
  • Reduction formulas: Fn=x(ln⁡x)n−nFn−1F_n = x(\ln x)^n - nF_{n-1}, Gn=xnex−nGn−1G_n = x^ne^x - nG_{n-1}.
  • Disks and shells give the same volume of the wine glass, π(e−2)\pi(e - 2).

Symbols on this page

Show the 46 symbols used here
ζ\zeta zeta.
The Riemann zeta function: ζ(3) = 1 + 1/2³ + 1/3³ + … ≈ 1.202. Say it: “zeta” (sounds like “zay-ta or zee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
cc c.
The constant of integration. Say it: “c”.
kk k.
In the cosmology note, the summation index in e^(−kx). Say it: “k”.
xx x.
The variable of integration (in the wine glass, the radius of a shell). Say it: “x”.
yy y.
The height in the wine glass, y = eˣ. Say it: “y”.
dd d.
As in dx, dy and du: a differential. Say it: “d”.
nn n.
The power in a reduction formula (a whole number). Say it: “n”.
ee e.
Euler's number, e ≈ 2.718 (the wine glass's rim is at height e). Say it: “e”.
vv v.
In integration by parts, an antiderivative of v′. Say it: “v”.
bb b.
The upper limit of a definite integral. Say it: “b”.
F1F_{1} F one.
The integral of ln x: F₁ = x ln x − x. Say it: “F one”.
F2F_{2} F two.
The integral of (ln x)². Say it: “F two”.
F0F_{0} F nought.
The integral of (ln x)⁰ = 1: F₀ = x. Say it: “F nought”.
uu u.
In integration by parts, the factor that is differentiated (in the notes' substitution, also a new variable x = 2 tan u). Say it: “u”.
VV V.
The volume of the wine glass. Say it: “capital V”.
u′u' u prime.
The derivative of u. Say it: “u prime”.
v′v' v prime.
In integration by parts, the factor that is integrated. Say it: “v prime”.
A1A_{1} A 1.
The unknown constant over (x + 2) to the power 1 in the partial-fraction set-up. Say it: “capital A one”.
A2A_{2} A 2.
The unknown constant over (x + 2) to the power 2 in the partial-fraction set-up. Say it: “capital A two”.
A3A_{3} A 3.
The unknown constant over (x + 2) to the power 3 in the partial-fraction set-up. Say it: “capital A three”.
A4A_{4} A 4.
The unknown constant over (x + 2) to the power 4 in the partial-fraction set-up. Say it: “capital A four”.
B0B_{0} B 0.
The unknown coefficient of x in the numerator over x² + 2x + 3. Say it: “capital B nought”.
C0C_{0} C 0.
The unknown constant in the numerator over x² + 2x + 3. Say it: “capital C nought”.
B1B_{1} B 1.
The unknown coefficient of x in the numerator over x² + 4. Say it: “capital B one”.
C1C_{1} C 1.
The unknown constant in the numerator over x² + 4. Say it: “capital C one”.
B2B_{2} B 2.
The unknown coefficient of x in the numerator over (x² + 4)². Say it: “capital B two”.
C2C_{2} C 2.
The unknown constant in the numerator over (x² + 4)². Say it: “capital C two”.
B3B_{3} B 3.
The unknown coefficient of x in the numerator over (x² + 4)³. Say it: “capital B three”.
C3C_{3} C 3.
The unknown constant in the numerator over (x² + 4)³. Say it: “capital C three”.
FnF_{n} F n.
The integral of (ln x)ⁿ, without the constant. Say it: “F sub n”.
Fn−1F_{n-1} F n minus 1.
The integral of (ln x)ⁿ⁻¹, one step down. Say it: “F sub n minus 1”.
GnG_{n} G n.
The integral of xⁿeˣ, without the constant. Say it: “G sub n”.
Gn−1G_{n-1} G n minus 1.
The integral of xⁿ⁻¹eˣ, one step down. Say it: “G sub n minus 1”.
G0G_{0} G nought.
The integral of eˣ: G₀ = eˣ. Say it: “G nought”.
G1G_{1} G one.
The integral of xeˣ: G₁ = xeˣ − eˣ. Say it: “G one”.
G2G_{2} G two.
The integral of x²eˣ. Say it: “G two”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 21 words used here

New here

integration by parts.
A rule for integrating a product of two functions, ∫ u dv = uv − ∫ v du, which comes from the product rule.
reduction formula.
A formula that writes an integral containing a power n in terms of the same integral with a lower power, used repeatedly.

Also used

partial fractions.
Splitting a fraction of polynomials into a sum of simpler fractions, each easy to integrate. Explained in Partial fractions.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
long division.
Dividing one polynomial by another step by step, like long division of numbers, leaving a polynomial plus a simpler fraction. Explained in Partial fractions.
linear.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.
cover-up method.
A quick way to find a coefficient in partial fractions: cover one factor of the denominator and put in the x that makes it zero. Explained in Partial fractions.
completing the square.
Rewriting x² + bx + c as (x + b/2)² plus a number, which turns any quadratic into a shifted square. Explained in Inverse substitution and completing the square.
product rule.
The rule for the derivative of a product of two functions: (fg)′ = f′g + fg′. Explained in Circular motion: tangential acceleration and angular acceleration.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
definite integral.
The integral of a function between two limits, a single number: the area under the graph between them, with parts below the axis counted negative. Explained in Definite integrals and Riemann sums.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
logarithm.
The power to which a fixed base must be raised to give a number: log₁₀ 1000 = 3 because 10³ = 1000. Explained in Exponentials and logarithms.
photon.
A particle of light: the smallest amount of energy that light of a given frequency can carry. Explained in Thermal radiation and Planck's photons.
black-body radiation.
The radiation given off by a body in thermal equilibrium, whose spread over wavelengths depends only on its temperature. Explained in Black-body radiation in statistical physics.
proportional.
Of two quantities: always in the same ratio, so that doubling one doubles the other. Explained in Graphs, straight lines and slope.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
in practice.
In reality, as things are actually done or measured, rather than in theory.
notation.
A system of symbols used to write ideas down briefly, such as dy/dx for a derivative.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

Pages that build on this

Practise

Check your understanding

  1. To find ∫xcos⁡x dx\int x\cos x\,dx by parts, the better choice is…
  2. ∫ln⁡x dx=\int \ln x\,dx =
  3. With Gn(x)=∫xnex dxG_n(x) = \int x^n e^x\,dx, the reduction formula is…
  4. ∫01xex dx=\int_0^1 x e^x\,dx =
0 of 4 answered

Flashcards

1 / 3