Operate on membership, one element at a time
Set operations answer membership questions. Rather than trying to visualize a whole expression at once, choose an arbitrary element and ask which membership conditions it must satisfy. This method works for named sets, finite lists, and abstract proofs.
Two finite input sets shown as element lists. The display is used to evaluate operations.
Core operations
- A∪B contains elements in A or B, including elements in both.
- A∩B contains elements in both A and B.
- A∖B contains elements in A but not in B.
- With universal set U, Ac contains elements of U that are not in A.
The word “or” in a union is inclusive. An element in both input sets is still included in the union, but it is removed by a difference such as A∖B.
Worked example
Let A={r,s,t} and B={s,u}. To form the union, collect all distinct elements appearing in either list. To form the intersection, keep only the shared element. To form A∖B, start with A and remove the shared element. Each result follows from a membership condition, not from the order in which the symbols appear.
Useful identities
De Morgan's laws are especially useful when complements surround a union or intersection:
They say that “not in either” means “not in the first and not in the second.”
Refer to the figure. Which element belongs to P∩Q?
Two finite input sets shown as element lists. The display is used to evaluate operations.
Which identity is a correct form of De Morgan's law?