Relations and Functions
Ordered-pair correspondences between two sets, the properties that classify them, and the output rule that promotes a relation to a function.
13 exercises
Exercise 1
Consider the relation .
- Is a function?
- Find .
- Is a function? Why or why not?
Exercise 2
- Is the sibling relation defined in this example a function? Why or why not?
- Is the divides relation defined in this example on the set to itself a function? Why or why not?
- Is the height relation between the set of people and the set of natural numbers a function? Why or why not?
Exercise 5
Using the relations defined in this example, find the following compositions:
Exercise 6
Consider the function given by the table below:
Is injective? Explain.
Is surjective? Explain.
Is a function? Explain.
Exercise 8
For each function given below, determine whether or not the function is injective and whether or not the function is surjective.
- given by .
- given by .
- given by .
- given by
Exercise 9
Determine whether is surjective if
Exercise 10
Consider the function given by
Is injective? Prove your answer.
Is surjective? Prove your answer.
Exercise 11
Give an explicit formula for a function from the set of integers to the set of positive integers that is
- injective but not surjective
- surjective but not injective
- injective and surjective
- neither injective nor surjective
Exercise 14
What can you deduce about the sets and if you know …
there is an injective function ? Explain.
there is a surjective function ? Explain.
there is a bijective function ? Explain.
Exercise 15
Suppose is a function. Which of the following are possible? Explain.
- is injective but not surjective.
- is surjective but not injective.
- and is injective but not surjective.
- and is surjective but not injective.
- , and are finite, and is injective but not surjective.
- , and are finite, and is surjective but not injective.
Exercise 17
Find the floor and ceiling of each of the following real numbers:
- 8.675309
Exercise 18
Let be defined by . Complete the table of values:
Is injective? surjective?
Exercise 19
Are the floor or ceiling functions injective? Surjective? If so, prove it. If not, provide specific counterexamples to show why not.
Adapted from Discrete Math for Shockers © 2021 John Hammond. Licensed under CC BY-SA 4.0. Source: Discrete Math for Shockers. Imported at revision 2538beb.