A number line can be used to represent a set of values in a given interval. The number of elements within the interval cannot be counted or listed because they are infinite. An interval on the number line can be open, closed, half-open, or half-closed.
- Open interval: An open interval excludes the endpoints. For example, if a<b, the open interval from a to b is denoted by (a,b) or {x:a<x<b}.
- Closed interval: A closed interval includes both endpoints. It is denoted by [a,b] or {x:a≤x≤b}.
- Half-open/half-closed intervals:
- Left-closed, right-open: [a,b) or {x:a≤x<b}
- Left-open, right-closed: (a,b] or {x:a<x≤b}
Table: Forms of intervals on a number line
| Interval Notation | Number Line Representation | Meaning |
|---|
| (a,b) | Left open, right open | a<x<b |
| [a,b] | Left closed, right closed | a≤x≤b |
| (a,b] | Left open, right closed | a<x≤b |
| [a,b) | Left closed, right open | a≤x<b |
| (−∞,a] | Right closed | x≤a |
| (−∞,a) | Right open | x<a |
| (a,∞) | Left open | x>a |
| [a,∞) | Left closed | x≥a |
Example
Find A∩B given:
A={x:x≥−2},B={x:x<5} where x∈R
Solution:
A∩B={x:−2≤x<5}
Example
Find A∪B given:
A={x:x≥−1},B={x:x≤6} where x∈R
Solution:
A∪B={x:x∈R}
Example
Find A−B given:
A={x:x>3},B={x:x<5} where x∈R
Solution:
A−B={x:x≥5}