A progressive guide to representing sets, comparing them, performing set operations, working with products and power sets, organizing indexed families, and proving set identities.
Sets, Elements, and Notation
A is a well-defined collection of objects called elements or members. Sets are usually named with capital letters and written with braces. For example, A={1,2,3,4}.
The notation x∈A means that x is an of A, and x∈/A means that it is not. Sets ignore order and repetition:
{1,2,3}={3,1,2}={1,1,2,3}.
The relationship is different from the relationship discussed later. An object such as a may satisfy a∈A, while the one- {a} may satisfy {a}⊆A.
Two common descriptions
Roster notation lists the elements explicitly, such as E={2,4,6,8}.
-builder notation specifies a property, such as E={x∈Z∣x is even and 0<x<10}.
The symbol ∣ means “such that.” The ∅ has no elements. A is completely determined by its elements, a principle called extensionality.
Takeaway: Read a by asking which objects belong to it; order and repeated listings do not change the .
Subsets and Equality
A A⊆B is a for which every of A is also an of B:
A⊆B⟺∀x(x∈A⇒x∈B).
For example, if A={1,3} and B={1,2,3,4}, then A⊆B. Every has the two basic inclusions ∅⊆A and A⊆A.
A A⊊B is a that is not equal to B:
A⊊B⟺A⊆B and A=B.
Two sets are equal precisely when they include each other:
A=B⟺A⊆B and B⊆A.
This is the double-inclusion method. For example, let
A={x∈Z∣x is divisible by 6}
and
B={x∈Z∣x is divisible by 2 and by 3}.
An integer is divisible by 6 exactly when it is divisible by both 2 and 3, so every of A is in B, and every of B is in A. Therefore, A=B.
Takeaway: To prove equality of sets, prove both inclusions rather than relying on the way the sets are written.
, , , and
Assume that all sets under discussion are contained in a fixed universal U. The main operations are defined by membership conditions.
The A∪B contains elements in at least one :
A∪B={x∣x∈A or x∈B}.
The A∩B contains elements common to both:
A∩B={x∣x∈A and x∈B}.
The A∖B contains elements in A that are not in B:
A∖B={x∣x∈A and x∈/B}.
The Ac contains elements of U that are not in A:
Ac={x∈U∣x∈/A}.
For A={1,2,3} and B={3,4,5}, these operations give
A∪B={1,2,3,4,5},A∩B={3},
A∖B={1,2},B∖A={4,5}.
The sets are disjoint when A∩B=∅. is not generally commutative, so the order in A∖B matters. If U={1,2,3,4,5} and A={1,3}, then Ac={2,4,5}.
Takeaway: Translate “or,” “and,” and “not” into , , and , while remembering that a requires a specified universal .
Cartesian Products and Ordered Pairs
The A×B consists of all ordered pairs whose first coordinate comes from A and whose second coordinate comes from B:
A×B={(a,b)∣a∈A and b∈B}.
If A={1,2} and B={x,y,z}, then
A×B={(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)}.
Order matters in an ordered pair, so (a,b) is generally different from (b,a), and A×B is generally different from B×A. For finite sets with ∣A∣=m and ∣B∣=n, the number of ordered pairs is
∣A×B∣=mn.
The product of a with itself is written A2=A×A. More generally,
An=n factorsA×A×⋯×A.
In particular, R2=R×R is the of ordered pairs of real numbers and represents the coordinate plane.
Takeaway: A records position: the first supplies the first component, and the second supplies the second component.
Power Sets and Counting
The P(A) is the of every of A:
P(A)={B∣B⊆A}.
For A={a,b},
P(A)={∅,{a},{b},{a,b}}.
It is important to distinguish an from a one- . The statements a∈A and {a}⊆A can both be true, but a and {a} are different objects.
If A is finite and ∣A∣=n, then
∣P(A)∣=2n.
Each has two choices when forming a : include it or omit it. Thus, a three- has 23=8 subsets. The provides an important example:
P(∅)={∅}.
The is therefore not empty, even though its only is the .
Takeaway: To count subsets of a finite , give each an include-or-omit choice, producing 2n possibilities.
Indexed Families of Sets
An labels many sets using an index I, written {Ai}i∈I. If I={1,2,3}, the family represents A1, A2, and A3.
The indexed contains an if it belongs to at least one member of the family:
i∈I⋃Ai={x∣there exists i∈I such that x∈Ai}.
The indexed contains an only if it belongs to every member:
i∈I⋂Ai={x∣for every i∈I,x∈Ai}.
For
A1={1,2,3},A2={2,3,4},A3={3,4,5},
we obtain
i=1⋃3Ai={1,2,3,4,5},i=1⋂3Ai={3}.
The same notation extends to infinite families such as {An}n∈N. The uses an “at least one” condition, whereas the uses an “every” condition.
Takeaway: Indexed notation extends ordinary and to any labeled collection of sets, including infinite collections.
Fundamental Identities
identities can be checked by translating membership into logic. Important laws include commutativity,
A∪B=B∪A,A∩B=B∩A,
associativity,
(A∪B)∪C=A∪(B∪C),(A∩B)∩C=A∩(B∩C),
and distributivity,
A∩(B∪C)=(A∩B)∪(A∩C),
A∪(B∩C)=(A∪B)∩(A∪C).
Other useful laws are
A∪∅=A,A∩U=A,
A∪U=U,A∩∅=∅,
A∪A=A,A∩A=A.
describe complements of compound sets:
(A∪B)c=Ac∩Bc,(A∩B)c=Ac∪Bc.
can also be rewritten using complements:
A∖B=A∩Bc.
This form often makes additional identities easier to recognize, such as
A∖(B∪C)=(A∖B)∩(A∖C).
Takeaway: identities behave like logical equivalences; rewrite membership conditions carefully and apply the matching law.
Proving Identities by
To prove an identity, use : choose an arbitrary x, translate each membership statement into logic, simplify, and translate back. Consider
A∩(B∪C)=(A∩B)∪(A∩C).
Begin with an arbitrary x in the left-hand side:
x∈A∩(B∪C)⟺x∈A and (x∈B or x∈C)⟺(x∈A and x∈B) or (x∈A and x∈C)⟺x∈(A∩B)∪(A∩C).
The first equivalence uses the definition of and . The second uses the distributive law of logic. The final equivalence translates the logical statement back into notation.
Because x was arbitrary, the two sets have exactly the same elements, so the identity holds. The same strategy can prove equality by showing both inclusions: prove that an arbitrary of the first belongs to the second, then reverse the roles.
Takeaway: proofs become systematic when every step states an equivalent condition for membership.