Beruflich Dokumente
Kultur Dokumente
A relation can be used to express a one to many relationship between the elements of set A and
B, where an element of A may be related to more than one element of B. A function represents a
relation where exactly one element of B is related to each element of A
Definition: A function f from a set A to set B is a rule of correspondence that assigns to each
element x in the set A exactly one element y in the set B The set A is the domain of the function
f, and the set B contains the range.
Example:
Tell whether the following items represent a function from set A to set B
Let A = {a, b, c} and B = {1, 2, 3, 4, 5}
a. {(a, 2), (b, 3), (c, 4)}
b. {(a, 1), (b, 2)}
c.
d.
a
1
a
1
2
2
b
3
b
3
4
4
c
c
e. x2 + y = 1
f.
y2 x = 1
f ( x )=
1
x+1
g (x )=
1
x +3
5.
h ( x )= 9x 2
6.
f ( x )=x 23 x4
Dicrete
By: HTVG
Page 1
1
2
3
4
a
b
c
d
1
2
3
4
Evaluating a Function
Examples:
Let
f ( x )=x 2+3 x5
a. f(2)
b. f(-6)
c. f(a)
d. f(x+h)
Composition of Two Functions
The composition of the functions f and g is given by
(f g)(x) = f(g(x))
Dicrete
By: HTVG
Page 2
a
b
c
d
The domain of (f g) is the set of all x in the domain such that g(x) is in the domain of f. The
composition of the functions f and g is illustrated below
A
gf
a
g(a)
f(g(a))
fg
Examples:
1. Let g be a function from A = {1,2,3,4} into B={a,b,c} and let f be the function from B =
{a,b,c} into C={x,y,z}. g and f are defined by the set of ordered pairs
g={(1,b), (2,c), (3,a), (4,b)} and f{(a,y), (b,x), (c,z)}
Find (f g)
2. Given f(x) = 3x + 1 and g(x) = 4x 5, find the following
a. (f g)(x)
b. (g f)(x)
Operations of Functions
Let f and g be two functions, then
1. Sum: (f + g)(x) = f(x) + g(x)
2. Difference: ( f- g )(x) = f(x) g(x)
3. Product: (f g)(x) = f(x) g(x)
4. Quotient:
( gf ) ( x ) = fg(x(x)) , g ( x ) 0
Examples:
Let f(x) = x2 1 and g(x) = 2x + 3, find
a. f + g
b. f g
Dicrete
By: HTVG
Page 3
c. f g
d.
f
g
Dicrete
By: HTVG
f ( x )=
85 x
3
Page 4