Tutorials › Topology (Undergraduate) › Why Every Open Ball Is Open

Metric Spaces and Open Balls · Tutorial 53 of 799

Why Every Open Ball Is Open

Learn how the triangle inequality supplies a positive radius around every point of a metric ball, and practise finding that radius in several metrics.

Beginner 9 min read

What You'll Learn

  • Use the positive distance remaining between a point and the boundary radius of a ball.
  • Prove that each point of an open ball has a smaller ball contained in it.
  • Distinguish the center and radius of an outer ball from those of an inner ball.
  • Apply the argument in the real line, the sup metric, a subspace, and the discrete metric.
  • Recognize why a radius that works at one point need not work at every point.
  • Correct a common error that can place points outside the original ball.

The Room Around a Point Inside a Ball

An open ball is described by a center and a radius, but openness asks for a local condition at every point of the set: each point must itself have a ball around it that remains inside the set. The center of the original ball is not the only point for which this condition must be checked. The key is to measure how much of the original radius remains after reaching the point under consideration.

Throughout, \((X,d)\) is a metric space. Thus \(d:X\times X\to[0,\infty)\) satisfies \(d(x,y)=0\) exactly when \(x=y\), is symmetric, and satisfies the triangle inequality \(d(x,z)\le d(x,y)+d(y,z)\) for all \(x,y,z\in X\). For \(x\in X\) and \(r>0\), the open ball is \(B(x,r)=\{z\in X:d(x,z)<r\}\). The metric topology consists of the empty set and those subsets \(U\subseteq X\) for which every \(y\in U\) has some \(\rho>0\) with \(B(y,\rho)\subseteq U\). This is the local-ball test for openness.

Theorem: For every metric space \((X,d)\), every \(x\in X\), and every \(r>0\), the open ball \(B(x,r)\) is open in the metric topology.

The point \(x\) is the center and \(r\) is the radius of the original ball. To check openness, take any point \(y\) in that ball. Membership means \(d(x,y)<r\), so the difference \(r-d(x,y)\) is positive. We use this difference to choose a smaller radius around \(y\).

Proof. If \(X\) is empty, there is no \(x\in X\), so the statement holds vacuously. Otherwise fix \(x\in X\) and \(r>0\), and take an arbitrary \(y\in B(x,r)\). By the definition of the ball, \(d(x,y)<r\), so \(\delta=r-d(x,y)>0\). Set \(\rho=\delta/2\), which is positive. If \(z\in B(y,\rho)\), then \(d(y,z)<\rho\). The triangle inequality gives \(d(x,z)\le d(x,y)+d(y,z)<d(x,y)+\rho\). Since \(\rho=(r-d(x,y))/2\), we have \(d(x,y)+\rho=(r+d(x,y))/2<r\), where the last inequality follows from \(d(x,y)<r\). Therefore \(d(x,z)<r\), so \(z\in B(x,r)\). We have shown \(B(y,\rho)\subseteq B(x,r)\). As this works for every \(y\in B(x,r)\), the local-ball test says that \(B(x,r)\) is open. \(\square\)

Choosing the Smaller Radius

The proof gives a particular valid choice at \(y\): \(\rho=(r-d(x,y))/2\). It is half the remaining distance allowance. The factor \(1/2\) is convenient because it leaves room in the strict inequality; the argument does not say that this is the only possible choice. The radius must be positive, which is why the point \(y\) must be in the open ball rather than merely at distance less than or equal to \(r\).

Here is the same estimate in a form useful for checking an example. If \(z\in B(y,\rho)\), then \(d(x,z)\le d(x,y)+d(y,z)<d(x,y)+\rho\). Thus it is enough to choose \(\rho>0\) so that \(d(x,y)+\rho\le r\). The half-margin choice satisfies even the stronger inequality \(d(x,y)+\rho<r\). Nothing in this reasoning depends on coordinates or on a special shape of a ball; it uses only the metric axioms, in particular the triangle inequality.

Worked Example: A Ball in the Real Line

Use the usual metric \(d(a,b)=|a-b|\) on \(\mathbb{R}\). Consider \(B(2,4)\) and the point \(y=5\). First, \(d(2,5)=|2-5|=3\), and \(3<4\), so \(5\in B(2,4)\). The remaining distance is \(4-3=1\), and the half-margin choice is \(\rho=1/2\).

