Chapter 5 · Complex Analysis

5.1 Analytic Functions, Cauchy’s Theorem and Its Consequences

Complex differentiability and the Cauchy–Riemann equations, analytic and harmonic functions, contour integrals, Cauchy's theorem and integral formula — and the consequences GATE asks about most: Cauchy's estimates, Liouville, Morera and the maximum modulus principle.

A function of a complex variable $z=x+iy$ is, on paper, just a pair of real functions $u(x,y)$ and $v(x,y)$ of two real variables. What makes complex analysis a subject of its own is a single demand: that $f=u+iv$ have a derivative in the complex sense, the same limit of $\frac{f(z+h)-f(z)}{h}$ whichever way the complex number $h$ approaches $0$. This demand ties $u$ and $v$ together by the Cauchy–Riemann equations, forces both to be harmonic, and has consequences no real function shares: a complex-differentiable function on an open set is automatically differentiable infinitely often, its values inside a circle are fixed by its values on the circle, and if it is bounded on the whole plane it is constant. These facts are used by electrical engineers (phasors and impedance), by aerodynamicists (two-dimensional potential flow, where $u$ and $v$ are the velocity potential and the stream function), and throughout mathematics, from number theory to probability.

In GATE MA this section supplies a steady stream of marks. MCQs ask where a given $f=u+iv$ is differentiable or analytic, for a harmonic conjugate, or for the value of a contour integral by Cauchy's integral formula; MSQs list statements about analytic, entire and harmonic functions and expect you to spot which follow from Liouville's theorem or the maximum modulus principle and which are traps; NATs ask for the value of an integral or of a maximum of $|f|$ on a disc, correct to two decimal places. The tools are the partial derivatives and the chain rule of §1.1 and Green's theorem from §2.2; the series side of the story — Taylor and Laurent expansions, singularities and residues — is in §5.2.

Limits, Continuity and the Complex Derivative

Throughout, $z=x+iy$ and $f=u+iv$ with $u=\operatorname{Re}f$, $v=\operatorname{Im}f$ real-valued. We write $D(a,r)=\{z:|z-a|\lt r\}$ for the open disc, $D'(a,r)=D(a,r)\setminus\{a\}$ for the punctured disc, $\mathbb{D}=D(0,1)$ for the unit disc, and $C(a,r)$ for the circle $|z-a|=r$ traversed once anticlockwise.

📘 Definition 5.1 — Domains, limits and continuity
  • A set $U\subseteq\mathbb{C}$ is open if every point of $U$ is the centre of some disc $D(a,r)\subseteq U$. A domain is a nonempty open connected set (any two points can be joined by a polygonal path inside it).
  • Let $f$ be defined on $U$ and let $a$ be a limit point of $U$. Then $\lim_{z\to a}f(z)=L$ if for every $\varepsilon\gt0$ there is $\delta\gt0$ with $|f(z)-L|\lt\varepsilon$ whenever $z\in U$ and $0\lt|z-a|\lt\delta$.
  • $f$ is continuous at $a\in U$ if $\lim_{z\to a}f(z)=f(a)$. Because $|\operatorname{Re}w|,|\operatorname{Im}w|\le|w|\le|\operatorname{Re}w|+|\operatorname{Im}w|$, $f$ is continuous exactly when $u$ and $v$ are continuous as functions of $(x,y)$.

As in §1.1, a limit in the plane must be the same along every path of approach. For instance $f(z)=z/\bar z$ has no limit at $0$: on the real axis it equals $1$, on the imaginary axis $-1$.

📘 Definition 5.2 — Complex derivative; analytic and entire functions

Let $U$ be open and $a\in U$. The function $f:U\to\mathbb{C}$ is (complex) differentiable at $a$ if the limit

$$f'(a)=\lim_{h\to0}\frac{f(a+h)-f(a)}{h}\qquad(h\in\mathbb{C},\ h\ne0)$$

exists. $f$ is analytic (or holomorphic) on $U$ if it is differentiable at every point of $U$, and analytic at a point $a$ if it is analytic on some disc $D(a,r)$. A function analytic on all of $\mathbb{C}$ is entire.

The algebra of derivatives is the same as for real functions, with the same proofs: sums, products, quotients (where the denominator is nonzero) and compositions of differentiable functions are differentiable, with the usual rules, and $(z^n)'=nz^{n-1}$. So polynomials are entire and a rational function $p/q$ is analytic wherever $q\ne0$. In §5.2 we shall see that $e^z$, $\sin z$, $\cos z$ are entire, with $(e^z)'=e^z$, and that the principal logarithm $\operatorname{Log}z=\log|z|+i\operatorname{Arg}z$ is analytic on the cut plane $\mathbb{C}\setminus(-\infty,0]$, with derivative $1/z$.

The extra strength of the definition is that $h$ is complex. Take $f(z)=\bar z$: the quotient $\frac{\overline{a+h}-\bar a}{h}=\frac{\bar h}{h}$ equals $1$ for real $h$ and $-1$ for purely imaginary $h$. So $\bar z$ is differentiable nowhere, although its real and imaginary parts $x$ and $-y$ are as smooth as real functions can be.

The Cauchy–Riemann Equations

📐 Theorem 5.1 — The Cauchy–Riemann equations are necessary
If $f=u+iv$ is differentiable at $a=x_0+iy_0$, then the four first partial derivatives of $u$ and $v$ exist at $(x_0,y_0)$ and satisfy the Cauchy–Riemann (CR) equations $$u_x=v_y,\qquad u_y=-v_x\qquad\text{at }(x_0,y_0).$$ Moreover $f'(a)=u_x+iv_x=v_y-iu_y$ there.

Proof. Let $h\to0$ through real values $h=t$. The quotient $\frac{f(a+t)-f(a)}{t}$ has real part $\frac{u(x_0+t,y_0)-u(x_0,y_0)}{t}$ and imaginary part $\frac{v(x_0+t,y_0)-v(x_0,y_0)}{t}$, and since the quotient tends to $f'(a)$, so do its real and imaginary parts: $u_x$ and $v_x$ exist and $f'(a)=u_x+iv_x$. Now let $h=it$ with $t$ real. The same argument, with increments in $y$, gives

$$\frac{f(a+it)-f(a)}{it}\to\frac1i\left(u_y+iv_y\right)=v_y-iu_y.$$

The two limits are both $f'(a)$, so $u_x+iv_x=v_y-iu_y$; comparing real and imaginary parts gives the CR equations. ∎

The CR equations alone do not give differentiability (Example 2 below). What is missing is that $u$ and $v$ must also be differentiable as real functions — and that is guaranteed when their partials are continuous.

📐 Theorem 5.2 — When the Cauchy–Riemann equations are sufficient
Let $u,v$ be defined on a neighbourhood of $(x_0,y_0)$. Then $f=u+iv$ is complex differentiable at $a=x_0+iy_0$ if and only if $u$ and $v$ are differentiable at $(x_0,y_0)$ as real functions of two variables and satisfy the CR equations there. In particular, if the first partials of $u$ and $v$ exist near $(x_0,y_0)$, are continuous at $(x_0,y_0)$ and satisfy the CR equations there, then $f$ is differentiable at $a$; and if $u,v\in C^1(U)$ satisfy the CR equations on an open set $U$, then $f$ is analytic on $U$.

Proof. Write $h=h_1+ih_2$. Suppose $u,v$ are differentiable at $(x_0,y_0)$ and satisfy CR there; put $\alpha=u_x=v_y$ and $\beta=v_x=-u_y$. Real differentiability means

$$\begin{aligned}u(a+h)-u(a)&=\alpha h_1-\beta h_2+\varepsilon_1(h)|h|,\\ v(a+h)-v(a)&=\beta h_1+\alpha h_2+\varepsilon_2(h)|h|,\end{aligned}$$

with $\varepsilon_1,\varepsilon_2\to0$ as $h\to0$. Hence $f(a+h)-f(a)$ $=(\alpha+i\beta)h+(\varepsilon_1+i\varepsilon_2)|h|$, and dividing by $h$ (note $\big||h|/h\big|=1$) gives $\frac{f(a+h)-f(a)}{h}\to\alpha+i\beta$. Conversely, if $f'(a)=\alpha+i\beta$ exists, then $f(a+h)-f(a)-(\alpha+i\beta)h=o(|h|)$, and taking real and imaginary parts shows that $u,v$ are differentiable with exactly the partials above, which satisfy CR. The second statement follows because continuous partials imply real differentiability (§1.1). ∎

Geometric meaning. At a point of differentiability the Jacobian matrix of $(u,v)$ is $\begin{pmatrix}u_x&u_y\\v_x&v_y\end{pmatrix}=\begin{pmatrix}\alpha&-\beta\\\beta&\alpha\end{pmatrix}$, which is $|f'(a)|$ times a rotation by $\arg f'(a)$; its determinant is $\alpha^2+\beta^2=|f'(a)|^2$. Near $a$, $f$ turns every small circle about $a$ into (approximately) a circle about $f(a)$, rotating it by $\arg f'(a)$ and stretching it by $|f'(a)|$; in particular, when $f'(a)\ne0$, it preserves angles between curves. A non-analytic map such as $x+2iy$ turns small circles into ellipses. Interactive 1 shows both.

📐 Theorem 5.3 — The Cauchy–Riemann equations in polar form
Let $u,v$ be $C^1$ functions of polar coordinates $(r,\theta)$ on an open set not containing $0$. Then $f=u+iv$ is analytic there if and only if $$u_r=\frac1r\,v_\theta,\qquad v_r=-\frac1r\,u_\theta,$$ and then $f'(z)=e^{-i\theta}\left(u_r+iv_r\right)$.

Proof. With $x=r\cos\theta$, $y=r\sin\theta$ the chain rule gives $u_r=u_x\cos\theta+u_y\sin\theta$ and $u_\theta=-ru_x\sin\theta+ru_y\cos\theta$, and similarly for $v$. If the Cartesian CR equations hold, then

