Chapter VII · Additional theorems in the differential and integral calculus

Integrals of complex functions of a real variable

§170 30 min

Integrating ϕ(x)+iψ(x)\phi(x) + i\psi(x) part by part, the inequality ∣∫f∣≤∫∣f∣\lvert\int f\rvert \le \int\lvert f\rvert seen as "a straight line is the shortest path", and which real theorems survive.

Why this matters

Chapter X defines the logarithm of a complex number as an integral along a path in the complex plane, and the exponential and trigonometric functions of a complex variable follow from it. The first step is modest: integrating a complex-valued function f(x)=ϕ(x)+iψ(x)f(x) = \phi(x) + i\psi(x) of a real variable xx. §170 defines this integral and singles out one property for later use, the inequality ∣∫abf∣≤∫ab∣f∣\left|\int_a^b f\right| \le \int_a^b |f|. It is the complex form of the triangle inequality, and it is how every estimate of a complex integral is made.

The idea

There is only one reasonable definition: integrate the real part and the imaginary part separately. Then the Riemann sums of §161 still make sense, with complex values: σ=∑fv δv\sigma = \sum f_v\,\delta_v is a sum of complex numbers, and it tends to ∫f\int f.

A sum of complex numbers has a picture (Chapter III): put the numbers head to tail as arrows in the Argand diagram. The sum is the arrow from the start of the chain to its end. And the length of the chain is ∑∣fv∣ δv\sum |f_v|\,\delta_v, a Riemann sum for ∫∣f∣\int |f|. A straight line is never longer than a path with the same ends, so ∣σ∣≤∑∣fv∣ δv|\sigma| \le \sum|f_v|\,\delta_v; let the pieces shrink, and ∣∫f∣≤∫∣f∣|\int f| \le \int|f|.

Explore A complex integral as a chain of arrows

Try this. For eixe^{ix}, set bb to about 44 and increase nn. Compare the length of the chain with the length of the straight arrow. Then move bb up to 2π2\pi, and try the other two functions.

∫04eix dx\int_0^{4} e^{ix}\,dx as a sum of 88 complex numbers f(xv) δvf(x_v)\,\delta_v
ReIm
  • the chain: arrows f(x_v) δ_v, head to tail; its length is Σ|f_v| δ_v
  • straight from 0 to the end: the sum σ
  • the curve x ↦ ∫₀ˣ f and the exact value
f(x)
σ=−0.3276+1.808 i\sigma = -0.3276 + 1.808\,i, ∣σ∣=1.8377|\sigma| = 1.8377; chain length ∑∣fv∣ δv=4\sum |f_v|\,\delta_v = 4.
Limits: ∫f=−0.7568+1.654 i\int f = -0.7568 + 1.654\,i, ∣∫f∣=1.8186≤4=∫∣f∣\left|\int f\right| = 1.8186 \le 4 = \int |f|.
What to notice

For eixe^{ix} every arrow has length δv\delta_v, so the chain has length bb exactly, and it bends round a circle of radius 11: the integral is the chord, the chain is (nearly) the arc. At b=2πb = 2\pi the chain closes up and ∫02πeix dx=0\int_0^{2\pi} e^{ix}\,dx = 0, although ∫02π∣eix∣ dx=2π\int_0^{2\pi}|e^{ix}|\,dx = 2\pi. The inequality is never violated, and it is close to an equality only when the arrows all point roughly the same way.

Precise statements

Definition Integral of a complex function Hardy: §170

Let f(x)=ϕ(x)+iψ(x)f(x) = \phi(x) + i\psi(x), where ϕ\phi and ψ\psi are real and continuous on [a,b][a, b]. Then

∫abf(x) dx=∫abϕ(x) dx+i∫abψ(x) dx.\int_a^b f(x)\,dx = \int_a^b \phi(x)\,dx + i\int_a^b \psi(x)\,dx .

