Discrete Mathematics Study Notes
Chapter 2 Summary
- Main Topics Covered:
- Sets
- The Language of Sets
- Set Operations
- Set Identities
- Functions
- Types of Functions
- Operations on Functions
- Computability
- Sequences and Summations
- Types of Sequences
- Summation Formulae
- Set Cardinality
- Countable Sets
- Matrices
- Matrix Arithmetic
Section 2.1: Sets
Definition of Sets:
- A set is defined as an unordered collection of distinct objects (elements).
- Examples include:
- The students in a classroom.
- The chairs in a room.
- Notation:
- An element
ais in a setAis denoted asa ∈ A. - If
ais not inA, it is denoted asa ∉ A.
Describing Sets:
- Roster Method:
- Example set:
S = {a, b, c, d}. - Order of elements in the set doesn't matter:
S = {a,b,c,d} = {b,c,a,d}.
- Repetition of elements doesn't change the set:
S = {a,b,c} = {a,b,c,b,c,d}.
- Ellipses (
...) can be used when there's a clear pattern:S = {a, b, c, ..., z}.
Important Sets in Mathematics:
N = {0, 1, 2, 3, ...}(Natural Numbers)Z = {..., -3, -2, -1, 0, 1, 2, 3, ...}(Integers)Z⁺ = {1, 2, 3, ...}(Positive Integers)R(Real Numbers)R⁺(Positive Real Numbers)C(Complex Numbers)Q(Rational Numbers)
Set-Builder Notation:
- Defines a set using properties that its members must satisfy.
- Example:,
S = {x | x is a positive integer less than 100}. - Predicates can denote sets:
- Example:
S = {x | Prime(x)}. - Positive rational numbers:
Q⁺ = {x ∈ R | x = p/q, p,q positive integers}.
Interval Notation:
- Describes intervals using square [ ] or round ( ) brackets:
[a,b] = {x | a ≤ x ≤ b}(closed interval)[a,b) = {x | a ≤ x < b}(a,b] = {x | a < x ≤ b}(a,b) = {x | a < x < b}(open interval)
Universal Set and Empty Set:
- Universal Set (U): Includes all elements under consideration.
- Empty Set (∅): Contains no elements and is different from a set containing the empty set.
Russell's Paradox:
- Consider the set
Sof all sets that are not members of themselves; the questionIs S a member of itself?leads to a paradox. - Similar to the barber paradox where a barber shaves all those who do not shave themselves.
- Consider the set
Set Equality:
- Two sets
AandBare equal if they have the same elements; - Denoted as
A = B. Examples:{1,3,5} = {3, 5, 1}.
- Two sets
Subsets:
- Definition: Set
Ais a subset of setBif every element ofAis also contained inB. - Denoted as
A ⊆ B. - Properties:
- Empty set
∅is a subset of every set:∅ ⊆ S. - Every set is a subset of itself:
S ⊆ S.
- Definition: Set
Showing Subset Relationships:
- To show
A ⊆ B: Verify ifx ∈ Aimpliesx ∈ B. - To show
A ⊈ B: Identify an elementx ∈ Asuch thatx ∉ B.
- To show
Proper Subsets:
- If
A ⊆ BandA ≠ B, thenAis a proper subset ofB, denoted asA ⊂ B.
- If
Set Cardinality:
- Definition: The cardinality of a set
A, denoted as|A|, is the number of distinct elements inA. - Examples of cardinality:
|∅| = 0- If
Sis the English alphabet, then|S| = 26.
- Definition: The cardinality of a set
Power Sets:
- Power set of
A, denotedP(A), is the set of all subsets ofA. - If
Ahasnelements, then|P(A)| = 2ⁿ.
- Power set of
Tuples:
- An ordered n-tuple
(a1, a2, ..., an)consists of elements where order matters; - Two n-tuples are equal only if all corresponding elements are equal.
- An ordered n-tuple
Cartesian Product:
- Definition: The Cartesian Product of two sets
AandB, denotedA × B, is the set of ordered pairs(a, b)wherea ∈ Aandb ∈ B. - Example: For
A = {a,b}andB = {1,2,3}: A × B = {(a,1), (a,2), (a,3), (b,1), (b,2), (b,3)}.
- Definition: The Cartesian Product of two sets
Section 2.2: Set Operations
Boolean Algebra:
- Set theory and propositional calculus are both examples of Boolean algebra.
- A universal set
Uexists for all set operations.
Union:
- Definition: The union of sets
AandB, denotedA ∪ B, is the set of all elements inA,B, or both. - Example:
A ∪ B = {1, 2, 3} ∪ {3, 4, 5} = {1, 2, 3, 4, 5}.
- Definition: The union of sets
Intersection:
- Definition: The intersection of sets
AandB, denotedA ∩ B, is the set of elements that are both inAandB. - Example:
A ∩ B = {1, 2, 3} ∩ {3, 4, 5} = {3}.
- Definition: The intersection of sets
Complement:
- Definition: If
Ais a set, the complement ofA(with respect toU), denotedĀ, is defined by: Ā = {x ∈ U | x ∉ A}.- Example: If
Uis the integers less than or equal to 10,ĀforA = {6,7,8}would be{1, 2, 3, 4, 5, 9, 10}.
- Definition: If
Difference:
- Definition: The difference of sets
AandB, denotedA - B, includes elements ofAnot inB. A - B = {x ∈ A ∧ x ∉ B}.
- Definition: The difference of sets
Cardinality of Union:
- Inclusion-Exclusion Principle:
- The formula is:
- Used to count the number of elements in the union of two sets,
- Example: If
Ahas 5 elements andBhas 6 elements, and they share 2 elements, - Then
|A ∪ B| = 5 + 6 - 2 = 9.
Review Questions Example tally for student sets:
- Given:
U = {0,1,2,3,4,5,6,7,8,9,10}A = {1,2,3,4,5}B = {4,5,6,7,8}
- Solutions:
A ∪ B = {1,2,3,4,5,6,7,8}A ∩ B = {4,5}Ā = {0,6,7,8,9,10}B - A = {6,7,8}
- Given:
Symmetric Difference (Optional):
- The symmetric difference of sets
AandB, denotedA Δ B, is defined as: A Δ B = (A - B) ∪ (B - A).
- The symmetric difference of sets
Set Identities:
- Laws include:
- Identity Law:
A ∪ Ø = AandA ∩ U = A. - Idempotent Law:
A ∪ A = AandA ∩ A = A. - Commutative Laws:
A ∪ B = B ∪ AandA ∩ B = B ∩ A. - Associative Laws:
A ∪ (B ∪ C) = (A ∪ B) ∪ Cetc. - Distributive Laws:
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)etc.
De Morgan's Laws:
Ā ∪ B = Uif and only ifA ∩ B = Ø.Ā ∩ B = Øif and only ifA ∪ B = U.
Section 2.3: Functions
Definition of a Function:
- A function
ffrom setAto setB, denotedf: A → B, is a rule that assigns to each element inAexactly one element inB: - If
f(a) = b, thenbis unique toawithinB.
- A function
Domain and Codomain:
- Domain: Set
A, Codomain: SetB. - Image: An element in
Brelated to an element inA. - Preimage: An element in
Arelated to an element inB. - Range: The set of all images
f(A).
- Domain: Set
Types of Functions:
- Injective (One-to-One):
f(a) = f(b)impliesa = b. No two different inputs can produce the same output.- Surjective (Onto):
- Every element in
Bhas a preimage inAi.e.,fcovers the entire codomain. - Bijective (One-to-one Correspondence):
- A function that is both injective and surjective.
Inverse Functions:
- If
fis a bijection, then its inverse, denotedf⁻¹, can be defined. - Example: If
f(a) = b, thenf⁻¹(b) = a.
- If
Function Composition:
- Let
f: B → Candg: A → B, then compositionf∘gis defined as: f∘g(x) = f(g(x)).
- Let
Representing Functions:
- Functions can be specified using explicit statements, formulas, or even programming languages.
Section 2.4: Sequences and Summations
Definition of Sequences:
- A sequence is an ordered list of elements, typically defined as a function from a subset of integers to a set
S. - Notation: the term of the sequence is denoted as
a_n.
- A sequence is an ordered list of elements, typically defined as a function from a subset of integers to a set
Geometric Progression:
- A geometric progression is a sequence defined by a starting element
aand a common ratior: - Example: With
a = 1andr = 2, sequence is{1, 2, 4, 8, ...}.
- A geometric progression is a sequence defined by a starting element
Arithmetic Progression:
- An arithmetic progression has a starting element
aand a common differenced: - Example: With
a = 1andd = 2, sequence is{1, 3, 5, 7, ...}.
- An arithmetic progression has a starting element
Recurrence Relations:
- A recurrence relation defines a sequence based on previous terms. An example is the Fibonacci sequence.
Summation:
- Summation notation is used to denote the sum of a sequence:
Σ_{j=m}^{n} a_j, wherejis the index of summation.
Section 2.5: Countability and Cardinality
Cardinality:
- The cardinality of a set is the measure of the 'number of elements' in the set.
- Sets that can be put in one-to-one correspondence with natural numbers are countable; otherwise, they are uncountable.
Countable Sets Existence:
- Example of a countable set: Positive integers, rational numbers.
- Uncountable Sets: Example, the real numbers cannot be listed in a sequence, demonstrating uncountability.
Hilbert's Grand Hotel:
- A thought experiment illustrating that even an infinite number of guests can accommodate new ones by shifting existing guests to the next room, maintaining countability.
Real Numbers as Uncountable:
- Proved by Cantor's diagonal argument which shows a constructed number differing from any listed real number.
Section 2.6: Matrices
Definition of a Matrix:
- A matrix is a rectangular array of numbers. Denoted as an
m × nmatrix. - An example:
- A matrix is a rectangular array of numbers. Denoted as an
Matrix Operations:
- Addition: Two matrices can be added only if their dimensions match.
- If
AandBare bothm × n, thenA + Bresults in a newm × nmatrix with each element being the sum of the corresponding entries. - Multiplication: For matrix multiplication, the number of columns in the first matrix must equal the number of rows in the second matrix.
- Example: If
Aism × k, andBisk × n, then their productABis anm × nmatrix.
Identity & Transpose:
- The Identity Matrix: For any matrix
A, operations involving $I_n$ (identity matrix of ordern) leaveAunchanged when multiplied. - The Transpose of a Matrix: The transpose of matrix
A, denotedA^T, is obtained by switching its rows and columns.
- The Identity Matrix: For any matrix
Conclusion
- This study guide covers fundamental concepts in discrete mathematics focusing particularly on sets, functions, sequences, summation, cardinality, and matrices as outlined in the course material for CMSC 56. Students are encouraged to review examples for clarification on complex concepts.