If \(z\in B(5,1/2)\), then \(|z-5|<1/2\). The triangle inequality for absolute values gives \(|z-2|\le |z-5|+|5-2|<1/2+3=7/2\). Since \(7/2<4\), it follows that \(z\in B(2,4)\). Hence \(B(5,1/2)\subseteq B(2,4)\).

Check: the endpoints of the smaller ball are \(5-1/2=9/2\) and \(5+1/2=11/2\). Their distances from \(2\) are \(|9/2-2|=5/2<4\) and \(|11/2-2|=7/2<4\). This agrees with the estimate; membership in an open ball uses a strict inequality.

Worked Example: The Sup Metric on the Plane

On \(\mathbb{R}^2\), use the sup metric \(d_\infty((a_1,a_2),(b_1,b_2))=\max\{|a_1-b_1|,|a_2-b_2|\}\). Let \(x=(1,-2)\), \(r=5\), and \(y=(4,1)\). The coordinate differences are \(|4-1|=3\) and \(|1-(-2)|=3\), so \(d_\infty(x,y)=\max\{3,3\}=3<5\). The remaining distance is \(5-3=2\), so choose \(\rho=2/2=1\).

For \(z\in B(y,1)\), the triangle inequality gives \(d_\infty(x,z)\le d_\infty(x,y)+d_\infty(y,z)<3+1=4<5\). Therefore \(z\in B(x,5)\). This verifies that the smaller ball is contained in the original ball even though the distance is measured by the largest coordinate error rather than by Euclidean length.

Check: take \(z=(4.5,1.5)\). Its coordinate differences from \(y=(4,1)\) are \(0.5\) and \(0.5\), so \(d_\infty(y,z)=0.5<1\). Its coordinate differences from \(x=(1,-2)\) are \(3.5\) and \(3.5\), so \(d_\infty(x,z)=3.5<5\), as required.

Relative Balls and Discrete Balls

The same proof applies when a metric is restricted to a subset. A ball in a subspace is a ball relative to that subspace: its points must belong to the subspace as well as satisfy the distance inequality. The triangle inequality still holds for the restricted metric, so the proof does not need to change.

Worked Example: A Ball in a Subspace

Let \(X=[0,4]\) with the metric inherited from the usual metric on \(\mathbb{R}\). Consider the relative ball \(B_X(1,3)\) and its point \(y=7/2\). The distance from the center is \(|7/2-1|=|5/2|=5/2<3\), so \(y\) belongs to the ball. The remaining distance is \(3-5/2=1/2\), and the half-margin choice is \(\rho=1/4\).

The relative ball \(B_X(7/2,1/4)\) consists of the points \(z\in[0,4]\) with \(|z-7/2|<1/4\); equivalently, it is \((13/4,15/4)\). For any such \(z\), the triangle inequality gives \(|z-1|\le |z-7/2|+|7/2-1|<1/4+5/2=11/4<3\). Thus \(z\in B_X(1,3)\). Indeed, \(B_X(1,3)=[0,4)\), since its points satisfy \(z\in[0,4]\) and \(|z-1|<3\).

Check: the endpoints \(13/4\) and \(15/4\) of the smaller interval both lie in \([0,4]\), but neither is in the open ball of radius \(1/4\) about \(7/2\), because each has distance exactly \(1/4\) from \(7/2\). Every point actually in the smaller ball satisfies the strict estimate above.

Worked Example: A Ball in the Discrete Metric

Let \(X=\{a,b,c\}\) with the discrete metric \(d(u,v)=0\) when \(u=v\), and \(d(u,v)=1\) when \(u\ne v\). Consider \(B(a,1/2)\). Since \(d(a,a)=0<1/2\), the point \(a\) is in the ball. For \(b\) and \(c\), the distances from \(a\) are both \(1\), and \(1\not<1/2\). Hence \(B(a,1/2)=\{a\}\).

For its point \(y=a\), the remaining distance is \(1/2-d(a,a)=1/2-0=1/2\), so take \(\rho=1/4\). The distances from \(a\) to \(b\) and \(c\) are \(1\), which are not less than \(1/4\), while \(d(a,a)=0<1/4\). Thus \(B(a,1/4)=\{a\}\subseteq B(a,1/2)\).

