Equations & Inequalities

Interval Notation: How to Write and Read It

Interval notation writes a set of numbers as its two endpoints, smallest first, inside brackets or parentheses: a bracket [ ][\ ] includes an endpoint and a parenthesis ( )(\ ) excludes it. So −2<x≤7-2 < x \le 7 becomes (−2,7](-2, 7], and x≥4x \ge 4 becomes [4,∞)[4, \infty).

[a,b)={x∣a≤x<b}[a, b) = \{ x \mid a \le x < b \}

The rules are small, but a handful of traps cost students marks every semester: infinity with a bracket, a forgotten sign flip, two pieces forced into one interval. This page covers the rules, the reasoning behind them, and the cases where answers go wrong.

How do you write interval notation?

An interval is a stretch of the number line, and the notation records two facts about each end: where it is, and whether the endpoint itself counts. The left value always comes first, so the smaller number is written on the left no matter how the original problem was phrased. A comma separates the two, and the pair is wrapped in the right symbols.

The sign in the inequality decides the symbol. Signs with an equals line (≤\le, ≥\ge) include the endpoint, so they get a bracket. Strict signs (<<, >>) exclude it, so they get a parenthesis. Written out, the four finite shapes are:

(a,b)[a,b][a,b)(a,b](a, b) \qquad [a, b] \qquad [a, b) \qquad (a, b]

Bracket memory hook

A square bracket has corners that fence the endpoint in. A rounded parenthesis has nothing to hold it, so the endpoint slips out.

Infinity follows its own rule. The symbols ∞\infty and −∞-\infty describe a set that never stops, not a number the set reaches, so they always take a parenthesis. [3,∞][3, \infty] would claim that infinity is a member of the set. The correct forms are [3,∞)[3, \infty) and (−∞,5](-\infty, 5].

The most common slip with negatives is ordering. For x>−3x > -3, the answer is (−3,∞)(-3, \infty), never (∞,−3)(\infty, -3). Read the number line left to right and write the ends in that order.

Quick check

Write [−3,8)[-3, 8) as an inequality.

Interval notation vs inequalities and number lines

Interval notation, inequalities and number-line graphs are three views of one set. An open dot on a graph is a parenthesis, a filled dot is a bracket, and an arrow is an infinity symbol. A shaded stretch between dots is the interval itself.

Inequality Interval notation Number line
a<x<ba < x < b (a,b)(a, b) open dots at both ends
a≤x≤ba \le x \le b [a,b][a, b] filled dots at both ends
a≤x<ba \le x < b [a,b)[a, b) filled left, open right
x>ax > a (a,∞)(a, \infty) open dot, arrow right
x≤bx \le b (−∞,b](-\infty, b] filled dot, arrow left
all real numbers (−∞,∞)(-\infty, \infty) whole line shaded

A double inequality such as −2<x≤7-2 < x \le 7 is really two conditions joined by “and”, which is why it collapses to one interval. The full rules for those are in compound inequalities.

One limit is worth knowing. An interval is continuous: [1,3][1, 3] contains 1.51.5, 2\sqrt{2} and every other real number between its ends. A list like 1,2,31, 2, 3 is not an interval, and it needs braces, {1,2,3}\{1, 2, 3\}. Set-builder notation, {x∣1≤x≤3}\{x \mid 1 \le x \le 3\}, says the same thing as [1,3][1, 3] in words rather than symbols.

How to write interval notation after solving an inequality

Wrong versus right number lines for -3x + 4 ≤ 13 showing the sign flip and test point
Dividing by −3 flips ≤ to ≥, so the answer is [−3, ∞), and the test point x = 0 proves it.

Solving an inequality uses the same moves as an equation, with one exception: multiplying or dividing by a negative number reverses the sign. The reason is that multiplying by −1-1 reflects the number line, so “larger” and “smaller” swap places. If the steps are unfamiliar, solving two-step equations covers the same operations, and solving linear inequalities adds the sign rules.

Example 1. Solve −3x+4≤13-3x + 4 \le 13 and write the answer in interval notation.

−3x+4≤13-3x + 4 \le 13

−3x≤9-3x \le 9

x≥−3x \ge -3

Subtracting 44 leaves −3x≤9-3x \le 9. Dividing by −3-3 flips ≤\le to ≥\ge, so x≥−3x \ge -3. The set starts at −3-3 (included) and runs right forever:

[−3,∞)[-3, \infty)

The trap is the missed flip. Without it, the answer comes out as (−∞,−3](-\infty, -3], which is exactly the wrong half of the line. A ten-second guard is to test x=0x = 0 in the original: −3(0)+4=4≤13-3(0) + 4 = 4 \le 13 is true, and 00 lies inside [−3,∞)[-3, \infty), so the direction is right. Test one point on the other side, such as x=−4x = -4, and you get 16≤1316 \le 13, which is false, as it should be.

