Tutorials › Real Analysis › Complex Numbers as a Metric Space

Complex Analysis Bridge · Tutorial 921 of 1000

Complex Numbers as a Metric Space

Learn how the modulus defines distance in the complex plane, how metric balls appear geometrically, and why the complex numbers form a complete metric space.

Advanced 9 min read

What You'll Learn

  • Define the distance between two complex numbers using the modulus
  • Verify that this distance satisfies all four metric axioms
  • Translate metric balls into open disks in the coordinate plane
  • Relate complex distance exactly to Euclidean distance in two coordinates
  • Prove that every Cauchy sequence of complex numbers converges in the complex plane

Distance in the Complex Plane

A metric gives a precise meaning to distance and makes it possible to discuss ideas such as neighborhoods, convergence, and completeness. For complex numbers, the modulus already measures distance from the origin. Applying it to the difference of two numbers therefore gives a natural distance between them. This viewpoint connects the algebra of complex numbers to the geometry of the plane and provides the setting for studying complex sequences in the next tutorial.

Write a complex number as \(z=x+iy\), where \(x,y\in\mathbb{R}\) and \(i^2=-1\). Its conjugate is \(\overline{z}=x-iy\), and its modulus is \(\lvert z\rvert=\sqrt{x^2+y^2}\). In particular, the modulus is nonnegative, and it is zero exactly when \(z=0\). We use the usual absolute value on the real numbers, and the usual algebraic operations on complex numbers.

Definition (Metric and Metric Space): A metric on a set \(X\) is a function \(d:X\times X\to[0,\infty)\) such that for all \(x,y,z\in X\): (1) \(d(x,y)=0\) if and only if \(x=y\); (2) \(d(x,y)=d(y,x)\); (3) \(d(x,z)\leq d(x,y)+d(y,z)\); and (4) \(d(x,y)\geq0\). A set equipped with a metric is called a metric space.

For \(z,w\in\mathbb{C}\), define \(d(z,w)=\lvert z-w\rvert\). The central fact is that this formula really is a metric. Its triangle inequality follows from the corresponding inequality for the modulus, which we verify here to make clear how the geometry and algebra fit together.

Theorem (The Modulus Distance Is a Metric): The function \(d:\mathbb{C}\times\mathbb{C}\to[0,\infty)\) defined by \(d(z,w)=\lvert z-w\rvert\) is a metric on \(\mathbb{C}\).

Proof. The modulus is nonnegative, so \(d(z,w)\geq0\). Also, \(\lvert z-w\rvert=0\) if and only if \(z-w=0\), which holds exactly when \(z=w\). Since \(\lvert -(z-w)\rvert=\lvert z-w\rvert\), we have \(d(w,z)=d(z,w)\).

For the triangle inequality, first take any complex numbers \(u,v\). The identity \(\lvert a\rvert^2=a\overline{a}\) gives

$$ |u+v|^2=|u|^2+|v|^2+2\operatorname{Re}(u\overline{v}). $$

For any complex number \(a=s+it\), \(\operatorname{Re}(a)=s\leq\sqrt{s^2+t^2}=\lvert a\rvert\). Thus \(\operatorname{Re}(u\overline{v})\leq\lvert u\overline{v}\rvert=\lvert u\rvert\lvert v\rvert\), where the last equality follows from multiplicativity of the modulus. Consequently,

$$ |u+v|^2\leq |u|^2+2|u||v|+|v|^2=(|u|+|v|)^2. $$

Both sides are nonnegative, so taking square roots gives \(\lvert u+v\rvert\leq\lvert u\rvert+\lvert v\rvert\). Now set \(u=z-y\) and \(v=y-w\). Then \(u+v=z-w\), and therefore \(d(z,w)\leq d(z,y)+d(y,w)\). All the metric axioms hold. \(\square\)

Metric Balls Are Open Disks

In any metric space, the open ball of radius \(r>0\) centered at \(a\) is the set of points whose distance from \(a\) is less than \(r\). In \(\mathbb{C}\), this definition has a direct geometric interpretation: an open ball is an open disk in the plane. The boundary circle is excluded because the inequality defining the ball is strict.

Definition (Open Ball in \(\mathbb{C}\)): If \(a\in\mathbb{C}\) and \(r>0\), the open ball centered at \(a\) with radius \(r\) is \(B(a,r)=\{z\in\mathbb{C}:|z-a|<r\}\). With the metric \(d(z,w)=|z-w|\), this is exactly the set of points less than distance \(r\) from \(a\).

