Definition: Function

A function consists of three pieces of data (i.e., a triple ):

  • A set , which is the domain.
  • A set , which is the codomain.
  • A rule which takes any input element and produces an unambiguous output .

A well-defined function produces exactly one value in its codomain for every input from its domain; that is, there must be exactly one such for each input . An ill-defined function has a formula which is ambiguous, incomplete, or self-contradictory.

Related: Image and preimage, Injectivity, surjectivity, and bijectivity,


Proof strategies with functions

  • Two functions and are equal if:
    • and have the same domain and codomain.
    • For all , we have .
  • To prove a function is injective, or “one-to-one,” assume for some and show .
  • To prove a function is surjective, or “onto,” assume an element and show there exists some such that .

Review

MATH-UN1207

  • Show that no matter what are.
  • Suppose is the function defined by .
    • Prove the following by establishing double containment.
    • Calculate the following: , , .
  • Find examples of functions and sets so that the sets on the right-hand side are strictly larger:
  • Prove each of the set inclusions above and the equality below using definition pushing arguments.

MATH-GU4041

  • Give an example for .
  • Show that compositions are associative using a diagram.
  • Give an example where function composition does not commute.
  • If the composition is bijective, is injective or surjective? What about ?