Longer inequalities work the same way. Clear parentheses, collect terms, then flip once if you divide by a negative. The routines from solving multi-step equations carry over unchanged.

Union and intersection in interval notation

Number lines showing [1,3) union [3,6] merges but (1,3) union (3,6) leaves a hole at 3
A bracket at the shared endpoint 3 joins the pieces, while two parentheses leave a hole.

Use “or” when a solution lives in separate pieces, and join the pieces with a union, ∪\cup. Use “and” when both conditions must hold at once, which gives the overlap, an intersection, ∩\cap. Absolute value inequalities produce both: ∣x∣<a|x| < a is an “and” and gives one interval, while ∣x∣>a|x| > a is an “or” and gives two.

Example 2. Solve ∣2x−1∣>5|2x - 1| > 5.

2x−1>5or2x−1<−52x - 1 > 5 \quad \text{or} \quad 2x - 1 < -5

x>3orx<−2x > 3 \quad \text{or} \quad x < -2

Each piece becomes its own interval, written left to right:

(−∞,−2)∪(3,∞)(-\infty, -2) \cup (3, \infty)

Check with x=0x = 0: ∣2(0)−1∣=1|2(0) - 1| = 1, which is not greater than 55, so 00 should be outside the set, and it sits in the gap. Check the endpoint x=−2x = -2: ∣−5∣=5|-5| = 5, which is not greater than 55, so the parenthesis is correct. For more cases, see absolute value inequalities, and for the equal version, solving absolute value equations.

Intersections follow a simple rule: the overlap starts at the larger left endpoint and ends at the smaller right endpoint. For example, (−∞,5)∩[1,9]=[1,5)(-\infty, 5) \cap [1, 9] = [1, 5). When two endpoints tie, the more restrictive symbol wins in an intersection, so the parenthesis beats the bracket. In a union, the opposite holds: [1,3)∪[3,6]=[1,6][1, 3) \cup [3, 6] = [1, 6] merges into one interval because the second piece includes 33. But (1,3)∪(3,6)(1, 3) \cup (3, 6) cannot merge, because neither piece contains 33.

Quick check

Find [−4,2]∩(0,6)[-4, 2] \cap (0, 6).

How to find domain and range in interval notation

A domain starts as all real numbers, and then each restriction removes something. Three restrictions cover most courses: a denominator cannot be zero, an even root cannot have a negative radicand, and a logarithm needs a positive argument (see logarithm rules for why). Each restriction gives an inequality, and the domain is the set that satisfies all of them at once.

Holes make unions

Removing an endpoint only changes a bracket to a parenthesis. Removing a value from the middle, like x=1x = 1 from [−2,∞)[-2, \infty), splits the interval in two, so a union is required.

Example 3. Find the domain of f(x)=x+2x−1f(x) = \dfrac{\sqrt{x + 2}}{x - 1}.

The root needs x+2≥0x + 2 \ge 0, so x≥−2x \ge -2. The denominator needs x−1≠0x - 1 \ne 0, so x≠1x \ne 1. Start with [−2,∞)[-2, \infty). The value 11 lies inside it, so removing it leaves two pieces:

[−2,1)∪(1,∞)[-2, 1) \cup (1, \infty)

The same denominator and radicand thinking appears in solving rational equations and solving radical equations, where untested answers can land on excluded values.

Ranges use the same notation but ask a different question: which outputs actually occur? For y=(x−3)2+1y = (x - 3)^2 + 1, a square is never negative, so the smallest output is 11 at x=3x = 3, and the range is [1,∞)[1, \infty). Quadratic inequalities also end in intervals. Factoring x2−x−6>0x^2 - x - 6 > 0 gives (x−3)(x+2)>0(x - 3)(x + 2) > 0, the parabola opens upward, and it is positive outside its roots, so the solution is (−∞,−2)∪(3,∞)(-\infty, -2) \cup (3, \infty). When the roots do not factor, the quadratic formula supplies the endpoints.

Interval notation for all reals, no solution and single points

Sometimes the variable cancels and the inequality collapses to a statement with no xx in it. That statement is either always true or always false, and each outcome has its own notation.

  • Always true, as in 2x+1>2x2x + 1 > 2x (which reduces to 1>01 > 0): every real number works, so the answer is (−∞,∞)(-\infty, \infty).
  • Always false, as in x+3<xx + 3 < x (which reduces to 3<03 < 0): no real number works, so the answer is the empty set, ∅\varnothing.
  • A single value, as in x2≤0x^2 \le 0: only x=0x = 0 works. Technically [0,0][0, 0], but {0}\{0\} is the clearer way to write it.

These outcomes show up when you collect variables from both sides, which is why equations with variables on both sides is worth reviewing first. An empty set is not the same as “answer: 0”. It means the question has no solutions at all.

