Tutorials › Real Analysis › Open Balls

Topology of the Real Line · Tutorial 233 of 1000

Open Balls

Learn to describe open balls on the real line and determine when two balls overlap or one is contained in another.

Intermediate 9 min read

What You'll Learn

  • Define an open ball using distance and a positive radius
  • Express a real-line open ball as an open interval
  • Determine whether a point belongs to a given open ball
  • Prove criteria for containment and intersection of two open balls
  • Find a smaller ball around any point inside an open ball

From Distance to Open Balls

In “Distance on the Real Line,” distance was defined by \(d(x,y)=|x-y|\). That definition measures the separation of two points. An open ball turns the same distance into a set: it collects all points whose distance from a chosen centre is less than a chosen positive radius. The strict inequality is important because points exactly one radius away are not included.

Definition: Let \(a\in\mathbb{R}\) and \(r>0\). The open ball with centre \(a\) and radius \(r\) is the set \(B_r(a)=\{x\in\mathbb{R}:d(x,a)<r\}\). On the real line, \(d(x,a)=|x-a|\), so \(B_r(a)=\{x\in\mathbb{R}:|x-a|<r\}=(a-r,a+r)\).

The interval description follows by solving the absolute-value inequality. For \(r>0\), the inequality \(|x-a|<r\) is equivalent to \(-r<x-a<r\). Adding \(a\) throughout gives \(a-r<x<a+r\). Thus a real-line open ball is exactly an open interval centred at \(a\), with endpoints \(r\) units to the left and right. This agrees with the description of open balls given in “The Real Line as a Metric Space.”

The centre always belongs to its ball, because \(d(a,a)=0<r\). The two endpoints \(a-r\) and \(a+r\) do not belong: each has distance exactly \(r\) from \(a\), not distance less than \(r\). A radius must be positive; with radius zero the strict inequality \(d(x,a)<0\) has no solutions, and a negative number cannot serve as a distance threshold for a ball of the intended kind.

Worked Example: Writing a Ball as an Interval

Find the open ball with centre \(-2\) and radius \(5\). By definition,

$$ B_5(-2)=\{x\in\mathbb{R}:|x-(-2)|<5\} =\{x\in\mathbb{R}:|x+2|<5\}. $$

The absolute-value inequality is equivalent to \(-5<x+2<5\). Subtracting \(2\) from all three parts gives \(-7<x<3\). Therefore,

$$ B_5(-2)=(-7,3). $$

The centre \(-2\) is included, since \(|-2+2|=0<5\). The endpoints are excluded: \(|-7+2|=5\) and \(|3+2|=5\).

Membership and the Meaning of Radius

To check whether a point \(x\) belongs to \(B_r(a)\), compare its distance from the centre to the radius. The point is inside precisely when \(d(x,a)<r\). Equality means it lies at the boundary of the interval, so it is not in the open ball; a distance greater than \(r\) places it outside.

Worked Example: Testing Points Against a Ball

Consider \(B_4(6)\). Its interval form is \((2,10)\), since \(6-4=2\) and \(6+4=10\). The point \(9\) belongs because

$$ d(9,6)=|9-6|=3<4. $$

The point \(10\) does not belong, because \(d(10,6)=|10-6|=4\), which equals the radius. The point \(1\) is outside because \(d(1,6)=|1-6|=5>4\). These three cases illustrate why “less than the radius,” rather than “less than or equal to the radius,” is part of the definition.

Changing the radius while keeping the centre fixed changes the size of the ball. If \(0<r\leq s\), then \(B_r(a)\subseteq B_s(a)\): whenever \(d(x,a)<r\), we also have \(d(x,a)<s\) if \(r<s\), and the inclusion is immediate when \(r=s\). This nesting is useful when a problem asks for a ball small enough to fit inside another one.

When Does One Ball Fit Inside Another?

For balls with different centres, comparing radii alone is not enough. A smaller ball can fail to fit inside a larger one if its centre is too far away. On the real line, both the gap between the centres and the two radii give an exact containment test.

Theorem (Containment Criterion for Open Balls): For \(a,b\in\mathbb{R}\) and \(r,s>0\), \(B_r(a)\subseteq B_s(b)\) if and only if \(d(a,b)+r\leq s\).

