Intervals on the Real Line

An interval on the real line is a set of all real numbers lying between two given values, called endpoints. Intervals are fundamental objects in mathematics because they provide a clean, compact way to describe continuous ranges of numbers — something that listing individual elements (as with finite sets) simply cannot do. Whether you are specifying the domain of a function, the solution set of an inequality, or the range of a measurement, intervals give you the language to do it precisely. Intervals come in several flavours depending on whether the endpoints themselves are included in the set. A closed interval includes both endpoints, an open interval excludes both, and half-open (or half-closed) intervals include exactly one. Each type has its own bracket notation and its own geometric picture on the number line: filled circles mark included endpoints, open circles mark excluded ones. Understanding this notation is essential for reading and writing mathematics at every level beyond arithmetic. Intervals are not just a notational convenience — they are genuine sets with well-defined membership rules, and they connect directly to the structure of the real numbers. The real line R\mathbb{R} is itself an interval (one with no finite endpoints), and the study of intervals underpins calculus, analysis, and almost every branch of higher mathematics. Mastering intervals now will pay dividends throughout your mathematical education.

Key takeaways
  • Closed Intervals
  • Open Intervals
  • Half-Open (Half-Closed) Intervals
  • Infinite Intervals
  • Set-Builder and Inequality Equivalences
  • Length of an Interval

Closed Intervals

A closed interval [a,b][a, b] contains all real numbers xx such that a≤x≤ba \leq x \leq b. Both endpoints aa and bb are included. On a number line, closed endpoints are drawn as filled (solid) circles. Example: [2,5]={x∈R:2≤x≤5}[2, 5] = \{x \in \mathbb{R} : 2 \leq x \leq 5\}. The word 'closed' refers to the fact that the interval contains its boundary points.

Open Intervals

An open interval (a,b)(a, b) contains all real numbers xx such that a<x<ba < x < b. Neither endpoint is included. Open endpoints are drawn as hollow (empty) circles on the number line. Example: (2,5)={x∈R:2<x<5}(2, 5) = \{x \in \mathbb{R} : 2 < x < 5\}. Although 22 and 55 are not members of (2,5)(2, 5), every number strictly between them is.

Half-Open (Half-Closed) Intervals

Half-open intervals include one endpoint but not the other. There are two varieties: [a,b)[a, b) satisfies a≤x<ba \leq x < b (left endpoint included, right excluded), and (a,b](a, b] satisfies a<x≤ba < x \leq b (left excluded, right included). The square bracket always faces the included endpoint; the round bracket (parenthesis) always faces the excluded endpoint. Example: [0,1)[0, 1) includes 00 but not 11, which is exactly the set used to represent one full cycle in many periodic-function contexts.

Infinite Intervals

When an interval extends without bound in one or both directions, we use the symbol ∞\infty (infinity). Because infinity is not a real number, it is never included, so parentheses are always used next to ∞\infty or −∞-\infty. The four unbounded interval types are: (a,∞)(a, \infty), [a,∞)[a, \infty), (−∞,b)(-\infty, b), and (−∞,b](-\infty, b]. The entire real line is written (−∞,∞)(-\infty, \infty), which equals R\mathbb{R}.

Set-Builder and Inequality Equivalences

Every interval can be described in three equivalent ways: interval notation, set-builder notation, and an inequality. For example, [3,7)[3, 7) is the same as {x∈R:3≤x<7}\{x \in \mathbb{R} : 3 \leq x < 7\}, which is the same as the compound inequality 3≤x<73 \leq x < 7. Being fluent in all three representations lets you switch between them fluidly, which is vital when solving inequalities, specifying domains, and reading mathematical proofs.

Length of an Interval

The length (or measure) of a bounded interval with endpoints aa and bb (where a<ba < b) is simply b−ab - a, regardless of whether the endpoints are included or not. This is because adding or removing individual points does not change the 'size' of a continuous set. So [2,9][2, 9], (2,9)(2, 9), [2,9)[2, 9), and (2,9](2, 9] all have length 77.

The Key Equation

[a, b]={ x∈R∣a≤x≤b }[a,\,b] = \{\,x \in \mathbb{R} \mid a \leq x \leq b\,\}
  • a — Left endpoint (dimensionless (real number)): The smaller of the two boundary values; included in the closed interval.
  • b — Right endpoint (dimensionless (real number)): The larger of the two boundary values; included in the closed interval.
  • x — General element (dimensionless (real number)): A variable representing any real number tested for membership in the interval.
  • \mathbb{R} — Set of real numbers (none): The complete number line, containing all rational and irrational numbers.

Worked Example

Problem. Solve the inequality 2x−3<72x - 3 < 7 and x+1≥0x + 1 \geq 0 simultaneously. Express the solution set in interval notation and represent it on a number line, then find the length of the solution interval.

[−1, 5),length=6[-1,\,5), \quad \text{length} = 6

Answer. The solution set is the half-open interval from −1 to 5, including −1 but excluding 5. The length of this interval is 6.

Figure
Diagram
Types of Intervals on the Real Number Lineab[a, b] closedab(a, b) openab[a, b) half-opena∞[a, ∞) unbounded
Origins · 1 minGeorg Cantor and how this was discovered
GC
Georg Cantor
1845–1918 · German

Cantor founded modern set theory and gave mathematics a rigorous framework for discussing infinite sets, including the real number line. He proved that the real numbers are 'uncountably infinite' — meaning the interval [0,1][0,1] contains more elements than the set of all natural numbers — a result that shocked the mathematical world. His work made it possible to treat intervals as precisely defined sets and laid the groundwork for modern analysis. Cantor was deeply religious and believed that his theory of infinite sets was communicated to him by God. He also spent considerable energy trying to prove that Francis Bacon wrote Shakespeare's plays — a passion that his mathematical colleagues found rather puzzling.

  • Set-Builder Notation — Intervals are defined using set-builder notation; understanding both allows you to move fluently between the two representations of the same set.
  • Union and Intersection of Sets — Solving compound inequalities requires intersecting or unioning intervals, a direct application of set operations to interval arithmetic.
  • Domain and Range of Functions — Domains and ranges are most naturally expressed as intervals, making interval notation the standard language for describing where functions are defined.
  • Solving Linear Inequalities — The solution set of a linear inequality in one variable is always an interval; interval notation is the most concise way to state such solutions.