Mathematics Topic
Composite Functions
- Read notes
- Flashcards
- Quiz
- Confident
Study focus - 3 things
- fg(x) means f(g(x)): apply g to x first, then apply f to the result; gf(x) means the other order
- To find the rule for fg(x), put the whole of g(x), in brackets, in place of every x in f, then simplify
- fg and gf are usually different (show it with one counter-example), and f^2 means ff, not (f(x))^2
Section 1One function inside another
Sometimes the output of one function is fed straight into a second function, like a two-step recipe. Take g(x) = x + 5 and f(x) = 3x - 2. The notation fg(x) means f(g(x)): apply g to x first, then apply f to what comes out. The function written next to x acts first, so read the letters from the inside out. The result is a new function, called a composite function. Some books write fg as f∘g; the meaning is the same.
Section 2Evaluating fg(a) and gf(a)
To find fg(4), work from the inside: g(4) = 4 + 5 = 9, then f(9) = 3(9) - 2 = 25, so fg(4) = 25. For gf(4) the order flips: f(4) = 3(4) - 2 = 10, then g(10) = 10 + 5 = 15, so gf(4) = 15. Write down the middle value each time so that you can see which function acted first. Notice that the two answers, 25 and 15, are not the same.
Section 3Finding the rule for fg(x)
To get the rule, put the whole of g(x) inside brackets in place of each x in f. With the same pair, fg(x) = f(x + 5) = 3(x + 5) - 2 = 3x + 15 - 2 = 3x + 13. Check at x = 4: 3(4) + 13 = 25, which matches the earlier value. For a quadratic, take f(x) = x^2 - 3 and g(x) = 2x + 1. Then fg(x) = (2x + 1)^2 - 3 = 4x^2 + 4x + 1 - 3 = 4x^2 + 4x - 2. Expand the squared bracket as (2x + 1)(2x + 1); it is not 4x^2 + 1. The other order gives gf(x) = 2(x^2 - 3) + 1 = 2x^2 - 5.
Section 4fg and gf are usually different
Let f(x) = 2x and g(x) = x + 3. Then fg(1) = f(4) = 8, but gf(1) = g(2) = 5. In general, fg(x) = 2(x + 3) = 2x + 6 while gf(x) = 2x + 3. One example like this is enough to show that composition is not commutative in general. A few special pairs do agree: f(x) = x + 2 and g(x) = x + 7 both give x + 9 in either order. But an agreeing pair proves nothing about other pairs. Also remember that fg(x) is not the product f(x) × g(x); here the product is 2x(x + 3) = 2x^2 + 6x.
Section 5Composing a function with itself: f squared
The symbol f^2 means ff, so f^2(x) = f(f(x)): apply f twice. For f(x) = 2x + 1, f^2(x) = 2(2x + 1) + 1 = 4x + 3. This is not the same as (f(x))^2 = (2x + 1)^2 = 4x^2 + 4x + 1, which squares the output. For f(x) = x^2 - 1, f^2(2) = f(f(2)) = f(3) = 8. The syllabus asks for no more than two functions at a time, so f^2, fg and gf are all you need.
Section 6Composite functions in a real problem
Suppose a shop takes J$500 off a bill with a voucher, d(x) = x - 500, and then adds a 10% charge, t(x) = 1.1x, where x is in J$. For a J$2,000 bill with the voucher applied first, the final amount is td(2000) = t(1500) = 1650. If the charge were added first, dt(2000) = d(2200) = 1700. Different orders give different bills, so always check which step happens first. The step done last is written first in the name.
Examples
Let f(x) = 5x + 1 and g(x) = x - 4. (a) Find fg(6) and gf(6). (b) Find fg(x) and gf(x) in simplest form. (c) Use your answers to check part (a) and to decide whether fg and gf are the same function.
(a) For fg(6), apply g first: g(6) = 6 - 4 = 2, then f(2) = 5(2) + 1 = 11, so fg(6) = 11. For gf(6), apply f first: f(6) = 5(6) + 1 = 31, then g(31) = 31 - 4 = 27, so gf(6) = 27. (b) fg(x) = f(x - 4) = 5(x - 4) + 1 = 5x - 20 + 1 = 5x - 19. gf(x) = g(5x + 1) = (5x + 1) - 4 = 5x - 3. (c) Check: fg(6) = 5(6) - 19 = 11 and gf(6) = 5(6) - 3 = 27, as in part (a). The rules 5x - 19 and 5x - 3 are different, so fg and gf are not the same function.
Let f(x) = x^2 - 6 and g(x) = 3x - 1. (a) Find fg(x) and gf(x), each in simplest form. (b) Evaluate fg(2) from the rule you found, and check it by working from the inside out. (c) Find f^2(1) and compare it with (f(1))^2.
(a) fg(x) = f(3x - 1) = (3x - 1)^2 - 6 = 9x^2 - 6x + 1 - 6 = 9x^2 - 6x - 5. gf(x) = g(x^2 - 6) = 3(x^2 - 6) - 1 = 3x^2 - 18 - 1 = 3x^2 - 19. They are different rules. (b) From the rule, fg(2) = 9(2)^2 - 6(2) - 5 = 36 - 12 - 5 = 19. Inside out: g(2) = 3(2) - 1 = 5, then f(5) = 25 - 6 = 19. Both routes give 19. (c) f(1) = 1 - 6 = -5, so f^2(1) = f(-5) = 25 - 6 = 19. But (f(1))^2 = (-5)^2 = 25. So f^2(1) = 19 and (f(1))^2 = 25 are different: f^2 means apply f twice, not square the output.
Now let's water it
Session runs notes to flashcards to quiz back-to-back.
Where this comes from
- CSEC Mathematics Syllabus (CXC 05/G/SYLL 16, revised 2016; registry URL names an Oct 2025 amendment) · Caribbean Examinations Council (CXC) · Section 7, Specific Objective 7.16 · Syllabus scope
- Precalculus, 3rd Corrected Edition (2013) · Carl Stitz and Jeff Zeager · Chapter 5, Section 5.1 Function Composition, checked against (https://www.stitz-zeager.com/szprecalculus07042013.pdf) · Facts
- Beginning and Intermediate Algebra (2nd ed.) · Tyler Wallace (wallace.ccfaculty.org) · Chapter 10, 10.2 Operations on Functions, checked against (https://www.wallace.ccfaculty.org/book/10.2%20Function%20Algebra.pdf) · Facts