Interval notation is a compact way to describe a set of real numbers using endpoints and brackets. When a problem asks you to write the following in interval notation, it usually wants you to translate an inequality, a number-line graph, or a verbal description into symbols such as ((2,5)), ([-3,\infty)), or ((-\infty,4]). The notation is widely used in algebra, precalculus, calculus, and statistics because it communicates clearly whether endpoints are included or excluded.
What Interval Notation Means
An interval is a continuous section of the real number line. Interval notation uses two endpoints and a pair of brackets or parentheses to show which numbers belong to the interval And that's really what it comes down to. Took long enough..
- A parenthesis (() or ()) means the endpoint is not included.
- A square bracket ([) or (]) means the endpoint is included.
- The symbols (-\infty) and (\infty) always use parentheses because infinity is not a real number and cannot be reached.
For example:
- ((2,5)) means all real numbers greater than 2 and less than 5.
- ([2,5]) means all real numbers from 2 through 5, including both endpoints.
- ([2,5)) means all real numbers from 2 through 5, including 2 but not 5.
- ((2,5]) means all real numbers from 2 through 5, excluding 2 but including 5.
The difference between a parenthesis and a bracket is not cosmetic. So it changes the set completely. If a homework problem says “write the following in interval notation,” check carefully whether the inequality uses (<) or (\leq), and whether it uses (>) or (\geq) Small thing, real impact..
Common Interval Types
Open Interval
An open interval excludes both endpoints:
[ (a,b) = {x \mid a < x < b} ]
Example: (-1 < x < 4) becomes ((-1,4)) And that's really what it comes down to..
Closed Interval
A closed interval includes both endpoints:
[ [a,b] = {x \mid a \leq x \leq b} ]
Example: (-1 \leq x \leq 4) becomes ([-1,4]) The details matter here..
Half-Open Interval
A half-open interval includes one endpoint and excludes the other:
[ [a,b) = {x \mid a \leq x < b} ]
[ (a,b] = {x \mid a < x \leq b} ]
Example: (-1 \leq x < 4) becomes ([-1,4)).
Rays and Unbounded Intervals
Some intervals continue forever in one direction:
- (x > 3) becomes ((3,\infty)).
- (x \geq 3) becomes ([3,\infty)).
- (x < 3) becomes ((-\infty,3)).
- (x \leq 3) becomes ((-\infty,3]).
- All real numbers become ((-\infty,\infty)).
Infinity is always paired with a parenthesis. Writing ([3,\infty]) is incorrect because infinity is not a number that can be included.
How to Write Inequalities in Interval Notation
The most common task is converting an inequality into interval notation. Use the following steps.
- Identify the endpoints. These are the boundary numbers in the inequality.
- Decide whether each endpoint is included. Use (\leq) or (\geq) for a bracket; use (<) or (>) for a parenthesis.
- Determine the direction. If the variable is greater than a number, the interval extends to the right toward (\infty). If it is less than a number, it extends to the left toward (-\infty).
- Use union symbols for separate pieces. If the solution has two disconnected parts, join them with (\cup), the union symbol.
Examples:
- (x > 5) → ((5,\infty))
- (x \geq 5) → ([5,\infty))
- (x < -2) → ((-\infty,-2))
- (x \leq -2) → ((-\infty,-2])
- (-3 < x \leq 7) → ((-3,7])
- (-3 \leq x < 7) → ([-3,7))
- (0 \leq x \leq 1) → ([0,1])
- (x \neq 4) → ((-\infty,4) \cup (4,\infty))
- (x < -1) or (x \
geq 3) → ((-\infty,-1)\cup[3,\infty))
- (x \leq -1) or (x > 3) → ((-\infty,-1]\cup(3,\infty))
Compound Inequalities and Unions
When an inequality uses “and,” the solution is the overlap of two conditions. When it uses “or,” the solution is the union of two separate conditions.
For example:
[ -2 < x < 5 ]
is shorthand for
[ -2 < x \quad \text{and} \quad x < 5, ]
so its interval notation is ((-2,5)).
If the solution splits into two pieces, use the union symbol (\cup). For instance:
[ x < -1 \quad \text{or} \quad x \geq 3 ]
becomes
[ (-\infty,-1)\cup[3,\infty). ]
A quick way to check a union is to test one number from each piece. If the test number satisfies the original inequality, that interval belongs in the solution Turns out it matters..
Absolute Value Inequalities
Absolute value inequalities often lead to interval notation because they describe distances from zero.
- (|x| < a) becomes ((-a,a)).
- (|x| \leq a) becomes ([-a,a]).
- (|x| > a) becomes ((-\infty,-a)\cup(a,\infty)).
- (|x| \geq a) becomes ((-\infty,-a]\cup[a,\infty)).
Here's one way to look at it:
[ |x| < 4 ]
means (x) is less than 4 units from zero, so the solution is
[ (-4,4). ]
Similarly,
[ |x| \geq 2 ]
becomes
[ (-\infty,-2]\cup[2,\infty). ]
Interval Notation in Domain and Range
Interval notation is also common when describing domain and range. The domain is the set of allowed input values, while the range is the set of possible output values.
As an example, if a function is defined for all real numbers except (x=3), its domain can be written as
[ (-\infty,3)\cup(3,\infty). ]
If a graph begins at (x=-1), includes that point, and continues to the right forever, the domain is
[ [-1,\infty). ]
If the outputs of a function are always at least 0, the range can be written as
If the outputs of a function are always at least 0, the range can be written as ([0,\infty)).
Similarly, when a function’s values never exceed 5, its range is ((-\infty,5]).
Domain restrictions
- Denominators: For (f(x)=\frac{1}{x-2}) the denominator cannot be zero, so the domain excludes 2: ((-\infty,2)\cup(2,\infty)).
- Square roots: In (g(x)=\sqrt{x+4}) the radicand must be non‑negative, giving the domain ([-4,\infty)).
- Logarithms: For (h(x)=\ln(x)) the argument must be positive, so the domain is ((0,\infty)).
Range examples
- The quadratic (p(x)=x^{2}) produces only non‑negative outputs, thus its range is ([0,\infty)).
- The absolute‑value function (q(x)=|x-3|) also yields values (\geq 0); its range is ([0,\infty)).
- A linear function with a positive slope, such as (r(x)=2x+1), attains every real number, so its range is ((-\infty,\infty)), which is often abbreviated as (\mathbb{R}).
Quick checks
To verify a union interval, pick a test point from each piece.
Consider this: for (x<-1) or (x\ge 3), choose (-2) (lies in ((-\infty,-1))) and (0) (lies in ([3,\infty))). Both satisfy the original inequality, confirming that the union ((-\infty,-1)\cup[3,\infty)) is correct.
Summary
Interval notation provides a concise way to describe sets of real numbers, especially when dealing with inequalities, absolute values, and the domains or ranges of functions. By mastering the use of parentheses, brackets, and union symbols, readers can clearly communicate solution sets, avoid ambiguity, and efficiently interpret mathematical information. This notation is indispensable for algebra, calculus, and any field that involves modeling continuous quantities.