Lemma
← All topics
Further mathematics

Further calculus

Volumes, averages, infinite integrals and series.

Introduction

This topic extends A level calculus. You find volumes of solids formed by rotating a region about an axis, the mean value of a function over an interval, improper integrals with infinite limits or unbounded integrands, integrals that give inverse trigonometric and hyperbolic functions, and Maclaurin series, which write functions as infinite polynomials.

Why it matters

Engineers find the volume of a vase or a nose cone by rotating a curve. The average power of an AC supply is a mean value. Probability uses integrals to infinity. And Maclaurin series are how calculators evaluate sin⁡x\sin x and exe^x: by summing a few polynomial terms.

Intuitive explanation

IntuitionA volume is a stack of discs

Rotate y=f(x)y = f(x) about the xx-axis. A thin slice of thickness δx\delta x becomes a disc of radius yy and volume πy2δx\pi y^2\delta x. Adding the discs gives π∫y2 dx\pi\int y^2\,dx.

IntuitionMaclaurin: matching derivatives at 0

A polynomial a0+a1x+a2x2+…a_0 + a_1x + a_2x^2 + \dots is chosen to have the same value, slope, curvature and so on as ff at x=0x = 0. Matching the rrth derivative forces ar=f(r)(0)r!a_r = \frac{f^{(r)}(0)}{r!}.

Formal definitions

DefinitionVolumes of revolution

About the xx-axis: V=π∫aby2 dxV = \pi\displaystyle\int_a^b y^2\,dx. About the yy-axis: V=π∫cdx2 dyV = \pi\displaystyle\int_c^d x^2\,dy.

DefinitionMean value

The mean value of ff on [a,b][a, b] is 1b−a∫abf(x) dx\dfrac{1}{b - a}\displaystyle\int_a^b f(x)\,dx.

DefinitionImproper integral

∫a∞f(x) dx=lim⁡t→∞∫atf(x) dx\displaystyle\int_a^\infty f(x)\,dx = \lim_{t \to \infty}\int_a^t f(x)\,dx, if the limit exists (the integral converges).

DefinitionMaclaurin series
f(x)=f(0)+f′(0)x+f′′(0)2!x2+⋯+f(r)(0)r!xr+…f(x) = f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 + \dots + \frac{f^{(r)}(0)}{r!}x^r + \dots

Notation

  • f(r)(0)f^{(r)}(0) is the rrth derivative at 00.
  • arcsin⁡\arcsin, arctan⁡\arctan (and arsinh⁡\operatorname{arsinh}, arcosh⁡\operatorname{arcosh}) appear as results of integration.

Standard results

IdentitiesIntegrals
∫1a2−x2 dx=arcsin⁡xa+c,∫1a2+x2 dx=1aarctan⁡xa+c\int\frac{1}{\sqrt{a^2 - x^2}}\,dx = \arcsin\frac xa + c, \qquad \int\frac{1}{a^2 + x^2}\,dx = \frac1a\arctan\frac xa + c
∫1x2+a2 dx=arsinh⁡xa+c,∫1x2−a2 dx=arcosh⁡xa+c\int\frac{1}{\sqrt{x^2 + a^2}}\,dx = \operatorname{arsinh}\frac xa + c, \qquad \int\frac{1}{\sqrt{x^2 - a^2}}\,dx = \operatorname{arcosh}\frac xa + c
IdentitiesMaclaurin series
ex=1+x+x22!+x33!+…ln⁡(1+x)=x−x22+x33−… (−1<x≤1)e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \dots \qquad \ln(1 + x) = x - \frac{x^2}2 + \frac{x^3}3 - \dots\ (-1 < x \le 1)
sin⁡x=x−x33!+x55!−…cos⁡x=1−x22!+x44!−…\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \dots \qquad \cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \dots

Key results

TheoremConvergence of ∫1∞x−p dx\int_1^\infty x^{-p}\,dx

Converges (to 1p−1\frac{1}{p - 1}) if p>1p > 1; diverges if p≤1p \le 1.

Proofs

ProofDerivative of arctan

