View as PDF

MATHEMATICS · GRADES 10-12

Composition of functions

Difficulty level: Advanced

Mathematics: Grades 10-12

This document was made by AI and there may be mistakes. If a question or answer looks wrong, use the Flag a mistake button to let Brett know so he can fix it.

Overview of the concept

This is how you describe a job done in stages as one single chain. Converting a price from US dollars to Canadian dollars and then adding tax is two steps, but composition treats it as one process with one input and one output. That is how most real calculations work, as a chain of steps where the output of one becomes the input of the next.

Rule

Composition: work the inside function first, then feed the result into the outside function.

(f o g)(x) means g first, then f, so you start with the function closest to x. The order matters, because (f o g)(x) is usually not the same as (g o f)(x).

Worked examples

Example 1

For f(x) = 2x + 1 and g(x) = x², find (f o g)(2)

Solution

Work the inside function first: g(2) = 2² = 4

Feed that result into f: f(4) = 2 × 4 + 1 = 9

So (f o g)(2) = 9

Example 2

For f(x) = 2x + 1 and g(x) = x², find (g o f)(2)

Solution

Work the inside function first: f(2) = 2 × 2 + 1 = 5

Feed that result into g: g(5) = 5² = 25

So (g o f)(2) = 25

Practice questions

1

With f(x) = 2x and g(x) = x + 3, find (f o g)(2).

2

With f(x) = 2x and g(x) = x + 3, find (g o f)(2).

3

With f(x) = x + 1 and g(x) = x², find (f o g)(3).

4

With f(x) = x + 1 and g(x) = x², find (g o f)(3).

5

With f(x) = 3x - 1 and g(x) = 2x, find (f o g)(x) as an expression.

6

With f(x) = 3x - 1 and g(x) = 2x, find (g o f)(x) as an expression.

7

In (f o g)(3), which function do you work out first?

8

A shop first converts a price from US dollars to Canadian dollars (function f), then adds tax (function g). Which composition gives the final price?

9

With f(x) = x² and g(x) = x + 2, find (f o g)(1).

10

With f(x) = x² and g(x) = x + 2, find (g o f)(1).

ANSWER KEY

1. 10

2. 7

3. 10

4. 16

5. 6x - 1

6. 6x - 2

7. g

8. (g o f)(x)

9. 9

10. 3