CNIC Information System with Pakdata Cf In Pakistan
Functions form 3
1. What is a Function
Definition 1
A function is a rule that produces a
correspondence/relation between two sets of
elements, A and B, such that to each element in the
first set, A, there corresponds one and only one
element in the second set, B.
The first set is called the domain and the second
set is called the co-domain.
The set of all corresponding elements in the second
set is called the range of the function.
2. Functions as Mapping Diagrams
A f B
a 2
b 4
c 6
d
8
Diagram 1
Does Diagram 1 represent a function?
Yes, it does. Each element in the domain A is mapped to one and
only one element in the co-domain B.
NB: Co-domain ={2, 4, 6, 8}
Range = {2,4, 6, 8}
3. Functions as Mapping Diagrams
A f B
a 2
b 4
c 6
d
8
Diagram 2
Does Diagram 2 represent a function?
Yes, it does. Each element in the domain A is mapped to one and
only one element in the co-domain B.
NB: Co-domain ={2, 4, 6, 8}
Range = {4, 6, 8}
Since the element 2 in B is not mapped onto
4. Functions as Mapping Diagrams
A f B
a 2
b 4
c 6
d
8
Diagram 3
Does Diagram 3 represent a function?
No, it does not. a A is not mapped to any element in B
5. Functions as Mapping Diagrams
A f B
2
b 4
c 6
d
8
Diagram 4
Does Diagram 4 represent a function?
No, it does not. b A is mapped to more than one element in B
6. Functions as Mapping Diagrams
A f B Function Notation
a 2 Under the function, f,
b 6 is the image of c i.e. f(c)=6
4
Read as ‘f of c is 6’
c 6
8 is the image of d i.e. f(d)=8
d
8 4 is the image of a and b
Diagram 1
i.e. f(a)=f(b)=4
Conversely, we can say that c is the
pre-image of 6
7. State which of the following mappings represent functions. If the mapping represents
a function state the domain, the co-domain and the range of the function.
C g D E f F X f Y
1 1 2 1 1 b
2 4 4 2 a
3 9 3 d
4 4
16
X f Y X f Y
s h p n
i e
c a e u
k d a
t
8. X f Y Can a function from X to Y be created if each element
1 1 in Y is to be mapped onto?
2 2
3 3
4
9. E h F
Is the mapping h: E →F a function?
2 2
If yes state the domain and the range
3 4 of the function
4 6
5 No.
8
2 E is not mapped to any
Diagram 1
element in F
Show
Answer
10. C g D
Is the mapping g: C →D a function?
2 2 If yes state the domain and the range
3 of the function
4
4 6
Yes. Each element in C is mapped to an
5 element in D
8
Domain = {2, 3, 4, 5}
Range = {2, 4, 6, 8}
Diagram 1
Show
Answer
11. X g Y
Is the mapping g: X →Y a function?
a 2 If yes state the domain and the range
b of the function
4
c 6
No.
d
8 b X is mapped to more than one
element in Y
Diagram 1
Show
Answer
12. Ordered Pairs
A f B
f can also be written as a set of ordered
1 2 pairs where
2 4
f={( , ), ( , ), ( , ), ( , )
3 6
4
8
Diagram 1
Definition 2
A function is a set of ordered pairs with the property that no two ordered pairs have
the same first component and different second components.
The set of all first components in a function is called the domain of the function, and
the set of all second components is called the range.
13. A f B
Write the function f:A→B as a set
a 1
of ordered pairs.
b
c 3
f={(a, 1), (b, 1), (c, 3), (d, 3)}
d
Diagram 2
Show
Answer
14. State which of the following sets of ordered pairs represent a function. If it
represents a function state the domain and the range of the function.
f={(2,, 4), (3, 6), (4, 8), (5, 10)} Show Answer
Yes. No 2 ordered pairs have the same 1st component and different 2nd components
Domain = {2, 3, 4, 5} Range = {4, 6, 8, 10}
g={(1, 1), (1, 2), (2,, 2), (3, 3)} Show Answer
No. The element 1 is mapped to more than 1 element.