If y=arctan⁡xy = \arctan x then x=tan⁡yx = \tan y, so dxdy=sec⁡2y=1+x2\frac{dx}{dy} = \sec^2y = 1 + x^2, and dydx=11+x2\frac{dy}{dx} = \frac{1}{1 + x^2}. Hence ∫11+x2 dx=arctan⁡x+c\int\frac{1}{1 + x^2}\,dx = \arctan x + c.

∎
ProofMaclaurin coefficient

If f(x)=∑arxrf(x) = \sum a_rx^r, differentiating rr times kills lower terms and leaves r! arr!\,a_r plus terms with xx. Putting x=0x = 0: f(r)(0)=r! arf^{(r)}(0) = r!\,a_r.

∎
ProofThe shell method

Rotate the region under y=f(x)≥0y = f(x) \ge 0, a≤x≤ba \le x \le b (with 0≤a0 \le a), about the yy-axis. A thin strip at xx of width δx\delta x sweeps out a cylindrical shell with inner radius xx, outer radius x+δxx + \delta x and height between f(x)f(x) and f(x+δx)f(x + \delta x). Its volume is

π[(x+δx)2−x2]f(x)+(small)=2πxf(x) δx+O(δx2).\pi\left[(x + \delta x)^2 - x^2\right]f(x) + (\text{small}) = 2\pi x f(x)\,\delta x + O(\delta x^2).

Summing and letting δx→0\delta x \to 0 (the O(δx2)O(\delta x^2) errors add up to at most n⋅O(δx2)=O(δx)n\cdot O(\delta x^2) = O(\delta x)) gives

V=2π∫abx f(x) dx.V = 2\pi\int_a^b x\,f(x)\,dx.

When both methods apply they must agree: Q13 and Q35 compute the same solids both ways. In general the two formulas are related by integration by parts.

∎
ProofPappus's centroid theorem

A plane region R\mathcal R of area AA lies on one side of the xx-axis and is rotated about it. Slice by horizontal strips: the strip at height yy of length ℓ(y)\ell(y) sweeps a shell of volume 2πy ℓ(y) δy2\pi y\,\ell(y)\,\delta y. So

V=2π∫y ℓ(y) dy=2πyˉ⋅A,V = 2\pi\int y\,\ell(y)\,dy = 2\pi\bar y\cdot A,

since yˉ=1A∫y ℓ(y) dy\bar y = \frac1A\int y\,\ell(y)\,dy is the definition of the centroid's height. The volume is the area times the distance travelled by the centroid. This gives the torus 2πR⋅πr22\pi R\cdot\pi r^2 instantly (Q42), and the cycloid solid of Q60.

∎
ProofTaylor's theorem with integral remainder

By the Fundamental Theorem, f(x)=f(0)+∫0xf′(t) dtf(x) = f(0) + \int_0^xf'(t)\,dt. Integrate by parts with u=f′(t)u = f'(t), v=−(x−t)v = -(x - t):

f(x)=f(0)+f′(0)x+∫0x(x−t)f′′(t) dt.f(x) = f(0) + f'(0)x + \int_0^x(x - t)f''(t)\,dt.

Repeating nn times:

f(x)=∑r=0nf(r)(0)r!xr+1n!∫0x(x−t)nf(n+1)(t) dt⏟Rn(x).f(x) = \sum_{r=0}^n\frac{f^{(r)}(0)}{r!}x^r + \underbrace{\frac1{n!}\int_0^x(x - t)^nf^{(n + 1)}(t)\,dt}_{R_n(x)}.

By the mean value theorem for integrals (below), Rn(x)=f(n+1)(ξ)(n+1)!xn+1R_n(x) = \frac{f^{(n + 1)}(\xi)}{(n + 1)!}x^{n + 1} for some ξ\xi between 00 and xx: the Lagrange form. The Maclaurin series equals f(x)f(x) exactly when Rn(x)→0R_n(x) \to 0.

∎

Methods

MethodVolume about the yy-axis

Rearrange to get x2x^2 in terms of yy, and use yy-limits.

MethodImproper integrals

