Business Mathematics and Basic Statistics · Ch 9 — Sets — Operations and Functions
Set Operations — Difference, Symmetric Difference and Complement
Set Operations — Difference, Symmetric Difference and Complement
Three more operations round out the standard set-operation toolkit.
The difference of and , written , is the set of elements that belong to but not to :
Note carefully that and are generally different sets — subtraction of sets, like subtraction of numbers, is not commutative.
The symmetric difference of and , written , is the set of elements belonging to exactly one of and , but not both — everything in either set except what they share:
For example, with and :
Notice is simply and combined — it deliberately leaves out the shared elements and .
The complement of a set , written , is defined only relative to a chosen universal set (the "everything under discussion" set from the previous chapter) — it is everything in that is not in :
For instance, if and , then . …
— elements in but not in . Generally $A …
— elements belonging to exactly one of , …
Relative to a universal set : — everything in outside …