When you represent a set with set notation, you look for a characteristic that identifies the elements of your set. For example, if you want to describe the set of all number greater than 2 and less than 10, you write
{x∈R | 2<x<10}
Which you read as "Al the real number x(x∈R) such that (the symbol l) x is between 2 and 10(2<x<10)
On the other hand, if you want to represent the set with interval notation, you need to know the upper and lower bound of the set, or possibly the upper and lower bound of all the intervals that compose the set.
For example, if your set is composed by all the numbers smaller than 5, or between 10 and 20, or greater than 100, you write the following union of intervals:
On the other hand, if you want to represent the set with interval notation, you need to know the upper and lower bound of the set, or possibly the upper and lower bound of all the intervals that compose the set.
For example, if your set is composed by all the numbers smaller than 5, or between 10 and 20, or greater than 100, you write the following union of intervals:
(−∞,5)∪(10,20)∪(100,∞)
This same set can be written in set notation :
{x∈R | x<5 or 10<x<20or x>100}
Finally, note that if the characterization of the set is rather complex, the set notation becomes preferable to the interval one, which would require a great number of intervals in the union. In some other cases, it could be literally impossible to write a set in interval notation, for example is you consider only irrational numbers, you write
{x∈R | x∉Q}
but you can't write is as union of intervals.