Replace the infinite limit by tt, integrate, then take the limit as t→∞t \to \infty. Use known limits such as te−t→0te^{-t} \to 0.

MethodComposite Maclaurin series

Substitute into known series (e2xe^{2x}: replace xx by 2x2x) and multiply series together, keeping terms up to the required power.

Examples

ExampleVolume of a cone

Rotate y=rhxy = \frac{r}{h}x for 0≤x≤h0 \le x \le h: V=π∫0hr2h2x2 dx=13πr2hV = \pi\int_0^h\frac{r^2}{h^2}x^2\,dx = \frac13\pi r^2h.

See the Worked examples tab.

Common mistakes

Common mistakeForgetting to square

Volume uses y2y^2, not yy.

Common mistakeWrong limits for the yy-axis

Rotating about the yy-axis needs yy-limits.

Common mistakeIgnoring validity

ln⁡(1+x)\ln(1 + x)'s series is valid only for −1<x≤1-1 < x \le 1.

Applications

  • Manufacturing: volumes of turned parts.
  • Electrical engineering: root-mean-square and mean values.
  • Computing: series approximations of functions.

Connections

Summary

  • V=π∫y2 dxV = \pi\int y^2\,dx (or π∫x2 dy\pi\int x^2\,dy).
  • Mean value 1b−a∫abf\frac{1}{b - a}\int_a^b f.
  • Improper integrals: limit of a proper integral.
  • Standard inverse-trig and hyperbolic integrals.
  • Maclaurin: ∑f(r)(0)r!xr\sum \frac{f^{(r)}(0)}{r!}x^r.

Worked examples

Try each one yourself first, then open the solution.

Example 1Volume about the x-axis

The region between y=xy = \sqrt x, the xx-axis and x=4x = 4 is rotated through 2π2\pi about the xx-axis. Find the volume.

Show the solution
  1. 1Set up

    V=π∫04x dxV = \pi\int_0^4 x\,dx.

  2. 2Evaluate

    π[x22]04=8π\pi\left[\tfrac{x^2}{2}\right]_0^4 = 8\pi.

Answer

8π8\pi

Example 2An improper integral

Evaluate ∫0∞xe−x dx\displaystyle\int_0^\infty xe^{-x}\,dx.

Show the solution
  1. 1Finite limit

    By parts, ∫0txe−x dx=[−xe−x−e−x]0t=1−te−t−e−t\int_0^t xe^{-x}\,dx = \left[-xe^{-x} - e^{-x}\right]_0^t = 1 - te^{-t} - e^{-t}.

  2. 2Limit

    As t→∞t \to \infty, te−t→0te^{-t} \to 0 and e−t→0e^{-t} \to 0.

  3. 3Value

    11.

Answer

11

Example 3An arctan integral

Find ∫0319+x2 dx\displaystyle\int_0^{3}\frac{1}{9 + x^2}\,dx.

Show the solution
  1. 1Standard form

    13arctan⁡x3\frac13\arctan\frac x3.

  2. 2Evaluate

    13(arctan⁡1−0)=π12\frac13(\arctan 1 - 0) = \frac{\pi}{12}.

Answer

π12\frac{\pi}{12}

Example 4A composite series

Find the Maclaurin series of exsin⁡xe^{x}\sin x up to the term in x3x^3.

Show the solution
  1. 1Known series

    ex=1+x+x22+…e^x = 1 + x + \frac{x^2}2 + \dots, sin⁡x=x−x36+…\sin x = x - \frac{x^3}{6} + \dots

  2. 2Multiply

    x+x2+x32−x36+…x + x^2 + \frac{x^3}{2} - \frac{x^3}{6} + \dots

  3. 3Collect

    x+x2+13x3x + x^2 + \frac13x^3.

Answer

x+x2+13x3x + x^2 + \frac13x^3

Beyond the specification

University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.

When does a Maclaurin series equal its function? (university)

The remainder Rn(x)=f(n+1)(ξ)(n+1)!xn+1R_n(x) = \frac{f^{(n + 1)}(\xi)}{(n + 1)!}x^{n + 1} decides everything.

