Composite Functions: Finding (f∘g)(x) and Its Domain | Applications and Interpretation IB Maths notes

Free preview: Composite Functions: Finding (f∘g)(x) and Its Domain

A Function of a Function

Analysis and approaches: SL and HL (SL 2.5). Applications and interpretation: HL only (AHL 2.7)

Watch: 1-minute explainer

Let's start with a machine picture. Put a number into one machine, then feed its output straight into a second machine. A juicer and then a freezer turn an orange into an ice lolly. Freezer first, then juicer? You'd get something very different.

  • A composite function applies one function and then another to the result.
  • If g is applied first and f second, we write (f∘g)(x).

(f∘g)(x)=f(g(x))

💡 In plain words

  • Read it from the inside out: the function written nearest to x acts first.
  • So in (f∘g)(x), first find g(x), then put that answer into f.

Flow diagram: 3 goes through g (add 1) to give 4, then through f (square) to give fg(3) = 16; and 3 goes through f to give 9, then g to give gf(3) = 10

The diagram uses the short form fg(3). In IB notation that is (f∘g)(3): same meaning, g first.

Following the diagram

  • Take f(x)=x2 and g(x)=x+1.
  • Top row, (f∘g)(3): g acts first, g(3)=4, then f(4)=16.
  • Bottom row, (g∘f)(3): f acts first, f(3)=9, then g(9)=10.
  • The answers differ, so the order matters: in general (f∘g)(x)≠(g∘f)(x).

The recipe: finding the expression for (f∘g)(x)

  1. Write (f∘g)(x)=f(…) with the whole of g(x) inside the bracket. Why: this middle line shows the examiner your method.
  2. In the rule for f, replace every x by g(x), in brackets.
  3. Simplify, then check with one number.

👀 Watch me do it: find (f∘g)(x) and (g∘f)(x) for f(x)=x2, g(x)=x+1

What I writeWhy I do it
(f∘g)(x)=f(x+1)Step 1: g goes inside f.
=(x+1)2Step 2: f squares whatever it is given.
(g∘f)(x)=g(x2)=x2+1Now f inside g: g adds 1 to whatever it is given.
Check x=3: (3+1)2=16 and 32+1=10.Step 3: both match the diagram.
  • You can also compose a function with itself: (f∘f)(x)=f(f(x)), sometimes written f2(x).
  • With f(x)=x2, (f∘f)(x)=(x2)2=x4.

📝 Write the middle step

Show (f∘g)(x)=f(x+1)=(x+1)2, not just the final line. If you make a slip later, the middle step can still earn the method mark.

✏️ YOUR TURN 1

Try this first:

f(x)=2x+3 and g(x)=x2. Find (f∘g)(2), (g∘f)(2), (f∘g)(x) and (g∘f)(x).

Answer:

  • (f∘g)(2)=f(4)=11; (g∘f)(2)=g(7)=49.
  • (f∘g)(x)=f(x2)=2x2+3; (g∘f)(x)=g(2x+3)=(2x+3)2.
  • Check: 2(4)+3=11 and 72=49.

Composites with Fractions, and f Composed with Itself

The recipe doesn't change when the functions get messier. The brackets are what keep you safe.

👀 Watch me do it: find (f∘g)(x) and (g∘f)(x) for f(x)=3x−1 and g(x)=2x+1

What I writeWhy I do it
(f∘g)(x)=f(2x+1)=3(2x+1)−1Replace the x in f by (2x+1).
=32xSimplify the bottom.
(g∘f)(x)=g(3x−1)=2(3x−1)+1g doubles and adds 1.
=6x−1+x−1x−1=x+5x−1Single fraction over the common denominator.
Check x=3: g(3)=7, f(7)=12 and 36=12.Agrees.

A function composed with itself

  • (f∘f)(x) means apply f, then apply f again to the answer.
  • Same recipe: put the whole of f(x) inside f.

👀 Watch me do it: find (f∘f)(x) for f(x)=1x, x≠0

What I writeWhy I do it
(f∘f)(x)=f(1x)=11/xf flips whatever it is given.
=xFlipping twice gets you back where you started.
So f undoes itself.You'll meet this idea again with inverse functions.

📝 f∘g is not f times g

Wrong: (f∘g)(x)=x2(x+1) for f(x)=x2, g(x)=x+1. That is the product f(x)g(x). Right: (f∘g)(x)=(x+1)2.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in HL: Further functions and models (AHL 2.7–2.10)

  1. Logistic, Logarithmic and Piecewise Models
  2. Logarithmic Scales and Straightening Curves: y = axⁿ and y = kbˣ
  3. Trigonometry in Context: Vector Components and Periodic Models
  4. Composite Functions: Finding (f∘g)(x) and Its Domain
  5. Translating Graphs: y = f(x) + a and y = f(x + a)
  6. Stretching and Reflecting Graphs: y = af(x), y = f(ax), y = −f(x) and y = f(−x)
  7. Combining Transformations of Graphs

Video

What's inside for this topic

7 teacher notes, 55 practice questions, 33 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Trigonometry in Context: Vector Components and Periodic Models Next note: Translating Graphs: y = f(x) + a and y = f(x + a)

Composite Functions: Finding (f∘g)(x) and Its Domain on other exam boards

All Applications and Interpretation IB Maths topics · IB Maths