All the rules of §165 and §166 that are equations carry over at once, by applying them to the real and imaginary parts: reversal and additivity, ∫(f+g)=∫f+∫g\int(f + g) = \int f + \int g, ∫kf=k∫f\int kf = k\int f now for complex constants kk, the fundamental theorem (ddx∫axf=f(x)\frac{d}{dx}\int_a^x f = f(x), where the derivative of ϕ+iψ\phi + i\psi is ϕ′+iψ′\phi' + i\psi'), integration by parts, and substitution with a real ϕ\phi. So do the formulae (1) and (2) of §167: Taylor’s theorem with the integral remainder holds for complex ff.

The rules that are inequalities, and the mean value theorems, do not carry over as they stand, since complex numbers cannot be compared by size. One inequality survives, with the modulus.

Theorem The modulus inequality Hardy: §170 (1); Examples LXV, 12

If ff is a continuous complex function on [a,b][a, b], with a<ba < b, then

∣∫abf(x) dx∣≤∫ab∣f(x)∣ dx.\left|\int_a^b f(x)\,dx\right| \le \int_a^b |f(x)|\,dx .
Corollary A bound by the maximum Hardy: Examples LXV, 13

If moreover ∣f(x)∣≤M|f(x)| \le M on [a,b][a, b], then ∣∫abf(x) dx∣≤M(b−a)\left|\int_a^b f(x)\,dx\right| \le M(b - a).

Proofs

Proof The modulus inequality, from the sums
Strategy

Prove it for every Riemann sum by the triangle inequality for complex numbers, then pass to the limit. The only thing to check is that the limits behave: the sums ∑fvδv\sum f_v\delta_v tend to ∫f\int f, the sums ∑∣fv∣δv\sum|f_v|\delta_v tend to ∫∣f∣\int|f|, and the modulus is continuous.

Sums with complex values

Take a partition with pieces δv\delta_v and points ξv\xi_v, and write fv=f(ξv)=ϕv+iψvf_v = f(\xi_v) = \phi_v + i\psi_v. Then ∑fvδv=∑ϕvδv+i∑ψvδv\sum f_v\delta_v = \sum\phi_v\delta_v + i\sum\psi_v\delta_v. As the pieces shrink, the real and imaginary parts tend to ∫ϕ\int\phi and ∫ψ\int\psi (§161), so ∑fvδv→∫f\sum f_v\delta_v \to \int f.

The modulus of the limit

If complex numbers σ→s\sigma \to s then ∣σ∣→∣s∣|\sigma| \to |s|, since ∣∣σ∣−∣s∣∣≤∣σ−s∣\big||\sigma| - |s|\big| \le |\sigma - s|. So ∣∑fvδv∣→∣∫f∣\left|\sum f_v\delta_v\right| \to \left|\int f\right|.

The integral of the modulus

∣f∣=ϕ2+ψ2|f| = \sqrt{\phi^2 + \psi^2} is a continuous real function, so ∑∣fv∣δv→∫∣f∣\sum|f_v|\delta_v \to \int|f|.

Triangle inequality, then the limit

For every sum, ∣∑fvδv∣≤∑∣fv∣δv\left|\sum f_v\delta_v\right| \le \sum |f_v|\delta_v (Chapter III), because each δv>0\delta_v > 0. Non-strict inequalities survive limits, so ∣∫f∣≤∫∣f∣\left|\int f\right| \le \int|f|.

There is also a proof without sums, which shows a useful trick: rotate the integral onto the positive real axis.

Proof The modulus inequality by rotation
Strategy

If ∫f=0\int f = 0 there is nothing to prove. Otherwise write ∫f=Reiα\int f = Re^{i\alpha} with R>0R > 0. Multiplying by e−iαe^{-i\alpha} makes the integral real, and the real part of a complex number is at most its modulus.

Rotate

