You are on page 1of 7

Lab 07 -Functions

Objective Current Lab Learning Outcomes (LLO)


Solving exercises from the textbook in chapter 2.3
By completion of the lab, the students should be able to:
1. will understand functions and different types of functions
2. Finding the domain and range of function, composite of function and graph of function.
3. Will be able to solve shorter/easier or longer / harder problems given in the textbook.

Lab Requirements
Students allowed using their lecture notes in the lab and use blackboard slides in order to solve the exercises.

Lab Assessment
1- Divide students to groups and let them to solve the given example.
2- Discuss the answers with the groups and write on board the optimal solution.

Lab Description
In this lab, the following exercises are going to be solved and explained to them:
1. Why is f not a function from R to R if
a) f (x) = 1/x?
because f is undefiend at 0
b) f (x)
because f assisngs more than one value to each value of x

2. find the domain of the function f(x)=(x2+3x+5)/(x2-5x+4).


R- {1,4}

3. find the domain and range of the function f(x)=(x-2)/(3-x)


For domain is = R - {3}

For range we let

y= (x-2)/(3-x)

3y-xy= x-2

x+xy=3y+2

x(1+y)=3y+2

x= (3y+2)/(1+y)

then the range is R – {-1}


4. Find these values.
a) ⌈3/4⌉
ceil(0.75) = 1
b) b) ⌈−3/4⌉
ceil(-0.75) = 0

c) c) ⌊−1⌋
floor(-1) = -1

d) d) ⌊ + ⌈ ⌉⌋
floor (2) = 2

e) e) ⌊ ⌋⌋
floor (1.25)= 1

5. Consider these functions from the set of students in a discrete mathematics class. Under what
conditions is the function one-to-one if it assigns to a student his or her
a) Mobile phone number.
it’s one-to-one, the set students have unique mobile phone number.
b) Student identification number.
it’s one-to-one, the set students have unique identification number (ID).

c) Final grade in the class.


not one-to-one, Students can have a possibility of having the same grades.
d) Home town.
not one-to-one, it’s likely for students to be in the same home town.
6. Determine whether the function f : Z × Z → Z is onto if
a) f (m, n) = m + n.
it is onto function
b) f (m, n) = m2 + n2.
it is not onto function
c) f (m, n) = m.
it is onto function
d) f (m, n) = |n|.
it is not onto function
e) f (m, n) = m − n.
it is onto function
7. Determine whether each of these functions is a bijection from R to R.
a) f (x) = 2x + 1
it is bijection function
b) f (x) = x2 + 1
not bijection function

c) f (x) = x3
it is bijection function
e) f (x) = (x2 + 1)/(x2 + 2)
not bijection function

8. Determine whether each of these functions from Z to Z is one-to-one.

a) f (n) = n − 1
it is one-to-one function
b) f (n) = n2 + 1
not one-to-one function

c) f (n) = n3
it is one-to-one function
d) f (n) = n/2
not one-to-one function

9. How many bytes are required to encode n bits of data where n equals
a) 7?
ceil(7/8)= 1byte
b) 17?
ceil(17/8)= 3bytes
c) 1001?
ceil(1001/8)= 126bytes
d) 28,800?
ceil(28,800/8)= 3600bytes
10. Draw the graph of the function

A)
B)
11. Given f(x) = 2x + 3 and g(x) = –x2 + 5, find ( f o g)(x), (g o f )(x).

(f o g)(x) =
f(g(x)) =
f(-x^2+5) =
2(-x^2+5)+3 = -2x^2+10+3= -2x^2+13
(g o f)(x) =
g(f(x)) =
g(2x+3) =
-(2x+3)^2+5= -[4x^2 +12x+9] +5 = -4x^2-12x-9+5 = -4x^2-12x-4

12. Given the functions, determine the value of each composite function. f(x) = 4x + 1, g(x) =x2
-x+5
a) (f ο g)(x)
(f o g)(x) =
f(g(x)) =
f(x^2 -x+5) =
4(x^2 -x+5) +1 =
4x^2 -4x+21
b) (g ο f)(x)
g(f(x)) =
g(4x+1) =
(4x+1)^2 –(4x+1)+5 =
16x^2 +4x +5

13. Let:
a) f(x) = -x + 4, find f-1(x). f:R→ R
y= -x + 4

y-4= -x

x= -y + 4

 f -1 (y) = -y +4

b) f(x) = x3+1, f:R→ R

y= x^3+1
y- 1= x^3
x=(y-1)^1/3
f -1 (y) = (y-1)^1/3

14. Let f:R→ R be a function given by f(x) = x2+1, find


f(x)= x^2+1

y= x^2+1

y-1= x^2

x= √y-1

f -1 (y) = √y-1

a. f-1{-5}
√5-1 = 2

b.f-1{26}
√26-1= 5

c.f-1{10,37}
√10-1=3 , √36-1= 6
= {3,6}

You might also like