Check: both balls contain \(a\) and exclude \(b\) and \(c\), so the computed smaller ball is indeed contained in the original one. This example also shows why the general proof is useful: the argument works even when the ball has only one point.

A Ball Is the Union of Its Smaller Neighborhoods

Corollary: For \(x\in X\) and \(r>0\), \(B(x,r)=\displaystyle\bigcup_{y\in B(x,r)}B\bigl(y,(r-d(x,y))/2\bigr)\).

This equality makes the local content of the theorem explicit: the original ball is covered by smaller balls, one centered at each of its points. Each smaller radius depends on its center \(y\), through the distance \(d(x,y)\).

Proof. Write \(V\) for the union on the right. If \(z\in V\), then for some \(y\in B(x,r)\) we have \(z\in B(y,(r-d(x,y))/2)\). The theorem's triangle-inequality estimate shows that this smaller ball is contained in \(B(x,r)\), so \(z\in B(x,r)\). Hence \(V\subseteq B(x,r)\). Conversely, take any \(z\in B(x,r)\). The term in the union corresponding to \(y=z\) has positive radius \((r-d(x,z))/2\), because \(d(x,z)<r\). Also \(d(z,z)=0<(r-d(x,z))/2\), so \(z\) belongs to that term. Thus \(z\in V\), giving \(B(x,r)\subseteq V\). The two inclusions prove the equality. \(\square\)

The radii in this union generally cannot be replaced by one fixed positive radius for every point. For example, in \(\mathbb{R}\), points \(y_n=1-1/n\), for \(n\ge2\), lie in \(B(0,1)\), and their remaining distances are \(1-|y_n|=1/n\). These distances become arbitrarily small as \(n\) increases. The proof needs a positive radius at each point, not a single radius that works uniformly throughout the ball.

Common Pitfall: Using the Outer Radius Again

A tempting but incorrect choice is to give a point \(y\) the same radius \(r\) as the outer ball. Take \(B(0,1)\subset\mathbb{R}\) and \(y=9/10\). This point belongs to the ball because \(|9/10|=9/10<1\). But \(B(y,1)\) is not contained in \(B(0,1)\): the point \(z=19/10\) satisfies \(|z-y|=|19/10-9/10|=1\), so this particular point is on the boundary and is not in \(B(y,1)\). Instead take \(z=3/2\): then \(|3/2-9/10|=3/5<1\), while \(|3/2|=3/2>1\). Thus \(z\in B(y,1)\) but \(z\notin B(0,1)\).

The correction is to use the remaining distance, not the full outer radius. Here the margin is \(1-9/10=1/10\), and the half-margin choice is \(\rho=1/20\). If \(|z-9/10|<1/20\), then \(|z|\le |z-9/10|+9/10<1/20+9/10=19/20<1\). So this smaller ball really is contained in \(B(0,1)\). The strict membership condition matters twice: it ensures the margin is positive, and points at exactly the chosen radius are not included in the smaller open ball.

The method is short, but its logic is worth retaining: start with an arbitrary point of the ball, compute the positive gap between its distance from the center and the outer radius, choose a positive fraction of that gap, and apply the triangle inequality. The same sequence of steps proves openness regardless of whether distances are measured on the real line, in a coordinate metric, or in a restricted metric space.

Check Your Understanding

For each question, keep track of the strict inequalities that define open-ball membership.

  1. In a metric space, let \(y\in B(x,r)\). Write the half-margin radius at \(y\), and use the triangle inequality to show that its ball is contained in \(B(x,r)\).
  2. In \(\mathbb{R}\) with the usual metric, take \(B(3,7)\) and \(y=8\). Compute the half-margin radius and verify the containment estimate.
  3. In a subspace with the restricted metric, why must a ball about \(y\) include the condition that its points lie in the subspace?
  4. In a discrete metric space, what is \(B(a,r)\) when \(0<r\le1\)? Use the strict inequality in the definition to justify your answer.
  5. Why does the theorem establish openness even though the radius chosen around \(y\) can depend on \(y\)?