JustToThePoint English Website Version
JustToThePoint en español

The Winding Number of a Curve: A Comprehensive Guide

Silence is a source of great strength, Lao Tzu

image info

Introduction

A complex function $f(z)$ maps $z = x + iy \in \mathbb{C}$ to another complex number. For example: $f(z) = z^2 = (x + iy)^2 = x^2 - y^2 + 2ixy, f(z) = \frac{1}{z}, f(z) = \sqrt{z^2 + 7}$.

A contour is a continuous, piecewise-smooth curve defined parametrically as: $z(t) = x(t) + iy(t), \quad a \leq t \leq b$.

Definition (Smooth Contour Integral). Let ᵞ be a smooth contour (a continuously differentiable path in the complex plane), $\gamma: [a, b] \to \mathbb{C}$. Let $f: \gamma^* \to \mathbb{C}$ be a continuous complex-valued function defined on the trace $\gamma^*$ of the contour (i.e. along the image of $\gamma$). Then, the contour integral of f along $\gamma$ is defined as $\int_{\gamma} f(z)dz := \int_{a}^{b} f(\gamma(t)) \gamma^{'}(t)dt$.

Properties

Cauchy Integral Formula

  1. For a simple pole at a point $z_k$ (i.e., the denominator has a simple root) is calculated using the formula $Res(f, z_k) = \lim_{z \to z_k}(z-z_k)f(z)$.
  2. For a pole of order m, $Res(f, z_k) = \frac{1}{(m-1)!}\lim_{z \to z_k} \frac{d^{m-1}}{dz^{m-1}}[(z-z_k)^mf(z)]$
  1. Reversal of orientation. $\int_{-\gamma} f(z)dz = -\int_{\gamma} f(z)dz$ where $-\gamma:[a,b] \to \mathbb{C}$ is the reverse of the contour (traversing the same path in the opposite direction) defined by $(- \gamma)(t)=\gamma(a+b-t)$. This property states that reversing the direction of a contour changes or flips the sign of the integral. Intuitively, this is analogous to how reversing the limits of integration in real analysis changes the sign: $\int_a^b f(x)dx = -\int_b^a f(x)dx$. In complex analysis, the orientation of the contour matters because the integral depends on the direction in which we traverse the path.
  2. Additivity under subdivision. Suppose a < c < b, let split $\gamma$ into two sub-contours $\gamma_1 = \gamma|_{[a, c]} \text{ and } \gamma_2 = \gamma|_{[c, b]}$, then $\int_{\gamma} f(z)dz = \int_{\gamma_1} f(z)dz + \int_{\gamma_2} f(z)dz$. This property states that integrating over the whole contour is the same as integrating over the pieces successively. This is the complex analogue of the additive property of definite integrals: $\int_a^b f(x)dx = \int_a^c f(x)dx + \int_c^b f(x)dx $ for a < c < b.
  3. Invariance of Contour Integrals Under Reparameterization. Let $\tilde{\gamma}$ be a contour, defined by a function $\tilde{\gamma}: [c, d] \to \mathbb{C}$. If $\tilde{\gamma}$ is another parameterization of the same oriented path $\gamma$ meaning there exists a one-to-one, continuously differentiable map $\psi: [c,d]\to[a,b]$ with a positive derivative $\psi'(t)>0$ such that $\tilde{\gamma}(t) = \gamma(\psi(t))$, then $\int_{\gamma} f(z)dz = \int_{\tilde{\gamma}} f(z)dz$

The Winding Number of a Curve

Lemma. If γ is a piecewise differentiable closed curve that does not pass through a point a in the complex plane ($a \in \mathbb{C}$), then the value of the integral $\oint_{\gamma} \frac{dz}{z-a}$ is an integer multiple of 2πi.

This Lemma proves that the integral $\oint_{\gamma} \frac{dz}{z-a}$ can only take values in the discrete set $\{ \dots, -2\pi i, 0, 2\pi i, 4\pi i, \dots \}$. It is incredibly important because it mathematically formalizes the Winding Number (or index) of a curve — a way to count exactly how many times a curve wraps around a specific point.

Proof.

  1. Let $\gamma: [\alpha, \beta] \to \mathbb{C}$ be a piecewise differentiable closed curve. Since $\gamma$ is closed, the starting point $\gamma(\alpha)$ equals the final point $\gamma(\beta), \gamma(\alpha) = \gamma(\beta)$.
    Let $a$ be a point in the complex plane that does not lie anywhere on the curve $\gamma$.
  2. Define the accumulation function. We define a function $h(t)$ that represents the accumulated value of our integral from the starting time $\alpha$ up to some time t: $h(t) = \int_{\alpha}^t \frac{\gamma'(u) du}{\gamma(u)-a} \text{ for } t \in [\alpha, \beta]$.
    Since $\gamma$ is piecewise differentiable (continuous everywhere on $[\alpha, \beta]$ except possibly at a finite number of points) and $\gamma(t) \neq a$ (the path doesn’t pass through the singularity a), the denominator $\gamma(u) - a$ is never zero on the entire integration path, ensuring the denominator is bounded away from zero ($\gamma$ is a continuous curve on a compact interval $[\alpha, \beta], \gamma(u) - a$ is a non-zero continuous function), hence the resulting integrand is piecewise continuous on the compact interval $[\alpha, \beta]$ and then, the integral that defines h(t) is a proper Riemann integral (or a standard contour integral), which means it exists and is unique for every t, i.e., h(t) is well-defined. $h(t)$ is also a continuous function on $[\alpha, \beta]$.

    $h(t) = \int_{\alpha}^t f(u) du \quad \text{where } f(u) = \frac{\gamma'(u)}{\gamma(u)-a}$. A fundamental theorem of calculus states that if $f(u)$ is piecewise continuous on a closed interval $[\alpha, \beta]$, then the integral function $h(t)$ is continuous on that entire interval. Notice that h(t) represents the accumulated area as t increases. A piecewise continuous function f(u) can have a finite number of jumps. Integrating a finite jump results in a corner in the graph of the integral function h(t), but it does not result in a break or jump in h(t). For h(t) to be discontinuous, the integrand f(u) would have to contain an infinite singularity (which is ruled out because $\gamma(u) \neq a$).

  3. At the start of the path, $h(\alpha) = \int_{\alpha}^\alpha \frac{\gamma'(u) du}{\gamma(u)-a} = 0$.
  4. By the Fundamental Theorem of Calculus (for the real variable $t$), at points where $\gamma$ is differentiable, the derivative of $h(t)$ is simply the integrand: $h'(t) = \frac{\gamma'(t)}{\gamma(t)-a} (\star)$
  5. Construct an auxiliary function. Define: $G(t) = e^{-h(t)} (\gamma(t)-a)$. We compute the derivative of $G(t)$ with respect to t.

    We might look at $h'(t) = \frac{\gamma'(t)}{\gamma(t)-a}$ and think, “That looks like the derivative of a natural logarithm!” If $h(t) \approx \ln(\gamma(t)-a)$, then exponentiating both sides gives $e^{h(t)} \approx \gamma(t)-a$. If we rearrange this informal guess, we get $\frac{\gamma(t)-a}{e^{h(t)}} \approx \text{constant}$.

    $$ \begin{aligned} \frac{d}{dt}(e^{-h(t)} (\gamma(t)-a)) = & [\text{ Product rule: } \frac{d}{dt}(uv) = u'v + uv'] \\[2pt] &=e^{-h(t)}(-h'(t))(\gamma(t)-a) + e^{-h(t)}(\gamma'(t)) \\[2pt] &= [\text{Now, we substitute our know expression for $h'(t)$ from } (\star)] \\[2pt] &=e^{-h(t)}(-\frac{\gamma'(t)}{\gamma(t)-a})(\gamma(t)-a) + e^{-h(t)}(\gamma'(t)) \\[2pt] &=e^{-h(t)}(-\gamma'(t))+ e^{-h(t)}(\gamma'(t))\\[2pt] &=0. \end{aligned} $$
  6. Since the derivative of the function $G(t)$ is identically zero on the interval $[\alpha, \beta]$, the function itself must be a constant everywhere on $[\alpha, \beta]$, $e^{-h(t)} (\gamma(t)-a) = c$ where c is a constant.
    This can be rearranged to express the path $\gamma(t)$ in terms of h(t): $\gamma(t)-a = ce^{h(t)}$. In particular, we evaluate the expression at $t = \beta, ce^{h(\beta)} = \gamma(\beta)-a = \gamma(\alpha) - a =[\text{Evaluating the expression at } t = \alpha] ce^{h(\alpha)} =[(3:) h(\alpha) = 0] ce^0 = c$.
    $c(1) = \gamma(\alpha) - a \implies c = \gamma(\alpha) - a$. Since the curve does not pass through a, $c = \gamma(\alpha) - a \neq 0$.
  7. Therefore, $ce^{h(\beta)} = c \leadsto[c \neq 0, \text{ we can divide both sides by c}] e^{h(\beta)} = 1 \leadsto h(\beta) = 2\pi i n$ for some integer n.

    The solution to the equation $e^w = 1$ in the complex plane is $w = 2\pi i n$, where n is any integer ($\dots, -2, -1, 0, 1, 2, \dots$).

  8. Since $h(\beta)$ is the definition of our full contour integral, we have proven: $\oint_{\gamma} \frac{dz}{z-a} = \int_{\alpha}^{\beta} \frac{\gamma'(t) dt}{\gamma(t)-a} = h(\beta) = 2\pi i n$

Definition. Let $\gamma : [\alpha, \beta] \to \mathbb{C}$ be a piecewise smooth closed curve, and let $z_0 \notin \gamma^*$ (a point not on the curve). The winding number of $\gamma$ about $z_0$, also known as the index of $z_0$ with respect to γ, is defined as $\boxed{n(\gamma, z_0) = \operatorname{Ind}_\gamma(z_0) = \frac{1}{2\pi i}\oint_\gamma \frac{dz}{z - z_0} = \frac{1}{2\pi i}\int_\alpha^\beta \frac{\gamma'(t)}{\gamma(t) - z_0}\,dt.}$

By the lemma, $n(\gamma, z_0)$ is always an integer. It counts the net number of times $\gamma$ winds around $z_0$ counterclockwise.

When counting the total number of turns, counterclockwise motion counts as positive (it contributes +1 per full loop), while clockwise motion counts as negative (it contributes −1 per full loo). The winding number is the algebraic (signed) total.

Figure 4 illustrates indices −2, −1, 0, 1, 2, 3 for concentric loops with various orientations; the multi-loop picture shows different points $z_0, z_1, z_2$ with different winding counts. image info

Key insight

To understand why this formula works, consider the polar representation. Write: $z-z_0 = re^{i\theta} \leadsto dz = e^{i\theta}dr + ire^{i\theta}d\theta \leadsto \frac{dz}{z-z_0} = \frac{e^{i\theta}dr + ire^{i\theta}d\theta}{re^{i\theta}} = \frac{dr}{r}+id\theta$

$\oint_{\gamma} \frac{dz}{z - z_0} = \int_a^b \frac{dr}{r}+id\theta = ln(r)\bigg|_{a}^{b} + i×\text{total change in θ}$

The term $\frac{dr}{r}$ integrates to zero because ln(r) returns to its initial value (closed curve), $\oint \frac{dr}{r} = \ln r\big|_{\text{start}}^{\text{end}} = 0$.

$\oint_{\gamma} \frac{dz}{z - z_0} = i×\text{total change in θ} = i(2\pi k)$ where k is the net number of revolutions. Dividing by 2πi gives k, the winding number.

$\oint_\gamma \frac{1}{z} = \begin{cases} 2\pi i, &\gamma: [0, 2\pi] → \mathbb{C}, t → e^{it} \text{ It rotates once} \\\\ 4\pi i, &\gamma: [0, 4\pi] → \mathbb{C}, t → e^{it} \text{ It rotates twice} \\\\ 0, &\gamma: [a, b] → \mathbb{C} \text{ Not at all} \end{cases}$

Properties of the Winding Number

For a simple closed curve γ:

A continuous integer-valued function on a connected set is constant (since $\mathbb{Z}$ is discrete).

If a function takes values in a discrete space (like ℤ) and is continuous on a connected domain, it cannot “jump,” so it must stay fixed

In other words, the winding number is constant for all points within a connected region defined by the curve.

Relation to the Jordan Curve Theorem

For a simple closed curve (Jordan curve) $\gamma$, the Jordan curve theorem says $\mathbb{C} \setminus \gamma^*$ has exactly two connected components: a bounded interior and an unbounded exterior. The winding number provides a precise algebraic test.

Let $\gamma$ be any positively oriented Jordan curve. Then, for any $z_0 \notin \gamma, n(\gamma; z_0) = \begin{cases} 1, z_0 \in Int(\gamma) \\\\ 0, z_0 \in Ext(\gamma) \end{cases}$

For a negatively oriented Jordan curve, the interior value is $-1$.

Proof

Case 1. $z_0 \in Int(\gamma)$

  1. Approximate the Curve with a Polygon P close enough that $z_0$ remains inside. A Jordan curve γ can be approximated arbitrarily well by a simple polygon P that lies entirely within its interior. We can construct P to be positively oriented and “close enough” to γ so that it also contains $z_0$. Because the winding number integral is continuous with respect to the path, this approximation doesn’t change the result: $n(\gamma, z_0) = n(P, z_0)$

  2. Triangulate the Polygon. Any simple polygon can be divided into a finite number of triangles ($T_1, T_2, \cdots T_k$). The integral over the boundary of the polygon is the sum of the integrals over the boundaries of these triangles. This is because all the internal edges are traversed twice in opposite directions, and their integrals cancel each other out, leaving only the integral over the exterior boundary: $n(P, z_0) = \sum_{j=1}^k n(∂T_j,z_0)$.

  3. Isolate the Key Triangle. The point $z_0$ must lie in the interior of exactly one of these triangles, let’s call it $T_1$. For any other triangle $T_j, j \ne 1$, the point $z_0$ is in its exterior. The function $\frac{1}{z-z_0}$ is analytic inside and on the boundary of $T_j$. By Cauchy’s Integral Theorem, the integral is zero. Thus, $n(∂T_j,z_0) = 0$ for j ≠ 1.

    This means our sum collapses to a single term: $n(P, z_0) = \sum_{j=1}^k n(∂T_j,z_0) = n(∂T_1,z_0)$

  4. Deform the Triangle to a Circle (Homotopy). Let C be a small, positively oriented circle centered at $z_0$ that lies completely inside the triangle $T_1$. The function $\frac{1}{z-z_0}$ is analytic in the region between the triangle’s boundary and the circle. By the Deformation Principle (homotopy invariance), we can continuously deform the triangular path $∂T_1$ into the circular path C without changing the value of the integral: $n(∂T_1,z_0) = n(C, z_0)$. The winding number of a positively oriented circle around its center is known to be 1, so $n(\gamma, z_0) = n(P, z_0) = \sum_{j=1}^k n(∂T_j,z_0) = n(∂T_1,z_0) = n(C, z_0) = 1.$

Case 2. $z_0 \in Ext(\gamma)$

If $z_0$ is in the unbounded exterior region, the function $f(z) = \frac{1}{z-z_0}$ is analytic at all points inside and on the contour γ. The singularity at $z_0$ is outside the domain enclosed by the curve. By Cauchy’s Integral Theorem, the integral of an analytic function over a simple closed contour is zero: $\oint_{\gamma} \frac{1}{z-z_0} = 0$. Therefore, the winding number is: $n(\gamma; z_0) = \frac{1}{2\pi i} \oint_{\gamma} \frac{1}{z-z_0} = \frac{1}{2\pi i} \cdot 0 = 0.$

Examples

$n(\gamma, 0) = \frac{1}{2\pi i} \int_{0}^{1} \frac{1}{e^{i2\pi t}} \cdot \frac{d}{dt}(e^{i2\pi t}) dt = \frac{1}{2\pi i} \int_{0}^{1} \frac{i2\pi e^{i2\pi t}}{e^{i2\pi t}} dt = \frac{1}{2\pi i} \cdot i2\pi = 1$

For any $z_0$ with $|z_0| \lt R, \mathbb{n}(\gamma; z_0) = 1.$ This can be quickly verified using Cauchy’s Integral Formula. Let f(z) = 1. The formula states: $\oint_\gamma \frac{f(z)}{z-z_0} dz = 2\pi i \cdot f(z_0)$. Substituting into the winding number definition: $\mathbb{n}(\gamma;z_0) = \frac{1}{2\pi i}\oint_\gamma \frac{f(z)}{z-z_0} dz = \frac{1}{2\pi i} (2\pi i \cdot f(z_0)) = f(z_0) = 1.$

For any $z_0$ with $|z_0| > R, \mathbb{n}(\gamma;z_0) = 0.$ This follows from Cauchy’s Theorem. If $z_0$ is outside the circle, the function f(z) = $\frac{1}{z-z_0}$ is analytic at all points inside and on the contour γ. Therefore, its integral over the closed contour is zero: $\mathbb{n}(\gamma;z_0) = \frac{1}{2\pi i}\oint_\gamma \frac{f(z)}{z-z_0} dz = \frac{1}{2\pi i} \cdot 0 = 0.$

Hence, $\mathbb{Int}(\gamma) = \{ z \in \mathbb{C} | \mathbb{n}(\gamma; z_0) = 1 \} = \{ z \in \mathbb{C} | |z| < R \} \text{ and } \mathbb{Ext}(\gamma) = = \{ z \in \mathbb{C} | \mathbb{n}(\gamma; z_0) = 0 \} = \{ z \in \mathbb{C} | |z| > R \}.$

$n(\gamma_2, 0) = \frac{1}{2\pi i}\int_\gamma \frac{dz}{z} = \frac{1}{2\pi i}\int_1^2\frac{\gamma'(t)}{\gamma(t)}dt = \frac{1}{2\pi i}\int_1^2 \frac{-2\pi i e^{-i2\pi t}}{e^{-i2\pi t}}\,dt = \frac{1}{2\pi i}\cdot -2\pi i = -1.$

The total winding number of the combined path γ = γ₁​+γ₂ is the sum of the individual winding numbers: n(γ, 0) = n(γ₁, 0) + n(γ₂, 0) = 1 + (-1) = 0.

The two loops cancel each other out. The combined path γ winds around the origin zero times

Bitcoin donation

JustToThePoint Copyright © 2011 - 2026 Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun. Social Issues, Join us.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.