Paths
A path (or contour) is a curve \(\gamma\) described by a function \(\gamma(t)\), \(a \le t \le b\), with values in \(\mathbb C\), made of finitely many smooth pieces. It has a direction: it starts at \(\gamma(a)\) and ends at \(\gamma(b)\). A path is closed if it ends where it starts.
Standard paths
The segment from \(p\) to \(q\): \(\gamma(t) = p + t(q - p)\), \(0 \le t \le 1\).
The circle of radius \(r\) about \(c\), traversed once anticlockwise: \(\gamma(t) = c + re^{it}\), \(0 \le t \le 2\pi\). Its velocity is \(\gamma'(t) = ire^{it}\).
Unless we say otherwise, circles are traversed anticlockwise, which is called the positive direction.
The contour integral
As in the Riemann integral, chop the path into small pieces with points \(z_0, z_1, \ldots, z_n\) along it, and add up "value times step":
Since \(\Delta z_k \approx \gamma'(t_k)\Delta t\), this becomes an ordinary integral over \(t\):
Definition
For \(f\) continuous on the path \(\gamma\),
\[ \int_\gamma f(z)\,dz = \int_a^b f(\gamma(t))\,\gamma'(t)\,dt. \]For a closed path we often write \(\oint_\gamma\).
The right side is the integral of a complex-valued function of a real variable, computed by integrating the real and imaginary parts separately. The value doesn't depend on how the path is parametrised, only on the route and the direction; reversing the direction changes the sign.
The most important integral
Let \(\gamma\) be the circle \(|z| = r\), so \(z = re^{it}\) and \(dz = ire^{it}\,dt\). For any integer \(n\),
\[ \oint_{|z| = r} z^n\,dz = \int_0^{2\pi} r^ne^{int}\cdot ire^{it}\,dt = ir^{n+1}\int_0^{2\pi} e^{i(n+1)t}\,dt. \]If \(n + 1 \neq 0\), the integral of \(e^{i(n+1)t}\) over a full period is 0. If \(n = -1\), the integrand is 1, and the integral is \(2\pi\). So:
Every power of \(z\) integrates to 0 around the circle, except \(\frac1z\). Hold on to this. In Unit 10 we'll expand functions as sums of powers \(z^n\), including negative ones, and integrating term by term will kill everything except the coefficient of \(\frac1z\). That is the residue theorem in a nutshell.
Does the route matter?
Take the two paths from 0 to \(1 + i\) below, and two functions.
For \(f(z) = \bar z\), the route matters
Along \(\gamma_1\), \(z = (1 + i)t\): \(\int_0^1 (1 - i)t\,(1 + i)\,dt = 2\int_0^1 t\,dt = 1\).
Along \(\gamma_2\): first \(z = t\), giving \(\int_0^1 t\,dt = \frac12\); then \(z = 1 + it\), \(dz = i\,dt\), giving \(\int_0^1 (1 - it)\,i\,dt = i + \frac12\). Total: \(1 + i\).
For \(f(z) = z^2\), it doesn't
Along \(\gamma_1\): \(\int_0^1 (1 + i)^3t^2\,dt = \frac{(1 + i)^3}3 = \frac{-2 + 2i}{3}\).
Along \(\gamma_2\): \(\int_0^1 t^2\,dt + \int_0^1 (1 + it)^2\,i\,dt = \frac13 + \left[\frac{(1 + it)^3}{3}\right]_0^1 = \frac13 + \frac{(1 + i)^3 - 1}{3} = \frac{-2 + 2i}3\). The same.
The difference: \(z^2\) is analytic and \(\bar z\) is not. This is the theme of Unit 8.
Antiderivatives
The reason \(z^2\) gave the same answer is that it has an antiderivative, \(\frac{z^3}3\). The fundamental theorem of calculus carries over directly:
Theorem
If \(F' = f\) on an open set containing the path \(\gamma\) from \(p\) to \(q\), then
\[ \int_\gamma f(z)\,dz = F(q) - F(p). \]In particular, \(\oint_\gamma f(z)\,dz = 0\) for every closed path \(\gamma\) in the set.
Proof
By the chain rule, \(\frac{d}{dt}F(\gamma(t)) = F'(\gamma(t))\gamma'(t) = f(\gamma(t))\gamma'(t)\). Integrate from \(a\) to \(b\) using the real fundamental theorem (on real and imaginary parts). ∎
Now look back at \(\oint \frac{dz}z = 2\pi i \neq 0\). It follows that \(\frac1z\) has no antiderivative on \(\mathbb C \setminus \{0\}\). Its natural antiderivative would be \(\log z\), and Unit 5 explained exactly why that fails: going once around 0 increases the logarithm by \(2\pi i\). The integral is measuring the same jump.
Estimating integrals
Often we don't need an integral's exact value, only to know it's small. The basic tool:
The ML estimate
If \(|f(z)| \le M\) on a path \(\gamma\) of length \(L\), then
\[ \left|\int_\gamma f(z)\,dz\right| \le ML. \]This is the triangle inequality for sums, \(\left|\sum f(z_k)\Delta z_k\right| \le \sum |f(z_k)||\Delta z_k| \le M\sum|\Delta z_k|\), passed to the limit.
Example
On the semicircle \(|z| = R\) in the upper half plane, with \(R > 1\), \(\left|\frac1{z^2 + 1}\right| \le \frac1{R^2 - 1}\), and the length is \(\pi R\). So
\[ \left|\int \frac{dz}{z^2 + 1}\right| \le \frac{\pi R}{R^2 - 1} \to 0 \quad\text{as } R \to \infty. \]This kind of estimate is the key step in computing real integrals in Unit 11.
Winding numbers
Shift the key integral: for the circle \(|z - a| = r\), \(\oint \frac{dz}{z - a} = 2\pi i\). For any closed path \(\gamma\) not passing through \(a\), define
Definition
The winding number of \(\gamma\) around \(a\) is
\[ n(\gamma, a) = \frac{1}{2\pi i}\oint_\gamma \frac{dz}{z - a}. \]It is always an integer: it counts how many times \(\gamma\) winds around \(a\) anticlockwise. The reason: along the path, \(\frac{dz}{z - a}\) is the change in \(\log(z - a)\), and the real part \(\ln|z - a|\) returns to its starting value, while the imaginary part \(\arg(z - a)\) changes by \(2\pi\) for each turn. A circle traversed twice has winding number 2; a point outside a loop has winding number 0.
Going deeper: the fundamental theorem of algebra, by winding
Winding numbers give a proof of the fundamental theorem of algebra that you can almost see. Let \(p(z) = z^n + \cdots\). For a huge circle \(|z| = R\), \(p(z) \approx z^n\), so the image curve \(p(\text{circle})\) winds \(n\) times around 0. For a tiny circle around 0, the image stays near \(p(0)\), and if \(p(0) \neq 0\), it winds 0 times. Shrink the circle from huge to tiny: the image curve deforms continuously, and its winding number around 0 must jump from \(n\) to 0. A winding number can only change when the curve passes through 0. So for some radius, \(p(z) = 0\) on the circle.
Practice set
Mixed questions covering the whole unit. Try each one before opening the answer.
1. Compute \(\displaystyle\int_\gamma z\,dz\) along the segment from 0 to \(2 + i\).
Show answer
\(z = (2 + i)t\), \(dz = (2 + i)dt\): \(\int_0^1 (2 + i)^2t\,dt = \frac{(2 + i)^2}{2} = \frac{3 + 4i}2\). (Or use the antiderivative \(\frac{z^2}2\).)
2. Compute \(\displaystyle\oint_{|z| = 2}\frac{dz}{z^3}\) and \(\displaystyle\oint_{|z - 1| = 1}\frac{dz}{z - 1}\).
Show answer
The first is 0 (power \(-3 \neq -1\)). The second is \(2\pi i\) (the shifted key integral).
3. Compute \(\displaystyle\oint_{|z| = 1}\bar z\,dz\).
Show answer
On \(|z| = 1\), \(\bar z = \frac1z\). So the integral is \(\oint\frac{dz}z = 2\pi i\). Non-zero: \(\bar z\) is not analytic.
4. Evaluate \(\displaystyle\int_\gamma e^z\,dz\) for any path from 0 to \(i\pi\).
Show answer
\(e^z\) is its own antiderivative, so the answer is \(e^{i\pi} - e^0 = -2\), whatever the path.
5. Use the ML estimate to bound \(\displaystyle\left|\oint_{|z| = 3}\frac{dz}{z^2 - 1}\right|\).
Show answer
On \(|z| = 3\), \(|z^2 - 1| \ge 9 - 1 = 8\), so \(M = \frac18\), and \(L = 6\pi\). The bound is \(\frac{3\pi}4\). (In fact the integral is 0, as Unit 11 will show.)
6. What is the winding number of the path \(\gamma(t) = e^{-3it}\), \(0 \le t \le 2\pi\), around 0?
Show answer
It goes around the unit circle three times clockwise: winding number \(-3\). Check: \(\frac1{2\pi i}\int_0^{2\pi}\frac{-3ie^{-3it}}{e^{-3it}}dt = -3\).
Summary and glossary
- \(\int_\gamma f\,dz = \int_a^b f(\gamma(t))\gamma'(t)\,dt\): the limit of sums of value times step along the path.
- \(\oint_{|z| = r} z^n\,dz\) is \(2\pi i\) for \(n = -1\) and 0 for every other integer \(n\).
- If \(f\) has an antiderivative \(F\), integrals depend only on the endpoints, and closed-loop integrals are 0.
- \(\frac1z\) has no antiderivative around 0: the integral detects the jump in \(\log z\).
- The ML estimate bounds integrals; winding numbers count turns around a point.
- Path (contour)
- A piecewise smooth curve \(\gamma(t)\) with a direction.
- Contour integral
- \(\int_\gamma f(z)\,dz\), the limit of \(\sum f(z_k)\Delta z_k\).
- Positive direction
- Anticlockwise.
- ML estimate
- \(\left|\int_\gamma f\right| \le \max|f| \times \text{length}\).
- Winding number
- \(\frac1{2\pi i}\oint_\gamma\frac{dz}{z - a}\), the number of turns of \(\gamma\) around \(a\).