DM 6 FunctionsCont
DM 6 FunctionsCont
Functions (Cont.)
Course Code: CSC 1204 Course Title: Discrete Mathematics
Lecture Outline
Inverse Functions
- 1
FIGURE: The Function f is the Inverse
of Function f
6
Inverse Functions
Example 16
• Let f be the function from {a, b, c} to {1, 2, 3} such that
f(a) = 2, f(b) = 3, and f(c) = 1.
Is f invertible, and if it is, what is its inverse?
Example 17
Example 18
Compositions of Functions
• Definition: Let g be a function from the set A to the set
B and let f be a function from the set B to the set C.
The composition of functions f and g, denoted by f o g,
is defined by (f o g) (a) = f(g(a))
Modified Example 21
@ p. 141(6th ed.) @ p.149 (7th ed.)
• Let f and g be the functions from the set of integers to the set of
integers defined by f (x) = 2x + 3 and g (x) = 3x + 2.
Find the composite functions of f and g.
Solution:
• The composition of the functions f and g is
(f o g) (x) = f(g(x)) = f (3x+2) = 2(3x+2) + 3 = 6x + 7
• The composition of the functions g and f is
(g o f) (x) = g(f(x)) = g(2x+3) = 3(2x+3) + 2 = 6x + 11
Practice @ Home: Example 20 (p.149)
13
Floor Function
Ceiling Function
Practice @ Home