DP Math AI · HL · Functions

AHL 2.7—Composite functions, finding inverse function incl domain restriction

Get started
Notes Quiz

What Are Composite Functions?

When we chain two functions together so that the output of one becomes the input of the next, we create a composite function.

Composite Function: Given two functions f and g, the composite function (f∘g) is defined by (f∘g)(x)=f(g(x)) We first apply g to x, then apply f to the result. Read f∘g as "f composed with g" or "f after g".

Think of it as a pipeline: xg​g(x)f​f(g(x)).

The order matters critically , f∘g means g acts first, then f. This is the opposite of how it reads left to right, which trips up many students.

Warning

Composition is not commutative in general: (f∘g)(x)=(g∘f)(x). Always identify which function acts first.

Working With Composite Functions

Example

Let f(x)=x2 and g(x)=x+1. Find (f∘g)(x) and (g∘f)(x).

Finding (f∘g)(x):
(f∘g)(x)=f(g(x))=f(x+1)=(x+1)2=x2+2x+1

Finding (g∘f)(x):
(g∘f)(x)=g(f(x))=g(x2)=x2+1

Clearly x2+2x+1=x2+1 in general , composition is order-dependent.

Example

Let f(x)=x​ and g(x)=3x−2. Evaluate (f∘g)(6).

Step 1: Apply g first: g(6)=3(6)−2=16

Step 2: Apply f: f(16)=16​=4

So (f∘g)(6)=4.

Alternatively, find the composite rule first: (f∘g)(x)=3x−2​, then substitute x=6: 3(6)−2​=16​=4. ✓

Example

Composing three functions: Let f(x)=x+1, g(x)=2x, h(x)=x2. Find (f∘g∘h)(x).

Work from the innermost function outward:

Step 1: Apply h first: h(x)=x2

Step 2: Apply g: g(h(x))=g(x2)=2x2

Step 3: Apply f: f(g(h(x)))=f(2x2)=2x2+1

So (f∘g∘h)(x)=2x2+1.

Exam Tip

When evaluating a composite at a specific value, it is often faster to work numerically step by step rather than finding the general formula first.

Free preview

12 more sections in this topic

← Previous topicSL 2.6—Modelling skillsNext topic →AHL 2.8—Transformations of graphs, composite transformations
Koncepts

Learn it properly. Then practise like it's the real paper.

Start free

Features

  • Lessons
  • Past papers
  • Library
  • Homework Help
  • Duels

More

  • For parents
  • Compare
  • Plans & pricing
  • DP for students

Legal

  • Privacy
  • Terms
  • Account deletion

© 2026 Koncepts (product of PrepAiro, Inc). All rights reserved.
DP, IB, EE and TOK are terms of the International Baccalaureate Organization.

Made for IB DP students.