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

Improper integrals

An integral to infinity is the limit of integrals up to N as N → ∞; it converges if the limit is finite and diverges if not. ∫₀^∞ e^(−kx) dx = 1/k, simpler than any finite version. The borderline is the powers: ∫₁^∞ dx/xᵖ converges (to 1/(p − 1)) exactly when p > 1. Limit comparison decides other integrals by their tails, and integrals whose integrand blows up at an endpoint (the second type) need the same care: ignoring a singularity can give nonsense.

You need this first

Full reading path (17 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. Indeterminate forms and L'Hôpital's rule (18.01)
  9. Curve sketching with the first and second derivative (18.01)
  10. Sketching strategy and maximum–minimum problems (18.01)
  11. More max–min, and related rates (18.01)
  12. A ring on a string, and Newton's method (18.01)
  13. The mean value theorem and inequalities (18.01)
  14. Differentials and antiderivatives (18.01)
  15. Definite integrals and Riemann sums (18.01)
  16. The first fundamental theorem of calculus (18.01)
  17. The second fundamental theorem of calculus (18.01)
On this page · 6 sections
  1. Rates of growth and decay
  2. The definition
  3. The borderline: powers of x
  4. Limit comparison
  5. The second type: a singular integrand
  6. Summary

The last unit of the course is about dealing with infinity (transcript, p. 1). Last time, L'Hôpital's rule ranked rates of growth; today the same ranking, turned upside down into rates of decay, decides which functions can be integrated out to infinity (pp. 1–2).

Rates of growth and decay#

For positive functions, write f≪gf \ll g when f(x)/g(x)→0f(x)/g(x) \to 0 as x→∞x \to \infty: ff is a lot smaller, asymptotically (transcript, p. 1). Then, for p>0p > 0 (pp. 1–2):

Rates of growth and of decay
ln⁡x≪xp≪ex≪ex2,1ln⁡x≫1xp≫e−x≫e−x2(x→∞)\ln x \ll x^p \ll e^x \ll e^{x^2}, \qquad \frac{1}{\ln x} \gg \frac{1}{x^p} \gg e^{-x} \gg e^{-x^2} \qquad (x \to \infty)
In words

log x is much less than x to the power p is much less than e to the power x is much less than e to the power x squared, 1 over the quantity log x, is much greater than 1 over x to the power p is much greater than e to the power minus x is much greater than e to the power minus x squared (x goes to infinity )

Source: 18.01 Lecture 36 transcript, pp. 1–2

Taking reciprocals reverses the order: 1ln⁡x\frac{1}{\ln x} goes to 0 slowly, e−x2e^{-x^2} incredibly fast (p. 2).

The definition#

An integral with an infinite limit is defined as a limit of ordinary integrals (transcript, p. 2; notes, p. 1):

Improper integral
∫a∞f(x) dx=lim⁡N→∞∫aNf(x) dx\int_a^\infty f(x)\,dx = \lim_{N \to \infty}\int_a^N f(x)\,dx
In words

the integral from a to infinity of f(x) d x equals the limit as capital N goes to infinity of the integral of sub a ^ capital N f(x) d x

It converges if the limit exists, meaning a finite number, and diverges if not (pp. 2, 4). For a positive function, converging means the total area under the endless curve is finite (pp. 2–3). (Functions that change sign, with cancellation, are a subtler story that the course leaves aside, p. 4.)

The basic example, for k>0k > 0 (pp. 3–4; notes, Example 1, p. 1):

The decaying exponential
∫0Ne−kx dx=1k(1−e−kN)  →  ∫0∞e−kx dx=1k\int_0^N e^{-kx}\,dx = \frac{1}{k}\left(1 - e^{-kN}\right) \;\to\; \int_0^\infty e^{-kx}\,dx = \frac{1}{k}
In words

the integral of sub 0 ^ capital N e to the power minus k x d x equals 1 over k, times the quantity 1 minus e to the power minus k capital N, goes to the integral from 0 to infinity of e to the power minus k x d x equals 1 over k

The shorthand is to "plug in infinity", e−k⋅∞=0e^{-k\cdot\infty} = 0, which works only because k>0k > 0 (p. 3). The limit is simpler than any finite version: infinity is easier than any finite number, just as derivatives are easier than difference quotients (p. 5; notes, p. 1). In radioactive decay, if RR atoms decay per second at the start and the rate falls as Re−ktRe^{-kt}, the total number of atoms that ever decay is ∫0∞Re−kt dt=R/k\int_0^\infty Re^{-kt}\,dt = R/k; letting time run to infinity is an idealisation, but a useful one (transcript, pp. 4–5; notes, p. 1). The most famous example after this one is ∫−∞∞e−x2 dx=π\int_{-\infty}^\infty e^{-x^2}\,dx = \sqrt\pi, the key constant of probability, from the normal curve to opinion polls (pp. 5–6).

The borderline: powers of x#

Tails matter: a computer handles a finite region, and the mathematician must show the tail is negligible, or find that it is not (transcript, p. 6). The borderline cases are the powers (p. 7). For p=1p = 1, ∫1Ndxx=ln⁡N→∞\int_1^N\frac{dx}{x} = \ln N \to \infty: divergent (p. 7; notes, Example 4, p. 3). For p≠1p \ne 1 (pp. 7–8; notes, Examples 5–6, p. 3):

Integrals of powers to infinity
∫1∞dxxp=[x1−p1−p]1∞={1p−1p>1 (converges)∞p≤1 (diverges)\int_1^\infty\frac{dx}{x^p} = \Big[\frac{x^{1-p}}{1 - p}\Big]_1^\infty = \begin{cases}\dfrac{1}{p - 1} & p > 1 \text{ (converges)}\\[1ex] \infty & p \le 1 \text{ (diverges)}\end{cases}
In words

the integral from 1 to infinity of d x over x to the power p equals ( x to the power 1 minus p, end of power, over the quantity 1 minus p, ) sub 1 superscript infinity equals 1 over the quantity p minus 1, when p greater than 1 (converges); or infinity when p is less than or equal to 1 (diverges)

Source: 18.01 Lecture 36 transcript, pp. 7–8

When p>1p > 1, N1−p→0N^{1-p} \to 0; when p<1p < 1, N1−p→∞N^{1-p} \to \infty. The formula with 1−p1 - p in the denominator breaks down at p=1p = 1, which is why the logarithm case had to be done separately: it fails at the edge (p. 8).

Limit comparison#

Often the integral cannot be computed, but its convergence can still be decided (transcript, p. 10). If f(x)∼g(x)f(x) \sim g(x) as x→∞x \to \infty, meaning f(x)/g(x)→1f(x)/g(x) \to 1, then (pp. 8–9; notes, p. 5):

Limit comparison
f(x)∼g(x)  (x→∞)⇒∫a∞f(x) dx and ∫a∞g(x) dx both converge or both divergef(x) \sim g(x) \;(x \to \infty) \quad\Rightarrow\quad \int_a^\infty f(x)\,dx \text{ and } \int_a^\infty g(x)\,dx \text{ both converge or both diverge}
In words

f(x) is of order g(x) (x goes to infinity ) which gives the integral from a to infinity of f(x) d x and the integral from a to infinity of g(x) d x both converge or both diverge

Source: 18.01 Lecture 36 transcript, pp. 8–9

Only the tail matters, so stay away from other trouble spots: ∫100∞dxx2+10\int_{100}^\infty\frac{dx}{\sqrt{x^2 + 10}} behaves like ∫100∞dxx\int_{100}^\infty\frac{dx}{x} and diverges, and the comparison should not start at 0, where 1x\frac{1}{x} blows up for unrelated reasons (p. 9). ∫10∞dxx3+3\int_{10}^\infty\frac{dx}{\sqrt{x^3 + 3}} has no formula, but it behaves like ∫x−3/2 dx\int x^{-3/2}\,dx and converges (p. 10).

For very fast decay, ordinary comparison is enough. For positive functions, a larger integrand has a larger integral, so if 0≤f≤g0 \le f \le g and ∫a∞g\int_a^\infty g converges, so does ∫a∞f\int_a^\infty f (notes, p. 4). For example, for x≥1x \ge 1, x2≥xx^2 \ge x, so e−x2≤e−xe^{-x^2} \le e^{-x}, and ∫−∞∞e−x2 dx=2∫01e−x2 dx+2∫1∞e−x2 dx\int_{-\infty}^\infty e^{-x^2}\,dx = 2\int_0^1 e^{-x^2}\,dx + 2\int_1^\infty e^{-x^2}\,dx is at most a finite part plus 2∫1∞e−x dx2\int_1^\infty e^{-x}\,dx, so it converges (pp. 10–11; the notes make the same comparison for e−x3e^{-x^3}, notes, Example 8, p. 5). The notes use limit comparison for ∫0∞xne−x dx\int_0^\infty x^ne^{-x}\,dx, comparing with e−x/2e^{-x/2} (notes, Example 10, p. 6).

The second type: a singular integrand#

An integral can also be improper because the integrand blows up at an endpoint, like 1x\frac{1}{\sqrt x}, 1x\frac{1}{x} or 1x2\frac{1}{x^2} at x=0x = 0 (transcript, p. 11). Then cut the interval short and take a limit (notes, p. 6):

Improper integral of the second type
∫01dxx=lim⁡a→0+∫a1x−1/2 dx=lim⁡a→0+(2−2a1/2)=2\int_0^1\frac{dx}{\sqrt x} = \lim_{a \to 0^+}\int_a^1 x^{-1/2}\,dx = \lim_{a \to 0^+}\left(2 - 2a^{1/2}\right) = 2
In words

the integral from 0 to 1 of d x over the square root of x equals the limit as a goes to 0 from the right of the integral from a to 1 of x to the power minus one half, end of power, d x equals the limit as a goes to 0 from the right of the quantity 2 minus 2 a to the power one half, equals 2

In general ∫01dxxp\int_0^1\frac{dx}{x^p} converges to 11−p\frac{1}{1 - p} for p<1p < 1 and diverges for p≥1p \ge 1, the reverse of the behaviour at infinity (notes, p. 6). Ignoring a singularity can fool you: ∫−11dxx2\int_{-1}^{1}\frac{dx}{x^2} "=" [−1x]−11=−2\Big[-\frac{1}{x}\Big]_{-1}^{1} = -2, a negative area for a positive function. The calculation is nonsense: the area near x=0x = 0 is infinite and the integral diverges (transcript, p. 11). (The transcript first says "2" and then refers to it as −2-2, p. 11.)

Worked example

Four improper integrals

Decide whether each converges, and evaluate where you can: (a) ∫1∞dxx3/2\int_1^\infty\frac{dx}{x^{3/2}}, (b) ∫1∞x dxx3+1\int_1^\infty\frac{x\,dx}{x^3 + 1}, (c) ∫1∞dxx+1\int_1^\infty\frac{dx}{\sqrt{x + 1}}, (d) ∫08dxx1/3\int_0^8\frac{dx}{x^{1/3}}.

(a) A power above 1

p=32>1p = \frac{3}{2} > 1, so it converges to 1p−1=2\frac{1}{p - 1} = 2.

(b) Limit comparison

xx3+1∼1x2\frac{x}{x^3 + 1} \sim \frac{1}{x^2} as x→∞x \to \infty, and ∫1∞x−2 dx=1\int_1^\infty x^{-2}\,dx = 1 converges, so (b) converges.

(c) A fat tail

1x+1∼x−1/2\frac{1}{\sqrt{x + 1}} \sim x^{-1/2}, and p=12≤1p = \frac{1}{2} \le 1: it diverges.

(d) The second type

p=13<1p = \frac{1}{3} < 1, so it converges: lim⁡a→0+[32x2/3]a8=32×4=6\lim_{a \to 0^+}\Big[\frac{3}{2}x^{2/3}\Big]_a^8 = \frac{3}{2} \times 4 = 6.

Summary#

  • ∫a∞f dx=lim⁡N→∞∫aNf dx\int_a^\infty f\,dx = \lim_{N \to \infty}\int_a^N f\,dx: converges if the limit is finite.
  • ∫0∞e−kx dx=1k\int_0^\infty e^{-kx}\,dx = \frac{1}{k} (k>0k > 0); ∫−∞∞e−x2 dx=π\int_{-\infty}^\infty e^{-x^2}\,dx = \sqrt\pi.
  • ∫1∞x−p dx\int_1^\infty x^{-p}\,dx converges (to 1p−1\frac{1}{p - 1}) iff p>1p > 1; ∫01x−p dx\int_0^1 x^{-p}\,dx converges iff p<1p < 1.
  • Limit comparison: integrands with f/g→1f/g \to 1 have tails that converge or diverge together.
  • Watch for singularities inside the interval: they make an integral improper.

Symbols on this page

Show the 30 symbols used here
π\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”.
∼\sim tilde (similar).
Is of the order of: roughly equal, to within a factor of a few. Say it: “is of order”.
∝\propto proportional to.
Is proportional to: doubling one doubles the other. Say it: “is proportional to”.
≪\ll much less than.
Is much less than. Say it: “is much less than”.
≫\gg much greater than.
Is much greater than. Say it: “is much greater than”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\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”.
lim⁡\lim limit.
Limit: the value approached as the variable written below approaches its target. Say it: “the limit”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
The lower limit of integration; in a second-type integral, the cut-off that tends to 0; in the cosmology note, the scale factor. Say it: “a”.
cc c.
In the cosmology note, the speed of light. Say it: “c”.
kk k.
The positive decay constant in e^(−kx). Say it: “k”.
xx x.
The variable of integration. Say it: “x”.
tt t.
Time (in the cosmology note, the time since the Big Bang). Say it: “t”.
dd d.
As in dx and dt: the differential of the variable of integration. Say it: “d”.
nn n.
A whole-number power, as in xⁿe^(−x). Say it: “n”.
ee e.
Euler's number, e ≈ 2.718. Say it: “e”.
ff f.
The function being integrated (compared with g). Say it: “f”.
gg g.
The simpler comparison function. Say it: “g”.
NN N.
The finite upper limit that is sent to infinity. Say it: “capital N”.
pp p.
The power in x^p (positive in the growth ranking). Say it: “p”.
RR R.
The number of atoms decaying per second at the start. Say it: “R”.
t′t' t prime.
Time used as the variable of integration. Unit: s. Say it: “t prime”.

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

Words on this page

Show the 27 words used here

New here

converge.
To settle towards a definite finite value: an integral, series or sequence converges when its partial results approach a limit.
diverge.
To fail to settle on a finite value: a series or integral diverges when its partial results grow without limit or never settle.
improper integral.
An integral over an infinite range, or of a function that blows up, defined as a limit of ordinary integrals.

Also used

p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
L'Hôpital's rule.
A rule for limits of the form 0/0 or ∞/∞: the limit of f/g equals the limit of f′/g′, if that exists. Explained in Indeterminate forms and L'Hôpital's rule.
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.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
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.
difference quotient.
The change in a function divided by the change in its input, the slope of a secant line: [f(x + Δx) − f(x)]/Δx. Explained in The derivative: slope of the tangent line and rate of change.
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.
integrand.
The function being integrated: the f(x) in ∫ f(x) dx. Explained in The logarithm from an integral, and areas between curves.
limit comparison.
A convergence test: if the ratio of the terms of two positive series tends to a finite, non-zero number, both converge or both diverge. Explained in Infinite series and convergence tests.
interval.
A stretch between two values or two moments; in maths, all the numbers between two end points. Explained in Time dilation, length contraction and the interval.
singularity.
A point where a quantity becomes infinite or undefined, so the usual equations stop working there. Explained in Black holes.
Big Bang.
The hot, dense early state from which the whole observable universe has been expanding for about 13.8 billion years. Explained in The Big Bang.
comoving distance.
The distance between two objects measured on the stretching grid of comoving coordinates, which does not change as the universe expands.
scale factor.
The number a(t) that tells how much distances in the universe have stretched: when it doubles, every distance between galaxies doubles. Explained in Towards the universe: an expanding gas cools.
horizon distance.
The present distance of the farthest objects whose light has had time to reach us since the Big Bang. Explained in Inflation.
matter-dominated.
Of a universe or era: one in which matter supplies most of the energy density, so it controls the expansion. Explained in Matter–radiation equality and the pressure of light.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
subtle.
Hard to notice or understand, though it matters; needing care.
shorthand.
A short way of writing something longer, such as a symbol standing for a whole expression.
plug in.
To put numbers or expressions into a formula in place of its symbols.
idealised.
Simplified to a perfect case that does not quite exist, such as a frictionless slope or a point mass.
negligible.
So small that leaving it out makes no noticeable difference to the result.
borderline.
On the boundary between two kinds of behaviour, belonging clearly to neither.
blow up.
In maths, to grow without limit; to become infinite.

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

33 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. ∫1∞dxxp\int_1^\infty\frac{dx}{x^p} converges exactly when…
  2. ∫0∞e−3x dx=\int_0^\infty e^{-3x}\,dx =
  3. Does ∫10∞dxx3+3\int_{10}^\infty\frac{dx}{\sqrt{x^3 + 3}} converge?
  4. Plugging in the limits, ∫−11dxx2=[−1x]−11=−2\int_{-1}^{1}\frac{dx}{x^2} = \Big[-\frac{1}{x}\Big]_{-1}^{1} = -2. What is wrong?
0 of 4 answered

Flashcards

1 / 3