5 Operations of Functions S
5 Operations of Functions S
Oscar Cheung
2 Composition of Functions
2 Composition of Functions
We have
√ √
(f + g )(x) = f (x) + g (x) = (1 + x − 2) + (x − 3) = x − 2 +
x −2
√ √
(f − g )(x) = f (x) − g (x) = (1 + x − 2) − (x − 3) = 4 − x + x − 2
√
(fg )(x) = f (x)g (x) = (1 + x − 2)(x − 3)
√
1+ x −2
(f /g )(x) = f (x)/g (x) =
x −3
√
(7f )(x) = 7f (x) = 7 + 7 x − 2
√
f (x) = 1 + x −2 and g (x) = x − 3
Note that
2 Composition of Functions
Definition
Given functions f and g , the composition of f with g , denoted by f ◦ g , is
the function defined by
(f ◦ g )(x) = f (g (x))
So, the domain of f ◦ g , i.e. possible inputs x, must satisfy the following
two conditions.
Condition 1: x is in the domain of g by Step 1
Condition 2: g (x) is in the domain of f by Step 2
That means domain of f ◦ g is just domain of g excluding those x where
g (x) is not in the domain of f .
√
Let f (x) = x 2 and g (x) = 1 − x. Find
(a) (f ◦ g )(x) and (g ◦ f )(x)
(b) domains of f ◦ g and g ◦ f
For (a),
√ √
(f ◦ g )(x) = f (g (x)) = f ( 1 − x) = ( 1 − x)2 = 1 − x
p
(g ◦ f )(x) = g (f (x)) = g (x 2 ) = 1 − x 2
√
f (x) = x 2 , and g (x) = 1−x
√
f (x) = x 2 , and g (x) = 1−x