Mistakes are the best teacher when one is humble and honest enough to admit them and willing to learn and grow from them, Anawim, #justtothepoint.

Definition. Complex sequence A sequence of complex numbers is a function $a: \mathbb{N} \to \mathbb{C}$. We usually denote it by $(a_n)_{n \in \mathbb{N}}$ or simply $(a_n)$, where $a_n := a(n)$. The value $a_1$ is called the first term of the sequence, $a_2$ the second term, and in general $a_n$ the n-th term of the sequence.
Definition. Convergent complex sequence. A complex sequence $(a_n)_{n \in \mathbb{N}}$ is said to converge to a complex number $L \in \mathbb{C}$ if for every $\varepsilon > 0$ there exists an integer $N \in \mathbb{N}$ such that for all $n \geq N$ one has $|a_n - L| < \varepsilon$. In this case we write $\lim_{n \to \infty} a_n = L$ or $a_n \to L$ as $n \to \infty$, and L is called the limit of the sequence $(a_n)_{n \in \mathbb{N}}$.
Definition. Cauchy sequence. A complex sequence $(a_n)_{n \in \mathbb{N}}$ is called a Cauchy sequence if for every $\varepsilon > 0$ there exists an integer $N \in \mathbb{N}$ such that for all $n, m \geq N$ one has $|a_n - a_m| < \varepsilon$.
Definition. Series and partial sums.Let $(a_n)_{n \in \mathbb{N}}$ be a complex sequence. For each n $\in \mathbb{N}$, the finite sum $s_n := a_1 + a_2 + \cdots + a_n = \sum_{k=1}^n a_k$ is called the n-th partial sum of the (infinite) series $\sum_{k=1}^\infin a_k$ which we also denote simply by $\sum a_n$ when the index is clear from the context.
Definition. Convergent series. The series $\sum_{n=1}^{\infty} a_n$ is said to converge to the sum $s \in \mathbb{C}$ if the sequence of partial sums $(s_n)_{n \in \mathbb{N}}$ defined by $s_n = a_1 + a_2 + \cdots + a_n = \sum_{k=1}^n a_k$ converges to s, that is, $\lim_{n \to \infty} s_n = s$. In this case we write $s := \sum_{n=1}^\infin a_n$. If the sequence $(s_n)_{n \in \mathbb{N}}$ does not converge, we say that the series $\sum_{n=1}^{\infty} a_n$ diverges (or does not converge).
Definition. A complex power series centered at 0 in the variable z is a series of the form $a_0 + a_1z + a_2z^2 + \cdots = \sum_{n=0}^\infty a_n z^n$ with coefficients $a_i \in \mathbb{C}$
Definition. A complex power series centered at a complex number $a \in \mathbb{C} $ is an infinite series of the form: $\sum_{n=0}^\infty a_n (z - a)^n,$ where each $a_n \in \mathbb{C}$ is a coefficient, z is a complex variable, and $(z - a)^n$ is the nth power about the center.
Theorem. Given a power series $\sum_{n=0}^\infty a_n z^n$, there exists a unique value R, $0 \le R \le \infin$ (called the radius of convergence) such that:
On the Circle (|z| = R), this theorem gives no information. This is the yellow light zone —the series could converge or diverge.
Differentiability of Power Series. If $f(z) = \sum_{n=0}^{\infty} a_nz^n$ for |z| < R (R > 0), then f is analytic on B(0; R) and $f'(z) = \sum_{n=1}^{\infty} na_nz^{n-1}$ for |z| < R.
Weierstrass M-test. Let $\{u_k(z)\}_{k=0}^\infty$ be a sequence of complex-valued functions defined on a set $\gamma^* \subseteq \mathbb{C}$. If there exists a sequence of non-negative real numbers $\{M_k\}_{k=0}^\infty$ such that:
Then, the original series $\sum_{k=0}^\infty u_k(z)$ converges uniformly on $\gamma^*$.
Coefficients of power series. Let f(z) = $\sum_{k=0}^\infty c_kz^k$ where this power series has radius of convergence R > 0. Then,the n-th coefficient of a power series $c_n$ can be extracted using the integral formula, $c_n = \frac{1}{2\pi i} \int_{C_r} \frac{f(z)}{z^{n+1}}dz, 0 \le r \lt R, n \ge 0$ where $C_r$ is a circle of radius r centered at 0 and oriented positively.
Taylor’s Theorem. If f is analytic on an open disk B(a; R) (a disk of radius R centered at a), then f(z) can be represented exactly by a unique power series within that disk: $f(z) = \sum_{n=0}^{\infty}a_n (z - a)^n, \forall z \in B(a; R)$
This theorem bridges the gap between differentiability and power series. It guarantees that if a function behaves well (it is analytic) in a disk, it must also be infinitely differentiable and expressed or representable by a power series (an infinite polynomial) within that disk.
Furthermore, there exist unique constants $a_n = \frac{f^{(n)}(a)}{n!} = \frac{1}{2\pi i}\int_{C_r} \frac{f(w)}{(w-a)^{n+1}}dw$ where $C_r$ is a circle of radius r < R centered at a and oriented in the counterclockwise direction (positively oriented).
One of the most striking features of analytic functions is that they cannot have strict local maximums in their interior domain. They behave like tightly stretched rubber sheets —if you push a point up, the surrounding points must also go up.
Theorem. Local maximum modules theorem. Suppose that f is analytic on an open disk B(a; R). If $|f(z)| \le |f(a)|, \forall z \in \mathbb{B}(a; R)$ (meaning the magnitude of f has a local maximum at the center a), then f must be a constant function on that disk. In words, a non-constant analytic function cannot have a local maximum of its modulus inside its domain; maxima can only occur on the boundary.
Think of the “graph” of the absolute value |f(z)| as a surface in 3D space over the complex plane. This theorem states that for an analytic function, this surface cannot have an “interior mountain peak” (a local maximum) anywhere inside the domain. It can have valleys (where $f(z) = 0$), but never isolated peaks. The biggest values must occur on the boundary.
Proof.
First, we express the value at the center, f(a), as the average of the values surrounding it using the Mean Value Property.
Fix a radius $r, \text{ such that } 0 \lt r \lt R$. By Cauchy Integral Formula, f(a) = $\frac{1}{2\pi i} \int_{C_r} \frac{f(z)}{z-a}dz$ where $C_r$ is a circle of radius “r” centered at “a” oriented positively.
We parametrize the circle $C_r, z = a + re^{i\theta}, 0 \le \theta \le 2\pi$. The differential is $dz = ire^{i\theta}d\theta$. Substituting these into our integral:
f(a) = $\frac{1}{2\pi i} \int_{C_r} \frac{f(z)}{z-a}dz = \frac{1}{2\pi i} \int_0^{2\pi} \frac{f(a + re^{i\theta})}{re^{i\theta}}rie^{i\theta}d\theta = \frac{1}{2\pi} \int_0^{2\pi}f(a + re^{i\theta}) d\theta$ where the terms $i, r, e^{i\theta}$ cancel out perfectly.
Now, we look at the magnitude (modulus) of both sides:
$$ \begin{aligned} |f(a)| &=\left| \frac{1}{2\pi} \int_0^{2\pi} f(a + re^{i\theta}) d\theta \right| \\[2pt] &\text{Move the absolute value inside the integral. We use a fundamental property of integrals: the absolute value of an integral is less than or equal to the integral of the absolute value,} |\int g| \le \int |g| \\[2pt] &\le \frac{1}{2\pi} \int_0^{2\pi} |f(a + re^{i\theta})| d\theta \\[2pt] &\text{Now, we apply the Theorem's Hypothesis,} |f(z)| \le |f(a)|, \forall z \in \mathbb{B}(a; R) \\[2pt] &\le \frac{1}{2\pi} \int_0^{2\pi} |f(a)|d\theta \\[2pt] &=\frac{1}{2\pi} |f(a)| \cdot (2\pi - 0) = |f(a)|. \end{aligned} $$We have just sandwiched the integral between $|f(a)|$ and $|f(a)|, |f(a)| \le \frac{1}{2\pi} \int_0^{2\pi} |f(a + re^{i\theta})| d\theta \le |f(a)|$
Therefore, equality must hold exactly everywhere: $|f(a)| = \frac{1}{2\pi} \int_0^{2\pi} |f(a + re^{i\theta})| d\theta$. Rearranging this equality gives: $|f(a)| - \frac{1}{2\pi}\int_0^{2\pi} |f(a + re^{i\theta})| d\theta = 0$.
Move |f(a)| inside the integral (as a constant, it equals $\frac{1}{2\pi}\int_0^{2\pi} |f(a)| d\theta$): $\frac{1}{2\pi} \int_0^{2\pi} \left( |f(a)| - |f(a + re^{i\theta})|\right) d\theta = 0$
f is analytic, so |f| is continuous. By hypothesis, $|f(a)|$ is the maximum, so $|f(a)| \ge |f(z)|$. Therefore, $(|f(a)| - |f(z)|) \ge 0$. If you integrate a continuous, strictly non-negative function and the result is 0, the function itself must be identically 0 everywhere. $|f(a)| - |f(a + re^{i\theta})| = 0 \implies |f(a + re^{i\theta})| = |f(a)|$
Since this was true for any circle of radius r, $0 \lt r \lt R$ the modulus $|f(z)|$ is constant throughout the entire open disk.
We have proved that $|f(z)| = c$ (a constant). Does this mean $f(z)$ is constant?
Apply Cauchy–Riemann equations: $u_x=v_y, u_y=-v_x$, we get: From (1): $uu_x + vv_x = 0 \implies uu_x - vu_y = 0$ (using $v_x = -u_y$). From (2): $uu_y + vv_y = 0 \implies uu_y + vu_x = 0$ (using $v_y = u_x$)
This gives us the system: $\begin{pmatrix} u & -v \\\ v & u \end{pmatrix} \begin{pmatrix} u_x \\\ u_y \end{pmatrix} = \begin{pmatrix} 0 \\\ 0 \end{pmatrix}$
The determinant of this matrix is $u^2 + v^2 = c^2 \neq 0$, so the matrix is invertible and the only solution is $u_x = u_y = 0$. By the Cauchy–Riemann equations, this forces $v_x=v_y=0$ as well. All partial derivatives vanish, so both u and v are constant functions. Therefore, f(z) is constant. $\blacksquare$
Maximum modulus principle. Let G be a bounded region. Let f be analytic in G and continous on the topological closure of G, $\bar{G}$. Then, |f| attains its maximum on the boundary of G, $\partial G := \bar{G} \setminus G$.
Proof
Since $\overline{G}$ is compact and $|f|$ is continuous on $\overline{G}$, the function $|f|$ attains a maximum somewhere in $\overline{G}$.
So a nonconstant analytic function can attain its maximum only on the boundary. ∎
This is one of the strongest ways in which complex differentiability differs from real differentiability. A real differentiable function can have interior maxima all the time. A nonconstant analytic function cannot.
If $f$ is analytic, nonconstant, and has no zeros in a domain, then $|f|$ cannot attain a local minimum in the interior.
This was proved above in the disk case, and the same argument applies locally.
Lemma. If $\gamma$ is a piecewise differentiable closed curve (not necessarily simple) not passing through the point a, $a \in \mathbb{C}$, then the value of the contour integral $\int_{\gamma} \frac{dz}{z-a}$ is an integer multiple of $2\pi i$.
Recall that the antiderivative of $\frac{1}{z-a}$ is $\log(z-a)$.
However, the complex logarithm is multi-valued because arg(z - a) increases by 2π for each full counterclockwise loop around a, $log(z-a) = ln|z-a|+iarg(z-a)$ so the integral measures the net change in the argument (angle) of z - a as z traces the curve $\gamma$. Every time you make a full circle around a, the angle (argument) of the logarithm increases by $2\pi$. If you loop once, the net change is $2\pi i$. If you loop twice, it changes by $4\pi i$, and so on. Therefore, the total change must be $k \cdot 2\pi i$ for some integer k.
$\int_{\gamma} \frac{dz}{z-a} = log(z-a)|_{start}^{end} = 2\pi i k$
We normalize the integral by dividing by $2\pi i$ to get that integer k.
Definition. The index or the winding number of a closed curve $\gamma$ with respect to a point a is the integer defined as, $n(\gamma; a) := \frac{1}{2\pi i} \int_{\gamma} \frac{dz}{z-a}$.
The winding number counts how many times a closed curve $\gamma$ wraps counterclockwise around a specific point a. $n(\gamma; a) = 1$: The curve wraps once counterclockwise around a. $n(\gamma; a) = -1$: The curve wraps once clockwise around a. $n(\gamma; a) = 0$: $\gamma$ does not wind around $a$, the point a is “outside” the loop. $n(\gamma;a)=2$: it wraps twice counterclockwise, etc.
Lemma. Let $\gamma: [a, b] \to \mathbb{C}$ be a closed curve, i.e., a continuous function with $\gamma(a) = \gamma(b)$. Then, its trace $\gamma^* = \gamma$([a, b]) is a compact subset of $\mathbb{C}$ (hence, closed and bounded set). Consequently, the complement $\mathbb{C} \setminus \gamma^*$ is an open subset of $\mathbb{C}$ (it ensures that every point not on the curve has a small neighborhood entirely contained in the complement).
Imagine drawing a closed loop on a piece of paper without lifting your pen —this loop is the trace $\gamma^*$. Although the curve may intersect itself, the set of all points you’ve drawn is a closed, bounded figure in the plane. The complement $\mathbb{C} \setminus \gamma^*$ —the plane with the loop removed —breaks up into one or more connected components:
This line divides the paper into distinct regions, called components:
Thus, even though $\mathbb{C} \setminus \gamma^*$ is open, it is typically not connected —its connected components reflect the topological complexity of the curve.
The function $a\mapsto n(\gamma;a)$ is constant on each connected component of $\mathbb C\setminus\gamma^*$, and equals $0$ on the unbounded component.
Proof.
(1) $n(-\gamma; a) = \frac{1}{2\pi i} \int_{-\gamma} \frac{dz}{z-a} = -\frac{1}{2\pi i} \int_{\gamma} \frac{dz}{z-a} = -n(\gamma; a)$
If $-\gamma$ denotes the same geometric curve as $\gamma$ but traversed in the opposite direction, then: $\int_{-\gamma }f(z) dz = -\int_{\gamma }f(z) dz.$
(2) If $\gamma$ is inside a circle (disk) D, then for any point a outside of the circle, $\frac{1}{z-a}$ is analytic on and inside that disk.
Cauchy’s Theorem states that the integral of an analytic function over a closed loop in a simply connected domain (e.g., our disk D) is 0, $\frac{1}{2\pi i} \int_{\gamma} \frac{dz}{z-a} = 0 \implies n(\gamma; a) = 0$. Hence the winding number vanishes.
(3) We pick two points, a and b, inside the same component (region) of $\mathbb{C} \setminus \gamma^*$. We connect them with a polygonal path connecting both points lying completely in the component of $\mathbb{C} \setminus \gamma^*$, i.e., this path does not intersect $\gamma^*$.
If we can prove the winding number doesn’t change as we move slightly along this path, it is constant for the whole region. In other words, it is enough to show that the winding number stays unchanged along each small line segment.
So suppose a segment [a, b] which does not intersect (or touch) the curve $\gamma^*$, we aim to prove that $n(\gamma; a) = n(\gamma; b)$.
Consider the function $F(z)=\log \! \left( \frac{z-a}{z-b}\right)$.
$\frac{z-a}{z-b}$ maps the segment joining a and b into the negative real axis. Therefore, outside the segment joining a and b, $\frac{z-a}{z-b}$ is never real and $\frac{z-a}{z-b} \le 0$ simultaneously.
$g(z) = \frac{z-a}{z-b}, z(t)=a+t(b−a), t \in [0, 1]$, g(z(t))=$\frac{t}{t-1}$. For $t \in [0, 1), t - 1\lt 0, \frac{t}{t-1}$ is negative real. At t = 0, g(z(0)) = 0. As $t \to 1^-, g(z(t)) \to \infty$.
Therefore, F is analytic on the line segment joining a and b and its derivative is $F'(z) = \frac{d}{dz}(log(\frac{z-a}{z-b})) = \frac{d}{dz} \left( \log(z-a) - \log(z-b) \right) = \frac{1}{z-a} - \frac{1}{z-b}, \forall z \in \mathbb{C} \setminus$ [a, b].
Fundamental Theorem of Calculus: If a continuous function f(z) has an analytic primitive $F(z)$ on a closed curve $\gamma$, its integral is zero, $\oint_{\gamma} F'(z) dz = F(\text{end}) - F(\text{start}) = 0$ (Since start = end because $\gamma$ is a closed loop).
Since F is analytic on and inside $\gamma$, we have: $\oint _{\gamma }F'(z)\, dz=0.$
Therefore: $\int_{\gamma} (\frac{1}{z-a}-\frac{1}{z-b})dz = 2\pi i(n(\gamma; a) -n(\gamma; b)) = 0 \implies n(\gamma; a) = n(\gamma; b)$.
This proves the winding number is constant on each connected component of $\mathbb{C}\setminus \gamma ^*$ (3a).
We want to prove that for any point z in the unbounded component (let’s call this region $U_\infty$), the winding number is 0.
Because $\gamma$ is a closed path, it doesn’t stretch to infinity. $\gamma^*$ is indeed a compact set (closed and bounded). This means we can draw a giant circle $C_\rho$ (radius $\rho$) around the origin that completely swallows it, $\gamma \subset I(C_\rho)$
The unbounded component $U_\infty$ extends to infinity. This means we can find a point a in this component that is extremely far away. Specifically, we choose a point a such that $|a| > \rho$, i.e., a is outside the circle of radius $\rho$.
By the “Far away” 2 property (if $\gamma$ lies in the inside of a circle, then $n(\gamma; a) = 0$ for all points a outside of the circle), $n(\gamma; a) = 0$.
We have now proven that the winding number is 0 for one specific point a (the one really far away). But what about a point b that is in the unbounded component but close to the curve?
We proved before in Property (3a) that $n(\gamma; z)$ is a constant function on any connected component. Since $a$ and $b$ are in the same component (the unbounded one), they must have the same winding number, $n(\gamma; b) = n(\gamma; a) = 0$. Therefore, the winding number is 0 for every point in the unbounded component.