DP Math AA · HL / SL · Functions

SL 2.5—Composite functions, identity, finding inverse

Get started
Notes Quiz

What Are Composite Functions?

When you apply one function and then immediately apply another to the result, you create a composite function. Think of it like a two-step machine: the output of the first machine becomes the input of the second.

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

The notation (f∘g)(x) can be a little confusing at first , notice that even though f is written on the left, g acts on x first. A helpful way to remember: work from the inside out.

Analogy

Think of getting ready in the morning. Let g = "put on socks" and f = "put on shoes". The composition f∘g means: first put on socks, then put on shoes. Reversing the order (g∘f) gives a very different , and uncomfortable , result!

Working with Composite Functions

A key point about composition is that order matters , f∘g and g∘f are generally different functions.

Example

Example 1: 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, confirming that composition is not commutative in general.

Example

Example 2: Let f(x)=2x−1 and g(x)=x2+3. Evaluate (f∘g)(2).

Step 1: Find g(2) first:
g(2)=22+3=4+3=7

Step 2: Apply f to this result:
f(7)=2(7)−1=14−1=13

So (f∘g)(2)=13.

Warning

A very common mistake is applying f first and g second when asked for (f∘g)(x). Always remember: in (f∘g)(x)=f(g(x)), the rightmost function acts on x first.

Free preview

9 more sections in this topic

← Previous topicSL 2.4—Key features of graphs, intersections using technologyNext topic →SL 2.6—Quadratic function
Koncepts

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

Start free

Features

  • Lessons
  • Past papers
  • Library
  • Homework Help
  • Duels
  • EE/TOK evaluator

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.