Intervals
If we have a set of real numbers, we can define a subset of this set by specifying a range of values. This subset is called an interval. To define an interval, we need two real numbers, and , with .
We can then define the following types of intervals:
- Open interval: We include all the numbers between and , but not and themselves. This is denoted as .
- Closed interval: We include all the numbers between and , as well as and themselves. This is denoted as .
- Half-open interval: We include one of the bounds but not the other. This is denoted as or .
- Unbounded/Infinite interval: On one or both sides, the interval extends indefinitely. This is denoted as if we want all numbers less or equal than , or if we want all numbers greater than . We can also have intervals that are unbounded on both sides, such as .
Info
Note that the bound of the interval that is included is always the one with the square bracket if it is excluded it is the one with the round bracket.
For example, includes but not , while includes but not .
Also, note that the unbounded side with is always excluded i.e. uses the round bracket.
Example
Examples of intervals:
- is the set of all real numbers between 2 and 5, but not including 2 and 5.
- is the set of all real numbers between 3 and 7, including 3 and 7.
- is the set of all real numbers less than or equal to 4.
- is the set of all real numbers greater than 6.