Week 1: Sets, Relations, and Functions
1. Sets
1.1 Definition & Representation
A set is a well-defined collection of distinct objects.
- Roster Form: Listing elements, e.g., .
- Set-Builder Form: Describing properties, e.g., .
1.2 Important Types of Sets
- Null/Empty Set ( or ): Contains no elements. .
- Singleton Set: Contains exactly one element.
- Finite vs. Infinite Set: Based on the number of elements.
- Universal Set (): The βparentβ set containing all objects under discussion.
- Subset: if every element of is in .
- Pro-Tip: is a subset of every set. Every set is a subset of itself.
- Power Set (): The set of all subsets of . If , then .
1.3 Operations on Sets
- Union (): Elements in OR .
- Intersection (): Elements in BOTH AND .
- Difference ( or ): Elements different in but NOT in .
- Symmetric Difference (): Elements in or but NOT both. .
- Complement ( or ): Elements in but NOT in .
1.4 Cardinality Rules (Inclusion-Exclusion)
2. Number Systems Classification
Understanding domains (, etc.) is critical for functions.
- : Natural Numbers
- : Whole Numbers
- : Integers
- : Rational Numbers . (Terminating or Repeating decimals).
- or : Irrational Numbers (Non-terminating, Non-repeating). E.g., .
- : Real Numbers ().
Tacit Knowledge:
Be very careful when a function domain is defined as or . A function like might define a bijection on but NOT on (because ).
3. Relations
3.1 Cartesian Product
.
- Cardinality: .
3.2 Definition of Relation
A relation from to is a subset of .
- Total number of relations from to : .
3.3 Types of Relations (on a set )
A relation :
- Reflexive: . (Every element is related to itself).
- Symmetric: If , then .
- Transitive: If and , then .
Equivalence Relation: A relation that is Reflexive AND Symmetric AND Transitive.
Equivalence relations partition the set into disjoint Equivalence Classes.
4. Functions
4.1 Definition
A function relates every element to exactly one element .
- Domain: Set .
- Codomain: Set .
- Range: Set of actual outputs . (Range Codomain).
4.2 Types of Functions
- One-to-One (Injective): Unique inputs give unique outputs.
- .
- Horizontal Line Test: No horizontal line cuts the graph more than once.
- Onto (Surjective): Every element in Codomain is covered.
- Range = Codomain.
- such that .
- Bijective: Both One-to-One AND Onto.
- Only bijective functions are Invertible ( exists).
4.3 Composition
- .
- Domain of is the set of all in domain of such that is in domain of .
5. Tacit Knowledge & Goated Examples
Example 1: Domain Traps
Question: Let be . Is it bijective? Analysis:
- One-to-One? Yes. .
- Onto? No. The range is only even integers. Odd integers in the codomain have no pre-image. Verdict: Not Bijective. Contrast: If defined by , it is bijective.
Example 2: Counting Relations
Question: Set . Total relations? Reflexive relations? Solution:
- .
- Total Relations = .
- Reflexive: Must contain . The other pairs can be present or absent.
- Formula: .
- Calculation: .