Open Interval and Closed Interval – Definition, Examples, FAQs

Home » Math Vocabulary » Open Interval and Closed Interval – Definition, Examples, FAQs

What Is Open Interval and Closed Interval?

There are two types of intervals known as open interval and closed interval. In an open interval (a, b), the endpoints are not included. In a closed interval [a, b], the endpoints are included. 

Before we dive into the details of open intervals and closed intervals, let us first understand the definition of interval in math

Interval: An interval is the collection of all real numbers in the given range. It contains all the real numbers between two given numbers, called endpoints of the interval. The endpoints are included or excluded based on the type of the interval.

Examples: $\left(0,\; 1\right),\; \left[\;-\;5,\;5\right], \left(\;1,\;9\right]$

What Is an Open Interval?

An interval in which the endpoints are not included is called an open interval. An open interval (a, b) represents the set of all real numbers x such that a $\lt x \lt b$.

We get an open interval if an inequality has the signs

  • less than $\lt$
  • greater than $\gt$

Example: (-3, 5) is an open interval that includes all the real numbers greater than -3 but less than 5. We can write is with the help of compound inequality $\;-\;3 \lt x \lt 5$. In the set notation, we can express the open interval $(\;-\;3,\; 5)$ as $\left\{ x | \;-\;3 \lt x \lt 5\right\}$.

Open Interval Notation

A round bracket or parentheses ( ) is used to denote an open interval. An open interval is written as an ordered pair within round brackets as (a, b). 

Open Interval on a Number Line

To represent an open interval on a number line, we use two hollow circles to denote the endpoints. These hollow circles show that the points are not included.

Open interval (a, b) notation on a number line

Open interval (-3, 5) on a number line:

An open interval (-3, 5) on a number line

What Is a Closed Interval?

An interval in which the endpoints are included is called a closed interval. A closed interval [a, b] represents the set of all real numbers x such that $a\le x \le b$.

We get closed interval if an inequality has the signs

  • less than or equal to $\le$
  • greater than or equal to $\ge$

Example: $\left[2, 7\right]$ is a closed interval which includes 2, 7 and all the real numbers between 2 and 7. We can write it with the help of compound inequality $2 \le x \le 7$. In the set notation, we can express the open interval $\left[2, 7\right]$ as $\left\{ x | 2 \le x \le 7\right\}$.

Closed Interval Notation

Square brackets $\left[ \right]$ are used to denote a closed interval. We write a closed interval as an ordered pair within square brackets as $\left[a,\; b\right]$.

Closed Interval on a Number Line

To represent a closed interval on a number line, we use two solid circles to denote the endpoints. Solid circles convey that these points are to be included.

Closed interval notation on a number line

Closed interval [2, 7] on a number line:

Closed interval [2, 7] on a number line

What Is the Difference between Open Interval and Closed Interval?

Open Interval vs. Closed Interval
Open IntervalClosed interval
Open intervals are denoted by an ordered pair (a, b) with round brackets or parentheses ( ).Closed intervals are denoted by an ordered pair [a, b] with square brackets [ ].
Endpoints a and b are not included.Endpoints a and b are also included.
Open interval (a, b) can be defined by an inequality $a \lt x \gt b$.Closed interval [a, b] can be defined by an inequality $a \le x \ge b$.
Endpoints are denoted by hollow circles on a number line.Endpoints are denoted by solid circles on a number line.

Operations on Open Intervals and Closed Intervals

Let’s discuss two operations on intervals that are similar to the operations we perform on sets.

Union of Two Intervals

The union of two intervals A and B included all the elements that are in A, in B, or both in A and B.

Examples: 

$(1, 5) (2, 7) = (1, 7)$

$\left[4, 9\right] (5, 15) = \left[4, 15\right)$

Intersection of Two Intervals

The intersection of two intervals is the collection of all the elements that are common to both the intervals.

Examples:

$(1, 5) (2, 7) = (2, 5)$

$\left[4, 9\right] (5, 15) = (5, 9)$

Complement of an Interval

The complement of an interval with respect to the set of real numbers is the set of all real numbers that are not in the given interval.

Example: $A = (4, 8)$

Complement of $A = A’ = (-,4] [8,)$

Facts about Open Interval and Closed Interval

  • Open intervals do not include the endpoints but closed intervals always include the endpoints.
  • A half-open interval is an interval wherein one endpoint is included but the other is not.
    For example, in the interval [a, b), the endpoint a is included, but b is not included.
    Half-open interval $\left(a, b\right]$ includes the endpoint b but not the endpoint a.

Conclusion

In this article, we learned about open and closed intervals, definitions, notations along with operations on them. Let’s solve a few examples and practice problems based on these concepts to understand the concept better.

Solved Examples on Open Interval and Closed Interval