$$\begin{aligned}v_\theta&=-rv_x\sin\theta+rv_y\cos\theta\\&=ru_y\sin\theta+ru_x\cos\theta=ru_r,\\ v_r&=v_x\cos\theta+v_y\sin\theta\\&=-u_y\cos\theta+u_x\sin\theta=-\tfrac1ru_\theta.\end{aligned}$$

The converse follows by solving the same linear relations (their determinant is $r\ne0$). Finally, using $v_r=u_x\sin\theta-u_y\cos\theta$,

$$\begin{aligned}e^{-i\theta}(u_r+iv_r)&=(\cos\theta-i\sin\theta)\big[(u_x\cos\theta+u_y\sin\theta)\\&\qquad+i(u_x\sin\theta-u_y\cos\theta)\big]\\&=u_x-iu_y=u_x+iv_x=f'(z).\qquad\blacksquare\end{aligned}$$

For example, $\operatorname{Log}z=\log r+i\theta$ on $\mathbb{C}\setminus(-\infty,0]$ has $u_r=\frac1r=\frac1rv_\theta$ and $v_r=0=-\frac1ru_\theta$, so it is analytic with derivative $e^{-i\theta}\cdot\frac1r=\frac1z$.

📐 Theorem 5.4 — Rigidity: when an analytic function must be constant
Let $f=u+iv$ be analytic on a domain $G$. Each of the following implies that $f$ is constant on $G$: (a) $f'\equiv0$; (b) $u$ is constant, or $v$ is constant; (c) $|f|$ is constant; (d) $f$ takes only real values (or only values on a fixed line); (e) $\bar f$ is also analytic on $G$.

Proof. (a) By Theorem 5.1, $f'=u_x+iv_x=v_y-iu_y$, so all four partials vanish. Then $u$ and $v$ are constant along every horizontal or vertical segment in $G$ (one-variable mean value theorem), and since any two points of the domain $G$ can be joined by a path made of such segments, $u$ and $v$ are constant. (b) If $u$ is constant, $u_x=u_y=0$, so $v_y=v_x=0$ by CR and $f'=0$; use (a). The case $v$ constant is the same. (d) is (b) with $v\equiv0$; for a line $\{p+tq\}$, apply (b) to $\operatorname{Im}\big((f-p)/q\big)$. (c) Let $u^2+v^2=c$. If $c=0$, $f\equiv0$. Otherwise differentiate: $uu_x+vv_x=0$ and $uu_y+vv_y=0$; with CR these read $uu_x-vu_y=0$ and $vu_x+uu_y=0$, a linear system for $(u_x,u_y)$ with determinant $u^2+v^2=c\ne0$. So $u_x=u_y=0$ and (b) applies. (e) $f+\bar f=2u$ is then analytic and real-valued, so $u$ is constant by (d), and (b) applies. ∎

