4.1: Definition of functions

  • Function: Maps elements from one set to another using some sort of operation
    • Can be represented as a set and as a subset of X × Y such that for every x ∈ X, there is exactly one y ∈ Y for which (x, y) ∈ f
    • f: X -> Y is used to show that f is the function that maps set X to Y
    • Set X is the domain of the function while set Y is the target or co-domain of the function
    • “f maps x to y” can be written as (x, y) ∈ f and can also be denoted as f(x) = y
    • If a function maps an element of the domain to either 0 elements or >1 element, then it is not well-defined
    • An element is in the range of f if there is an x ∈ X such that (x, y) ∈ f
      • Alternate definition: Range of f = { y: (x, y) ∈ f, for some x ∈ X }
  • A function that has a finite domain can be shown graphically as an arrow diagram
    • Example: Screen Shot 2022-10-25 at 4 00 56 PM
    • Non well-defined function example: Screen Shot 2022-10-25 at 4 02 34 PM
  • A function definition is incomplete without specifying the domain and target
    • Correct: g: R → R, where g(x) = |x|
    • Incorrect: g(x) = |x|

4.2: Floor and ceiling functions

  • Floor function: Function that maps a real number to its closest integer, rounded down
    • Definition: floor: R → Z, where floor(x) = the largest integer y such that y ≤ x.
    • Notated as such: Screen Shot 2022-10-25 at 4 10 47 PM
  • Ceiling function: Function that maps a real number to its closest integer, rounded down
    • Definition: ceiling: R → Z, where ceiling(x) = the smallest integer y such that x ≤ y.
    • Notated as such: Screen Shot 2022-10-25 at 4 11 44 PM

4.3: Properties of functions

  • A function is one-to-one or injective if each value of x maps to a unique value of y
    • x1 ≠ x2 implies that f(x1) ≠ f(x2)
  • A function is onto or surjective if the range of f is equal to its target
    • For every y ∈ Y, there is an x ∈ X such that f(x) = y
  • A function is bijective if it is both onto and one-to-one
    • Such functions are called bijections or one-to-one correspondences
  • Can infer the sizes, or cardinality, of the domain and target sets depending on the function’s properties
    • If f: D → T is onto, then for every element in the target, there is at least one element in the domain: |D| ≥ |T|.
    • If f: D → T is one-to-one, then every element in the domain maps to a unique element in the target: |D| ≤ |T|.
    • If f: D → T is a bijection, then f is one-to-one and onto: |D| ≤ |T| and |D| ≥ |T|, which implies that |D| = |T|.
    • Visual: Screen Shot 2022-10-25 at 4 20 03 PM

Challenge Activity is good to practice onto vs. one-to-one

4.4: The inverse of a function

  • The inverse of a function is found by reversing the order of its tuples; that is, f-1 = { (y, x) : (x, y) ∈ f }.
    • Inverses may not be well-defined, so some functions don’t have inverses
    • Example: Screen Shot 2022-10-25 at 4 26 16 PM
    • A function has an inverse if and only if it is a bijection
    • Analytically solving for the inverse of a function with an infinite domain: Screen Shot 2022-10-25 at 4 29 49 PM

4.5: Composition of functions

  • A composition of functions is when a function is applied to another function
    • Example: f(g(x)), or (f ο g)(x)
    • Visual example: Screen Shot 2022-10-25 at 4 33 41 PM
  • The identity function (denoted by I) takes a set and maps each of its elements onto itself
    • If a function f has an inverse, then f composed with its inverse is an identity function
    • Mathematical definitions:
      • (f o f-1)(x) = If
      • Let f: A → B be a bijection. Then f-1 ο f = IA and f ο f-1 = IB.

4.6: Logarithms and exponents

  • Exponential function and logarithmic function are featured
    • Properties of exponents: Screen Shot 2022-10-25 at 4 41 48 PM
    • Properties of logarithms: Screen Shot 2022-10-25 at 4 43 16 PM
  • A function is strictly increasing if, for each increasing value of x, f(x) is bigger than the last
    • if whenever x1 < x2, then f(x1) < f(x2)
  • A function is strictly decreasing if, for each increasing value of x, f(x) is smaller than the last
    • if whenever x1 < x2, then f(x1) > f(x2)
  • Logarithmic function is strictly increasing