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) of a real variable x. §170 defines this integral and singles out one property for later use, the inequality ∫abf≤∫ab∣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 is a sum of complex numbers, and it tends to ∫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, a Riemann sum for ∫∣f∣. A straight line is never longer than a path with the same ends, so ∣σ∣≤∑∣fv∣δv; let the pieces shrink, and ∣∫f∣≤∫∣f∣.
ExploreA complex integral as a chain of arrows
Try this.For eix, set b to about 4 and increase n. Compare the length of the chain with the length of the straight arrow. Then move b up to 2π, and try the other two functions.
∫04eixdx as a sum of 8 complex numbers f(xv)δv
ReIm
the chain: arrows f(x_v) δ_v, head to tail; its length is Σ|f_v| δ_v
For eix every arrow has length δv, so the chain has length b exactly, and it bends round a circle of radius 1: the integral is the chord, the chain is (nearly) the arc. At b=2π the chain closes up and ∫02πeixdx=0, although ∫02π∣eix∣dx=2π. The inequality is never violated, and it is close to an equality only when the arrows all point roughly the same way.
Precise statements
DefinitionIntegral of a complex functionHardy: §170
Let f(x)=ϕ(x)+iψ(x), where ϕ and ψ are real and continuous on [a,b]. Then
∫abf(x)dx=∫abϕ(x)dx+i∫abψ(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, ∫kf=k∫f now for complex constants k, the fundamental theorem (dxd∫axf=f(x), where the derivative of ϕ+iψ is ϕ′+iψ′), integration by parts, and substitution with a real ϕ. So do the formulae (1) and (2) of §167: Taylor’s theorem with the integral remainder holds for complex f.
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.
If f is a continuous complex function on [a,b], with a<b, then
∫abf(x)dx≤∫ab∣f(x)∣dx.
CorollaryA bound by the maximumHardy: Examples LXV, 13
If moreover ∣f(x)∣≤M on [a,b], then ∫abf(x)dx≤M(b−a).
Proofs
ProofThe 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 tend to ∫f, the sums ∑∣fv∣δv tend to ∫∣f∣, and the modulus is continuous.
Sums with complex values
Take a partition with pieces δv and points ξv, and write fv=f(ξv)=ϕv+iψv. Then ∑fvδv=∑ϕvδv+i∑ψvδv. As the pieces shrink, the real and imaginary parts tend to ∫ϕ and ∫ψ (§161), so ∑fvδv→∫f.
The modulus of the limit
If complex numbers σ→s then ∣σ∣→∣s∣, since ∣σ∣−∣s∣≤∣σ−s∣. So ∣∑fvδv∣→∫f.
The integral of the modulus
∣f∣=ϕ2+ψ2 is a continuous real function, so ∑∣fv∣δv→∫∣f∣.
Triangle inequality, then the limit
For every sum, ∣∑fvδv∣≤∑∣fv∣δv (Chapter III), because each δv>0. Non-strict inequalities survive limits, so ∫f≤∫∣f∣.
∎
There is also a proof without sums, which shows a useful trick: rotate the integral onto the positive real axis.
ProofThe modulus inequality by rotation
Strategy
If ∫f=0 there is nothing to prove. Otherwise write ∫f=Reiα with R>0. Multiplying by e−iα 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)dx, using linearity with the complex constant e−iα.
Take real parts
R is real, so it equals the real part of the right side, which is ∫abRe{e−iαf(x)}dx, by the definition.
Compare with the modulus
Re{e−iαf(x)}≤∣e−iαf(x)∣=∣f(x)∣ for every x, so by (6) of §165, R≤∫ab∣f∣.
∎
The corollary follows at once: ∫ab∣f∣≤∫abM=M(b−a).
Worked examples and exercises
ExerciseReal integrals by complex ones●○○Hardy: §170
Evaluate ∫0πexcosxdx and ∫0πexsinxdx together, as the real and imaginary parts of ∫0πe(1+i)xdx.
Hint
dxde(1+i)x=(1+i)e(1+i)x, where e(1+i)x means ex(cosx+isinx). Check this derivative by differentiating the real and imaginary parts.
Solution
With e(1+i)x=excosx+iexsinx, differentiating the parts gives ex(cosx−sinx)+iex(sinx+cosx)=(1+i)e(1+i)x. So 1+i1e(1+i)x is an antiderivative, and by the fundamental theorem (which holds part by part)
since e(1+i)π=eπ(cosπ+isinπ)=−eπ. Taking real and imaginary parts, ∫0πexcosxdx=−21(eπ+1) and ∫0πexsinxdx=21(eπ+1). One complex integration replaces two integrations by parts.
ExerciseOrthogonality in one line●○○Hardy: §170; cf. Examples LXIII, 9
An antiderivative of einx=cosnx+isinnx is einx/(in) for n=0.
Hint
cosmxcosnx=41(eimx+e−imx)(einx+e−inx).
Solution
For n=0, ∫02πeinxdx=ine2πin−1=0 because e2πin=1. For n=0 the integrand is 1. Now expand: cosmxcosnx=41{ei(m+n)x+ei(m−n)x+e−i(m−n)x+e−i(m+n)x}. For positive integers m,n every exponent is non-zero except ±(m−n) when m=n, and then two terms equal 1; so the integral is 0 if m=n and 41⋅2⋅2π=π if m=n. The products sinmxsinnx and cosmxsinnx are handled the same way. In the widget: with f=eix and b=2π, the chain closes up.
ExerciseNo mean value theorem for complex integrals●●○Hardy: §170
Show that there is no ξ in [0,2π] with ∫02πeixdx=2πeiξ. 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 0 (previous exercise), while ∣2πeiξ∣=2π for every real ξ. So no ξ works. The proof of (8) used two facts about real numbers: that ∫f lies between H(b−a) and 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 eix fill a circle, whose “average” 0 is not on it. What survives is the inequality: ∫abf≤(b−a)max∣f∣, which is all that is usually needed. (Taylor’s theorem for complex f must likewise be used in the integral form, not in Lagrange’s or Cauchy’s form.)
ExerciseWhen is the inequality an equality?●●●Hardy: §170
Let f be continuous on [a,b]. Show that ∫abf=∫ab∣f∣ if and only if there is a fixed α with f(x)=eiα∣f(x)∣ for every x (all the values of f point in one direction).
Hint
Follow the rotation proof. Equality forces ∫ab(∣f∣−Re{e−iαf})=0, with a non-negative continuous integrand.
If f=eiα∣f∣ then ∫f=eiα∫∣f∣ and the moduli agree. Conversely, suppose equality holds. If ∫∣f∣=0 then f≡0 (non-negative continuous function with zero integral), and any α works. Otherwise ∫f=Reiα with R=∫∣f∣>0, and as in the rotation proof R=∫Re{e−iαf}. Hence ∫(∣f∣−Re{e−iαf})=0; the integrand is continuous and ≥0, so it vanishes identically. Thus Re{e−iαf(x)}=∣e−iαf(x)∣ for every x, which says that e−iαf(x) is real and ≥0, that is, f(x)=eiα∣f(x)∣. In the widget: the chain is straight only if all arrows point the same way.
Check yourself
Check yourselfEnter a number
What is ∫02πeixdx?
Why
∫02π(cosx+isinx)dx=0+0i. The chain of arrows goes once round a circle and returns to its start, while ∫02π∣eix∣dx=2π: the inequality can be very far from equality.
Check yourselfChoose one
Which of these real results is false for continuous complex f on [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 eix on [0,2π] the integral is 0, but ∣eiξ∣=1. The real and imaginary parts each have their own ξ, and the two need not coincide.
Check yourselfTrue or false?
If ∣f(x)∣≤1 on [0,3] then ∫03f(x)dx≤3, even when f is complex-valued.
Why
True: ∫f≤∫∣f∣≤∫031=3. In the chain picture, 3 is a bound for the length of the chain, so also for the distance between its ends.
Check yourselfChoose one
For complex f=ϕ+iψ, the inequality ∫f≤∫∣f∣ is not the same as applying the real inequality to ϕ and ψ separately. Why not?
Why
∫f≤∫ϕ+∫ψ≤∫∣ϕ∣+∫∣ψ∣ is true but weaker: for f=eix on [0,π/2] it gives 2, while ∫∣f∣=π/2≈1.571. The third option is wrong because ∣∫f∣2=(∫ϕ)2+(∫ψ)2 exactly, by definition.
Hardy’s language
Summary
Summary
∫(ϕ+iψ)=∫ϕ+i∫ψ; 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 joins its ends and ∫∣f∣ is its length.
Hence ∫abf≤∫ab∣f∣≤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πeixdx=0 is not 2π times a value of eix.