Discrete 3a
Discrete 3a
A = {1, 2, 3}
B = {3, 4, 5}
U = {1, 2, 3, 4, 5, 6} (universal set)
A ∩ B = {3}
• (A ∩ B)' = {1, 2, 4, 5, 6} (complement of A ∩ B)
• A' = {4, 5, 6} (complement of A)
• B' = {1, 2, 6} (complement of B)
• A' ∪ B' = {1, 2, 4, 5, 6}
Therefore, (A ∩ B)' = A' ∪ B' = {1, 2, 4, 5, 6}.
Function
A function is a way to connect two sets, A and B.
It's like a rule that takes each element from A
and matches it with exactly one element from
B.
Points:
1. Domain: Set A (where we start)
2. Codomain: Set B (where we end)
3. Range: The actual elements from B that get
matched (subset of B)
Points
4. Types of Function :
• One-to-One (Injection): Each element in B comes from
only one element in A.
• Onto (Surjection): Every element in B gets matched
with at least one element from A.
• One-to-One Correspondence (Bijection): Both one-to-
one and onto.
5. Composition: Combining two functions to
create a new one.
Points Cont.
• 6. Identity Function: A function that leaves
elements unchanged.
• 7. Inverse Function: A function that reverses
another function (only works for bijections).
• Examples:
• 1. f(x) = x^2 (not one-to-one, but onto)
• 2. f(x) = x (one-to-one correspondence)
• 3. f(x) = 2x (one-to-one, but not onto)
Simple Analogies
f: ℝ → ℝ, f(x) = x^2
• Breakdown:
1. f: ℝ → ℝ
- f is a function
- Domain: ℝ (all real numbers)
- Codomain: ℝ (all real numbers)
2. f(x) = x^2
Rule: square the input x
• f(-2) = 4
This equation states that:- f is a function (a
relation between inputs and outputs)
• -2 is the input (x-value)
• 4 is the output (y-value or f(x))
In other words: When you input -2 into the
function f, the output is 4.
Examples 1 cont.
• Solution
• Using direct proof: For an integer k;
• Let assume that n is even, then n = 2k and
n^2 = (2k) ^2 = 4k^2 = 2 (2k^2), which is even.
• Also, if we say n is odd, then n = 2k + 1 and
n^2 = (2k + 1) ^2 = 4k^2 + 4k + 1 = 2 (2k^2+ 2k) + 1, which is odd.
A fundamental property of integers.
5! = 5 × 4 × 3 × 2 × 1
= 120
3! = 3 × 2 × 1
=6
(5-3)! = 2!
=2×1
=2