R=e−iα∫abf=∫abe−iαf(x) dxR = e^{-i\alpha}\int_a^b f = \int_a^b e^{-i\alpha}f(x)\,dx, using linearity with the complex constant e−iαe^{-i\alpha}.

Take real parts

RR is real, so it equals the real part of the right side, which is ∫abRe⁡{e−iαf(x)} dx\int_a^b \operatorname{Re}\{e^{-i\alpha}f(x)\}\,dx, by the definition.

Compare with the modulus

Re⁡{e−iαf(x)}≤∣e−iαf(x)∣=∣f(x)∣\operatorname{Re}\{e^{-i\alpha}f(x)\} \le |e^{-i\alpha}f(x)| = |f(x)| for every xx, so by (6) of §165, R≤∫ab∣f∣R \le \int_a^b |f|.

The corollary follows at once: ∫ab∣f∣≤∫abM=M(b−a)\int_a^b|f| \le \int_a^b M = M(b-a).

Worked examples and exercises

Exercise Real integrals by complex ones ●○○ Hardy: §170

Evaluate ∫0πexcos⁡x dx\int_0^\pi e^{x}\cos x\,dx and ∫0πexsin⁡x dx\int_0^\pi e^x\sin x\,dx together, as the real and imaginary parts of ∫0πe(1+i)x dx\int_0^\pi e^{(1+i)x}\,dx.

Hint
ddxe(1+i)x=(1+i)e(1+i)x\frac{d}{dx}e^{(1+i)x} = (1+i)e^{(1+i)x}, where e(1+i)xe^{(1+i)x} means ex(cos⁡x+isin⁡x)e^x(\cos x + i\sin x). Check this derivative by differentiating the real and imaginary parts.

Solution

With e(1+i)x=excos⁡x+iexsin⁡xe^{(1+i)x} = e^x\cos x + ie^x\sin x, differentiating the parts gives ex(cos⁡x−sin⁡x)+iex(sin⁡x+cos⁡x)=(1+i)e(1+i)xe^x(\cos x - \sin x) + ie^x(\sin x + \cos x) = (1+i)e^{(1+i)x}. So 11+ie(1+i)x\frac{1}{1+i}e^{(1+i)x} is an antiderivative, and by the fundamental theorem (which holds part by part)

∫0πe(1+i)x dx=e(1+i)π−11+i=−eπ−11+i=−(eπ+1)(1−i)2,\int_0^\pi e^{(1+i)x}\,dx = \frac{e^{(1+i)\pi} - 1}{1+i} = \frac{-e^\pi - 1}{1+i} = -\frac{(e^\pi + 1)(1 - i)}{2},

since e(1+i)π=eπ(cos⁡π+isin⁡π)=−eπe^{(1+i)\pi} = e^\pi(\cos\pi + i\sin\pi) = -e^\pi. Taking real and imaginary parts, ∫0πexcos⁡x dx=−12(eπ+1)\int_0^\pi e^x\cos x\,dx = -\tfrac12(e^\pi + 1) and ∫0πexsin⁡x dx=12(eπ+1)\int_0^\pi e^x\sin x\,dx = \tfrac12(e^\pi + 1). One complex integration replaces two integrations by parts.

Exercise Orthogonality in one line ●○○ Hardy: §170; cf. Examples LXIII, 9

Show that ∫02πeinx dx\int_0^{2\pi} e^{inx}\,dx is 00 for every integer n≠0n \ne 0 and 2π2\pi for n=0n = 0, and deduce Fourier’s integrals of The measure of an angle and the circular functions.

Hint
An antiderivative of einx=cos⁡nx+isin⁡nxe^{inx} = \cos nx + i\sin nx is einx/(in)e^{inx}/(in) for n≠0n \ne 0.
Hint
cos⁡mxcos⁡nx=14(eimx+e−imx)(einx+e−inx)\cos mx\cos nx = \tfrac14(e^{imx} + e^{-imx})(e^{inx} + e^{-inx}).

