Until now, given a function f(x), you would plug a number or another variable in for x. You could even get fancy and plug in an entire expression for x. For example, given f(x) = 2x + 3, you could find f(y2 – 1) by plugging y2 – 1 in for x to get f(y2 – 1) = 2(y2 – 1) + 3 = 2y2 – 2 + 3 = 2y2 + 1.
In function composition, you're plugging entire functions in for the x. In other words, you're always getting "fancy". But let's start simple. Instead of dealing with functions as formulas, let's deal with functions as sets of (x, y) points:
Let f = {(–2, 3), (–1, 1), (0, 0), (1, –1), (2, –3)} and
let g = {(–3, 1), (–1, –2), (0, 2), (2, 2), (3, 1)}.
Find (i) f (1), (ii) g(–1), and (iii) (g o f )(1).
(i) This type of exercise is meant to emphasize that the (x, y) points are really (x, f (x)) points. To find f (1), I need to find the (x, y) point in the set of (x, f (x)) points that has a first coordinate of x = 1. Then f (1) is the y-value of that point. In this case, the point with x = 1 is (1, –1), so: