Composite Functions (DP IB Analysis & Approaches (AA): SL): Revision Note

Composite functions

What is a composite function?

  • A composite function is where a function is applied to another function

    • written as any out of

      • (fg)(x)

      •  fg(x)

      •  f(g(x))

  • The order matters

    • (fg)(x) means:

      • First apply g to x to get g(x)

      • Then apply f to the previous output to get f(g(x))

    • i.e. start with the function closest to x

  • (fg)(x) is not usually equal to (gf)(x)

Examiner Tips and Tricks

ff(x)=(ff)(x) is not the same as [f(x)]2.

How do I find the domain of a composite function?

  • This is best shown through an example

    • e.g. let  f(x)=2x+1, 5x5 and let  g(x)=x, 1x49

  • What is the domain of fg(x)?

    • In fg(x), an input x goes into g(x) first, which accepts the inputs 1x49

      • i.e. the domain so far is 1x49

    • Substitute the inputs 1x49 into g(x) to get the outputs 1g(x)7

    • The outputs 1g(x)7 become the new inputs for f

    • Substitute 1g(x)7 into f

      • Not possible: f only accepts inputs between 5 and 5

    • It would only work if 1g(x)5

      • to make it fit between 5 and 5

    • but 1g(x)5 means the initial domain should have been 1x25

    • so 1x25 is the domain of fg(x)

How do I find the range of a composite function?

  • Using the same example from above, to find the range of fg(x)

    • substitute the domain (found above) into the composite function (in order)

    • The domain is 1x25

      • First substitute 1x25 into g(x) to get 1g(x)5

      • Then substitute 1g(x)5 into f to get 2×1+1f2×5+1

      • This means the range of fg(x) is 3fg(x)11

Examiner Tips and Tricks

Sometimes using your GDC to sketch the functions and the composite function can help to spot domains and ranges.

Worked Example

Given  f(x)=x+4 and  g(x)=3+2x

(a) Find the value of (gf)(12)

Answer:

2-3-2-ib-aa-sl-composite-functions-a-we-solution

(b) Find an expression for (fg)(x)

Answer:

2-3-2-ib-aa-sl-composite-functions-b-we-solution

(c) Find an expression for (gg)(x)

Answer:

2-3-2-ib-aa-sl-composite-functions-c-we-solution

Unlock more, it's free!

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

the (exam) results speak for themselves:

Build on this topic

Dan Finlay

Author: 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.

Mark Curtis

Reviewer: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.