Skip to main content

Interval notation

Interval notation helps to clearly express a continuous range of numbers in a simple, concise way. It is handy in many ways, such as to define acceptable weight limits for a machine, indicating a valid range of measurements in scientific experiments, and specifying temperature ranges in which a machine is safe to operate. Use this resource to learn about using interval notation.

Intervals

When the domain or range of a function is restricted to a subset of real numbers, \(\mathbb{R}\), it is called an interval. The endpoints are indicated with \(a\) and \(b\) for the lower and upper limits, respectively.

Intervals can be represented using:

  • interval notation, which uses brackets \([\,]\) and parentheses \(\left(\,\right)\)
  • inequality notation, which uses inequality symbols: less than \(<\), greater than \(>\), less than or equal to \(\leq\) and greater than or equal to \(\geq\).

Intervals are always written with the smaller number on the left. For example, \(\left(-3,5\right)\) is correct and \(\left(5,-3\right)\) is not.

Closed intervals

A closed interval is a set of numbers that includes all the numbers between two endpoints, and the endpoints \(a\) and \(b\) themselves.

Consider the interval on the line graph where the endpoints on the real number line are represented by solid circles.

Interval on a number line showing a solid circle at a and a solid circle at b

\(a\) and \(b\) are included in the interval. The subset is therefore a closed interval, so brackets \([\,]\) are used. The interval notation would be \([a,b]\) and the inequality notation would be \(a\leq x \leq b\).

Open intervals

If the endpoints are not included in the interval, it is called an open interval.

Consider the same interval with endpoints \(a\) and \(b\) represented by open circles on the line graph.

Interval on a number line showing an open circle at a and an open circle at b

Curved brackets are used to give the inverval notation \(\left(a,b\right)\). In inequality notation, the interval is \(a<x<b\).

Half-open and half-closed intervals

In some cases, one endpoint is included in the subset and the other is not. This is called a half-open or half-closed interval. Interval notation is written using one bracket and one parenthesis, and inequality notation is written using a mix of inequality symbols.

For some subsets, the range of values may continue indefinitely towards the right i.e. towards infinity (\(\infty\)), or towards the left i.e. towards negative infinity (\(-\infty\)). Infinity is not a numeral, so we should not write the inequality notation as \([b,\infty]\), \([-\infty,a]\) or \(b\leq x\leq\infty\), etc. For the purposes of understanding the concept, this type of notation has been used in this resource, but elsewhere, we would typically write \(x\geq b\) or \(x\leq a\).

The table shows some examples of domains with endpoints \(a\) and \(b\), including their interval notation, inequality notation and line graph.

Interval notation Inequality notation Line graph
\([a,b]\) \(a\leq x\leq b\)
Interval on a number line showing a solid circle at a and a solid circle at b
\((a,b)\) \(a<x<b\)
Interval on a number line showing an open circle at a and an open circle at b
\([a,b)\) \(a\leq x<b\)
Interval on a number line showing a solid circle at a and an open circle at b
\((a,b]\) \(a<x\leq b\)
Interval on a number line showing an open circle at a and a solid circle at b
\([a,\infty)\) \(x\geq a\)
Interval on a number line showing a solid circle at a pointing towards infinity
\((a,\infty)\) \(x>a\)
Interval on a number line showing an open circle at a pointing towards infinity
\((-\infty,b]\) \(x\leq b\)
Interval on a number line showing a closed circle at b pointing towards negative infinity
\((-\infty,b)\) \(x>b\)
Interval on a number line showing an open circle at b pointing towards negative infinity

Example 1 – using interval and inequality notation

Write \([-2,3)\) in inequality notation and graph it on the real number line.

The left bracket indicates that \(-2\) is included. The right parenthesis indicates that \(3\) is not included. Therefore, the inequality notation is \(-2\leq x\leq 3\).

On the number line, the \(-2\) endpoint uses a solid circle and the \(3\) endpoint uses an open circle.

Interval on a number line showing a solid circle at negative 2 and an open circle at 3

Write \((-\infty,3]\) in inequality notation and graph it on the real number line.

The \(-\infty\) indicates that the values continue indefinitely towards the left. The right bracket indicates that \(3\) is included in the set. Therefore, the inequality notation is \(x\leq3\).

On the number line, the \(-\infty\) is represented using an arrow towards the left and the \(3\) endpoint uses a solid circle.

Interval on a number line showing a solid circle at 3 pointing towards negative infinity

