In this section, we introduce the concept of intervals that are extensively used in calculus. The set of all real numbers that lie between two given numbers, possibly including one or both endpoints is called an interval.
Closed interval $[a,b]$ is the set of real numbers $x$ that satisfy the inequalities $a\leq x\leq b$.
$
[a,b]=\{x\in\mathbb{{R}}|\ a\leq x\leq b\}.
$
Open interval $(a,b)$ is the set of real numbers $x$ that satisfy the inequalities $a<x<b$.
$
(a,b)=\{x\in\mathbb{{R}}|\ a<x<b\}.
$
Some books denote the open interval $(a,b)$ by $]a,b[$.
Note that the open interval $(a,b)$ does not include its endpoints $a$ and $b$, while the closed interval $[a,b]$ include both of them.
We also have half-open intervals that include only one endpoint. In addition to finite intervals, we have infinite intervals that extend indefinitely in one or both directions. If an interval extends indefinitely in the positive direction, we write $\infty$ (or sometimes $+\infty$) in place of the right end and if it extends indefinitely in the negative direction, we write $-\infty$ in place of the left end. All of these cases are shown in the following table.
We always denote the inclusion of an end in an interval by square bracket and its exclusion by a parenthesis.
The symbols $\infty$ and $-\infty$ (read "infinity" and "minus infinity") are not real numbers. We use these symbols to indicate that the interval extends indefinitely in a direction.
Notation
Definition
Graph
Classification
$\left[a,b\right]$
$\{x|\ a\leq x\leq b\}$
finite, closed
$\left(a,b\right)$
$\{x|\ a<x<b\}$
finite, open
$[a,b)$
$\{x|\ a\leq x<b\}$
finite, half-open
$(a,b]$
$\{x|\ a<x\leq b\}$
finite, half-open
$[a,\infty)$
$\{x|\ a\leq x<\infty\}$
infinite, closed
$(a,\infty)$
$\{x|\ a<x<\infty\}$
infinite, open
$(-\infty,b]$
$\{x|\ -\infty<x\leq b\}$
infinite, closed
$(-\infty,b)$
$\{x|\ -\infty<x<b\}$
infinite, open
$(-\infty,\infty)$
$\{x|\ -\infty<x<\infty\}=\mathbb{R}$
infinite, open and closed
Because intervals are sets, we can calculate the union, intersection, and difference of intervals. For example the set$
\{x|\ x\neq3\}
$can be written as$
(-\infty,3)\cup(3,\infty)
$or$
\mathbb{R}-\{3\}.
$See the following figure.
Different ways to symbolically express the set shown above: $\{x|\ x\neq3\}$
To avoid any mistakes in set calculations on intervals, you can picture them graphically.
If $I=[-3,2)$ and $J=(1,4)$ then find $I\cup J$ and $I\cap J$.
Solution
The results are explained in the next two figures.
$[-3,2)\cup(1,4)=[-3,4)$
and
$[-3,2)\cap(1,4)=(1,2).$