Albert Teen
powered by
Albert logo

YOU ARE LEARNING:

Composite Functions

Composite Functions

Composite Functions

Composite functions enable us to perform two functions on a number at the same time.

We can perform multiple functions on an input. When we do this, it's called a composite function.

Let's start with two functions: f(x)=2xf(x)=2x and g(x)=x2g(x)=x^2. To form a composite functions, we can put these functions together.

The composite function will be named in the form fg(x)fg(x), or gf(x)gf(x). The order of the letters depends on the function that is performed first. The function that comes second, such as g(x)g(x) in fg(x)fg(x), is placed into the first function, in this case f(x)f(x). Let's have a look at this in more detail.

We'll start with our two functions:
f(x)=2xf(x) = 2x and g(x)=x2g(x) = x^2

1

Let's find fg(x)fg(x)

This means that we need to combine the two functions together. In this case, f(x)f(x) comes first, which means we can replace the xx in f(x)=2xf(x)=2x with x2x^2 from g(x)=x2g(x)=x^2.

2

Change xx to x2x^2 on the right of f(x)=2xf(x)=2x

fg(x)=2x2fg(x)=2x^2

3

Now we have our composite function

We can use this to produce outputs in the same way as a normal function. All we need to do is replace xx with our input. For example, using 33 as the input, the composite function would be fg(3)=2×32fg(3)=2\times3^2.

4

For fg(x)=2x2fg(x)=2x^2, what is fg(3)fg(3)?

5

Now let's find gf(x)gf(x)

This time, g(x)g(x) is the first function. Therefore, we need to replace the xx in g(x)=x2g(x)=x^2 with f(x)=2xf(x)=2x.

6

Replace xx with 2x2x in g(x)=x2g(x)=x^2

Since the whole of xx is squared, the composite function is gf(x)=(2x)2gf(x)=(2x)^2. Therefore, we need to square everything in the bracket, leaving us with gf(x)=4x2gf(x)=4x^2.

7

For gf(x)=4x2gf(x)=4x^2, what is gf(2)gf(2)?

Let's try another example. We'll start with the functions below:

f(x)=x42f(x) = \dfrac{x - 4}{2} and g(x)=6xg(x)=6x

1

Start with fg(x)fg(x)

Remember, since ffis first, we replace the xx in f(x)=x42f(x)=\dfrac{x-4}{2} with g(x)g(x).

2

What is fg(x)fg(x)?

3

Now we can find outputs for fg(x)=6x42fg(x)=\dfrac{6x-4}{2}

To find an output, we substitute the input for xx.

4

What is fg(3)=6x42fg(3)=\dfrac{6x-4}{2}?

5

Now let's try gf(x)gf(x)

This time, we need to substitute the xx in g(x)=6xg(x)=6x with f(x)=x42f(x)=\dfrac{x-4}{2}.

6

What is gf(x)gf(x)?

If g(x)=2xg(x) =2 - x and f(x)=2x+4f(x) = 2x + 4 what is fg(x)fg(x)? Give your answer in its simplest form.

We can also use functions and composite functions in algebraic problems.

g(x)=2x+3g(x) = 2x + 3

What is xx if gg(x)=49gg(x) = 49?

1

The first step is to construct gg(x)gg(x)

We need to replace xx in gg(x)=2x+3gg(x)=2x+3 with g(x)=2x+3g(x)=2x+3.

2

What is gg(x)gg(x)?

3

gg(x)=2(2x+3)+3gg(x)=2(2x+3)+3

We can simplify this to gg(x)=4x+9gg(x)=4x+9. From the question, we know that gg(x)=4x+9=49gg(x)=4x+9=49, so we can conclude that 4x+9=494x+9=49.

4

If 4x+9=494x+9=49, what is xx?

If f(x)=x2f(x) = x^2. What is xx if ff(x)=256ff(x) = 256?