Solution

For n≠0n \ne 0, ∫02πeinx dx=e2πin−1in=0\int_0^{2\pi}e^{inx}\,dx = \dfrac{e^{2\pi in} - 1}{in} = 0 because e2πin=1e^{2\pi in} = 1. For n=0n = 0 the integrand is 11. Now expand: cos⁡mxcos⁡nx=14{ei(m+n)x+ei(m−n)x+e−i(m−n)x+e−i(m+n)x}\cos mx\cos nx = \tfrac14\{e^{i(m+n)x} + e^{i(m-n)x} + e^{-i(m-n)x} + e^{-i(m+n)x}\}. For positive integers m,nm, n every exponent is non-zero except ±(m−n)\pm(m - n) when m=nm = n, and then two terms equal 11; so the integral is 00 if m≠nm \ne n and 14⋅2⋅2π=π\tfrac14\cdot 2\cdot 2\pi = \pi if m=nm = n. The products sin⁡mxsin⁡nx\sin mx\sin nx and cos⁡mxsin⁡nx\cos mx\sin nx are handled the same way. In the widget: with f=eixf = e^{ix} and b=2πb = 2\pi, the chain closes up.

Exercise No mean value theorem for complex integrals ●●○ Hardy: §170

Show that there is no ξ\xi in [0,2π][0, 2\pi] with ∫02πeix dx=2πeiξ\int_0^{2\pi}e^{ix}\,dx = 2\pi e^{i\xi}. Which step of the proof of the first mean value theorem (§165, (8)) fails? What survives?

Hint
Compare the moduli of the two sides.

Solution

The left side is 00 (previous exercise), while ∣2πeiξ∣=2π|2\pi e^{i\xi}| = 2\pi for every real ξ\xi. So no ξ\xi works. The proof of (8) used two facts about real numbers: that ∫f\int f lies between H(b−a)H(b-a) and K(b−a)K(b-a), which needs an order, and the intermediate value theorem, which needs the values to fill an interval of the line. Complex values have no order, and the values of eixe^{ix} fill a circle, whose “average” 00 is not on it. What survives is the inequality: ∣∫abf∣≤(b−a)max⁡∣f∣\left|\int_a^b f\right| \le (b-a)\max|f|, which is all that is usually needed. (Taylor’s theorem for complex ff must likewise be used in the integral form, not in Lagrange’s or Cauchy’s form.)

Exercise When is the inequality an equality? ●●● Hardy: §170

Let ff be continuous on [a,b][a, b]. Show that ∣∫abf∣=∫ab∣f∣\left|\int_a^b f\right| = \int_a^b|f| if and only if there is a fixed α\alpha with f(x)=eiα∣f(x)∣f(x) = e^{i\alpha}|f(x)| for every xx (all the values of ff point in one direction).

Hint
Follow the rotation proof. Equality forces ∫ab(∣f∣−Re⁡{e−iαf})=0\int_a^b\big(|f| - \operatorname{Re}\{e^{-i\alpha}f\}\big) = 0, with a non-negative continuous integrand.
Hint
A non-negative continuous function with integral 00 vanishes identically (Misc. Examples VII, 43, proved in General properties of the definite integral).

Solution

If f=eiα∣f∣f = e^{i\alpha}|f| then ∫f=eiα∫∣f∣\int f = e^{i\alpha}\int|f| and the moduli agree. Conversely, suppose equality holds. If ∫∣f∣=0\int|f| = 0 then f≡0f \equiv 0 (non-negative continuous function with zero integral), and any α\alpha works. Otherwise ∫f=Reiα\int f = Re^{i\alpha} with R=∫∣f∣>0R = \int|f| > 0, and as in the rotation proof R=∫Re⁡{e−iαf}R = \int\operatorname{Re}\{e^{-i\alpha}f\}. Hence ∫(∣f∣−Re⁡{e−iαf})=0\int\big(|f| - \operatorname{Re}\{e^{-i\alpha}f\}\big) = 0; the integrand is continuous and ≥0\ge 0, so it vanishes identically. Thus Re⁡{e−iαf(x)}=∣e−iαf(x)∣\operatorname{Re}\{e^{-i\alpha}f(x)\} = |e^{-i\alpha}f(x)| for every xx, which says that e−iαf(x)e^{-i\alpha}f(x) is real and ≥0\ge 0, that is, f(x)=eiα∣f(x)∣f(x) = e^{i\alpha}|f(x)|. In the widget: the chain is straight only if all arrows point the same way.

