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.
- 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$.
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
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.
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.
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$.
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. ∎
Harmonic Functions and Harmonic Conjugates
- 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$.
- 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.
- 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).
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$. ∎
- 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.
- 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".
- 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.
- Given $u$, check $\Delta u=0$ first; then use Milne–Thomson (fastest) or integrate the CR equations.
- 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
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$.
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}$$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]$.
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.
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
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.
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$. ∎
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$. ∎
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. ∎
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).
- (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$.
- 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$.
- 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). ∎
- 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$.
- 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). ∎
- 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.
- 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.
- 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.
- Harmonic $\not\Rightarrow$ has a harmonic conjugate on a domain with a hole: $\log|z|$ on $\mathbb{C}\setminus\{0\}$.
- 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$.
- 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).
- 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).
- 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}$.
- 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.
- The minimum modulus principle needs "no zeros". $f(z)=z$ on $\overline{\mathbb{D}}$ has $\min|f|=0$ at the interior point $0$.
- $|f|$ constant on the boundary $\not\Rightarrow$ $f$ constant. $z^n$ has modulus $1$ on $|z|=1$.
- CSIR Unit 2 · §2.1 Analytic Functions and the Cauchy–Riemann Equations — complex limits in detail, the CR equations with all their variants, the rigidity theorems and the existence of harmonic conjugates.
- CSIR Unit 2 · §2.2 Contour Integrals, Cauchy’s Theorem and Integral Formula — the complete Cauchy–Goursat proof from triangles to convex and simply connected domains, the deformation theorem, Morera and Cauchy's estimates.
- CSIR Unit 2 · §2.3 Liouville, Maximum Modulus, Schwarz Lemma and Open Mapping — Liouville and its variants, the identity theorem, maximum and minimum modulus, Hadamard's three-circles theorem and the open mapping theorem.
Two Labs
Exercises
- 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 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 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 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.
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$.
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}$.
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$.
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.
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).
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).
Suggested plan — 3 lectures × 60 min.
- 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.
- 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.
- 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 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.
- 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.
- 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$.
- 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$.
- 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.
🧪 Self-check quiz
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