The exponential. For f=exf = e^x, every derivative is exe^x, so ∣Rn(x)∣≤e∣x∣∣x∣n+1(n+1)!|R_n(x)| \le e^{|x|}\frac{|x|^{n + 1}}{(n + 1)!}. Factorials beat powers (∣x∣nn!→0\frac{|x|^n}{n!} \to 0 for every fixed xx), so the series converges to exe^x for every real xx. The same bound, ∣f(n)∣≤1|f^{(n)}| \le 1, works for sin⁡\sin and cos⁡\cos. This is the fact used in Q57 to prove ee irrational.

Radius of convergence. A power series ∑arxr\sum a_rx^r converges for ∣x∣<ρ|x| < \rho and diverges for ∣x∣>ρ|x| > \rho, where 1ρ=lim sup⁡∣ar∣1/r\frac1\rho = \limsup|a_r|^{1/r}. Inside, it can be differentiated and integrated term by term (that is how Q46 got arctan⁡\arctan from 11+t2\frac{1}{1 + t^2}, and Q58 integrated ln⁡(1+x)x\frac{\ln(1 + x)}{x}).

Why is the radius what it is? 11+x2\frac{1}{1 + x^2} is perfectly smooth on the whole real line, yet its series 1−x2+x4−…1 - x^2 + x^4 - \dots only converges for ∣x∣<1|x| < 1. The reason is invisible on the real line: as a function of a complex variable, 11+z2\frac{1}{1 + z^2} blows up at z=±iz = \pm i, at distance 11 from 00. In complex analysis one proves:

> The Taylor series of ff about 00 converges in the largest disc about 00 that contains no singularity of ff.

So tan⁡x\tan x has radius π2\frac\pi2 (poles at ±π2\pm\frac\pi2), ln⁡(1+x)\ln(1 + x) has radius 11 (branch point at −1-1), and xex−1\frac{x}{e^x - 1} has radius 2π2\pi (poles at ±2πi\pm 2\pi i), which explains why the Bernoulli numbers in its series grow like (2n)!(2π)2n\frac{(2n)!}{(2\pi)^{2n}}.

Smooth is not analytic. A function equal to its Taylor series near every point is called analytic. The function e−1/x2e^{-1/x^2} (curiosities box) is infinitely differentiable with every derivative 00 at 00, so it is not analytic there. For complex functions this cannot happen: one complex derivative already forces analyticity. This is the first of many ways in which complex calculus is more rigid, and more beautiful, than real calculus.

Asymptotic series. Some useful series diverge for every x≠0x \ne 0, such as Stirling's series ln⁡n!∼nln⁡n−n+12ln⁡2πn+112n−1360n3+…\ln n! \sim n\ln n - n + \frac12\ln 2\pi n + \frac{1}{12n} - \frac{1}{360n^3} + \dots. Truncated sensibly they still give superb approximations: the error is smaller than the first omitted term, even though adding more terms eventually makes things worse.

Slicing in higher dimensions: the volume of a ball (university)

The disc method is one case of Cavalieri's principle: solids whose cross-sections at each height have equal areas have equal volumes, and in general V=∫A(x) dxV = \int A(x)\,dx. Q54 used it with square cross-sections. Here it computes the volume of a ball in any number of dimensions.

The recursion. Let VnV_n be the volume of the unit ball x12+⋯+xn2≤1x_1^2 + \dots + x_n^2 \le 1 in Rn\mathbb R^n. Slice at xn=tx_n = t: the cross-section is an (n−1)(n - 1)-dimensional ball of radius 1−t2\sqrt{1 - t^2}, with volume Vn−1(1−t2)(n−1)/2V_{n - 1}(1 - t^2)^{(n - 1)/2}. So

Vn=Vn−1∫−11(1−t2)(n−1)/2 dt=Vn−1Wn,Wn=∫−π/2π/2cos⁡nθ dθV_n = V_{n - 1}\int_{-1}^1(1 - t^2)^{(n - 1)/2}\,dt = V_{n - 1}W_n, \qquad W_n = \int_{-\pi/2}^{\pi/2}\cos^n\theta\,d\theta

