Set Basics
๐ What is a Set?
An unordered collection of distinct objects. Order doesn't matter, duplicates collapse.
๐ข Counting Elements โ Watch the Nesting
Only count top-level elements. Nested sets are single objects.
โ vs {โ } โ The #1 Trap
This distinction is everywhere on this test.
| Symbol | What It Is | Elements |
|---|---|---|
| \(\emptyset\) | The empty set | 0 elements |
| \(\{\emptyset\}\) | A set containing the empty set | 1 element |
โ vs โ โ Element vs Subset
| Notation | Meaning | Example |
|---|---|---|
| \(a \in S\) | \(a\) is an element inside \(S\) | \(1 \in \{1,2\}\) โ |
| \(A \subseteq S\) | Every element of \(A\) is in \(S\) | \(\{1\} \subseteq \{1,2\}\) โ |
Subset vs Proper Subset
\(A \subset B\): \(A \subseteq B\) and \(A \neq B\)
Number Sets Hierarchy
\(\mathbb{Q}\) (rationals) is a proper subset of \(\mathbb{R}\) (reals) because irrationals exist. \(\mathbb{R}\) is NOT a subset of \(\mathbb{Q}\).
Interval Notation
| Notation | Meaning | Endpoints |
|---|---|---|
| \([a, b]\) | \(a \leq x \leq b\) | Both included |
| \((a, b)\) | \(a < x < b\) | Both excluded |
| \([a, b)\) | \(a \leq x < b\) | Left in, right out |
| \((a, b]\) | \(a < x \leq b\) | Left out, right in |
\(\mathbb{Z}^2\) โ Integer Grid
\(\mathbb{Z}^2 = \mathbb{Z} \times \mathbb{Z}\) = all points \((x,y)\) where both coordinates are integers. Visualize it as the infinite lattice grid on the plane.
Set Operations
Core Operations
| Operation | Notation | Meaning |
|---|---|---|
| Union | \(A \cup B\) | Everything in \(A\) or \(B\) (or both) |
| Intersection | \(A \cap B\) | Only what's in both \(A\) and \(B\) |
| Difference | \(A - B\) | Elements in \(A\) but not in \(B\) |
| Complement | \(\overline{A}\) | Everything in \(U\) not in \(A\) |
Key Identities
Simplification Tricks
Union with the empty set changes nothing. The empty set adds zero elements.
This decomposes \(A \cup B\) into three disjoint pieces: left-only, overlap, and right-only.
\(A - B\) contains things NOT in \(B\), so subtracting them from \(B\) removes nothing.
Disjoint Sets & Complement Pairs
| Pair | Universal Set | Complement? |
|---|---|---|
| Positive reals & Negative reals | \(\mathbb{R}\) | โ (miss 0) |
| Even integers & Odd integers | \(\mathbb{Z}\) | โ |
| Rationals & Irrationals | \(\mathbb{R}\) | โ |
Union of Intervals
When merging intervals, draw them on a number line and find the combined coverage.
Intersection of Intervals
Overlapping real-number intervals always have infinitely many points in common.
Complement of an Interval
Example: Universal set \(= [0,2]\), find \(\overline{(0,1)}\).
\(0\) is in \([0,2]\) but not in \((0,1)\) โ it's an isolated point. Everything from \(1\) to \(2\) is also excluded from \((0,1)\).
Cardinality of Union
Power Sets
Definition
\(\mathcal{P}(S)\) = the set of ALL subsets of \(S\).
Every element is either in or out of a subset โ 2 choices per element โ \(2^n\) subsets total.
Critical Examples
| Set | Power Set | Size |
|---|---|---|
| \(\emptyset\) | \(\{\emptyset\}\) | \(2^0 = 1\) |
| \(\{1\}\) | \(\{\emptyset,\ \{1\}\}\) | \(2^1 = 2\) |
| \(\{1,2\}\) | \(\{\emptyset,\ \{1\},\ \{2\},\ \{1,2\}\}\) | \(2^2 = 4\) |
Power Set of a Power Set
Example: \(\mathcal{P}(\mathcal{P}(\{1\}))\)
Step 1: \(\mathcal{P}(\{1\}) = \{\emptyset,\ \{1\}\}\) โ a 2-element set.
Step 2: Take all subsets of \(\{\emptyset,\ \{1\}\}\):
4 elements, as expected from \(2^2 = 4\).
\(\emptyset\) and \(\mathcal{P}(\emptyset)\)
Cartesian Products
Definition
All ordered pairs with first element from \(A\), second from \(B\). Uses parentheses \((a,b)\), NOT curly braces.
Key Properties
Example
4 pairs because \(2 \times 2 = 4\). Think of it as a grid: rows are \(A\), columns are \(B\).
Functions
Injective (One-to-One)
Different inputs โ different outputs. No two inputs land on the same output.
Surjective (Onto)
Every element of the codomain is hit. Range = Codomain.
Bijective = Injective + Surjective
Perfect one-to-one correspondence. Every input maps to a unique output, and every output is covered.
\(f(x) = x^2\) โ The Most Tested Function
| Domain โ Codomain | Injective? | Surjective? |
|---|---|---|
| \(\mathbb{R} \to \mathbb{R}\) | โ f(-1)=f(1) | โ negatives missed |
| \([0,\infty) \to \mathbb{R}\); \(x^2+1\) | โ strictly increasing | โ range=[1,โ) |
| \([-2,2] \to [0,4]\) | โ f(-2)=f(2) | โ range=[0,4] |
| \([-2,0) \to [0,4]\) | โ strictly decreasing | โ 0 not in range |
| \([0,1] \to \mathbb{R}\) | โ (Sun's proof) | โ negatives missed |
| \([-1,0] \to [0,1]\) | โ | โ bijective! |
Image and Preimage
Example with \(f(x) = x^2\), \(f: \mathbb{R} \to \mathbb{R}\):
| Set | Result | Why |
|---|---|---|
| \(f((-1,1))\) | \([0,1)\) | 0 achieved at \(x=0\), approaching 1 but never hitting it |
| \(f^{-1}((0,1])\) | \([-1,0) \cup (0,1]\) | Need \(0 < x^2 \leq 1\), exclude \(x=0\), include \(x=\pm1\) |
| \(|x|^{-1}([-2,1))\) | \((-1,1)\) | \(|x| \geq 0\) always, so effective constraint is \(|x| < 1\) |
Monotonicity
| Property | Definition |
|---|---|
| Increasing | \(a \leq b \implies f(a) \leq f(b)\) |
| Strictly increasing | \(a < b \implies f(a) < f(b)\) |
| Decreasing | \(a \leq b \implies f(a) \geq f(b)\) |
| Strictly decreasing | \(a < b \implies f(a) > f(b)\) |
Single-Element Domain: \(f: \{0\} \to \{0\}\)
This function is: increasing โ, strictly increasing โ, decreasing โ, strictly decreasing โ, constant โ, injective โ, surjective โ.
Fixing Injectivity / Surjectivity
Floor & Ceiling Functions
Definitions
\(\lceil x \rceil\) = smallest integer \(\geq x\) (round up)
โญ Inequality Rules โ Memorize These
| Floor | Equivalent |
|---|---|
| \(\lfloor t \rfloor \geq n\) | \(t \geq n\) |
| \(\lfloor t \rfloor \leq n\) | \(t < n + 1\) |
| \(\lfloor t \rfloor > n\) | \(t \geq n + 1\) |
| \(\lfloor t \rfloor < n\) | \(t < n\) |
| Ceiling | Equivalent |
|---|---|
| \(\lceil t \rceil \geq n\) | \(t > n - 1\) |
| \(\lceil t \rceil \leq n\) | \(t \leq n\) |
| \(\lceil t \rceil > n\) | \(t > n\) |
| \(\lceil t \rceil < n\) | \(t \leq n - 1\) |
Worked Example: \(1 \leq \lfloor 2x+1 \rfloor \leq 6\)
Left: \(\lfloor 2x+1 \rfloor \geq 1 \implies 2x+1 \geq 1 \implies x \geq 0\)
Right: \(\lfloor 2x+1 \rfloor \leq 6 \implies 2x+1 < 7 \implies x < 3\)
Worked Example: \(1 < \lceil 2x+1 \rceil < 6\)
Left: \(\lceil 2x+1 \rceil > 1 \implies 2x+1 > 1 \implies x > 0\)
Right: \(\lceil 2x+1 \rceil < 6 \implies 2x+1 \leq 5 \implies x \leq 2\)
Image of Ceiling Function
Ceiling maps intervals to discrete integer sets:
Values in \((1/2, 1]\) map to 1, values in \((1, 3/2)\) map to 2.
Common Trap
Sequences & Summations
Arithmetic vs Geometric
| Type | Pattern | Test |
|---|---|---|
| Arithmetic | Constant difference | \(a_{n+1} - a_n = d\) |
| Geometric | Constant ratio | \(a_{n+1} / a_n = r\) |
\(a_n = 3 \cdot 11^n\) โ geometric, \(r = 11\)
Summation Formulas
Partial Sums via Subtraction
Sum from \(a\) to \(b\) = (sum from 1 to \(b\)) โ (sum from 1 to \(a-1\)).
Evaluating Geometric Sums (example: \(3^4 + \cdots + 3^9\))
Valid methods:
- Subtract two full geometric sums: \((3^0 + \cdots + 3^9) - (3^0 + \cdots + 3^3)\)
- Factor out: \(3^4(3^0 + 3^1 + \cdots + 3^5)\) then use geometric formula
- Brute force: \(81 + 243 + 729 + 2187 + 6561 + 19683 = 29484\)
Index Shifting
To shift \(\sum_{k=a}^{b}\) so it starts at \(k=0\): substitute \(k \to k + a\) everywhere, new bounds go from 0 to \(b-a\).
Proof Techniques
Universal Statements: \(\forall x,\ P(x)\)
Start with: "Let \(x\) be an arbitrary [element of domain]."
Then prove \(P(x)\) holds for this arbitrary \(x\).
Existential Statements: \(\exists x,\ P(x)\)
Strategy: exhibit a specific witness and verify it works.
Example: Prove \(\exists x \forall y (x + y = y)\).
"Let \(x = 0\). Then for any \(y\), \(x + y = 0 + y = y\). โ"
Mixed Quantifiers: \(\forall x \exists y,\ P(x,y)\)
Structure:
- "Let \(x\) be an arbitrary [element]." (handle the โ)
- "Let \(y = \text{[expression depending on } x\text{]}.\)" (provide the โ witness)
- Verify that \(P(x, y)\) holds.
Example: Prove \(\forall x \exists y\ (y < 2x+1 \text{ and } y \text{ is odd})\).
1. "Let \(x\) be an arbitrary integer."
2. "Let \(y = 2x - 1\)."
3. "Then \(y = 2x - 1 < 2x + 1\), and \(y = 2(x-1)+1\) is odd since it's one more than an even number. โ"
Common Proof Mistakes
The "Even Integer in an Interval" Proof
Statement: For all positive integers \(n\), there exists an even integer \(k\) such that \(n - 1/n < k < n + 2 + 1/n\).
Quick-Fire Cheat Sheet
True / False Speed Round
| Statement | Answer |
|---|---|
| \(\emptyset \in \emptyset\) | False |
| \(\emptyset \subseteq \emptyset\) | True |
| \(\emptyset \in \mathcal{P}(\emptyset)\) | True |
| \(\emptyset \subseteq \mathcal{P}(\emptyset)\) | True |
| \(\{\emptyset\} = \emptyset\) | False |
| \(\{1,2\} = \{2,1\}\) | True |
| \(A \times B = B \times A\) | False (in general) |
| \(A \subseteq A\) | True (always) |
| \(A \subset A\) | False (always) |
| \(\overline{U} = \emptyset\) | True |
| \(\lfloor ab \rfloor = \lfloor a \rfloor \lfloor b \rfloor\) | False |
| \(\sum k^2 = n(n+1)(2n+1)/6\) | True |
Formulas at a Glance
Proof Starters
| Quantifier | Start With |
|---|---|
| \(\forall x\) | "Let \(x\) be an arbitrary..." |
| \(\exists x\) | "Let \(x = \text{[specific value]}\)." |
| \(\forall x \exists y\) | "Let \(x\) be arbitrary. Let \(y = \text{[expr with } x\text{]}.\)" |
| \(\exists x \forall y\) | "Let \(x = \text{[value]}\). Then for any \(y\)..." |