aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Stay in the loop

Study tips, product updates, and early access to new features.

aimnova.

AI-powered IB study platform with personalised plans, instant feedback, and examiner-style marking.

IB Subjects

  • IB Diploma
  • All IB Subjects
  • IB ESS
  • IB Economics
  • IB Business Management
  • IB Math AI SL
  • IB Math AA SL
  • Grade Calculator
  • Exam Timetable 2026
  • ESS Predictions 2026
  • Economics Predictions 2026
  • Business Management Predictions 2026
  • Math AI SL Predictions 2026
  • Math AA SL Predictions 2026

Study Resources

  • Free Study Notes
  • Revision Guide
  • Flashcards
  • ESS Question Bank
  • BM Question Bank
  • Mock Exams
  • Past Paper Feedback
  • Exam Skills
  • Command Terms

Company

  • Features
  • Pricing
  • About Us
  • Blog
  • Contact
  • Terms
  • Privacy
  • Cookies

© 2026 Aimnova. All rights reserved.

Made with 💜 for IB students worldwide

v0.1.868
NotesMath AA HLTopic 2.5Composite functions
Back to Math AA HL Topics
2.5.12 min read

Composite functions

IB Mathematics: Analysis and Approaches • Unit 2

Smart study tools

Turn reading into results

Move beyond passive notes. Answer real exam questions, get AI feedback, and build the skills that earn top marks.

Get Started Free

Contents

  • What a composite is
  • Evaluate a composite at a number
  • Form the composite expression
  • Solve composites & find an unknown
  • Composites from a table — the exam question
Inner function first: A composite (f∘g)(x) = f(g(x)) means: do the inner function g first, then feed its output into f.

Read it right-to-left — "f of g of x."
Order matters: In general f∘g ≠ g∘f.

Which function is on the inside changes the answer, so always apply the inner one first.
A machine into a machine: Picture two machines in a row: x goes into g, g's output goes into f.

(f∘g) is "g, then f".

[Diagram: math-function-machine] - Available in full study mode

Work inside-out: To find (f∘g)(a): compute g(a) first, then put that answer into f.

IB-style question — a number in

f(x) = 2x + 1 and g(x) = x².

Find (f∘g)(3) and (g∘f)(3).

Step by step

  1. (f∘g)(3): inner first, g(3) = 9, then f(9).
  2. (g∘f)(3): now f(3) = 7, then g(7).

Final answer

(f∘g)(3) = 19, but (g∘f)(3) = 49 — order matters!

One number at a time: Don't try to do both functions at once — evaluate the inner one to a single number, then the outer one.

Practice with real exam questions

Answer exam-style questions and get AI feedback that shows you exactly what examiners want to see in a full-marks response.

Try Practice Free7-day free trial • No card required
Substitute the whole inner function: To get (f∘g)(x), replace every x in f with the entire expression g(x) (in brackets), then simplify.

IB-style question — build both composites

f(x) = 2x + 1 and g(x) = x².

Find (f∘g)(x) and (g∘f)(x).

Step by step

  1. (f∘g)(x): put g(x) = x² into f.
  2. (g∘f)(x): put f(x) = 2x + 1 into g.

Final answer

(f∘g)(x) = 2x² + 1 ≠ (g∘f)(x) = 4x² + 4x + 1.

Use brackets: When the inner function goes into a square or a product, wrap it in brackets: (2x + 1)², not 2x + 1².
Build it, then solve or match: Form the composite expression, then either solve an equation in it, or match coefficients to find an unknown function or constant.

IB-style question — solve a composite equation

f(x) = 3x − 2 and g(x) = x + 5.

Solve (f∘g)(x) = 10.

Step by step

  1. Form the composite.
  2. Set equal to 10 and solve.

Final answer

x = −1.

IB-style question — find f from a composite

g(x) = x².

The linear function f(x) = ax + b is such that (f∘g)(x) = 2x² − 3.

Find a and b, and hence write down f(x).

Step by step

  1. Write the composite as f acting on the inner function, then put in g(x) = x².
  2. f(x) = ax + b means “multiply the input by a, then add b”. Here the input is x², so replace every x in ax + b with x².
  3. This composite must equal the given 2x² − 3, so the two expressions are the same for every x.
  4. Compare the x² terms on each side: a must be the coefficient on the right.
  5. Compare the constant (number-only) terms on each side: b must be the constant on the right.
  6. Put a = 2 and b = −3 back into f(x) = ax + b.

Final answer

a = 2 and b = −3, so f(x) = 2x − 3.

Feeling unprepared for exams?

Get a clear study plan, practice with real questions, and know exactly where you stand before exam day. No more guessing.

Get Exam Ready Free7-day free trial • No card required
Work the inner function first: When f and g are given by a table, a composite like (f∘g)(a) is read inside-out: first find g(a) in the g-row, then look that answer up in the f-row.

No algebra — just two lookups, in the right order.
x−1025
f(x)42−16
g(x)250−1

IB-style question — composite from a table

The table shows values of f(x) and g(x); both f and g are one-to-one.

Find:

(a) (f∘g)(0);

(b) (g∘f)(0).

Step by step

  1. (a) Inside first: read g(0) from the g-row.
  2. Then apply f to that result: read f(5) from the f-row.
  3. (b) Now the other order — inside first: read f(0).
  4. Then apply g to it: read g(2).

Final answer

(a) (f∘g)(0) = 6. (b) (g∘f)(0) = 0. They differ — order matters.

Composites: work from the inside out: For (f∘g)(0) = f(g(0)), do the inside first — find g(0), then feed that answer into f.

The order matters: (g∘f)(0) = g(f(0)) is usually a different value.

Try an IB Exam Question — Free AI Feedback

Test yourself on Composite functions. Write your answer and get instant AI feedback — just like a real IB examiner.

f(x) = 3x − 2 and g(x) = x + 4. Find (f∘g)(2). [2 marks]

Related Math AA HL Topics

Continue learning with these related topics from the same unit:

2.1.1Equations of lines
2.1.2Parallel lines
2.1.3Perpendicular lines
2.1.4Perpendicular bisector
View all Math AA HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Math AA HL

Previous
2.4.2GDC intersections
Next
Finding the inverse2.5.2

8 questions to test your understanding

Reading is just the start. Students who tested themselves scored 82% on average — try IB-style questions with AI feedback.

Start Free TrialView All Math AA HL Topics