To see the disk equation in coordinates, write \(a=\alpha+i\beta\) and \(z=x+iy\). Then \(z-a=(x-\alpha)+i(y-\beta)\), so \[ |z-a|=\sqrt{(x-\alpha)^2+(y-\beta)^2}. \] Thus membership in \(B(a,r)\) is equivalent to \((x-\alpha)^2+(y-\beta)^2<r^2\). This description also makes clear why the same distance measures horizontal and vertical displacement together rather than adding their absolute values.

Worked Example: Computing a Distance Between Two Points

Let \(z=1+2i\) and \(w=-2+i\). Subtracting gives \(z-w=(1-(-2))+(2-1)i=3+i\). Therefore

$$ d(z,w)=|z-w|=|3+i|=\sqrt{3^2+1^2}=\sqrt{10}. $$

The coordinate points are \((1,2)\) and \((-2,1)\), whose horizontal and vertical differences are \(3\) and \(1\). The distance \(\sqrt{10}\) is exactly the length of the straight line between those points. Reversing the subtraction gives \(w-z=-3-i\), whose modulus is also \(\sqrt{(-3)^2+(-1)^2}=\sqrt{10}\), illustrating symmetry.

Worked Example: Describing a Ball by an Inequality

Consider the open ball \(B(1-i,2)\). Write \(z=x+iy\). Then \(z-(1-i)=(x-1)+i(y+1)\), so

$$ z\in B(1-i,2) \quad\Longleftrightarrow\quad \sqrt{(x-1)^2+(y+1)^2}<2 \quad\Longleftrightarrow\quad (x-1)^2+(y+1)^2<4. $$

For \(z=2\), the left-hand coordinate expression is \((2-1)^2+(0+1)^2=2<4\), so \(2\in B(1-i,2)\). For \(z=3-i\), it is \((3-1)^2+(-1+1)^2=4\), so this point is on the boundary and is not in the open ball. The strict inequality is essential: replacing it by \(\leq4\) would describe the closed disk instead.

The Complex Plane and Euclidean Distance

The coordinate map \(z=x+iy\mapsto(x,y)\) identifies \(\mathbb{C}\) with \(\mathbb{R}^2\). Under this identification, the complex metric is not merely similar to Euclidean distance; it is exactly the Euclidean metric. This means that metric questions about complex numbers can be interpreted geometrically in the ordinary plane, with no change in the distances.

Theorem (Coordinate Identification Is an Isometry): Define \(\Phi:\mathbb{C}\to\mathbb{R}^2\) by \(\Phi(x+iy)=(x,y)\). Then \(\Phi\) is a bijection and, for all \(z,w\in\mathbb{C}\), the Euclidean distance between \(\Phi(z)\) and \(\Phi(w)\) equals \(|z-w|\). Thus \(\Phi\) is an isometry.

Proof. Every complex number has a unique expression \(x+iy\) with real \(x,y\), so \(\Phi\) is both one-to-one and onto. Let \(z=x+iy\) and \(w=u+iv\). Their coordinate images are \((x,y)\) and \((u,v)\). The Euclidean distance between these images is \(\sqrt{(x-u)^2+(y-v)^2}\). On the other hand, \(z-w=(x-u)+i(y-v)\), and hence

$$ |z-w|=\sqrt{(x-u)^2+(y-v)^2}. $$

The two distances are equal for every pair \(z,w\). Therefore \(\Phi\) preserves distance, as required. \(\square\)

An isometry preserves metric balls and distances between every pair of points. In particular, a ball in \(\mathbb{C}\) corresponds under \(\Phi\) to a Euclidean open disk with the same center coordinates and radius. Metric language in the complex plane can therefore be read either algebraically, using moduli, or geometrically, using the familiar plane.

Worked Example: A Complex Sequence Approaching a Point

Let \(z_n=(3-2i)+(1+i)/n\), where \(n\) is a positive integer, and let \(z=3-2i\). Direct subtraction gives \(z_n-z=(1+i)/n\). Thus

$$ d(z_n,z)=|z_n-z| =\left|\frac{1+i}{n}\right| =\frac{\sqrt{1^2+1^2}}{n} =\frac{\sqrt{2}}{n}. $$

For every \(\varepsilon>0\), choose a positive integer \(N>\sqrt{2}/\varepsilon\). Whenever \(n\geq N\), we have \(d(z_n,z)=\sqrt{2}/n\leq\sqrt{2}/N<\varepsilon\). Hence the terms eventually lie within distance \(\varepsilon\) of \(z\), which is the metric definition of convergence. In the coordinate plane, the real and imaginary parts approach \(3\) and \(-2\), respectively; the distance calculation combines both coordinate errors at once.

