Ma · Mathematics

How to Prove Two Nondegenerate Closed Intervals Have Equal Cardinality

Published By the 9to5Science editorial team

At a glance

  1. 1. Check the intervals

    Confirm each interval contains at least two distinct real numbers; singleton intervals are an exception.

  2. 2. Use an affine map

    For bounded intervals, map the left endpoint to the left endpoint and the right endpoint to the right endpoint.

  3. 3. Check bijectivity

    Show the map is one-to-one and onto, so it establishes equal cardinality.

  4. 4. Handle unbounded cases

    Any interval with more than one point has the cardinality of the real numbers.

If [a,b][a,b] and [c,d][c,d] are closed intervals with a<ba<b and c<dc<d, they have equal cardinality. For bounded intervals, the proof is especially direct: a linear function maps one interval bijectively onto the other. In fact, each such interval has the cardinality of the real numbers.

The condition that the intervals have positive length matters. A degenerate interval such as [a,a]={a}[a,a]=\{a\} is a singleton, so it does not have the same cardinality as an interval containing more than one point.

Bounded intervals: construct a bijection

Let a<ba<b and c<dc<d. Define

f(x)=c+d−cb−a(x−a),x∈[a,b].f(x)=c+\frac{d-c}{b-a}(x-a), \qquad x\in[a,b].

This affine function sends the endpoints to the corresponding endpoints: f(a)=cf(a)=c and f(b)=df(b)=d. Its slope (d−c)/(b−a)(d-c)/(b-a) is positive, so it is strictly increasing. It follows that values of xx between aa and bb map to values between cc and dd.

To check the map is onto, take any y∈[c,d]y\in[c,d] and solve y=f(x)y=f(x):

x=a+b−ad−c(y−c).x=a+\frac{b-a}{d-c}(y-c).

Because yy lies between cc and dd, this xx lies between aa and bb. Thus every point in [c,d][c,d] has a preimage in [a,b][a,b]. The positive slope also makes ff one-to-one. So ff is a bijection, which proves the intervals have equal cardinality.

Worked example

Consider [2,5][2,5] and [−1,7][-1,7]. Here a=2a=2, b=5b=5, c=−1c=-1, and d=7d=7. The formula gives

f(x)=−1+7−(−1)5−2(x−2)=−1+83(x−2).f(x)=-1+\frac{7-(-1)}{5-2}(x-2) =-1+\frac{8}{3}(x-2).

At the endpoints, f(2)=−1f(2)=-1 and f(5)=7f(5)=7. Since the slope 8/38/3 is nonzero, the map is one-to-one; and as xx ranges over [2,5][2,5], f(x)f(x) ranges over all of [−1,7][-1,7]. This is a specific bijection, not merely a comparison of the lengths of the intervals. Equal cardinality does not mean the intervals have equal length.

What if an interval is unbounded?

The same affine formula applies when both intervals are rays with corresponding finite endpoints. For example, [a,∞)[a,\infty) maps onto [c,∞)[c,\infty) by f(x)=x−a+cf(x)=x-a+c. But it does not directly map intervals of different forms, such as a bounded interval and the whole real line.

For the more general claim, use the cardinality of R\mathbb{R}. Every interval in R\mathbb{R} is a subset of R\mathbb{R}, so its cardinality is at most that of R\mathbb{R}. If an interval contains two distinct points u<vu<v, it contains the whole closed interval [u,v][u,v]. There is a bijection from R\mathbb{R} onto the open interval (u,v)(u,v), for example

g(t)=u+v2+v−uπarctan⁡(t).g(t)=\frac{u+v}{2}+\frac{v-u}{\pi}\arctan(t).

Since (u,v)(u,v) is inside the original interval, this gives an injection from R\mathbb{R} into it. The interval therefore has cardinality at least that of R\mathbb{R}. Together, the two comparisons show that its cardinality is exactly the continuum. This applies to bounded intervals, rays, and R\mathbb{R} itself, provided the interval has more than one point.

Common mistakes

  • Forgetting singleton intervals: [a,a][a,a] contains exactly one element. It cannot be bijective with [c,d][c,d] when c<dc<d.
  • Assuming equal length is required: Cardinality concerns the existence of a bijection, not geometric length. The intervals in the worked example have different lengths but equal cardinality.
  • Using the bounded-interval formula without checking its domain: The endpoint formula applies to two bounded intervals with positive length. Use the continuum argument for intervals of different forms, such as a bounded interval and a ray.
  • Claiming a bijection without checking onto: A function being one-to-one is not enough. A bijection must also reach every element of the target interval.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.