Two related oddities: (a,a)(a, a) is empty because nothing sits strictly between a number and itself, and an interval like [5,2][5, 2] with the ends reversed is not valid notation. If an intersection such as (−∞,2)∩(5,∞)(-\infty, 2) \cap (5, \infty) has no overlap, the correct answer is ∅\varnothing, not an invented interval.

Quick check

Solve 3x+2<3x−13x + 2 < 3x - 1 and give the solution set.

How do you check an interval notation answer?

Every interval answer can be verified in under a minute with three quick tests. They catch nearly every error described above.

  1. Test one point inside each piece of your answer in the original problem. Every one should work.
  2. Test one point in each gap or outside region. Every one should fail.
  3. Test each endpoint directly. If the endpoint works, it needs a bracket. If it fails or is undefined, it needs a parenthesis.

The endpoint test is the one students skip, and it settles the bracket question without any memorizing. For ∣2x−1∣>5|2x - 1| > 5 in Example 2, plugging in x=3x = 3 gives 5>55 > 5, which is false, so the parenthesis is forced. Infinity needs no test because it always takes a parenthesis.

Try this: Solve −2(x−1)<8-2(x - 1) < 8, then test one point inside your interval, one outside, and the endpoint itself. (The endpoint should fail, giving (−3,∞)(-3, \infty).)

A final read-through takes five seconds: smaller number on the left, parentheses on both infinities, and a union symbol anywhere the solution has a gap.

Where interval notation shows up outside homework

Calculus leans on it constantly. A theorem about continuous functions on a closed interval [a,b][a, b] guarantees a highest and lowest value, and the brackets matter because the endpoints are part of the guarantee. On (a,b)(a, b), a function can climb toward a value without ever reaching it.

Statistics reports confidence intervals this way. A result written as (12.1,15.3)(12.1, 15.3) means a plausible range for an unknown value. Engineering uses the same idea for tolerances: a part specified as 10±0.0210 \pm 0.02 mm is acceptable anywhere in [9.98,10.02][9.98, 10.02].

Word problems produce intervals whenever “at least”, “at most” or “between” appears. A trip of 180180 miles that must take between 33 and 44 hours needs a speed rr with 1804≤r≤1803\frac{180}{4} \le r \le \frac{180}{3}, so r∈[45,60]r \in [45, 60] mph. Rate setups like this are covered in distance, rate and time problems, and linear equation word problems shows how to translate the wording into an inequality in the first place.

One notational clash deserves a warning: (2,5)(2, 5) can be an interval or a point on a graph. Context settles it, and a sentence like “the solution is x∈(2,5)x \in (2, 5)” removes any doubt. Some textbooks outside the US write open ends with reversed brackets, as in ]2,5[]2, 5[, and some use a semicolon in place of the comma. The meaning is identical.

Practice problems

0 of 5 solved

  1. Write x≥4x \ge 4 in interval notation.

  2. Write −2<x≤7-2 < x \le 7 in interval notation.

  3. Solve 5−2x>115 - 2x > 11 and write the answer in interval notation.

  4. Solve ∣x−4∣≥3|x - 4| \ge 3 and write the answer in interval notation.

  5. Find the domain of f(x)=1x−2+6−xf(x) = \dfrac{1}{x - 2} + \sqrt{6 - x} in interval notation.

Common questions

What is the difference between brackets and parentheses in interval notation?

A square bracket means the endpoint belongs to the set, which matches ≤\le and ≥\ge. A parenthesis means the endpoint is left out, which matches << and >>. So [2,5)[2, 5) contains 22 but not 55.

Why is infinity always written with a parenthesis?

Infinity is not a real number, so it can never be a member of a set of real numbers. A bracket claims the endpoint is included, which would be false for ∞\infty or −∞-\infty. That is why the correct forms are [3,∞)[3, \infty) and (−∞,5](-\infty, 5].

How do you write all real numbers in interval notation?

Write (−∞,∞)(-\infty, \infty), which is the same set as R\mathbb{R}. Both ends are unbounded, so both get parentheses.

How do you write x not equal to 3 in interval notation?

Remove 33 from the number line, which splits it into two pieces: (−∞,3)∪(3,∞)(-\infty, 3) \cup (3, \infty). A single excluded value always produces a union of two intervals.

When do you use the union symbol in interval notation?

Use ∪\cup when a solution comes in separate pieces, usually from an inequality with 'or' or from a domain with a hole. Write the pieces from left to right on the number line.

What is the difference between interval notation and set-builder notation?

Set-builder notation states a condition, as in {x∣2≤x<7}\{x \mid 2 \le x < 7\}. Interval notation names only the endpoints and lets the brackets carry the detail, giving [2,7)[2, 7). Interval notation is shorter and is the usual format for domains and solutions.

Up next