Set Theory: Sets and Subsets
Section 2.1: Sets and Subsets
What is a Set?
A set is a well-defined collection of objects.
Well-defined: There must be an objective rule determining if an object belongs to the set, not a matter of opinion.
The objects in a set are called elements.
Elements can be numbers, letters, people, animals, cities, colors, etc.
Notation: Sets are typically denoted by capital letters (e.g., A, B, C).
Sometimes, the letter helps remember what the set represents (e.g.,
Mfor math students).
Three Ways to Represent a Set
1. Roster Method (Listing)
Lists all elements that belong to the set.
Notation: Uses curly brackets to enclose the elements, with
s separating them.Example:
A = {1, 2}is read as "set A contains the elements one and two."
Element Notation: The symbol
means "is an element of" or "belongs to."Example:
means "1 is an element of set A."
Rules for Roster Method:
An element may not repeat in a set (each element must be unique).
This rule applies within the context of set theory in this chapter; other types of sets (like data sets) may allow repetition.
The order of elements does not matter.
The set
{Wisconsin, Wyoming, West Virginia, Washington}is the same as{Washington, Wyoming, Wisconsin, West Virginia}.
Example: Let
Wbe the set of US states whose name begins with the letter W.W = {Wisconsin, Wyoming, West Virginia, Washington}.
Applicability: Useful for small sets; impractical for very large sets.
2. Set-Builder Method (Describing)
Provides a well-defined rule describing which elements belong to the set.
Elements must satisfy all conditions of the rule to be included.
Notation:
.The vertical bar
is read as "such that."Example:
.Read as: "Set W is the set of all elements
such thatis a state in the US whose name begins with the letter W."
Applicability: Can describe small, large, or infinite sets more efficiently than the roster method.
3. Cardinality (Quantifying)
Refers to how many elements belong to a set.
Notation:
represents the cardinal number (or cardinality) of set A.Example: If set
F(finite class) has students, then.
Applicability: Quantifies finite sets. Infinite sets do not have a cardinal number.
..
Identifying Sets vs. Non-Sets
Example 1:
A = {2, 3, 4, 5, 1}This is a set. Elements are unique, and order doesn't matter.
Example 2:
B = {2, 3, 4, 5, 1, 2}This is not a set because the element
repeats, violating a roster method rule.
Example 3:
C = {x | x is a prime number}This is a set (an infinite set). "Prime number" is an objective rule.
A prime number is any integer greater than
that is only divisible by itself and.Example:
(is not prime because it's divisible by).
Example 4:
D = {x | x is a small number}This is not a set because "small number" is subjective and not well-defined.
Example 5:
E = {x | x is an integer greater than 0 and less than 5}This is a set. It can be written in roster form as
{1, 2, 3, 4}.
Converting Between Set Representations (Examples)
Problem: Use the roster method to list the elements of
A = {x | x is an odd positive integer less than 20}.Conditions: odd, positive, integer, less than
.Solution:
A = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19}.
Problem: Use the roster method to list the elements of
A = {x | x is a prime number and divisible by 2}.Solution:
A = {2}. This is a singleton set (a set with exactly one element), asis the only prime number divisible by. Other prime numbers are odd.
Problem: Write set
B = {x | x = 2y + 4 \text{ and } y \in I \text{ and } 0 < y < 5}in roster form, whereIis the set of integers.Step 1: Identify possible values for
.must be an integer strictly betweenand.Possible
values:{1, 2, 3, 4}.
Step 2: Substitute each
value into the expressionto find thevalues for setB.If
,.If
,.If
,.If
,.
Solution:
B = {6, 8, 10, 12}.
Important Set Types
The Empty Set (Null Set)
Definition: The set containing no elements.
Notation:
(anwith a slash through it) or{}(a pair of empty curly brackets).Using
{}is often preferred to avoid confusion with the number.
Cardinality:
.Nothing vs. Zero: These are distinct concepts.
If an equation's solution is
, it meansis a valid solution. This is different from the equation having no solution (an empty set of solutions).A blank license plate has
characters. A license plate with the numberon it hascharacter.Sets with different cardinalities cannot be equal.
The Universal Set (U)
Definition: The set that contains everything relevant to a particular problem or discussion.
It establishes the scope of elements that exist for the purposes of the problem.
Example: For the set
W(US states starting with W), the universal setUwas allUS states, not states from other countries like India.
Subsets
Definition: Set
Ais a subset of setBif every element ofAis also an element ofB.Notation:
is read as "A is a subset of B" or "A is contained in B."The bar under the
symbol indicates thatAandBcan be equal.
Examples:
Apples are a subset of fruit.
W(states starting with W) is a subset of the universal set of US states.{Wisconsin, Wyoming}is a subset ofW.The empty set
is always a subset of any set.This is true because we always have the option of choosing none of the elements from a set.
Symbols for Subset Relations: (
for subset,for not equal,for not a subset).{1} \subseteq {1, 2}(True){3, 4, 5} \not\subseteq {3, 5}(False, becauseis not in the right set){7, 9} \subseteq {9, 7}(True, they are also equal because order doesn't matter).(True. They are not equal becauseand).
Number of Subsets
The following two sets are always subsets of any given set:
The empty set (
)The set itself
Pattern: When you add an element to a set, the number of possible subsets doubles.
Set with
element (e.g.,{B}):subsets (,{B}).Set with
elements (e.g.,{B, C}):subsets (,{B},{C},{B, C}).Set with
elements (e.g.,{B, C, D}):subsets (,{B},{C},{D},{B, C},{B, D},{C, D},{B, C, D}).
Formula: If a set has
elements, there arepossible subsets.Example: The alphabet has
letters, so it haspossible subsets.
Applications of the Formula:
Problem: Set
Shas cardinality(). How many possible subsets can be constructed fromS?Solution:
subsets.
Problem: How many possible subsets can be constructed from set
Sthat contain at least one element?This means all subsets except the empty set.
Solution:
subsets.
Problem: How many possible subsets can be constructed from set
Sthat contain at most one element?This means subsets with one element (singleton sets) or zero elements (the empty set).
Solution: Number of singleton sets (
) + Number of empty sets () =subsets.
Complement of a Set
Definition: Given a universal set
Uand a setAthat is a subset ofU, the complement ofA(expressed asA') is the set of elements inUthat are not in setA.Notation:
A'(read as "A prime" or "A complement").Requirement: The universal set
Umust be given to find the complement.Example: If
and,Then
.
Review Questions (Section 2.1)
Given
U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}.A = {x | x is a multiple of 6}.B = {y | y is even}.Answer in roster form:
A = {6, 12}(fromU)A' = {1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13}(elements inUnot inA)Check:
().
B = {2, 4, 6, 8, 10, 12}(fromU)B' = {1, 3, 5, 7, 9, 11, 13}(elements inUnot inB- all odd numbers)
True/False Subset Questions:
Is
A \subseteq B?All elements of
A() are inB().True.
Is
B \subseteq A?Not all elements of
Bare inA(e.g.,but).False.
Is
A' \subseteq B'?Not all elements of
A'are inB'(e.g.,but).False.
Is
B' \subseteq A'?All elements of
B'() are inA'. (Both contain the same odd numbers).True.