WIX1001 Computing Mathematics 1
Tutorial 5 : Functions
1. Consider a function f with Domain 5. Suppose that X = {x|x ∈ Z and x2 < 9}
P = {−2, −1, 0, 1, 2} and Codomain Q = and Y = {y|y ∈ W and y 2 < 9}
{1, 2, 3, 4, 5} and the rule f (x) = 5 − x2 .
(i) List the elements of X and Y .
(i) Draw a mapping diagram for f and (ii) State |X| and |Y |.
state the range. (iii) Find the number of functions that
(ii) Determine the properties of f : P → Q maps X to Y .
(i.e injective, surjective, bijective, non (iv) Find the number of bijective functions
injective, non surjective or any combi- that maps X to Y .
nations).
6. Find the inverse function of f given by
(iii) Determine whether f is invertible or
not. (i) f (x) = (x − 3)2 , x ≥ 3
(ii) f (x) = (x + 1)/(x + 2)
(iv) If the function is changed to f (x) =
dx/5e + 1, what is the new range?. (iii) f (x) = (x + 1)2 , x ≥ −1
7. For the following functions, write down the
2. Let P = {1, 2} and Q = {a, b}. Give the composite function: f ◦ g, g ◦ f, f ◦ f, g ◦ g
mappings for each possible function f : P →
Q and indicate whether each is injective, (i) f (x) = 2x + 3, g(x) = −x2 + 1
surjective, bijective or not any of them.
8. State the function for the graph below.
3. Given
f = {(a, b), (b, a), (c, b)},
a function from X = {a, b, c} to X:
(i) Write f ◦f and f ◦f ◦f as sets of ordered
pairs.
(ii) Define:
fn = f ◦ f ◦ . . . f
to be the n-fold composition of f with Figure 1
itself. Write f 9 and f 623 as sets of or-
dered pairs.
9. Let f be the function from X = {0, 1, 2, 3, 4}
4. Find these values. to X defined by:
(i) d1.2e f (x) = 4x mod 5
(ii) b−9.7c
Write f as a set of ordered pairs and draw
(iii) d−3.3e the arrow diagram of f . Is f injective? Is f
(iv) b 21 + d 35 e − b− 10
1
cc surjective?