Skip to main content
Logo image

Section 10.2 Properties of functions

surjective function
a function whose image is all of its codomain β€” that is, every element of the codomain is an output for the function;
surjection
a surjective function
onto
synonym for surjective
f:A↠B
function f is surjective
A function f:Aβ†’B is surjective if f(A)=B. Since we have f(A)βŠ†B by definition of image, to show that a function is surjective we only need to show f(A)βŠ‡B.

Worked Example 10.2.2.

Show that, of the following functions, f is surjective and g is not.
f:Zβ†’Ng:Zβ†’Qm↦|m|m↦m/2
Solution.

Show that f is surjective.

Consider an arbitrary element n of the codomain N. Since NβŠ†Z, n is also an element of the domain. In particular, f(n)=n, since nβ‰₯0. Therefore, as an element of the codomain, we have n∈f(Z).

Show that g is not surjective.

We need to find a specific example of a rational number that is not an output for g. For this, we could use 1/3, since there is no integer such that m/2=1/3.
injective function
a function for which two different inputs never produce the same output
injection
an injective function
embedding
synonym for injection
one-to-one
synonym for injective
f:Aβ†ͺB
function f is injective

Example 10.2.4. Demonstrating that a function is not injective.

The function f:Rβ†’R, f(x)=x2, is not injective, since f has repeated outputs. For example, f(βˆ’1)=f(1). And in fact, f(βˆ’x)=f(x) for every x∈R.

Worked Example 10.2.5. Demonstrating that a function is injective.

Verify that the function f:N→N, f(n)=2n+1, is injective.
Solution.
Using the contrapositive version of the Injective Function Test, suppose domain elements n1,n2∈N satisfy f(n1)=f(n2). Then using the formula defining the input-output rule for f, we have
2n1+1=2n2+1,
which reduces to n1=n2.
An injection f:Aβ†ͺB gives us a way of thinking of A as a subset of B, by considering f(A)βŠ†B.

Example 10.2.6. Turning letters into numbers.

Let Ξ£={a,b,…,z}, and define Ο†:Ξ£β†’N by the following table.
Οƒ a b c β‹― z
Ο†(Οƒ) 1 2 3 β‹― 26
Then f embeds Ξ£ into N in a familiar way, and lets us think of letters as numbers.
bijective function
a function that is both injective and surjective
bijection
an bijective function
one-to-one correspondence
synonym for bijection
A bijection f:A→B allows us to think of A and B as essentially the same sets.

Example 10.2.8. Identifying letters with numbers.

Consider again f:Ξ£β†’N from Example 10.2.6. If we write B=f(Ξ£)={1,2,3,…,26}, then really we could think of the function as being defined f:Ξ£β†’B. This version of f is bijective, and allows us to identify each letter with a corresponding number:
a↔1,b↔2,c↔3,…,z↔26.
In this way, we can think of Ξ£ and B as essentially the same set.

Worked Example 10.2.9. Recognizing bijections.

Which of the following functions are bijections?
f:Zβ†’Z,g:Zβ†’N,h:Zβ†’Z,m↦2m,m↦|m|,mβ†¦βˆ’m.
Solution.

Is f bijective?.

No, f is not bijective because it is not surjective. For example, there is no m∈Z such that f(m)=1.

Is g bijective?.

No, g is not bijective because it is not injective. For example, g(βˆ’1)=g(1).

Is h bijective?.

Yes, h is bijective. It is injective because if m1β‰ m2 then βˆ’m1β‰ βˆ’m2. And it is surjective because for n∈Z, we can realize n as an output n=h(m) by setting m=βˆ’n.

Checkpoint 10.2.10. Bijections of counting sets.

For m∈N write
N<m={n∈N|n<m}={0,1,…,mβˆ’1}.
Prove that there exists a bijection N<β„“β†’N<m if and only if β„“=m.