1. Look at the two intervals $\left[3, 7\right]$ and $(2, 6)$. Which interval includes the number 3? Which interval includes 6?

Solution: 

The closed interval $\left[3, 7\right]$ includes all the real numbers between 3 and 7, including both 3 and 7.  The open interval (2, 6) includes all the real numbers greater than 2 but less than 6. 

Both intervals include the number 3. 

The closed interval $\left[3, 7\right]$ includes the number 6. 

The open interval (2, 6) does not include 6. 

2. Write the given inequalities as intervals.

i) $0 \lt x \lt 99$

i) $\;-\;5 \le x \le 8$

Solution: 

i) $0 \lt x \lt 99$

Endpoints are not included. So, we use an open interval.

The inequality can be written as (0,99).

ii) $\;-\;5 \le x \le 8$

Endpoints are included. So, we use a closed interval.

The inequality can be written as $\left[\;-5,\;8\right]$.

3. What is the union and intersection of the intervals $(0,\; 99)$ and $[1,\; 100]$?

Solution: 

$(0,\; 99)$ represents the inequality $0 \lt x \lt 99$.

$\left[1,\; 100\right]$ represents the inequality  $1 \le x \le 100$.

The union of intervals includes the elements present in either of the intervals.

$(0,\; 99) \cup \left[1,\; 100\right] = \left(0,\; 100\right]$

The intersection includes the elements common to both intervals.

$(0,\; 99) \cap \left[1,\; 100\right] = \left[1,\; 99\right)$

4. Observe at the inequality $\;-\;4 \lt x \lt 3$ and state if it is an open interval or a closed interval. Represent it on a number line.

Solution: 

The inequality is $\;-\;4 \lt x \lt 3$ is an open interval. This means x is less than 3 but greater than -4. Here, as  -4 and 3 are not included, it is an open interval.

(-4, 3) on a number line

Practice Problems on Open Interval and Closed Interval

Open Interval and Closed Interval - Definition, Examples, FAQs

Attend this quiz & Test your knowledge.

1

Which of the following intervals includes the number 5?

$\left[2,\; 5\right)$
$\left(2, 5\right)$
$\left(5, 8\right]$
$\left[3, 7\right]$
CorrectIncorrect
Correct answer is: $\left[3, 7\right]$
The interval that includes the number 5 is $\left[3, 7\right]$, as it includes all real numbers x such that $3 \le x \le 7$.
2

Which statement is true about open intervals?

An open interval includes its endpoints.
An open interval does not include its endpoints.
An open interval can only include one endpoint.
An open interval is denoted by $\left(a, b\right]$.
CorrectIncorrect
Correct answer is: An open interval does not include its endpoints.
The only correct statement is “An open interval does not include its endpoints.”
3

Which of the following intervals does not include the number 2?

$\left(\;-\;1, 2\right)$
$\left[-7, 2\right]$
$\left[2, 13\right)$
$\left(\;-\;10, 13\right)$
CorrectIncorrect
Correct answer is: $\left(\;-\;1, 2\right)$
The interval that does not include 2 is $\left(\;-\;1, 2\right)$, which is an open interval and does not include 2.
4

Which of the following is a closed interval?

$\left(0, 5\right)$
$\left[2, 6\right)$
$\left(3, 8\right]$
$\left[4, 9\right]$
CorrectIncorrect
Correct answer is: $\left[4, 9\right]$
The interval $\left[4, 9\right]$ is a closed interval because it includes both 4 and 9.
5

Represent $15\le y\le 45$ using an interval.

$\left(15, 45\right]$
$\left[15, 45\right)$
$\left[15, 45\right]$
$\left(15, 45\right)$
CorrectIncorrect
Correct answer is: $\left[15, 45\right]$
$15 \le y \le 45$ can be written as $\left[15, 45\right]$.

Frequently Asked Questions on Open Interval and Closed Interval

A half-open interval simply means that one of the endpoints is included, and the other is not. Half-open intervals are written as $\left(a, b\right]$ or $\left[a, b\right)$. Here, only one interval is open and the other is closed.

The easiest way to identify an open interval is by looking at the bracket used. Round brackets represent an open interval. On the other hand, a closed interval is denoted by the square brackets like [a, b].

Real numbers can be represented by an open interval $(-,\;\infty,\;\infty)$.

It is always an open interval.

  • Suppose a courier company only accepts packages less than 30 kg. So, 30 kg would not be an acceptable weight. Thus, we can define the range between 0 and 30, both 0 and 30 not included. This can be represented by an open interval (0, 30).
  • Suppose a company is looking to hire people within the age group of 25 to 45 such that people who are aged 25 and 45 are also included. The endpoints of this example, 25 and 45, are also included, Hence, this would be a closed interval.