Proof. Using the interval formula, the inclusion in question is \((a-r,a+r)\subseteq(b-s,b+s)\). Inclusion of these open intervals holds exactly when the left endpoint of the first is no farther left than the left endpoint of the second, and the right endpoint of the first is no farther right than the right endpoint of the second. In inequalities, this says

$$ a-r\geq b-s \qquad\text{and}\qquad a+r\leq b+s. $$

Rearranging the first inequality gives \(s-r\geq b-a\), and rearranging the second gives \(s-r\geq a-b\). Together these are equivalent to \(s-r\geq\max\{a-b,b-a\}=|a-b|=d(a,b)\), or \(d(a,b)+r\leq s\). This proves the criterion in both directions. The endpoint comparisons are valid even though the intervals omit their endpoints: if either comparison failed, points of the first interval sufficiently close to the offending endpoint would lie outside the second; if both hold, every point strictly between the first interval’s endpoints lies strictly between the second interval’s endpoints. \(\square\)

The non-strict inequality in the criterion can be easy to overlook. When \(d(a,b)+r=s\), the smaller ball’s rightmost or leftmost limiting endpoint coincides with an endpoint of the larger ball, but neither endpoint belongs to the smaller open ball. Containment still holds. If the sum is greater than \(s\), points in the smaller ball near that limiting endpoint extend beyond the larger ball.

Worked Example: Checking Ball Containment

Let \(A=B_2(1)\) and \(C=B_6(4)\). The distance between the centres is \(d(1,4)=|1-4|=3\). Since \(3+2=5\leq6\), the containment criterion gives \(B_2(1)\subseteq B_6(4)\). Directly,

$$ B_2(1)=(-1,3),\qquad B_6(4)=(-2,10), $$

and every point of \((-1,3)\) is in \((-2,10)\). If the larger radius is changed to \(4\), the criterion fails because \(3+2=5>4\). Indeed, \(B_4(4)=(0,8)\), and the point \(-\tfrac12\) belongs to \(B_2(1)=(-1,3)\) but not to \((0,8)\). Thus \(B_2(1)\) is not contained in \(B_4(4)\).

When Do Two Open Balls Overlap?

Containment asks whether every point of one ball lies in another. A different question is whether the balls have any point in common. Two balls overlap exactly when the distance between their centres is less than the sum of their radii.

Theorem (Intersection Criterion for Open Balls): For \(a,b\in\mathbb{R}\) and \(r,s>0\), \(B_r(a)\cap B_s(b)\neq\varnothing\) if and only if \(d(a,b)<r+s\).

Proof. First suppose there is a point \(z\in B_r(a)\cap B_s(b)\). Then \(d(a,z)<r\) and \(d(z,b)<s\). By the triangle inequality,

$$ d(a,b)\leq d(a,z)+d(z,b)<r+s. $$

This proves that overlap implies the stated strict inequality. Conversely, suppose \(d(a,b)<r+s\). If \(a=b\), the common centre \(a\) belongs to both balls because \(0<r\) and \(0<s\). If \(a\neq b\), let \(z=(a+b)/2\), the midpoint of the centres. Then

$$ d(a,z)=\left|a-\frac{a+b}{2}\right|=\frac{|a-b|}{2}, \qquad d(z,b)=\left|\frac{a+b}{2}-b\right|=\frac{|a-b|}{2}. $$

Since \(d(a,b)=|a-b|<r+s\), we have \(\frac{|a-b|}{2}<\frac{r+s}{2}\). This alone does not guarantee that the midpoint is within each radius if \(r\) and \(s\) differ, so instead choose a point on the segment between the centres as follows. Set \(\alpha=d(a,b)>0\) and choose \(t=\min\{r,\alpha\}\). Define \(z=a+\frac{t}{\alpha}(b-a)\). Then \(d(a,z)=t\) and \(d(z,b)=\alpha-t\). If \(\alpha\leq r\), then \(d(a,z)=\alpha\leq r\), with strict inequality unless \(\alpha=r\); in the equality case, the assumption \(\alpha<r+s\) does not suffice for this choice. A more direct choice is to place \(z\) at distance \(u\) from \(a\), where \(u\) satisfies \(0\leq u\leq\alpha\), \(u<r\), and \(\alpha-u<s\). Such a \(u\) exists: the interval of allowable distances includes a choice because \(\alpha<r+s\); for example, take \(u=\max\{0,\alpha-s\}\). Then \(u<r\) by \(\alpha<r+s\), and \(\alpha-u\leq s\). If \(\alpha-u=s\), replace \(u\) by a slightly larger number still less than \(r\) and no greater than \(\alpha\); this is possible because \(\alpha-s=u<r\) and \(\alpha>u\). Thus we can arrange both \(u<r\) and \(\alpha-u<s\). Taking \(z=a+\frac{u}{\alpha}(b-a)\) gives \(d(a,z)=u<r\) and \(d(z,b)=\alpha-u<s\), so \(z\) belongs to both balls. This proves the converse and the theorem. \(\square\)

