| Union |
A ∪ B |
belong to A or B (inclusive or) |
{1, 2, 3, 4, 5} |
commutative, associative; identity = ∅ |
| Intersection |
A ∩ B |
belong to both A and B |
{3} |
commutative, associative; identity = U; empty if A, B disjoint |
| Complement |
Ac (also A', A, or U \ A) |
are in U but not in A (unary operation) |
Ac = {4, 5} |
(Ac)c = A; A ∪ Ac = U; A ∩ Ac = ∅ |
| Set difference |
A \ B (also A − B) |
are in A but not in B |
A \ B = {1, 2}; B \ A = {4, 5} |
NOT commutative; A \ B = A ∩ Bc |
| Symmetric difference |
A △ B |
are in exactly one of A or B |
{1, 2, 4, 5} |
commutative, associative; identity = ∅; A △ A = ∅ |