Status: #π Tags: #archivedCards/macm101/settheory Links: MACM101 Outline
Discrete Math Functions
Principles
Functions definition ? In a relation R from A to B, for every a β A there is exactly one b β B such that (a,b) β R. (Also mappings, transformations)
- ex) f(a) = b if b is the father of a
- Notation is f: A β B
Types
One-to-one/injective functions ?
- If and only if f(a) = f(b) implies a = b
- if a β b then f(a) β f(b)
- βa βb (f(a) = f(b) β a = b)
Proving one-to-one/injective ?
- Start with starting function, and slowly isolate a and b
Onto/surjective and surjection functions ?
- Function f if and only if for every element b β B there is an element a β A with f(a) = b. A function is called a surjection if it is onto
- βb βa (f(a) = b)
- Notation: f(x) = x + 1
Proving onto/surjective ? find inverse in term of a and b through f(a) = b
One-to-one correspondence/bijection if it is ;; both one-to-one and onto
Identity function ;; i$_A$: A β A where i$_A$(x) = x
Permutation ;; bijection from set A to same set A
Describing functions ?
- Function table
- f(x) =
mapping
- range(f) = {0,4,9,…} non-negative ints that are perfect squares
Composition ?
- (f o g)(a) = f( g(a) )
- Do g(a) first, then do f
Characteristics
Domain
Describe domain and co-domain using A and B ? f: AβB
- If f(a) = b
- b is called the image of a, and a is called the preimage of b
- we say that f maps A to B
- b is called the image of a, and a is called the preimage of b
- ex) domain = { Adams, Chou, Goodfriend, Rodriguez, Stevens }
- codomain = { A, B, C, D, F } range = { A, B, C, F }
Range
? range of f is the set of all images of elements of A
- range(f) = { b β B | βa β A f(a) = b }
Restrictions
? Let f: A β B be a function and C β A
- The set f(C) = { b β B | b = f(a) for some a β C } is called the image of C
- Notation is f|$_c$
- ex) f|$_c$: CβB is a restriction of f to C if f|$_c$(a) = f(a) for all a e C
- Same function, just less elements due to restriction
- ex) f|$_c$: CβB is a restriction of f to C if f|$_c$(a) = f(a) for all a e C
Extensions
?1 Let C β A and f: C β B
- Any function g: A β B such that g(a) = f(a) for all a β C is called an extension of f
Examples
If f:XβYand g:YβZ are functions and gβ¦f:XβZis one-to-one, must both fand g be one-to-one? Prove or give a counterexample. ? Solution: Consider function f:{a, b, c} β {1,2,3,4}and function g:{1,2,3,4} β {d, e, f }. Let f={(a, 1),(b, 2),(c, 3)}and g={(1, d),(2, e),(3, f ),(4, f)}. Observe that g is not one-to-one
Show that the union of two countably infinite sets is also countably infinite. ?
- Let the two countable infinite sets be Aand B. Since both sets are countably infinite, there is a
- sequence Sa=a1,a2,. . .,ai,. . ., (Sb=b1,b2,. . .,bi,. . .,) in which the elements in set A(B) are visited.
- We construct the sequence Sc=a1,b1,a2,b2,. . .,ai,bi,. . . in the which the elements in set C=AβͺB
- are visited. Observe that every element cβCis visited because coccurs either in Aor B, and every element in Aand Bis visited in the sequence Sc
Backlinks
|
|
References:
Created:: 2021-10-28 09:06