Operations With Functions
Operations With Functions
If f and g are two functions, a new function f(g), called the composition of g with f, is defined by
(f(g))(x) = f(g(x)).
x+1
For example, if f ( x )=x 3−1 and g ( x )= , then
x −1
The composition of two functions is the function obtained by applying one after the other. If f and g are
regarded as computing machines, then f (g) is the composite machine constructed by feeding the output
of g into the input of f.
If f and g are two real-valued functions, we can perform the usual arithmetic operations of
addition, subtraction, multiplication, and division.
The product function fg should not be confused with the composite function f (g).
Example:
The product af of an arbitrary real number a and real-valued function f. The product function is defined
by
(af)(x) = af(x).
Example 8. Let functions f and g be defined by f (x)= x−2and f (x)=g (x)=x 2−5 x +6. Draw the
graphs of f, g, 2f, and f + g.