Another common notation for relative complement is . However, this conflicts with the notation for the algebraic operation of subtraction in certain contexts, so we will prefer the notation .
The complement of the set of rational numbers inside the set of real numbers is called the set of irrational numbers, and we write for this set. If you are thinking of real numbers in terms of their decimal expanions, the irrational numbers are precisely those that have nonterminating, nonrepeating decimal expansions.
Recall that to prove this set equality, we need to show both
,.
Show .
We need to show
.
If then by definition of complement, but . Then must be true, since if were in then it would also be in . Similarly, must also be true. So and ; i.e. .
Show .
We need to show
.
If then by definition of intersection, both and are true.; i.e. and . Since is all elements of which are in one (or both) of , we must have . Thus .