Write the interval notation and inequality notation for the following line graph:
Interval on a number line showing an open circle at negative 5 to a solid circle at 6

The endpoints are \(-5\) and \(6\). \(-5\) uses an open circle, so it is not included in the set. \(6\) uses a solid circle, so it is included in the set.

The interval notation is therefore \((-5,6]\). The inequality notation is \(-5<x\leq6\).

Write the interval notation and inequality notation for the following line graph:
Interval on a number line showing a solid circle at 10 pointing to positive infinity

The line graph has an endpoint of \(10\), which extends to the right indefinitely (towards \(\infty\)). \(10\) uses a solid circle, so it is incldued in the set.

The interval notation is therefore \([10,\infty)\) and the inequality notation is \(x\geq10\).

Exercise – using interval and inequality notation

  1. Write the following in interval notation and graph them on a real number line.
    1. \(1\leq x<10\)
    2. \(-6\leq x<-4\)
    3. \(x>5\)
  2. Write the following in interval notation and inequality notation.
    1. Interval on a number line showing a solid circle at negative 5 pointing to negative infinity
    2. Interval on a number line showing an open circle at negative 3 to an open circle at 0
    3. Interval on a number line showing a solid circle at negative 1 to an open circle at 4

    1. \([1,10)\)
      Interval on a number line showing a solid circle at 1 to an open circle at 10
    2. \([-6,-4)\)
      Interval on a number line hsowing a solid circle at negative 6 to a solid circle at negative 4
    3. \((5,\infty)\)
      Interval on a number line showing an open circle at 5 pointing towards infinity
    1. \((-\infty,-5]\) and \(x\leq-5\)
    2. \((-3,0)\) and \(-3<x<0\)
    3. \([-1,4)\) and \(-1\leq x<4\)

Multiple intervals

Functions can have two or more sets of real values. Let's consider a function with one subset with endpoints \(a\) and \(b\), and a second subset with endpoints \(c\) and \(d\).

Intervals on a number line showing a solid circle at a to a solid circle at b, and a solid circle at c to a solid circle at d

To indicate the intervals, we need to use the \(\cup\) symbol, which means "in union with". In interval notation, this would be \([a,b]\cup[c,d]\). In inequality notation, we write \(a\leq x\leq b\) with \(c\leq x\leq d\) OR \(\left\{ x:a\leq x\leq b\right\} \cup\left\{ x:c\leq x\leq d\right\} \).

Example – using interval and inequality notation for multiple intervals

Write the following interval and inequality notation.

Intervals on a number line showing a solid circle at 2 pointing towards negative infinity, and an open circle at 5 to a solid circle at 12

For the left interval, the left arrow indicates the values extend indefinitely towards \(-\infty\). The solid circle at \(2\) indicates that the subset includes \(2\). This interval would be \((-\infty,2]\) or \(x\leq2\).

For the right interval, the open circle at \(5\) indicates that the subset does not include \(5\). The solid circle at \(12\) indicates that the subset includes \(12\). This interval would be \((5,12]\) or \(5<x\leq12\).

Putting these together with the \(\cup\) symbol, the interval notation would be \((-\infty,2]\cup(5,12]\). The inequality notation would be \(x\leq2\) with \(5<x\leq12\), or \(\left\{ x:x\leq2\right\}\cup\left\{x:5<x\leq12\right\}\).

Exercise

  1. Graph the following on the real number line and write in inequality notation.
    1. \((-\infty,3)\cup(8,13]\)
    2. \(\left[-1,4\right]\cup\left[6,9\right]\)
    3. \((-\infty,3]\cup(6,\infty)\)

    1. \(x<3\) with \(8<x\leq13\) or \(\left\{x:x<3\right\}\cup\left\{x:8<x\leq13\right\}\)
      Intervals on a number line showing an open circle at 3 pointing towards negative infinity, and an open circle at 8 to a solid circle at 13
    2. \(-1\leq x\leq4\) with \(6\leq x\leq9\) or \(\left\{x:-1\leq x\leq4\right\}\cup\left\{x:6\leq x\leq9\right\}\)
      Intervals on a number line showing a solid circle at negative 1 to a solid circle at 4, and a solid circle at 6 to a solid circle at 9
    3. \(x\leq3\) with \(x>6\) or \(\left\{x:x\leq3\right\}\cup\left\{x:x>6\right\}\)
      Intervals on a number line showing a solid circle at 3 pointing towards negative infinity and an open circle at 6 pointing towards infinity

Images on this page by RMIT, licensed under CC BY-NC 4.0