(substituting t=sin⁡θt = \sin\theta). These Wallis integrals satisfy Wn=n−1nWn−2W_n = \frac{n - 1}{n}W_{n - 2} (integrate by parts), with W0=πW_0 = \pi and W1=2W_1 = 2. So WnWn−1=2πnW_nW_{n - 1} = \frac{2\pi}{n} and

Vn=2πnVn−2.V_n = \frac{2\pi}{n}V_{n - 2}.

The answers. From V0=1V_0 = 1 and V1=2V_1 = 2:

nn12345678
VnV_n22π\pi43π\frac43\pi12π2\frac12\pi^2815π2\frac{8}{15}\pi^216π3\frac16\pi^316105π3\frac{16}{105}\pi^3124π4\frac1{24}\pi^4
approx23.144.194.935.265.174.724.06

In closed form Vn=πn/2Γ(n2+1)V_n = \dfrac{\pi^{n/2}}{\Gamma\left(\frac n2 + 1\right)}, using the Gamma function from the Integration deep section.

The surprise. The volume is largest in five dimensions and then tends to 00: Vn→0V_n \to 0 faster than any exponential, even though the ball always reaches distance 11 in every coordinate direction. The cube [−1,1]n[-1, 1]^n has volume 2n2^n, so the ball fills a vanishing fraction of it. In high dimensions almost all of a cube's volume is in its corners, and almost all of a ball's volume is in a thin shell near its surface (the fraction within 1−ϵ1 - \epsilon of the centre is (1−ϵ)n→0(1 - \epsilon)^n \to 0). This "curse of dimensionality" is why sampling, searching and integrating in high-dimensional spaces (machine learning, statistical mechanics) is hard.

A check from Q55. The Gaussian integral gives another route: πn/2=(∫e−x2dx)n=∫Rne−∣x∣2\pi^{n/2} = \left(\int e^{-x^2}dx\right)^n = \int_{\mathbb R^n}e^{-|x|^2}, and computing the right-hand side with shells of area nVnrn−1nV_nr^{n - 1} gives nVn⋅12Γ(n2)nV_n\cdot\frac12\Gamma\left(\frac n2\right), reproducing the formula.

Mean values, inequalities and averaging (university)

The mean value theorem for integrals. If ff is continuous on [a,b][a, b], its mean value is actually attained: there is c∈[a,b]c \in [a, b] with f(c)=1b−a∫abff(c) = \frac{1}{b - a}\int_a^bf. (The mean lies between the minimum mm and maximum MM, since m(b−a)≤∫f≤M(b−a)m(b - a) \le \int f \le M(b - a); the intermediate value theorem does the rest.) More generally, if g≥0g \ge 0 then ∫fg=f(c)∫g\int fg = f(c)\int g for some cc: this is what turns the integral remainder into the Lagrange remainder above.

Jensen's inequality. If φ\varphi is convex, then

φ(1b−a∫abf)≤1b−a∫abφ(f).\varphi\left(\frac{1}{b - a}\int_a^b f\right) \le \frac{1}{b - a}\int_a^b\varphi(f).

Proof: a convex function lies above its tangent line at the mean μ\mu, so φ(f(x))≥φ(μ)+k(f(x)−μ)\varphi(f(x)) \ge \varphi(\mu) + k(f(x) - \mu); averaging, the second term vanishes. Special cases:

  • φ(u)=u2\varphi(u) = u^2: the mean square is at least the square of the mean, so RMS ≥\ge |mean| (Q39 is the extreme case, mean 00).
  • φ(u)=eu\varphi(u) = e^u applied to ln⁡f\ln f: the geometric mean is at most the arithmetic mean (Q59 compares 1e\frac1e with 12\frac12).
  • φ(u)=1u\varphi(u) = \frac1u: the harmonic mean is at most the arithmetic mean.

Cauchy–Schwarz for integrals. (∫fg)2≤∫f2∫g2\left(\int fg\right)^2 \le \int f^2\int g^2. Proof: ∫(f+tg)2≥0\int(f + tg)^2 \ge 0 for every tt, a quadratic in tt with non-positive discriminant. It says that ⟨f,g⟩=∫fg\langle f, g\rangle = \int fg behaves like a dot product, with "angle" between functions; Fourier series are expansions in an orthogonal "basis" {1,cos⁡nx,sin⁡nx}\{1, \cos nx, \sin nx\} for exactly this inner product.

