11 Functions II
11 Functions II
Introduction
Having seen that some functions are left-, right-, and two-sided invertible, our
goal is to characterize the properties of functions which allow us to conduct these
inversions.
Learning Objectives
• Define injective, surjective, and bijective functions. Provide plain
English explanations describing the characteristics of such functions.
• Be able to identify and prove whether a function is injective, surjec-
tive, or bijective.
• Prove simple results about injective, surjective, and bijective func-
tions.
• Describe the relationships between injective, surjective, and bijective
functions and invertibility. Prove that relationship.
Definition 1
A function f : S → T is said to be injective or one-to-one if whenever
f (s1 ) = f (s2 ) then s1 = s2 .
f :X→Y
a δ
β
b
ϵ
c
α
d γ
X Y
Figure 1: If f : X → Y is an injective function, each element of the codomain Y
has at most one arrow pointing at it.
Injectivity, Surjectivity, Bijectivity 2
Example 2
Solution.
1. The easiest way to do this is to just check the output of f on every entry
of Z5 , from which we find that
Proposition 3
When thinking about surjective functions, the idea to keep in mind is that
every element in T is the image of something in S. Put another way, if f maps
3 Injectivity, Surjectivity, Bijectivity
f :X→Y
a
β
b
c
α
d
X Y
Figure 2: If f : X → Y is surjective, then every element of the codomain has at
least one arrow pointing at it.
Solution.
1. Looking at the values we’ve already computed in Example 2, we can see
that every element of Z5 is the output of f , so f is surjective.
2. The function g is surjective. To show this, let n ∈ N be arbitrary, and
define Sn = {n}. Since g takes each set to its minimal element and Sn
consists of a single element, we get that g(Sn ) = n. Thus every natural
number is the image of some set, showing that g is surjective.
3. This function fails to be surjective since the function h cannot hit any
negative numbers. Indeed, for the sake of contradiction suppose that h is
surjective. Let x ∈ (0, ∞) be such that h(x) = −1. But h(x) = x2 > 0 for
all x ∈ (0, ∞), so 0 > −1 = x2 < 0 is a contradiction. ■
Proposition 7
Definition 10
A function f : S → T is bijective if it is both injective and surjective.
Invertibility, Again
Look back on the left- and right-invertible functions we played with in the last
reading. Can you say anything about their status as injective or surjective func-
tions? Do you think that these concepts might be related?
Proposition 12
Proof. We will do the injectivity proof for you, leaving surjectivity and bijectivity
as exercises.
( ⇐= ) Let’s begin by assuming that f : S → T is injective. Define the
5 Injectivity, Surjectivity, Bijectivity
If you reexamine Figure 1, the idea is to simply reverse each given arrow. How-
ever, anything which does not already have an arrow pointing to it needs to map
somewhere. Hence we choose an arbitrary element s0 in the domain and map all
those points to s0 . To see that g is a left inverse of f , let s ∈ S, in which case
g(f (s)) = s by definition of g.
( =⇒ ) Conversely, assume that f has a left inverse g : T → S so that
g(f (s)) = s for any s ∈ S. Set f (x) = f (y) for which we would like to show that
x = y. By applying g to both sides we get
Example 14
y1 + y2 = 2a and y1 − y2 = 2b
so that
y1 + y2 y1 − y2
a= and b = .
2 2
Thus g(y1 , y2 , y3 , y4 ) = ((y1 + y2 )/2), (y1 − y2 )/2) is a left-inverse for f , as you
can check. This shows that f is injective, as required. ■