Functions and Relations - kenhendricks00/DiscreteMathematics GitHub Wiki
Classes of Functions
Injective Function
f: X ā Y, a, b ā X, if a ā b, then f(a) ā f(b) maps distinct elements of its domain to distinct elements of its codomain
Surjective Function
f: X ā Y, for all b ā Y, there exits at least one a ā X such that f(a) = b the function f may map one or more elements of X to the same element of Y
Bijective Function
Injective as well as surjective each element of the codomain is mapped to by exactly one element of the domain
Examples:
Determine the class
1. f: Z ā R, f(x) = (3 - x)/2
if a ā b, f(a) ā f(b). Therefore, Injective.
2. C = {c|c >= 0, c is a real number}, f: R ā C, f(x): |x|
Every element in C has at least one corresponding input. Therefore, Surjective.
3. f: Z ā Z, f(x) = x + 1
both injective and surjective; therefore, Bijective
Function Composition
when f: A ā B and g: B ā C, function composition can be expressed as g(f(x)) or gāāāf
Useful tips for Function Composition
when f: A ā B and g: B ā C and gāāāf is a function composition
-
if both f and g are injective, gāāāf is injective
-
if both f and g are surjective, gāāāf is surjective
-
if both f and g are bijective, gāāāf is bijective
-
if gāāāf is injective, f is injective
-
if gāāāf surjective, g is surjective
-
if gāāāf is bijective, f is injective and g is surjective