Averages of oscillations. Q24 and Q39 used the fact that cos⁡2x\cos 2x averages to 00 over a period. Much more is true: for any integrable ff,

lim⁡n→∞∫abf(x)cos⁡nx dx=0(the Riemann–Lebesgue lemma).\lim_{n \to \infty}\int_a^b f(x)\cos nx\,dx = 0 \qquad (\text{the Riemann–Lebesgue lemma}).

Rapid oscillations cancel. And for an irrational α\alpha, the points α,2α,3α,…\alpha, 2\alpha, 3\alpha, \dots (mod 11) are equidistributed: for any continuous periodic ff, 1N∑k=1Nf(kα)→∫01f\frac1N\sum_{k=1}^Nf(k\alpha) \to \int_0^1f. Time averages equal space averages, the simplest example of an ergodic theorem, the principle that underlies statistical mechanics.

Why does this work?

Why does this work?Why do Maclaurin series match a function?

A polynomial is completely determined by its derivatives at 00: if p(x)=∑arxrp(x) = \sum a_rx^r then p(r)(0)=r! arp^{(r)}(0) = r!\,a_r. Choosing ar=f(r)(0)r!a_r = \frac{f^{(r)}(0)}{r!} makes the polynomial agree with ff in value, slope, curvature and every higher derivative at 00. Taylor's theorem bounds the error by the next term, so for many functions the infinite series equals the function.

Beyond the syllabus

Beyond the syllabusFourier and Laplace transforms

The Fourier transform f^(ω)=∫−∞∞f(t)e−iωt dt\hat f(\omega) = \int_{-\infty}^\infty f(t)e^{-i\omega t}\,dt breaks a signal into frequencies. It turns differentiation into multiplication by iωi\omega and convolution into multiplication, which is why it is the basic tool of signal processing, image compression (JPEG) and quantum mechanics. The Gaussian is its own Fourier transform: e−t2/2↦2πe−ω2/2e^{-t^2/2} \mapsto \sqrt{2\pi}e^{-\omega^2/2}.

The Laplace transform L{f}(s)=∫0∞e−stf(t) dt\mathcal L\{f\}(s) = \int_0^\infty e^{-st}f(t)\,dt does the same for one-sided signals, turning linear differential equations into algebra: L{f′}=sL{f}−f(0)\mathcal L\{f'\} = s\mathcal L\{f\} - f(0).

Beyond the syllabusStirling's formula

n!∼2πn(ne)nn! \sim \sqrt{2\pi n}\left(\frac ne\right)^n. Write n!=Γ(n+1)=∫0∞enln⁡x−x dxn! = \Gamma(n + 1) = \int_0^\infty e^{n\ln x - x}\,dx; the exponent peaks at x=nx = n, and near the peak it is approximately quadratic, so the integral is approximately a Gaussian integral (Laplace's method). Even for n=10n = 10 the error is under 1%.

Mathematical curiosities

Mathematical curiositySeries that converge to the wrong function

f(x)=e−1/x2f(x) = e^{-1/x^2} (with f(0)=0f(0) = 0) has every derivative zero at 00, so its Maclaurin series is 0+0+0+…0 + 0 + 0 + \dots, which equals ff only at x=0x = 0. Smooth does not mean analytic.

Further exploration

Further explorationInvestigations
  • Find the Maclaurin series of arctan⁡x\arctan x by integrating 11+x2\frac{1}{1 + x^2}, and deduce π4=1−13+15−…\frac\pi4 = 1 - \frac13 + \frac15 - \dots
  • Use Stirling's formula to estimate (2nn)≈4nπn\binom{2n}{n} \approx \frac{4^n}{\sqrt{\pi n}}.

Reading pathway: Fourier Analysis: An Introduction (Stein and Shakarchi).

Now practise60 questions from Very easy to Extreme →