✏️ Example 1 — Where is it differentiable? Where is it analytic?
Determine the points where each function is differentiable and the open set where it is analytic: (a) $f(z)=x^2+iy^2$; (b) $g(z)=|z|^2$; (c) $h(z)=e^{\bar z}=e^x(\cos y-i\sin y)$.
(a) $u=x^2$, $v=y^2$: $u_x=2x$, $v_y=2y$, $u_y=v_x=0$. The CR equations hold exactly when $x=y$. All partials are continuous, so by Theorem 5.2 $f$ is differentiable at every point of the line $y=x$ (with $f'=u_x+iv_x=2x$) and nowhere else. A line contains no disc, so $f$ is analytic nowhere.
(b) $u=x^2+y^2$, $v=0$: CR requires $2x=0$ and $2y=0$. So $g$ is differentiable only at $z=0$, with $g'(0)=0$ — and analytic nowhere.
(c) $u=e^x\cos y$, $v=-e^x\sin y$: $u_x=e^x\cos y$, $v_y=-e^x\cos y$, so $u_x=v_y$ needs $\cos y=0$; $u_y=-e^x\sin y$, $-v_x=e^x\sin y$, so $u_y=-v_x$ needs $\sin y=0$. Both cannot hold, so $h$ is differentiable nowhere.
Lesson "Differentiable at a point" and "analytic at a point" are different: analyticity at $a$ needs differentiability on a whole disc about $a$.
✏️ Example 2 — The Cauchy–Riemann equations at a point are not enough
Let $f(z)=\dfrac{\bar z^{\,2}}{z}$ for $z\ne0$ and $f(0)=0$. Show that $f$ is continuous at $0$ and that the CR equations hold at $0$, but that $f$ is not differentiable at $0$. Which hypothesis of Theorem 5.2 fails?
Continuity $|f(z)|=|z|^2/|z|=|z|\to0$.
Partials at 0 On the real axis $f(x)=x^2/x=x$, so $u(x,0)=x$, $v(x,0)=0$: $u_x=1$, $v_x=0$. On the imaginary axis $\bar z^2=(-iy)^2=-y^2$ and $f(iy)=-y^2/(iy)=iy$, so $u(0,y)=0$, $v(0,y)=y$: $u_y=0$, $v_y=1$. Hence $u_x=v_y=1$ and $u_y=-v_x=0$ at the origin.
No derivative For $h=\rho e^{i\varphi}$: $\dfrac{f(h)-f(0)}{h}=\dfrac{\bar h^2}{h^2}=e^{-4i\varphi}$. Along $\varphi=0$ this is $1$, along $\varphi=\pi/4$ it is $-1$. No limit.
Diagnosis In Cartesian form $u=\dfrac{x^3-3xy^2}{x^2+y^2}$, $v=\dfrac{y^3-3x^2y}{x^2+y^2}$. These are not differentiable at the origin as real functions (the partials look only along the axes, and the quotient above changes with the direction), so the "if and only if" of Theorem 5.2 is not contradicted. Interactive 1 (last function) shows the image of a small circle round $0$: it wraps three times the wrong way round, while the partials predict a circle traced once.

Harmonic Functions and Harmonic Conjugates

📘 Definition 5.3 — Harmonic function; harmonic conjugate
A real function $u\in C^2(G)$ on an open set $G\subseteq\mathbb{R}^2$ is harmonic if it satisfies Laplace's equation $\Delta u=u_{xx}+u_{yy}=0$ on $G$. If $u$ and $v$ are real functions on $G$ such that $u+iv$ is analytic on $G$, then $v$ is called a harmonic conjugate of $u$ on $G$.
📐 Theorem 5.5 — Analytic functions and harmonic functions
  1. If $f=u+iv$ is analytic on $G$, then $u$ and $v$ are harmonic on $G$; $v$ is a harmonic conjugate of $u$, and $-u$ is a harmonic conjugate of $v$.
  2. If $G$ is a disc, a rectangle, the whole plane or, more generally, a simply connected domain, every harmonic function $u$ on $G$ has a harmonic conjugate on $G$, unique up to an additive real constant.
  3. Where $f'\ne0$, the level curves $u=c_1$ and $v=c_2$ cross at right angles.

Proof. (1) An analytic function has derivatives of all orders (Theorem 5.12 below), so $u,v\in C^\infty$. From $u_x=v_y$ and $u_y=-v_x$: $u_{xx}=v_{yx}$ and $u_{yy}=-v_{xy}$, so $u_{xx}+u_{yy}=0$ by equality of mixed partials; similarly $v_{xx}+v_{yy}=-u_{yx}+u_{xy}=0$. Also $-if=v-iu$ is analytic, so $-u$ is a conjugate of $v$.

(2) For a disc $G=D((x_0,y_0),r)$ define

$$v(x,y)=-\int_{x_0}^{x}u_y(t,y_0)\,dt+\int_{y_0}^{y}u_x(x,s)\,ds,$$

integrating along the horizontal and then the vertical segment, both of which lie in the disc. Then $v_y=u_x$ directly, and differentiating under the integral sign (using $u_{xx}=-u_{yy}$),

$$\begin{aligned}v_x&=-u_y(x,y_0)+\int_{y_0}^{y}u_{xx}(x,s)\,ds\\&=-u_y(x,y_0)-\int_{y_0}^{y}u_{yy}(x,s)\,ds=-u_y(x,y).\end{aligned}$$

So $u,v$ are $C^1$ and satisfy CR, and $u+iv$ is analytic by Theorem 5.2. (The same formula works on a rectangle and on $\mathbb{R}^2$; for a general simply connected domain one shows instead that the analytic function $g=u_x-iu_y$ has a primitive, by Cauchy's theorem below.) If $v_1,v_2$ are two conjugates, $i(v_1-v_2)=(u+iv_1)-(u+iv_2)$ is analytic with constant real part $0$, hence constant by Theorem 5.4. (3) $\nabla u\cdot\nabla v=u_xv_x+u_yv_y=u_x(-u_y)+u_yu_x=0$, and $|\nabla u|=|\nabla v|=|f'|\ne0$. ∎

On a domain with a hole a conjugate may fail to exist. The function $u=\log|z|=\tfrac12\log(x^2+y^2)$ is harmonic on $\mathbb{C}\setminus\{0\}$; locally its conjugates are the branches of $\arg z$, but no single continuous branch of $\arg z$ exists on the whole punctured plane (Exercise II.5 proves this).

📐 Theorem 5.6 — The Milne–Thomson method
Let $f=u+iv$ be analytic on a domain $G$ that contains a segment of the real axis, and suppose the functions $\phi_1(z)=u_x(z,0)$ and $\phi_2(z)=u_y(z,0)$, obtained by putting $x=z$, $y=0$ in $u_x$ and $u_y$, are analytic on $G$ (as they are when $u$ is built from polynomials, $e^x$, $\sin$, $\cos$). Then $$f'(z)=\phi_1(z)-i\,\phi_2(z),\qquad f(z)=\int\left(\phi_1(z)-i\phi_2(z)\right)dz+iC\ \ (C\in\mathbb{R}).$$ Similarly, if $v$ is given, $f'(z)=v_y(z,0)+i\,v_x(z,0)$.

Proof. For real $x$ in the segment, Theorem 5.1 gives $f'(x)=u_x(x,0)-iu_y(x,0)=\phi_1(x)-i\phi_2(x)$. Both sides are analytic on $G$ and agree on a segment, so they agree on all of $G$ by the identity theorem (§5.2). Integrating, $f$ is determined up to a constant, whose real part is fixed by $u$. ∎

✏️ Example 3 — Finding a harmonic conjugate two ways
Let $u(x,y)=x^3-3xy^2+3x^2-3y^2+2y$. (a) Show that $u$ is harmonic. (b) Find a harmonic conjugate $v$ by integrating the CR equations. (c) Find the analytic $f=u+iv$ with $f(0)=0$ by Milne–Thomson. (d) Is there an analytic function with real part $x^2+y^2$?
(a) $u_x=3x^2-3y^2+6x$, $u_y=-6xy-6y+2$, $u_{xx}=6x+6$, $u_{yy}=-6x-6$. So $\Delta u=0$ on $\mathbb{R}^2$.
(b) CR $v_y=u_x=3x^2-3y^2+6x$ gives $v=3x^2y-y^3+6xy+\psi(x)$. Then $v_x=6xy+6y+\psi'(x)$ must equal $-u_y=6xy+6y-2$, so $\psi'(x)=-2$ and $v=3x^2y-y^3+6xy-2x+C$.
(c) Milne–Thomson $\phi_1(z)=u_x(z,0)=3z^2+6z$, $\phi_2(z)=u_y(z,0)=2$. So $f'(z)=3z^2+6z-2i$ and $f(z)=z^3+3z^2-2iz$ (the constant is $0$ because $f(0)=0$). Check: $\operatorname{Re}(-2iz)=\operatorname{Re}(-2ix+2y)=2y$, and $\operatorname{Im}f=3x^2y-y^3+6xy-2x$, matching (b) with $C=0$.
(d) No: $\Delta(x^2+y^2)=4\ne0$, and real parts of analytic functions are harmonic (Theorem 5.5).
🧭 Analytic or not? A GATE checklist
  1. Write $f=u+iv$ and compute the four partials. Solve $u_x=v_y$, $u_y=-v_x$: the solution set is where $f$ can be differentiable.
  2. If the partials are continuous there (polynomials, exponentials…), $f$ is differentiable exactly on that set (Theorem 5.2). It is analytic only on the interior of that set: a curve or a finite set gives "analytic nowhere".
  3. Quick test: an expression that genuinely involves $\bar z$ (such as $|z|^2=z\bar z$, $\operatorname{Re}z=\frac{z+\bar z}{2}$) is not analytic on any open set. Formally, $f$ is analytic iff $\frac{\partial f}{\partial\bar z}=\frac12(f_x+if_y)=0$, which is the CR equations in one line.
  4. Given $u$, check $\Delta u=0$ first; then use Milne–Thomson (fastest) or integrate the CR equations.
  5. For a "which are constant" question, reduce to Theorem 5.4: real part, imaginary part or modulus constant, or a relation like $v=u^2$ (Exercise I.6).

Contour Integrals and Cauchy's Theorem

📘 Definition 5.4 — Contours and contour integrals

A contour is a continuous map $\gamma:[\alpha,\beta]\to\mathbb{C}$ that is piecewise continuously differentiable. It is closed if $\gamma(\alpha)=\gamma(\beta)$, and a simple closed contour if, in addition, it has no other self-intersections; a simple closed contour is positively oriented if its inside lies to the left (anticlockwise). For $f$ continuous on the trace of $\gamma$,

$$\int_\gamma f(z)\,dz=\int_\alpha^\beta f(\gamma(t))\,\gamma'(t)\,dt,\qquad L(\gamma)=\int_\alpha^\beta|\gamma'(t)|\,dt.$$

We write $\oint_\gamma$ when $\gamma$ is closed. For $C(a,r)$ we use $\gamma(t)=a+re^{it}$, $0\le t\le2\pi$.

📐 Theorem 5.7 — Properties of contour integrals; the ML-inequality
The integral is linear in $f$, does not change under an orientation-preserving reparametrisation, changes sign when the orientation is reversed, and is additive when contours are joined end to end. If $|f(z)|\le M$ on the trace of $\gamma$, then $$\left|\int_\gamma f(z)\,dz\right|\le M\,L(\gamma).$$

Proof of the ML-inequality. Let $I=\int_\gamma f\,dz$ and write $I=|I|e^{i\varphi}$. Since $e^{-i\varphi}I=|I|$ is real, only the real part of the integrand contributes:

$$\begin{aligned}|I|&=\int_\alpha^\beta\operatorname{Re}\left(e^{-i\varphi}f(\gamma(t))\gamma'(t)\right)dt\\&\le\int_\alpha^\beta|f(\gamma(t))|\,|\gamma'(t)|\,dt\le M\,L(\gamma).\end{aligned}$$

The other properties follow from the substitution rule and additivity of real integrals. ∎

The basic integral. For every integer $n$ and every $r\gt0$,

$$\oint_{C(a,r)}(z-a)^n\,dz=\int_0^{2\pi}r^ne^{int}\,ire^{it}\,dt=ir^{n+1}\int_0^{2\pi}e^{i(n+1)t}\,dt=\begin{cases}2\pi i,&n=-1,\\0,&n\ne-1.\end{cases}$$
📐 Theorem 5.8 — Fundamental theorem for contour integrals
Let $f$ be continuous on a domain $G$. If $f$ has a primitive $F$ on $G$ (that is, $F'=f$ on $G$), then for every contour $\gamma$ in $G$ from $z_1$ to $z_2$, $\int_\gamma f\,dz=F(z_2)-F(z_1)$; in particular $\oint_\gamma f\,dz=0$ for every closed contour in $G$. Conversely, if $\oint_\gamma f\,dz=0$ for every closed contour $\gamma$ in $G$, then $f$ has a primitive on $G$.

Proof. On each smooth piece, $\frac{d}{dt}F(\gamma(t))=F'(\gamma(t))\gamma'(t)=f(\gamma(t))\gamma'(t)$, so the real fundamental theorem of calculus, applied to the real and imaginary parts and summed over the pieces, gives $F(z_2)-F(z_1)$. Conversely, fix $z_0\in G$ and let $F(z)=\int_{z_0}^zf$ along any contour in $G$; this is well defined because the integrals along two contours from $z_0$ to $z$ differ by an integral over a closed contour. For $h$ small, the segment $[z,z+h]$ lies in $G$, and

$$\left|\frac{F(z+h)-F(z)}{h}-f(z)\right|=\left|\frac1h\int_{[z,z+h]}\big(f(w)-f(z)\big)\,dw\right|\le\max_{w\in[z,z+h]}|f(w)-f(z)|\to0$$

by the ML-inequality and continuity. So $F'=f$. ∎

Thus $\oint_\gamma p(z)\,dz=0$ for every polynomial $p$ and every closed contour, and $\int_\gamma e^z\,dz=e^{z_2}-e^{z_1}$ along any path. But $\frac1z$ has no primitive on $\mathbb{C}\setminus\{0\}$, since $\oint_{C(0,1)}\frac{dz}{z}=2\pi i\ne0$ — even though it has the primitive $\operatorname{Log}z$ on the smaller domain $\mathbb{C}\setminus(-\infty,0]$.

✏️ Example 4 — Path dependence and the ML-inequality
(a) Compute $\int_\gamma\bar z\,dz$ from $0$ to $1+i$ along the segment, and along the path $0\to1\to1+i$. (b) Compute $\oint_{C(c,r)}\bar z\,dz$. (c) Compute $\int_\gamma z^2\,dz$ along any path from $0$ to $1+i$. (d) Show that $\oint_{C(0,R)}\frac{dz}{z^2+1}\to0$ as $R\to\infty$.
(a) Segment: $z=(1+i)t$, $\bar z=(1-i)t$, $dz=(1+i)\,dt$, so $\int_0^1(1-i)(1+i)t\,dt=2\cdot\tfrac12=1$. Broken path: on $[0,1]$, $\int_0^1t\,dt=\tfrac12$; on $z=1+it$, $\bar z=1-it$, $dz=i\,dt$: $\int_0^1(1-it)\,i\,dt=\int_0^1(i+t)\,dt=i+\tfrac12$. Total $1+i\ne1$: the integral depends on the path, so $\bar z$ has no primitive on any domain containing these paths.
(b) $z=c+re^{it}$, $\bar z=\bar c+re^{-it}$, $dz=ire^{it}dt$: $\int_0^{2\pi}\bar c\,ire^{it}dt=0$ and $\int_0^{2\pi}re^{-it}\,ire^{it}dt=2\pi ir^2$. So $\oint_{C(c,r)}\bar z\,dz=2\pi ir^2$ — $2i$ times the area enclosed, whatever the centre.
(c) $z^2$ has the primitive $z^3/3$, so the answer is $\frac{(1+i)^3}{3}=\frac{-2+2i}{3}$ for every path.
(d) On $|z|=R\gt1$: $|z^2+1|\ge|z|^2-1=R^2-1$, so $\left|\oint\frac{dz}{z^2+1}\right|\le\frac{2\pi R}{R^2-1}\to0$. (In fact the integral is exactly $0$ for every $R\gt1$, by the residue theorem of §5.2 — but the ML-estimate is the tool used for the real integrals there.)
📐 Theorem 5.9 — Cauchy's theorem (Cauchy–Goursat)
Let $f$ be analytic on a simply connected domain $G$. Then $\oint_\gamma f(z)\,dz=0$ for every closed contour $\gamma$ in $G$, and $f$ has a primitive on $G$. Equivalently, in the form most used: if $\gamma$ is a simple closed contour and $f$ is analytic on an open set containing $\gamma$ and its inside, then $\oint_\gamma f(z)\,dz=0$.

Here a domain $G$ is simply connected if the inside of every simple closed contour in $G$ lies in $G$ ("no holes"): discs, half-planes, convex sets and the cut plane $\mathbb{C}\setminus(-\infty,0]$ are simply connected, the punctured disc and the annulus are not.

Proof (under the extra assumption that $f'$ is continuous). Let $\gamma$ be a positively oriented simple closed contour bounding a region $R$ on which $f$ is analytic. Writing $dz=dx+i\,dy$,

$$\oint_\gamma f\,dz=\oint_\gamma(u\,dx-v\,dy)+i\oint_\gamma(v\,dx+u\,dy).$$

By Green's theorem (§2.2), $\oint_\gamma P\,dx+Q\,dy=\iint_R(Q_x-P_y)\,dA$. With $P=u$, $Q=-v$ the first integral becomes $\iint_R(-v_x-u_y)\,dA=0$, and with $P=v$, $Q=u$ the second becomes $\iint_R(u_x-v_y)\,dA=0$, both by the CR equations. The existence of a primitive then follows from Theorem 5.8 (for closed contours that are not simple one decomposes them into simple loops). ∎

Goursat's idea (no continuity of $f'$ needed). Let $T$ be a closed triangle in $G$ and $c=\left|\oint_{\partial T}f\right|$. Joining the midpoints splits $T$ into four triangles; the four boundary integrals add up to $\oint_{\partial T}f$ (the inner edges cancel), so one of them has modulus at least $c/4$. Repeating gives nested triangles $T_n$ with $\left|\oint_{\partial T_n}f\right|\ge c/4^n$, perimeter $p/2^n$ and diameter $d/2^n$, shrinking to a point $z_0$. Write $f(z)=f(z_0)+f'(z_0)(z-z_0)+\varepsilon(z)(z-z_0)$ with $\varepsilon(z)\to0$. The linear part has a primitive, so it integrates to $0$, and the ML-inequality gives $c/4^n\le\max_{T_n}|\varepsilon|\cdot\frac{d}{2^n}\cdot\frac{p}{2^n}$. So $c\le dp\max_{T_n}|\varepsilon|\to0$. From triangles one passes to primitives on discs and then to general simply connected domains; the details are in the Go deeper links below.

📐 Theorem 5.10 — Deformation of contours
Let $\gamma$ be a positively oriented simple closed contour and $\gamma_1,\dots,\gamma_n$ positively oriented simple closed contours inside $\gamma$, whose insides are disjoint. If $f$ is analytic on an open set containing the closed region that lies inside $\gamma$ and outside every $\gamma_k$, then $$\oint_\gamma f(z)\,dz=\sum_{k=1}^n\oint_{\gamma_k}f(z)\,dz.$$ In particular ($n=1$), a contour may be shrunk or deformed across any region where $f$ is analytic without changing the integral.

Proof. Join $\gamma$ to each $\gamma_k$ by cross-cuts (segments) inside the region. The cuts divide the region into pieces, each bounded by a simple closed contour on whose inside $f$ is analytic, so each boundary integral is $0$ by Theorem 5.9. Adding them, every cut is traversed once in each direction and cancels, the outer pieces assemble $\gamma$ anticlockwise and the inner pieces assemble each $\gamma_k$ clockwise. Hence $\oint_\gamma f-\sum_k\oint_{\gamma_k}f=0$. ∎

Combining Theorem 5.10 with the basic integral: for any positively oriented simple closed contour $\gamma$ and $a\notin\gamma$,

$$\oint_\gamma\frac{dz}{z-a}=\begin{cases}2\pi i,&a\text{ inside }\gamma,\\0,&a\text{ outside }\gamma.\end{cases}$$

Cauchy's Integral Formula and Its Consequences

📐 Theorem 5.11 — Cauchy's integral formula
Let $\gamma$ be a positively oriented simple closed contour, and let $f$ be analytic on an open set containing $\gamma$ and its inside. Then for every point $a$ inside $\gamma$, $$f(a)=\frac1{2\pi i}\oint_\gamma\frac{f(z)}{z-a}\,dz.$$

Proof. The integrand is analytic except at $a$, so by Theorem 5.10 we may replace $\gamma$ by any small circle $C(a,\rho)$ inside it:

$$\oint_\gamma\frac{f(z)}{z-a}\,dz=f(a)\oint_{C(a,\rho)}\frac{dz}{z-a}+\oint_{C(a,\rho)}\frac{f(z)-f(a)}{z-a}\,dz=2\pi i\,f(a)+J(\rho).$$

By the ML-inequality (length $2\pi\rho$, integrand at most $\max|f(z)-f(a)|/\rho$), $|J(\rho)|\le2\pi\max_{|z-a|=\rho}|f(z)-f(a)|$, which tends to $0$ as $\rho\to0$ by continuity of $f$. But $J(\rho)$ does not depend on $\rho$ (the other two terms do not), so $J(\rho)=0$. ∎

Cauchy's formula says that an analytic function is completely determined inside a circle by its values on the circle. Differentiating under the integral sign — legitimate because $\frac{1}{z-a}$ depends smoothly on $a$ while $z$ stays on $\gamma$ — gives the next theorem, the source of most of the magic.

📐 Theorem 5.12 — Derivatives of all orders; Cauchy's estimates
Under the hypotheses of Theorem 5.11, $f$ has derivatives of every order at every point $a$ inside $\gamma$, and $$f^{(n)}(a)=\frac{n!}{2\pi i}\oint_\gamma\frac{f(z)}{(z-a)^{n+1}}\,dz\qquad(n=0,1,2,\dots).$$ Consequently an analytic function on an open set is infinitely differentiable there, and so is each of its derivatives. Cauchy's estimates: if $f$ is analytic on an open set containing the closed disc $\overline{D}(a,R)$ and $|f(z)|\le M$ on $|z-a|=R$, then $$|f^{(n)}(a)|\le\frac{n!\,M}{R^n}.$$

Proof (sketch). For $n=1$: by Theorem 5.11, $\frac{f(a+h)-f(a)}{h}=\frac1{2\pi i}\oint_\gamma\frac{f(z)}{(z-a-h)(z-a)}\,dz$. As $h\to0$ the integrand converges to $\frac{f(z)}{(z-a)^2}$ uniformly on $\gamma$ (the distance from $a+h$ to $\gamma$ stays bounded below), so the limit can be taken under the integral sign; this gives the formula for $f'(a)$. The same argument applied to this new formula gives $f''$, and induction gives all $n$. For the estimates, take $\gamma=C(a,R)$ and use the ML-inequality: $|f^{(n)}(a)|\le\frac{n!}{2\pi}\cdot\frac{M}{R^{n+1}}\cdot2\pi R$. ∎

✏️ Example 5 — Integrals by Cauchy's formula
Evaluate, with every circle positively oriented: (a) $\displaystyle\oint_{|z|=3}\frac{\cos\pi z}{(z-1)(z-2)}\,dz$; (b) $\displaystyle\oint_{|z-i|=1}\frac{e^z}{(z-i)^3}\,dz$; (c) $\displaystyle\oint_{|z|=1}\frac{\sin z}{z^4}\,dz$; (d) $\displaystyle\oint_{|z|=1/2}\frac{dz}{z(z-1)}$.
(a) Both $1$ and $2$ are inside $|z|=3$. Partial fractions: $\frac{1}{(z-1)(z-2)}=\frac1{z-2}-\frac1{z-1}$. By Theorem 5.11 with $f=\cos\pi z$: $2\pi i(\cos2\pi-\cos\pi)=2\pi i\,(1+1)=4\pi i$.
(b) Theorem 5.12 with $n=2$, $f=e^z$, $a=i$: $\frac{2\pi i}{2!}f''(i)=\pi i\,e^{i}$.
(c) $n=3$, $f=\sin z$: $f'''(z)=-\cos z$, so the integral is $\frac{2\pi i}{3!}(-1)=-\frac{\pi i}{3}$.
(d) Only $z=0$ is inside $|z|=\tfrac12$; with $f(z)=\frac1{z-1}$, analytic on $|z|\lt1$: $2\pi i\,f(0)=-2\pi i$.
Check Interactive 2 computes such integrals numerically: choose $\frac{e^z}{z-1}$ or $\frac{\cos z}{z^2}$ and move the circle so that the singular point enters and leaves it.
📐 Theorem 5.13 — Liouville's theorem
A bounded entire function is constant. More generally, if $f$ is entire and $|f(z)|\le A+B|z|^k$ for all $z$ (constants $A,B\ge0$, $k\ge0$ an integer), then $f$ is a polynomial of degree at most $k$.

Proof. If $|f|\le M$ on $\mathbb{C}$, Cauchy's estimate with $n=1$ on $C(a,R)$ gives $|f'(a)|\le M/R$ for every $R\gt0$; letting $R\to\infty$, $f'(a)=0$ for every $a$, and $f$ is constant by Theorem 5.4. In the general case, the estimate with $n=k+1$ gives $|f^{(k+1)}(a)|\le\frac{(k+1)!\,(A+B(|a|+R)^k)}{R^{k+1}}\to0$ as $R\to\infty$, so $f^{(k+1)}\equiv0$ and $f$ is a polynomial of degree at most $k$. ∎

📐 Theorem 5.14 — Fundamental theorem of algebra
Every nonconstant polynomial with complex coefficients has a zero in $\mathbb{C}$; hence a polynomial of degree $n\ge1$ factorises as $c(z-z_1)\cdots(z-z_n)$.

Proof. Let $p(z)=c_nz^n+\dots+c_0$ with $n\ge1$, $c_n\ne0$, and suppose $p$ has no zero. Then $1/p$ is entire. Since $|p(z)|\ge|c_n||z|^n\left(1-\sum_{k\lt n}\frac{|c_k|}{|c_n||z|^{n-k}}\right)\to\infty$ as $|z|\to\infty$, $1/p$ is bounded outside some disc, and it is bounded on that disc by continuity. By Liouville, $1/p$ is constant — a contradiction. Dividing out a zero and repeating gives the factorisation. ∎

✏️ Example 6 — Liouville in action (prove or disprove)
Decide each statement. (a) An entire $f$ with $|f(z)|\le5+3|z|^{3/2}$ for all $z$ is of the form $az+b$. (b) An entire $f$ with $\operatorname{Re}f(z)\le2$ for all $z$ is constant. (c) An entire $f$ with $|f(z)|\ge1$ for all $z$ is constant. (d) An analytic function on $\mathbb{D}$ with $|f|\le1$ is constant. (e) $|\sin z|\le1$ for all $z\in\mathbb{C}$.
(a) True Cauchy's estimate for $f''$ on $C(a,R)$: $|f''(a)|\le\frac{2\left(5+3(|a|+R)^{3/2}\right)}{R^2}\to0$. So $f''\equiv0$ and $f=az+b$.
(b) True $g=e^{f}$ is entire with $|g|=e^{\operatorname{Re}f}\le e^2$, so $g$ is constant by Liouville; then $0=g'=f'e^{f}$ forces $f'\equiv0$.
(c) True $f$ has no zeros, so $1/f$ is entire with $|1/f|\le1$; constant, hence so is $f$.
(d) False $f(z)=z$. Liouville needs boundedness on all of $\mathbb{C}$.
(e) False $\sin(iy)=i\sinh y$, so $|\sin(iy)|=\sinh|y|\to\infty$. (Liouville predicts this: $\sin$ is entire and nonconstant, so it cannot be bounded.)
📐 Theorem 5.15 — Morera's theorem
Let $f$ be continuous on a domain $G$, and suppose $\oint_{\partial T}f(z)\,dz=0$ for the boundary of every closed triangle $T\subseteq G$. Then $f$ is analytic on $G$.

Proof. Analyticity is a local property, so let $D$ be any disc in $G$ with centre $a$, and put $F(z)=\int_{[a,z]}f(w)\,dw$ for $z\in D$. For $z,z+h\in D$, the triangle with vertices $a,z,z+h$ lies in $D$, and the hypothesis gives $F(z+h)-F(z)=\int_{[z,z+h]}f(w)\,dw$. Exactly as in the proof of Theorem 5.8, $F'(z)=f(z)$. So $F$ is analytic on $D$, and by Theorem 5.12 its derivative $f$ is analytic on $D$ too. ∎

Morera's theorem is the converse of Cauchy's theorem, and it is the standard way to show that a function defined by a limit or an integral is analytic. Two uses that GATE likes: (i) if $f_n$ are analytic on $G$ and $f_n\to f$ uniformly on compact subsets, then $f$ is analytic (each $\oint_{\partial T}f_n=0$ passes to the limit) — so, for example, $\sum_{n\ge1}z^n/n^2$ is analytic on $\mathbb{D}$; (ii) if $f$ is continuous on $G$ and analytic on $G$ minus a line segment, then $f$ is analytic on all of $G$ (Exercise IV.7).

📐 Theorem 5.16 — Mean value property and the maximum modulus principle
  1. (Gauss) If $f$ is analytic on an open set containing $\overline{D}(a,r)$, then $f(a)=\dfrac1{2\pi}\displaystyle\int_0^{2\pi}f(a+re^{it})\,dt$.
  2. If $f$ is analytic on a domain $G$ and $|f|$ has a local maximum at a point of $G$, then $f$ is constant on $G$.
  3. If $G$ is a bounded domain and $f$ is continuous on $\overline{G}$ and analytic on $G$, then $\max_{\overline{G}}|f|$ is attained on the boundary $\partial G$ (and only there, unless $f$ is constant).

Proof. (1) Put $z=a+re^{it}$, $dz=ire^{it}dt$ in Theorem 5.11: $f(a)=\frac1{2\pi i}\int_0^{2\pi}\frac{f(a+re^{it})}{re^{it}}ire^{it}\,dt$. (2) Suppose $|f(z)|\le|f(a)|$ on $D(a,R)\subseteq G$. For $0\lt r\lt R$, (1) gives $|f(a)|\le\frac1{2\pi}\int_0^{2\pi}|f(a+re^{it})|\,dt\le|f(a)|$, so equality holds throughout; since the continuous integrand is $\le|f(a)|$ and has average $|f(a)|$, it equals $|f(a)|$ for every $t$. Hence $|f|$ is constant on $D(a,R)$, so $f$ is constant there by Theorem 5.4(c), and therefore on all of $G$ by the identity theorem (§5.2). (3) $\overline{G}$ is closed and bounded, so the continuous function $|f|$ attains its maximum at some point of $\overline{G}$ (§1.2). If that point were in $G$, $f$ would be constant by (2). ∎

📐 Theorem 5.17 — Minimum modulus principle; maximum principle for harmonic functions
  1. If $f$ is analytic and nonconstant on a domain $G$ and has no zeros in $G$, then $|f|$ has no local minimum in $G$; on a bounded domain, with $f$ continuous and nonzero on $\overline{G}$, $\min_{\overline G}|f|$ is attained only on $\partial G$.
  2. A nonconstant harmonic function on a domain has no local maximum and no local minimum. If $G$ is bounded and $u$ is harmonic on $G$ and continuous on $\overline{G}$, then $\max u$ and $\min u$ over $\overline{G}$ are attained on $\partial G$.

Proof. (1) Apply Theorem 5.16 to the analytic function $1/f$. (2) Near any point, $u$ is the real part of an analytic $f$ on a disc (Theorem 5.5). Then $|e^{f}|=e^{u}$, so a local maximum of $u$ is a local maximum of $|e^f|$, which makes $e^f$, and hence $u$, constant on that disc; a connectedness argument (the set where $u$ is locally constant is open and closed in $G$) spreads this to $G$. For minima apply this to $-u$. The statement on $\overline{G}$ follows as in Theorem 5.16(3). ∎

✏️ Example 7 — Maximum and minimum of $|f|$ on the closed unit disc
Find the maximum and minimum of $|f|$ over $|z|\le1$ for (a) $f(z)=z^2+3z-1$; (b) $f(z)=e^{z^2}$.
(a) Maximum By Theorem 5.16 it is on $|z|=1$. There $\bar z=1/z$, so $|z^2+3z-1|=|z|\,|z+3-\tfrac1z|=|z+3-\bar z|=|3+2iy|=\sqrt{9+4y^2}$ with $y=\operatorname{Im}z\in[-1,1]$. Maximum $\sqrt{13}$, at $z=\pm i$.
(a) Minimum On the circle the smallest value is $3$ (at $z=\pm1$). But $f$ has the zero $z=\frac{-3+\sqrt{13}}{2}\approx0.303$ inside the disc, so the minimum over the closed disc is $0$ — an interior minimum, allowed because Theorem 5.17 requires $f$ to have no zeros.
(b) $|e^{z^2}|=e^{\operatorname{Re}(z^2)}=e^{x^2-y^2}$. $f$ has no zeros, so both extremes are on $|z|=1$, where $x^2-y^2=\cos2\theta\in[-1,1]$. Maximum $e$ at $z=\pm1$; minimum $e^{-1}$ at $z=\pm i$.
Shortcut For $f=e^{g}$ the problem is to maximise or minimise the harmonic function $\operatorname{Re}g$ on the boundary.
⚠️ Counterexamples and pitfalls
  1. CR equations at a point $\not\Rightarrow$ differentiable there. $\bar z^2/z$ (with $f(0)=0$) and $\sqrt{|xy|}$ satisfy CR at $0$ but are not differentiable at $0$; their real and imaginary parts are not real-differentiable at the origin.
  2. Differentiable at a point $\not\Rightarrow$ analytic at that point. $|z|^2$ is differentiable only at $0$; $x^2+iy^2$ only on the line $y=x$. Neither is analytic anywhere.
  3. Smooth as a map of $\mathbb{R}^2$ $\not\Rightarrow$ complex differentiable. $\bar z=x-iy$ is linear in $(x,y)$ and differentiable nowhere in the complex sense.
  4. Harmonic $\not\Rightarrow$ has a harmonic conjugate on a domain with a hole: $\log|z|$ on $\mathbb{C}\setminus\{0\}$.
  5. Products and squares of harmonic functions are usually not harmonic. $x$ is harmonic, $x^2$ is not; if $u$ and $u^2$ are both harmonic, $u$ is constant. And $|f|$ is not harmonic in general ($|z|$), though $\log|f|$ is where $f\ne0$.
  6. Cauchy's theorem needs analyticity at every point inside the contour. $\oint_{|z|=1}\frac{dz}{z}=2\pi i$ ($1/z$ fails at $0$) and $\oint_{|z|=1}\bar z\,dz=2\pi i$ ($\bar z$ is analytic nowhere).
  7. The converse of Cauchy's theorem for a single contour is false. $\oint_{|z|=1}\frac{dz}{z^2}=0$ although $1/z^2$ is not analytic at $0$; and $\oint_{|z|=r}|z|^2\,dz=r^2\oint dz=0$ for every circle about $0$, though $|z|^2$ is analytic nowhere. Morera needs all triangles (and continuity).
  8. Liouville needs entire and bounded. $\frac1{1+z^2}$ is bounded on $\mathbb{R}$ but not entire; $f(z)=z$ is bounded on $\mathbb{D}$; $\sin z$ and $\cos z$ are entire but unbounded on $\mathbb{C}$.
  9. The maximum modulus principle needs a bounded domain for its boundary form: on the half-plane $\operatorname{Re}z\gt0$, $e^{z}$ has $|e^z|=1$ on the boundary line but is unbounded inside.
  10. The minimum modulus principle needs "no zeros". $f(z)=z$ on $\overline{\mathbb{D}}$ has $\min|f|=0$ at the interior point $0$.
  11. $|f|$ constant on the boundary $\not\Rightarrow$ $f$ constant. $z^n$ has modulus $1$ on $|z|=1$.
📚 Go deeper — full proofs in the CSIR NET course

Two Labs

Interactive 1 — Is the Derivative a Rotation?

Left: a tiny circle of radius $\rho$ about $z_0$, magnified, with four coloured spokes. Right: its image under $f$, magnified by the same factor — the thick curve is the true image $\big(f(z_0+\rho e^{i\varphi})-f(z_0)\big)/\rho$, the dashed curve is what the Jacobian of $(u,v)$ predicts. Where $f$ is complex differentiable the image is a circle and the spokes stay at right angles (a rotation by $\arg f'(z_0)$ and a stretch by $|f'(z_0)|$); elsewhere it is an ellipse, or worse. Move $z_0$, change $f$, and press Play to send the marker round the circle.

z₀—
uₓ − v_y—
u_y + vₓ—
f′(z₀)—
Interactive 2 — Walking Round a Contour

A point walks once round the circle $C(c,r)$ (left) while the right panel draws the running value of $\int f(z)\,dz$ from the start — a path in the complex plane that ends at $\oint_{C(c,r)}f\,dz$. The ring marks the value predicted by Cauchy's theorem or Cauchy's integral formula from the singular points (×) inside the circle. Move the circle so that singular points enter and leave it, and watch the endpoint jump from one prediction to the next.

inside the circle—
∮ f dz (numerical)—
prediction—
rule—

Exercises

I
Differentiability, the Cauchy–Riemann equations and analyticity.
  • 1 Find where $f=2x^3+3iy^2$ is differentiable, the derivative there, and where $f$ is analytic.
  • 2 Show that $f(z)=z\operatorname{Re}z$ is differentiable only at $z=0$, and find $f'(0)$.
  • 3 Show that $f=e^x(\cos y+i\sin y)$ satisfies the CR equations on $\mathbb{R}^2$, so it is entire, and that $f'=f$.
  • 4 Find real constants $a,b,c$ for which $f=x^2+axy+by^2+i(cx^2+2xy+y^2)$ is entire, and express $f$ in terms of $z$.
  • 5 Use the polar CR equations to show that $f(z)=\sqrt r\,e^{i\theta/2}$ ($r\gt0$, $-\pi\lt\theta\lt\pi$) is analytic and that $f'(z)=\dfrac1{2f(z)}$.
  • 6 Let $f=u+iv$ be analytic on a domain with $v=u^2$. Show that $f$ is constant.
  • 7 Show that $f(z)=\sqrt{|xy|}$ satisfies the CR equations at $0$ but is not differentiable there.
  • 8 Let $f=u+iv$ be analytic on a domain $G$ with $u+v$ constant. Show that $f$ is constant. (Consider $(1+i)f$.)
1 $u_x=6x^2$, $v_y=6y$, $u_y=v_x=0$: CR holds iff $y=x^2$. The partials are continuous, so $f$ is differentiable exactly on the parabola $y=x^2$, with $f'=u_x+iv_x=6x^2$. Analytic nowhere (a parabola contains no disc).
2 $f=(x+iy)x=x^2+ixy$: $u_x=2x$, $v_y=x$, $u_y=0$, $v_x=y$. CR: $2x=x$ and $0=-y$, so only $z=0$; there the partials are continuous and $f'(0)=u_x+iv_x=0$. (Directly: $f(h)/h=\operatorname{Re}h\to0$.)
3 $u_x=e^x\cos y=v_y$ and $u_y=-e^x\sin y=-v_x$ everywhere, with continuous partials. $f'=u_x+iv_x=e^x\cos y+ie^x\sin y=f$. (This is $e^z$, §5.2.)
4 $u_x=2x+ay$ must equal $v_y=2x+2y$: $a=2$. $u_y=ax+2by$ must equal $-v_x=-2cx-2y$: $a=-2c$ and $2b=-2$. So $a=2$, $b=-1$, $c=-1$, and $f=(x^2+2xy-y^2)+i(-x^2+2xy+y^2)=(1-i)z^2$.
5 $u=\sqrt r\cos\frac\theta2$, $v=\sqrt r\sin\frac\theta2$: $u_r=\frac{\cos(\theta/2)}{2\sqrt r}=\frac1rv_\theta$ and $v_r=\frac{\sin(\theta/2)}{2\sqrt r}=-\frac1ru_\theta$, with continuous partials. $f'=e^{-i\theta}(u_r+iv_r)=e^{-i\theta}\frac{e^{i\theta/2}}{2\sqrt r}=\frac1{2\sqrt re^{i\theta/2}}=\frac1{2f}$.
6 $v_x=2uu_x$, $v_y=2uu_y$. CR: $u_x=v_y=2uu_y$ and $u_y=-v_x=-2uu_x$. Substituting, $u_x=-4u^2u_x$, i.e. $(1+4u^2)u_x=0$, so $u_x=0$ and then $u_y=0$. So $u$ is constant and $f$ is constant by Theorem 5.4(b).
7 $u=\sqrt{|xy|}$, $v=0$. $u(x,0)=u(0,y)=0$, so all partials at $0$ are $0$ and CR holds. Along $h=t(1+i)$, $t\gt0$: $\frac{f(h)}{h}=\frac{t}{t(1+i)}=\frac1{1+i}$, while along the real axis the quotient is $0$. No limit.
8 $(1+i)f=(u-v)+i(u+v)$ is analytic with constant imaginary part, so it is constant (Theorem 5.4(b)); hence $f$ is constant.
II
Harmonic functions and harmonic conjugates.
  • 1 Which are harmonic on their natural domains? (a) $x^3-3xy^2$; (b) $x^2+y^2$; (c) $e^{-y}\cos x$; (d) $\dfrac{x}{x^2+y^2}$; (e) $xy+x-y$.
  • 2 Find a harmonic conjugate of $u=2x(1-y)$ and the analytic $f=u+iv$ with $f(0)=0$.
  • 3 Find the analytic $f$ with $\operatorname{Im}f=e^{-y}\sin x$ and $f(0)=1$.
  • 4 Find all real $a$ for which $u=x^3+axy^2$ is harmonic, and for that $a$ find a harmonic conjugate.
  • 5 Show that $u=\log(x^2+y^2)$ is harmonic on $\mathbb{C}\setminus\{0\}$ but is not the real part of any analytic function on $\mathbb{C}\setminus\{0\}$.
  • 6 Prove that if $u$ and $u^2$ are both harmonic on a domain, then $u$ is constant.
  • 7 For $f(z)=z^2$ verify that the level curves $\operatorname{Re}f=c_1$ and $\operatorname{Im}f=c_2$ cross at right angles away from the origin. What happens at the origin?
1 (a) $6x-6x=0$: yes ($\operatorname{Re}z^3$). (b) $\Delta=4$: no. (c) $-e^{-y}\cos x+e^{-y}\cos x=0$: yes ($\operatorname{Re}e^{iz}$). (d) yes on $\mathbb{C}\setminus\{0\}$ — it is $\operatorname{Re}\frac1z$. (e) yes: $u_{xx}=u_{yy}=0$.
2 $u_x=2-2y$, $u_y=-2x$. Milne–Thomson: $f'(z)=u_x(z,0)-iu_y(z,0)=2+2iz$, so $f=2z+iz^2$ (constant $0$). Then $v=\operatorname{Im}(2z+iz^2)=2y+x^2-y^2$. Check: $\operatorname{Re}(iz^2)=-2xy$.
3 Given $v$: $f'(z)=v_y(z,0)+iv_x(z,0)=-\sin z+i\cos z=ie^{iz}$, so $f=e^{iz}+C$ with $C$ real; $f(0)=1$ gives $C=0$. Indeed $e^{iz}=e^{-y}(\cos x+i\sin x)$.
4 $u_{xx}+u_{yy}=6x+2ax=0$ for all $x$ iff $a=-3$. Then $u=\operatorname{Re}z^3$ and $v=3x^2y-y^3$ (plus a constant).
5 $u_{xx}=\frac{2(y^2-x^2)}{r^4}=-u_{yy}$, so $\Delta u=0$. If $u=\operatorname{Re}f$ with $f$ analytic on $\mathbb{C}\setminus\{0\}$, then $f'=u_x-iu_y=\frac{2x-2iy}{x^2+y^2}=\frac2z$. But $f$ would be a primitive of $2/z$ on $\mathbb{C}\setminus\{0\}$, forcing $\oint_{|z|=1}\frac2z\,dz=0$ (Theorem 5.8), whereas it equals $4\pi i$.
6 $\Delta(u^2)=2(u_x^2+u_y^2)+2u\Delta u=2|\nabla u|^2$. If this is $0$, then $\nabla u\equiv0$ and $u$ is constant on the domain.
7 $u=x^2-y^2$, $v=2xy$: $\nabla u=(2x,-2y)$, $\nabla v=(2y,2x)$, and $\nabla u\cdot\nabla v=4xy-4xy=0$. At the origin $f'(0)=0$ and both gradients vanish. The level curves $x^2-y^2=0$ (the lines $y=\pm x$) and $xy=0$ (the axes) meet there at $45°$, not $90°$: at a zero of $f'$ the map $z^2$ doubles angles, so orthogonality is lost.
III
Contour integrals, Cauchy's theorem and Cauchy's integral formula. All circles are positively oriented.
  • 1 Compute $\int_\gamma\operatorname{Re}z\,dz$ from $0$ to $1+i$ (a) along the segment, (b) along $0\to i\to1+i$.
  • 2 $\displaystyle\oint_{|z-1|=1}\frac{dz}{z^2-1}$.
  • 3 $\displaystyle\oint_{|z|=2}\frac{ze^z}{(z-1)^2}\,dz$.
  • 4 $\displaystyle\oint_{|z|=1}\frac{e^{2z}}{z^3}\,dz$.
  • 5 $\displaystyle\oint_{|z|=4}\frac{e^{z/2}}{z^2+\pi^2}\,dz$.
  • 6 Show that $\left|\displaystyle\oint_{|z|=2}\frac{e^z}{z^2+1}\,dz\right|\le\dfrac{4\pi e^2}{3}$.
  • 7 Let $Q$ be the boundary of the square with vertices $\pm2\pm2i$, positively oriented. Find $\oint_Q\frac{dz}{z}$ and $\oint_Q\frac{dz}{z-3}$.
  • 8 Compute $\oint_{|z|=1}\frac{e^z}{z}\,dz$ and deduce that $\displaystyle\int_0^{2\pi}e^{\cos t}\cos(\sin t)\,dt=2\pi$.
  • 9 Using $\bar z=1/z$ on $|z|=1$, compute $\displaystyle\oint_{|z|=1}(z+\bar z)^3\,dz$.
  • 10 Fluid flow. In two-dimensional potential flow past a cylinder of radius $a$ in a stream of speed $U$, with circulation $\Gamma$, the complex velocity is $w(z)=U\left(1-\dfrac{a^2}{z^2}\right)+\dfrac{\Gamma}{2\pi iz}$ for $|z|\gt a$. Show that $\oint_{|z|=R}w(z)\,dz=\Gamma$ for every $R\gt a$ (the circulation is the same round every circle enclosing the cylinder).
1 (a) $z=(1+i)t$, $\operatorname{Re}z=t$: $\int_0^1t(1+i)\,dt=\frac{1+i}2$. (b) On $z=it$: $\operatorname{Re}z=0$, contribution $0$; on $z=t+i$: $\int_0^1t\,dt=\frac12$. Total $\frac12$. Different answers: $\operatorname{Re}z$ is not analytic.
2 Inside $|z-1|\lt1$ lies $z=1$ only ($-1$ is at distance $2$). With $f=\frac1{z+1}$: $2\pi i\,f(1)=\pi i$.
3 $n=1$, $f=ze^z$, $f'=(1+z)e^z$: $2\pi i\,f'(1)=4\pi e\,i$.
4 $n=2$, $f=e^{2z}$, $f''=4e^{2z}$: $\frac{2\pi i}{2!}\cdot4=4\pi i$.
5 Both $\pm i\pi$ (modulus $\pi\lt4$) are inside. $\frac1{z^2+\pi^2}=\frac1{2\pi i}\left(\frac1{z-i\pi}-\frac1{z+i\pi}\right)$, so the integral is $e^{i\pi/2}-e^{-i\pi/2}=2i$.
6 On $|z|=2$: $|e^z|=e^{x}\le e^2$ and $|z^2+1|\ge|z|^2-1=3$. Length $4\pi$. ML gives $\frac{4\pi e^2}{3}$.
7 $0$ is inside $Q$: $2\pi i$. $3$ is outside $Q$ and $\frac1{z-3}$ is analytic on a disc containing $Q$: $0$.
8 By Theorem 5.11, $\oint\frac{e^z}{z}dz=2\pi i\,e^0=2\pi i$. With $z=e^{it}$, $\frac{dz}{z}=i\,dt$: $2\pi i=i\int_0^{2\pi}e^{\cos t}\left(\cos(\sin t)+i\sin(\sin t)\right)dt$. Comparing real parts of $\int$ gives $2\pi$ (and the imaginary part gives $\int_0^{2\pi}e^{\cos t}\sin(\sin t)\,dt=0$).
9 $(z+\tfrac1z)^3=z^3+3z+\frac3z+\frac1{z^3}$. Only $\frac3z$ contributes: $3\cdot2\pi i=6\pi i$. (The integrand is not analytic, yet on this circle it agrees with one that is, except at $0$.)
10 $w$ is a sum of multiples of $z^0$, $z^{-2}$ and $z^{-1}$. By the basic integral, $\oint_{|z|=R}1\,dz=\oint z^{-2}dz=0$ and $\oint z^{-1}dz=2\pi i$. So $\oint w\,dz=\frac{\Gamma}{2\pi i}\cdot2\pi i=\Gamma$. (By deformation, Theorem 5.10, the answer is the same for every closed curve round the cylinder.)
IV
Liouville, Morera and the maximum modulus principle. Prove or disprove.
  • 1 An entire $f$ with $|f(z)|\le2|z|^2+7$ for all $z$ is a polynomial of degree at most $2$.
  • 2 If $f$ is entire and $f(\mathbb{C})$ does not meet the disc $|w-1|\lt\tfrac12$, then $f$ is constant.
  • 3 If $f$ is entire and $\operatorname{Im}f(z)\ge0$ for all $z$, then $f$ is constant.
  • 4 If $f$ is analytic on $\mathbb{D}$ and $|f(z)|\le1$ there, then $f$ is constant.
  • 5 If $f$ is entire and $f(z+1)=f(z+i)=f(z)$ for all $z$, then $f$ is constant.
  • 6 Find the maximum and the minimum of $|z^2-z|$ over $|z|\le1$, and the points where they occur.
  • 7 If $f$ is continuous on $\mathbb{C}$ and analytic on $\mathbb{C}\setminus\mathbb{R}$, then $f$ is entire.
  • 8 $F(z)=\displaystyle\int_0^1e^{tz}\,dt$ is entire; find a closed form.
  • 9 A harmonic function on $\mathbb{R}^2$ that is bounded above is constant.
1 True: Theorem 5.13 with $A=7$, $B=2$, $k=2$.
2 True. $|f(z)-1|\ge\frac12$, so $g=\frac1{f-1}$ is entire with $|g|\le2$; $g$ is constant, hence so is $f$.
3 True. $g=e^{if}$ is entire with $|g|=e^{-\operatorname{Im}f}\le1$; so $g$ is constant and $f'=0$ (as in Example 6(b)).
4 False: $f(z)=z$ (or $z^2/2$). The disc is not the plane.
5 True. Every value of $f$ is taken on the closed unit square $[0,1]\times[0,1]$, where the continuous $|f|$ is bounded. So $f$ is bounded and entire, hence constant.
6 On $|z|=1$: $|z^2-z|=|z-1|$, largest ($2$) at $z=-1$. So $\max=2$, at $z=-1$. The minimum is $0$, at the zeros $z=0$ (interior) and $z=1$ (boundary) — the minimum modulus principle does not apply because $f$ has zeros.
7 True. For a triangle not meeting $\mathbb{R}$, $\oint_{\partial T}f=0$ by Cauchy. A triangle with an edge on $\mathbb{R}$ is a limit of triangles shifted slightly off the axis, and by uniform continuity of $f$ on compact sets the integrals converge, so they are $0$; a triangle crossing $\mathbb{R}$ splits into pieces of these kinds. Morera gives analyticity.
8 $F$ is continuous, and for every triangle $\oint_{\partial T}F\,dz=\int_0^1\oint_{\partial T}e^{tz}\,dz\,dt=0$ (Fubini for continuous integrands; each inner integral is $0$ by Cauchy). By Morera, $F$ is entire. For $z\ne0$, $F(z)=\frac{e^z-1}{z}$, and $F(0)=1$.
9 True. $\mathbb{R}^2$ is simply connected, so $u=\operatorname{Re}f$ with $f$ entire (Theorem 5.5). If $u\le M$, then $|e^{f}|=e^u\le e^M$, so $e^f$ is constant and $f'=0$; $u$ is constant.
🎯 GATE corner GATE MA · MCQGATE MA · MSQGATE MA · NAT

E1. GATE MA · MCQ Let $f(x+iy)=x^3+3xy^2+i\left(y^3+3x^2y\right)$. Then (A) $f$ is entire; (B) $f$ is differentiable only at $z=0$; (C) $f$ is differentiable exactly at the points of the two coordinate axes and is analytic nowhere; (D) $f$ is differentiable exactly on the line $y=x$.

CR $u_x=3x^2+3y^2=v_y$ always. $u_y=6xy$ and $-v_x=-6xy$, so $u_y=-v_x$ iff $xy=0$.
Conclusion The partials are continuous, so $f$ is differentiable exactly on $\{xy=0\}$, the two axes — a set with no interior points, so $f$ is analytic nowhere.
Answer (C).

E2. GATE MA · MCQ Let $C$ be the circle $|z-i|=2$, positively oriented. Then $\displaystyle\oint_C\frac{e^{\pi z}}{z^2+4}\,dz$ equals (A) $0$; (B) $\dfrac{\pi}{2}$; (C) $\dfrac{\pi i}{2}$; (D) $-\dfrac{\pi}{2}$.

Which points are inside? $z^2+4=(z-2i)(z+2i)$; $|2i-i|=1\lt2$ (inside), $|-2i-i|=3\gt2$ (outside).
Cauchy With $f(z)=\frac{e^{\pi z}}{z+2i}$, analytic inside $C$: $2\pi i\,f(2i)=2\pi i\cdot\frac{e^{2\pi i}}{4i}=\frac{\pi}{2}$.
Answer (B).

E3. GATE MA · MSQ Let $u(x,y)=e^x\cos y+x^2-y^2$. Which of the following is/are true? (One or more options may be correct.) (A) $u$ is harmonic on $\mathbb{R}^2$. (B) $v(x,y)=e^x\sin y+2xy$ is a harmonic conjugate of $u$. (C) The entire function $f=u+iv$ with $v$ as in (B) satisfies $f(i\pi)=-1-\pi^2$. (D) $u^2$ is harmonic on $\mathbb{R}^2$.

(A) True $u_{xx}=e^x\cos y+2$, $u_{yy}=-e^x\cos y-2$.
(B) True $u_x=e^x\cos y+2x=v_y$ and $u_y=-e^x\sin y-2y=-v_x$. Indeed $u+iv=e^z+z^2$.
(C) True $f(i\pi)=e^{i\pi}+(i\pi)^2=-1-\pi^2$.
(D) False $\Delta(u^2)=2|\nabla u|^2\not\equiv0$ (Exercise II.6); e.g. at the origin $\nabla u=(1,0)$, so $\Delta(u^2)=2$.
Answer (A), (B) and (C).

E4. GATE MA · MSQ Which of the following statements is/are true? (One or more options may be correct.) (A) An entire function $f$ with $|f(z)|\le1+|z|$ for all $z$ is a polynomial of degree at most $1$. (B) An entire function whose image lies in the upper half-plane $\{\operatorname{Im}w\gt0\}$ is constant. (C) If $f$ is analytic on $\mathbb{D}$, continuous on $\overline{\mathbb{D}}$ and $|f(z)|=1$ on $|z|=1$, then $f$ is constant. (D) An entire function that is bounded on the real axis and on the imaginary axis is constant.

(A) True Theorem 5.13 with $k=1$: Cauchy's estimate gives $|f''(a)|\le\frac{2(1+|a|+R)}{R^2}\to0$.
(B) True $|e^{if}|=e^{-\operatorname{Im}f}\lt1$, so $e^{if}$ is constant by Liouville, and so is $f$.
(C) False $f(z)=z^3$ has $|f|=1$ on the circle. (The maximum modulus principle only gives $|f|\le1$ inside.)
(D) False $f(z)=e^{-z^4}$: on both axes $z^4$ is real and $\ge0$ ($x^4$ and $(iy)^4=y^4$), so $|f|\le1$ there, yet $f$ is not constant. Liouville needs boundedness on the whole plane (on the line $\arg z=\pi/4$, $z^4\lt0$ and $|f|$ is unbounded).
Answer (A) and (B).

E5. GATE MA · NAT The value of $\displaystyle\frac1{2\pi i}\oint_{|z|=2}\frac{e^{z}}{z^2(z-3)}\,dz$, the circle being positively oriented, is ______ (correct to two decimal places).

Set-up $z=3$ is outside $|z|=2$, so $f(z)=\frac{e^z}{z-3}$ is analytic on and inside the circle, and the integral is $\frac1{2\pi i}\oint\frac{f(z)}{z^2}dz=f'(0)$ by Theorem 5.12.
Compute $f'(z)=\frac{e^z(z-3)-e^z}{(z-3)^2}$, so $f'(0)=\frac{-3-1}{9}=-\frac49\approx-0.4444$.
Answer $-0.44$ (accept $-0.45$ to $-0.43$).

E6. GATE MA · NAT The minimum value of $\left|e^{z^2+z}\right|$ over the closed disc $|z|\le1$ is ______ (correct to two decimal places).

Idea $e^{z^2+z}$ has no zeros, so by the minimum modulus principle (Theorem 5.17) the minimum is on $|z|=1$. Also $|e^{z^2+z}|=e^{\operatorname{Re}(z^2+z)}$.
Boundary With $z=e^{i\theta}$: $\operatorname{Re}(z^2+z)=\cos2\theta+\cos\theta=2c^2+c-1$, $c=\cos\theta\in[-1,1]$. Its minimum is at $c=-\frac14$: $\frac18-\frac14-1=-\frac98$.
Answer $e^{-9/8}\approx0.3247$, so $0.32$ (accept $0.32$ to $0.33$). (The maximum is $e^2\approx7.39$, at $z=1$.)
🧑‍🏫 For the teacher

Suggested plan — 3 lectures × 60 min.

  1. Differentiability. Definitions 5.1–5.2; why $\bar z$ fails (two directions of $h$ on the board). Theorems 5.1 and 5.2 with proofs, then project Interactive 1: compare $z^2$ with $\bar z$ and $x^2+iy^2$ (move $z_0$ onto the line $y=x$). Example 1, Example 2 (with the last function of Interactive 1 at $z_0=0$). Polar CR (Theorem 5.3) and Theorem 5.4 briefly.
  2. Harmonic functions and integrals. Definition 5.3, Theorem 5.5 with the explicit conjugate on a disc; Example 3 both ways; the $\log|z|$ warning. Definition 5.4, the ML-inequality, the basic integral $\oint(z-a)^n\,dz$ — derive it on the board, it is the seed of the residue theorem. Theorem 5.8, Example 4. Cauchy's theorem via Green; sketch Goursat's subdivision.
  3. Consequences. Deformation, Cauchy's integral formula with proof; Interactive 2 — move a singular point in and out. Theorem 5.12 and Example 5. Liouville, the fundamental theorem of algebra, Example 6. Morera (one application). Maximum modulus with the mean value proof, Example 7. GATE corner E2 and E4 live.

Discussion questions. (1) A real function can be differentiable once but not twice; why can't a complex function on an open set? Which step of the argument uses complex numbers essentially? (2) $\oint_{|z|=1}\bar z\,dz=2\pi i$ and $\oint_{|z|=1}\frac{dz}{z}=2\pi i$. Explain why these agree, and why that does not contradict Cauchy's theorem. (3) Liouville says a bounded entire function is constant. What is the analogous statement for harmonic functions on $\mathbb{R}^2$, and is "bounded above" enough?

Misconceptions to watch for. Declaring a function analytic because the CR equations hold at some points; confusing "differentiable at $a$" with "analytic at $a$"; forgetting to check $\Delta u=0$ before looking for a conjugate; applying Cauchy's integral formula with a singular point outside the contour (or two inside without partial fractions); using $|\sin z|\le1$ for complex $z$; applying the minimum modulus principle to a function with zeros; applying Liouville to functions bounded only on a line or a disc.

Suggested homework. I(1, 4, 5, 6), II(2, 3, 5), III(2, 3, 5, 8, 10), IV(2, 3, 6, 8); GATE corner E1, E3, E6.

🔬 Research–Teaching NexusResearch-tutored · optional, about 60 minutes

Research question. Why does a spinning cylinder in a wind feel a sideways force — and can a contour integral predict its size without solving any differential equation?

Why it matters. In two-dimensional ideal flow the velocity potential and the stream function are a harmonic function and its harmonic conjugate; together they form an analytic complex potential $\Phi(z)$ whose derivative $w=\Phi'(z)=v_1-iv_2$ is the conjugate of the velocity $(v_1,v_2)$. The Kutta–Joukowski theorem, derived from this picture, explains the lift on aircraft wings and the Magnus effect on spinning balls in football, tennis and cricket, and on the rotor ships that have been fitted with spinning sails to save fuel.

What to do.

  1. Take $w(z)=U\left(1-\frac{a^2}{z^2}\right)+\frac{\Gamma}{2\pi iz}$ (Exercise III.10). Show that on the circle $|z|=a$ the velocity is tangent to the circle, so the cylinder is a streamline.
  2. Find the stagnation points ($w=0$) on the cylinder and show that, for $|\Gamma|\le4\pi Ua$, they are at $\sin\theta=\frac{\Gamma}{4\pi Ua}$. Plot the streamlines $\operatorname{Im}\Phi=$ const for $\Gamma=0$ and for $\Gamma=-2\pi Ua$.
  3. Blasius' formula gives the force on the cylinder per unit length as $F_1-iF_2=\frac{i\rho}{2}\oint_{|z|=R}w(z)^2\,dz$. Expand $w^2$ in powers of $z$ and use the basic integral $\oint z^n\,dz$ to show that $F_1=0$ (no drag — d'Alembert's paradox) and $F_2=-\rho U\Gamma$.
  4. Check your formula numerically by computing $\oint w^2\,dz$ with a trapezoidal rule on a circle for one set of values.

Tools: Python (numpy, matplotlib) or any plotting tool; pencil and paper for step 3.

Hand in: the streamline plots, the stagnation-point formula, the force computation, and one paragraph on why the force is perpendicular to the stream.

Going further. The Joukowski map $\zeta=z+\frac{c^2}{z}$ turns circles into aerofoil shapes, and because it is analytic it carries the cylinder flow to a flow past the aerofoil (conformal maps are in §5.3). Read about the Kutta condition, which fixes $\Gamma$ for a wing with a sharp trailing edge.

Instructor note: with $U=10\ \text{m/s}$, $a=0.5\ \text{m}$, $\Gamma=-20\ \text{m}^2/\text{s}$ (clockwise circulation) and air density $\rho=1.225\ \text{kg/m}^3$, the stagnation points are at $\sin\theta=-0.3183$, i.e. $\theta\approx-18.56^\circ$ and $\theta\approx198.56^\circ$, and the force is $F_2=-\rho U\Gamma=245\ \text{N}$ per metre of cylinder, upwards; a numerical trapezoidal evaluation of Blasius' integral on $|z|=1$ reproduces $F_1-iF_2=-245i$. In the expansion, only the cross term $2U\cdot\frac{\Gamma}{2\pi iz}$ of $w^2$ contributes, giving $\oint w^2\,dz=2U\Gamma$.

🧪 Self-check quiz

0/5 correct

Q1. The function $f(z)=|z|^2$ is

Q2. $\displaystyle\oint_{|z|=1}\bar z\,dz$ (anticlockwise) equals

Q3. Which function is harmonic on $\mathbb{R}^2$?

Q4. $\displaystyle\oint_{|z|=2}\frac{e^z}{z-1}\,dz$ (anticlockwise) equals

Q5. An entire function $f$ satisfies $|f(z)|\le10$ for all $z\in\mathbb{C}$. Then