Composite Functions (Edexcel GCSE Maths: Higher): Revision Note

Exam code: 1MA1

Amber

Written by: Amber

Reviewed by: Dan Finlay

Updated on

Composite functions

What is a composite function?

  • A composite function is a function applied to the output of another function

    • The input goes through the 1st function to become an output

    • This output goes through the 2nd function to become a new output

What notation is used for composite functions?

  • If f(x) and g(x) are two functions, then

    • g(f(x)) is a composite function

    • It means the input xgoes through function f first

      • This gives the output f(x)

      • Then this output, f(x), becomes the input of function g, giving g(f(x))

    • gf(x) is the shorthand notation used for g(f(x))

      • It means do f first, then g

      • The order of applying the functions goes from right to left

      • (the letter nearest the bracket goes first)

      • This is often the opposite of what people expect!

    • fg(x) means do g(x) first then f(x) second

    • ff(x) means apply f(x) twice!

      • This can be written f2(x)

      • This does not mean the same as [f(x)]2

Examiner Tips and Tricks

A good trick in the exam is to write brackets around gf(x) to make it g(f(x)), to see that it is "g" of "f(x)".

How do I substitute numbers into composite functions?

  • If you are putting a number into a composite function

    • put the number into the function closest to (x)

    • then make the output of the first function the input of the second function

  • For example, if f(x)=2x+1 and g(x)=1x

    • to find gf(2):

      • Put the 2 in as the input of f first

      • f(2)=2(2)+1=5 

      • Then put 5 in as the input of g

      • So gf(2)=g(f(2))=g(5)=15

    • to find fg(2):

      • Put the 2 in as the input of g first

      • g(2)=12

      • Then put 12 in as the input of f

      • So fg(2)=f(g(2))=f(12)=2(12)+1=2

    • to find ff(2):

      • f(2)=2×2+1=5

      • f(5)=2×5+1=11

      • so ff(2)=11

How do I find composite functions algebraically?

  • If you are using algebra, substitute the whole algebraic expression as your input

    • For example, if f(x)=2x+1 and g(x)=1x

      • fg(x)=f(g(x))=f(1x)=2×(1x)+1=2x+1

      • gf(x)=g(f(x))=g(2x+1)=12x+1

      • ff(x)=f(f(x))=f(2x+1)=2(2x+1)+1 which simplifies to ff(x)=4x+3

Worked Example

In this question, f(x) = 2x  1 and g(x) = (x + 2)2.

(a) Find  fg(4).

Answer:

"g" is on the inside of the composite function, so apply g first

g(4)=(4+2)2=62=36

Now apply the function "f" to 36

 f(36)=2(36)1=721

fg(4)=71

(b) Find  gf(x).

Answer:

"f" is on the inside of the composite function so substitute the function f(x) into g(x)
It can help to write gf(x)=g(f(x))

 gf(x)=g(f(x)) =g(2x1)=((2x1)+2)2

Simplify inside the bracket

gf(x)=(2x1+2)2

gf(x)=(2x+1)2

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Amber

Author: Amber

Expertise: Maths Content Creator

Amber gained a first class degree in Mathematics & Meteorology from the University of Reading before training to become a teacher. She is passionate about teaching, having spent 8 years teaching GCSE and A Level Mathematics both in the UK and internationally. Amber loves creating bright and informative resources to help students reach their potential.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.