Completeness of the Complex Metric

A metric space is complete if every Cauchy sequence in it converges to a point of the same space. A sequence \((z_n)\) is Cauchy when, for every \(\varepsilon>0\), all sufficiently late terms are within distance \(\varepsilon\) of one another. Completeness is an important guarantee that a process producing points closer and closer together does not converge only to a point missing from the space.

Definition (Cauchy Sequence and Completeness): A sequence \((x_n)\) in a metric space \((X,d)\) is Cauchy if for every \(\varepsilon>0\), there is \(N\) such that \(d(x_n,x_m)<\varepsilon\) whenever \(n,m\geq N\). The metric space is complete if every Cauchy sequence in it converges to an element of \(X\).
Theorem (Completeness of \(\mathbb{C}\)): The complex numbers with metric \(d(z,w)=|z-w|\) form a complete metric space.

Proof. Let \((z_n)\) be a Cauchy sequence in \(\mathbb{C}\), and write \(z_n=x_n+iy_n\) with \(x_n,y_n\in\mathbb{R}\). For any \(n,m\),

$$ |x_n-x_m|\leq |z_n-z_m|, \qquad |y_n-y_m|\leq |z_n-z_m|. $$

Indeed, if \(z_n-z_m=(x_n-x_m)+i(y_n-y_m)\), then the square of its modulus is \((x_n-x_m)^2+(y_n-y_m)^2\), which is at least either squared coordinate difference. Since \((z_n)\) is Cauchy, these inequalities show that both real sequences \((x_n)\) and \((y_n)\) are Cauchy in \(\mathbb{R}\). By completeness of the real numbers, there are \(x,y\in\mathbb{R}\) such that \(x_n\to x\) and \(y_n\to y\).

Set \(z=x+iy\), which is a complex number. We show \(z_n\to z\). Given \(\varepsilon>0\), choose \(N\) large enough that for \(n\geq N\), \(\lvert x_n-x\rvert<\varepsilon/3\) and \(\lvert y_n-y\rvert<\varepsilon/3\). Then

$$ |z_n-z| =\sqrt{(x_n-x)^2+(y_n-y)^2} \leq |x_n-x|+|y_n-y| <\frac{2\varepsilon}{3} <\varepsilon. $$

Thus \(z_n\) converges to \(z\) in the complex metric. Since the original Cauchy sequence was arbitrary, \(\mathbb{C}\) is complete. \(\square\)

The proof depends on completeness of \(\mathbb{R}\), not on a separate assumption that complex numbers have some additional limiting property. The two real coordinate sequences determine the limit, and the modulus distance ensures that convergence of both coordinates gives convergence in \(\mathbb{C}\). Conversely, the coordinate inequalities show that complex convergence forces convergence of each coordinate.

Why the Metric Viewpoint Matters

The formula \(|z-w|\) unifies algebraic and geometric reasoning. It lets us express closeness without separately tracking real and imaginary parts, while the coordinate formula remains available whenever geometry makes a calculation easier. Open balls specify neighborhoods, and completeness ensures that Cauchy processes have limits in the complex plane. These are the basic metric ideas needed to study complex sequences systematically.

A common pitfall is to confuse distance from the origin, \(|z|\), with distance between arbitrary points. The distance from \(z\) to \(w\) is \(|z-w|\), not \(|z|-|w|\). For instance, if \(z=1+i\) and \(w=1-i\), then \(|z|=|w|=\sqrt{2}\), but \(|z-w|=|2i|=2\). Equal distances from the origin do not mean that two points coincide or are close to each other.

Check Your Understanding

Use the metric definition and the coordinate formulas in this tutorial to answer the following questions.

  1. Which metric axiom follows from the inequality \(|u+v|\leq|u|+|v|\), and how are \(u\) and \(v\) chosen to prove it for \(d(z,w)=|z-w|\)?
  2. Write the coordinate inequality describing the open ball \(B(2+i,3)\).
  3. What is the distance between \(z=2-i\) and \(w=-1+3i\)? Show the subtraction and modulus calculation.
  4. Why does a Cauchy sequence in \(\mathbb{C}\) have Cauchy real-part and imaginary-part sequences?
  5. In the completeness proof, why does convergence of both coordinate sequences imply convergence in the complex metric?