The strict inequality in this result reflects the fact that both balls are open. If \(d(a,b)=r+s\), the intervals can meet only at the two touching endpoints, and those endpoints are excluded. They therefore have no common point.

Worked Example: Finding Whether Two Balls Meet

Consider \(B_3(-1)\) and \(B_2(3)\). Their centres are \(4\) units apart, and the sum of their radii is \(3+2=5\). Since \(4<5\), the intersection criterion guarantees a common point. In interval form,

$$ B_3(-1)=(-4,2),\qquad B_2(3)=(1,5), $$

so their intersection is \((1,2)\). In contrast, \(B_1(-1)=(-2,0)\) and \(B_2(2)=(0,4)\) have centres \(3\) units apart, exactly the sum of their radii. The intervals meet at \(0\), but \(0\) belongs to neither open interval, so their intersection is empty.

A Ball Has Room Around Each of Its Points

A useful feature of open balls is that a point strictly inside one is not trapped at its boundary. There is always a smaller positive-radius ball around that point that stays within the original ball. This property is a basic way to recognize the local meaning of openness.

Theorem (A Smaller Ball Around Each Interior Point): If \(y\in B_r(a)\), then there exists \(\rho>0\) such that \(B_\rho(y)\subseteq B_r(a)\). One valid choice is \(\rho=r-d(a,y)\).

Proof. Since \(y\in B_r(a)\), the definition gives \(d(a,y)<r\). Therefore \(\rho=r-d(a,y)>0\). Let \(z\in B_\rho(y)\). Then \(d(y,z)<\rho\), and the triangle inequality gives

$$ d(a,z)\leq d(a,y)+d(y,z) <d(a,y)+\rho =d(a,y)+r-d(a,y) =r. $$

Thus \(z\in B_r(a)\). Since every \(z\in B_\rho(y)\) has this property, \(B_\rho(y)\subseteq B_r(a)\), as required. \(\square\)

The chosen radius is the full remaining distance from \(y\) to the boundary as measured from the centre. Any smaller positive radius also works. A common mistake is to choose \(\rho=r\) for every \(y\) in the ball: that need not work, because a point close to the boundary may have only a small amount of room left. The subtraction \(r-d(a,y)\) accounts for how much of the original radius has already been used.

Worked Example: A Smaller Ball Inside a Given Ball

Let \(y=4\) belong to \(B_7(2)\). Its distance from the centre is \(d(2,4)=|2-4|=2<7\). The theorem gives \(\rho=7-2=5\), so \(B_5(4)\subseteq B_7(2)\). Checking the intervals confirms this:

$$ B_5(4)=(-1,9),\qquad B_7(2)=(-5,9). $$

Every point of \((-1,9)\) lies in \((-5,9)\). The right endpoints coincide, but neither interval includes \(9\), so the inclusion is valid.

Open balls provide a concrete language for describing closeness. Their interval form makes calculations on \(\mathbb{R}\) explicit, while the containment and intersection criteria turn geometric questions into inequalities. The smaller-ball property explains why strict distance bounds are useful: every point inside a ball has some positive tolerance before it can leave that ball.

Check Your Understanding

Use the definition and results in this tutorial to answer the following questions.

  1. Write \(B_3(5)\) as an open interval, and state whether its endpoints belong to the ball.
  2. For which condition on \(a,b,r,s\) does \(B_r(a)\subseteq B_s(b)\) hold?
  3. When do two open balls \(B_r(a)\) and \(B_s(b)\) have a nonempty intersection?
  4. Why can two open balls whose centres are exactly the sum of their radii apart fail to intersect?
  5. If \(y\in B_r(a)\), what positive radius can be used to produce a ball around \(y\) contained in \(B_r(a)\)?