Docsity

Functions and Their Properties: A Comprehensive Study, Slides of Discrete Mathematics

Partial preview of the text

Download Functions and Their Properties: A Comprehensive Study and more Slides Discrete Mathematics in PDF only on Docsity!

Chapter 7

Functions

Outline of Today

  • Section 7.1: Functions Defined on General Sets
  • Section 7.2: One-to-One and Onto
  • Section 7.3: The Pigeonhole Principle
  • Section 7.4: Composition of functions
  • Section 7.5: Cardinality

How do we represent functions

  • Arrow diagrams
  • f : X โ†’ Y
    • What is the domain?
      • {a,b,c,d}
    • What is the co-domain?
      • {x, y, z, p, q, r, s}
    • What is the range?
      • {x, y, p}
    • What is the inverse image of y?
      • {a, c}

How do we represent functions?

  • As Ordered Pairs
  • f = { (a,y), (b,p), (c,y), (d,x) }

How do we represent functions?

  • By Formula
  • f(x) = 2x 2 + 3

Equality of functions

  • Two functions, f and g, are equal if
    • Both map from set X to set Y
    • And
    • f(x) = g(x) for all x โˆˆ X.
  • If f(x) = SQRT(x^2) and g(x) = x, is f = g?
  • Identity function, i is such that
    • i(x) = x for all x โˆˆ X

โ€œWell definedโ€ function

  • Remember: a function must map an input to a single, unique value
  • F: R โ†’ R such that
    • f(x) = SQRT(-x 2 ) for all real numbers X.
  • Why is this not well defined?

7.2: One-to-one and onto

  • A function is f : X โ†’ Y is one-to-one when
  • If f(x1) = f(x2), then x1 must be equal to x2.
  • To show a function is one-to-one, assume f(a) = f(b) for arbitrary a and b. Show a = b.

One-to-one example, infinite sets

  • f(n) = 2n + 1
  • f(n) = n^

Onto functions

  • A function f : X โ†’ Y is onto if for every y in the co-domain, that is, every y โˆˆ Y, there exist some x โˆˆ X, such that f(x) = y.
  • To prove something is onto, pick an arbitrary element in Y and find an x in X that maps to the y.

Onto examples, infinite sets

  • Show the following are or are not onto:
  • f: Z โ†’ Z by f(n) = 2n + 1.
  • f: Z โ†’ Z by f(n) = n + 5.

One-to-one correspondences

  • If a function f : X โ†’ Y is both one-to-one and onto, there is a one-to-one correspondence (or bijection) from the set X to set Y.
  • Show f: Z โ†’ Z by f(n) = n + 5 has a one- to-one correspondence.

Exponential and Logarithmic

functions

  • Expb (x) = bx^ for any x โˆˆ R and b > 0.
  • Logb (x) = y, for any x โˆˆ R+ if x = by
  • Show logb (x/y) = logb (x) โ€“ logb (y)
  • Hint: Let u = log (^) b (x) and v = log (^) b (y)

7.3: The Pigeonhole Principle

  • Suppose X and Y are finite sets and N(X)

    N(Y). Then a function f : X โ†’ Y cannot be one-to-one.

  • Proof by contradiction.