It is important to note that in an open interval, the endpoints are not necessarily in the interval. For example, consider the interval $(2, 3)$ which is analogous to the inequality $2 < x < 3$. Notice that the values $x = 2$ and $x = 3$ do not satisfy the inequality, that is $2 \not < 2 < 3$ and $2 < 3 \not < 3$, so these values of $x$ are not in this interval.

Definition: If $a ≤ b$ defines either an open or closed interval of real numbers, then the length of this interval is $b - a$.

For example, the length of the interval $(2, 3)$ is $3 - 2 = 1$, which should make sense since $(2, 3)$ covers a length of $1$ on the real number line. Another example is the degenerate interval $[3, 3]$ whose length is $3 - 3 = 0$.

Unbounded Open and Closed Intervals

In the section above, we looked at bounded open and closed intervals. There are five other types of intervals, all of which are unbounded and are defined as followed with $a, b \in \mathbb{R}$: