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

  1. if both f and g are injective, gā€‰āˆ˜ā€‰f is injective

  2. if both f and g are surjective, gā€‰āˆ˜ā€‰f is surjective

  3. if both f and g are bijective, gā€‰āˆ˜ā€‰f is bijective

  4. if gā€‰āˆ˜ā€‰f is injective, f is injective

  5. if gā€‰āˆ˜ā€‰f surjective, g is surjective

  6. if gā€‰āˆ˜ā€‰f is bijective, f is injective and g is surjective