Table of Contents
1. Sets
1.1 Set Basics
-
a ∈ Adenotes that a is an element of set A -
a ∉ Adenotes that a is not an element of set A
1.2 Describing Sets
Roster Method
List all members of the set explicitly.
- S = {a, b, c, d}
- V = {a, e, i, o, u}
- O = {1, 3, 5, 7, 9}
S = {a,b,c,d} = {b,c,a,d} = {a,b,c,b,c,d}
Set-Builder Notation
Specify properties that all members must satisfy.
- S = {x | x is a positive integer less than 100}
- O = {x ∈ ℤ⁺ | x is odd and x < 10}
- Q⁺ = {x ∈ ℝ | x = p/q, for some positive integers p,q}
Interval Notation
| Notation | Set-Builder Form | Type |
|---|---|---|
| [a, b] | {x | a ≤ x ≤ b} | Closed interval |
| (a, b) | {x | a < x < b} | Open interval |
| [a, b) | {x | a ≤ x < b} | Half-open interval |
| (a, b] | {x | a < x ≤ b} | Half-open interval |
1.3 Important Sets in Mathematics
ℕ - Natural Numbers
{0, 1, 2, 3, 4, ...}
ℤ - Integers
{..., -3, -2, -1, 0, 1, 2, 3, ...}
ℤ⁺ - Positive Integers
{1, 2, 3, 4, ...}
ℚ - Rational Numbers
Numbers expressible as p/q where p, q are integers
ℝ - Real Numbers
All rational and irrational numbers (√2, π, e)
ℝ⁺ - Positive Real Numbers
All positive real numbers
ℂ - Complex Numbers
{a + bi : a, b ∈ ℝ}
Special Sets
1.4 Set Equality and Subsets
A = B if and only if ∀x (x ∈ A ↔ x ∈ B)
- {1, 3, 5} = {3, 5, 1}
- {1, 5, 5, 5, 3, 3, 1} = {1, 3, 5}
A ⊆ B if and only if ∀x (x ∈ A → x ∈ B)
- ∅ ⊆ S for every set S
- S ⊆ S for every set S
- A = B if and only if A ⊆ B and B ⊆ A
Cardinality
- |∅| = 0
- |{1, 2, 3}| = 3
- |{∅}| = 1
- |{English alphabet}| = 26
Power Sets
If |A| = n, then |P(A)| = 2ⁿ
P(A) = {∅, {a}, {b}, {a, b}}
|P(A)| = 4 = 2²
Cartesian Product
A × B = {(a, b) | a ∈ A and b ∈ B}
A × B = {(a,1), (a,2), (a,3), (b,1), (b,2), (b,3)}
2. Set Operations
2.1 Union and Intersection
Union (A ∪ B)
{1, 2, 3} ∪ {3, 4, 5} = {1, 2, 3, 4, 5}
Intersection (A ∩ B)
{1, 2, 3} ∩ {3, 4, 5} = {3}
Note: If A ∩ B = ∅, then A and B are disjoint.
2.2 Complement and Difference
Complement (Ā)
If U = {positive integers < 100}
and A = {x | x > 70}
then Ā = {x | x ≤ 70}
Difference (A - B)
{1, 2, 3, 4, 5} - {4, 5, 6, 7, 8} = {1, 2, 3}
Symmetric Difference (A ⊕ B)
A = {1, 2, 3, 4, 5}, B = {4, 5, 6, 7, 8}
A ⊕ B = {1, 2, 3, 6, 7, 8}
Cardinality of Union
|A ∪ B| = |A| + |B| - |A ∩ B|
2.3 Set Identities
| Identity | Name |
|---|---|
| A ∪ ∅ = A A ∩ U = A |
Identity Laws |
| A ∪ U = U A ∩ ∅ = ∅ |
Domination Laws |
| A ∪ A = A A ∩ A = A |
Idempotent Laws |
| (Ā) = A | Complementation Law |
| A ∪ B = B ∪ A A ∩ B = B ∩ A |
Commutative Laws |
| (A ∪ B) ∪ C = A ∪ (B ∪ C) (A ∩ B) ∩ C = A ∩ (B ∩ C) |
Associative Laws |
|
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) |
Distributive Laws |
| (A ∪ B) = Ā ∩ B̄ (A ∩ B) = Ā ∪ B̄ |
De Morgan's Laws |
| A ∪ (A ∩ B) = A A ∩ (A ∪ B) = A |
Absorption Laws |
| A ∪ Ā = U A ∩ Ā = ∅ |
Complement Laws |
3. Functions
Function Terminology
- Domain: The set A (where function starts)
- Codomain: The set B (where function can go)
- Image of a: The value f(a) = b
- Preimage of b: The value a such that f(a) = b
- Range: f(A) = {f(a) | a ∈ A}, the set of all images
3.1 Types of Functions
Injective (One-to-One)
f(a) = f(b) implies a = b
OR equivalently: a ≠ b implies f(a) ≠ f(b)
Each element in the codomain has at most one preimage.
Surjective (Onto)
∀b ∈ B, ∃a ∈ A such that f(a) = b
Every element in the codomain has at least one preimage.
Bijective (One-to-One Correspondence)
Each element in the codomain has exactly one preimage.
- f(x) = x: Injective, Surjective, Bijective ✓
- f(x) = x²: Not injective (f(-2) = f(2)), Not surjective (no x where f(x) = -1) ✗
- f(x) = x³: Injective, Surjective, Bijective ✓
- f(x) = |x|: Not injective, Not surjective ✗
Inverse Functions
f⁻¹(b) = a if and only if f(a) = b
Then f⁻¹(y) = y - 1
Function Composition
(f ∘ g)(x) = f(g(x))
- (f ∘ g)(x) = f(g(x)) = f(3x + 2) = 2(3x + 2) + 3 = 6x + 7
- (g ∘ f)(x) = g(f(x)) = g(2x + 3) = 3(2x + 3) + 2 = 6x + 11
3.2 Special Functions
Floor Function ⌊x⌋
- ⌊3.7⌋ = 3
- ⌊-0.5⌋ = -1
- ⌊5⌋ = 5
Ceiling Function ⌈x⌉
- ⌈3.2⌉ = 4
- ⌈-0.5⌉ = 0
- ⌈5⌉ = 5
Factorial Function (n!)
0! = 1
- 3! = 1 × 2 × 3 = 6
- 5! = 1 × 2 × 3 × 4 × 5 = 120
- 10! = 3,628,800
4. Sequences and Summations
Types of Sequences
Geometric Progression
where a is the initial term and r is the common ratio
- a = 2, r = 5: 2, 10, 50, 250, 1250, ...
- a = 6, r = 1/3: 6, 2, 2/3, 2/9, 2/27, ...
Arithmetic Progression
where a is the initial term and d is the common difference
- a = -1, d = 4: -1, 3, 7, 11, 15, ...
- a = 7, d = -3: 7, 4, 1, -2, -5, ...
Fibonacci Sequence
- Initial conditions: f₀ = 0, f₁ = 1
- Recurrence relation: fₙ = fₙ₋₁ + fₙ₋₂ for n ≥ 2
Recurrence Relations
- a₁ = a₀ + 3 = 2 + 3 = 5
- a₂ = a₁ + 3 = 5 + 3 = 8
- a₃ = a₂ + 3 = 8 + 3 = 11
- General solution: aₙ = 2 + 3n
Summations
- j is the index of summation
- m is the lower limit
- n is the upper limit
Important Summation Formulas
| Formula | Result |
|---|---|
| Σ (k=1 to n) k | n(n+1)/2 |
| Σ (k=1 to n) k² | n(n+1)(2n+1)/6 |
| Σ (k=1 to n) k³ | [n(n+1)/2]² |
| Σ (k=0 to n) rᵏ | (rⁿ⁺¹ - 1)/(r - 1), r ≠ 1 |
| Σ (k=1 to ∞) xᵏ | 1/(1-x), |x| < 1 |
Solution: Using the formula: 100(100+1)/2 = 100(101)/2 = 5,050
5. Matrices
Matrix Equality
A = B if and only if aᵢⱼ = bᵢⱼ for all i, j
Matrix Operations
Matrix Addition
(A + B)ᵢⱼ = aᵢⱼ + bᵢⱼ
[1 2] [4 5] [5 7]
[3 4] + [6 7] = [9 11]
Scalar Multiplication
(cA)ᵢⱼ = c · aᵢⱼ
[1 2] [3 6]
3 × [3 4] = [9 12]
Matrix Multiplication
(AB)ᵢⱼ = Σ (p=1 to k) aᵢₚ · bₚⱼ
Special Matrices
Identity Matrix (Iₙ)
I₃ = [1 0 0]
[0 1 0]
[0 0 1]
Zero Matrix
O₂ₓ₃ = [0 0 0]
[0 0 0]
Matrix Transpose
(Aᵀ)ᵢⱼ = aⱼᵢ
If A = [1 2 3] then Aᵀ = [1 4]
[4 5 6] [2 5]
[3 6]
Matrix Powers
- A⁰ = I (identity matrix)
- A¹ = A
- Aⁿ = A · A · ... · A (n times)
Zero-One Matrices
Boolean Product (A ⊙ B)
(A ⊙ B)ᵢⱼ = (aᵢ₁ ∧ b₁ⱼ) ∨ (aᵢ₂ ∧ b₂ⱼ) ∨ ... ∨ (aᵢₖ ∧ bₖⱼ)
Replace multiplication with AND (∧) and addition with OR (∨)
Boolean Powers
- A⁽⁰⁾ = I
- A⁽ⁿ⁾ = A⁽ⁿ⁻¹⁾ ⊙ A
Summary
This comprehensive report covered the fundamental structures in discrete mathematics:
- Sets: Foundation of mathematics, including operations, identities, and cardinality
- Functions: Mappings between sets, including injective, surjective, and bijective functions
- Sequences: Ordered lists including arithmetic and geometric progressions, with summation formulas
- Matrices: Rectangular arrays with operations essential for linear algebra and computer science