Check yourself

Check yourself Enter a number

What is ∣∫02πeix dx∣\left|\int_0^{2\pi} e^{ix}\,dx\right|?

Why

∫02π(cos⁡x+isin⁡x) dx=0+0i\int_0^{2\pi}(\cos x + i\sin x)\,dx = 0 + 0i. The chain of arrows goes once round a circle and returns to its start, while ∫02π∣eix∣ dx=2π\int_0^{2\pi}|e^{ix}|\,dx = 2\pi: the inequality can be very far from equality.

Check yourself Choose one

Which of these real results is false for continuous complex ff on [a,b][a, b]?

Why

Equations carry over by taking real and imaginary parts separately, and the modulus inequality is proved in this lesson. The mean value theorem fails: for eixe^{ix} on [0,2π][0, 2\pi] the integral is 00, but ∣eiξ∣=1|e^{i\xi}| = 1. The real and imaginary parts each have their own ξ\xi, and the two need not coincide.

Check yourself True or false?

If ∣f(x)∣≤1|f(x)| \le 1 on [0,3][0, 3] then ∣∫03f(x) dx∣≤3\left|\int_0^3 f(x)\,dx\right| \le 3, even when ff is complex-valued.

Why

True: ∣∫f∣≤∫∣f∣≤∫031=3\left|\int f\right| \le \int|f| \le \int_0^3 1 = 3. In the chain picture, 33 is a bound for the length of the chain, so also for the distance between its ends.

Check yourself Choose one

For complex f=ϕ+iψf = \phi + i\psi, the inequality ∣∫f∣≤∫∣f∣\left|\int f\right| \le \int|f| is not the same as applying the real inequality to ϕ\phi and ψ\psi separately. Why not?

Why

∣∫f∣≤∣∫ϕ∣+∣∫ψ∣≤∫∣ϕ∣+∫∣ψ∣\left|\int f\right| \le \left|\int\phi\right| + \left|\int\psi\right| \le \int|\phi| + \int|\psi| is true but weaker: for f=eixf = e^{ix} on [0,π/2][0, \pi/2] it gives 22, while ∫∣f∣=π/2≈1.571\int|f| = \pi/2 \approx 1.571. The third option is wrong because ∣∫f∣2=(∫ϕ)2+(∫ψ)2|\int f|^2 = (\int\phi)^2 + (\int\psi)^2 exactly, by definition.

Hardy’s language

Summary

Summary
  • ∫(ϕ+iψ)=∫ϕ+i∫ψ\int(\phi + i\psi) = \int\phi + i\int\psi; every rule that is an equation, including the fundamental theorem, parts and the integral remainder in Taylor’s theorem, carries over.
  • A Riemann sum of a complex function is a chain of arrows; ∫f\int f joins its ends and ∫∣f∣\int|f| is its length.
  • Hence ∣∫abf∣≤∫ab∣f∣≤M(b−a)\left|\int_a^b f\right| \le \int_a^b|f| \le M(b-a): proved by the triangle inequality on the sums, or by rotating the integral onto the real axis.
  • Inequalities between complex values, and the mean value theorems, do not carry over: ∫02πeix dx=0\int_0^{2\pi} e^{ix}\,dx = 0 is not 2π2\pi times a value of eixe^{ix}.