Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Applications and Interpretation
  3. ›2 Functions
  4. ›2.7 Composite and inverse functions

IB Mathematics: Applications and Interpretation · Topic 2 · Functions

2.7 Composite and inverse functions

Form composite functions and find their domains, find inverse functions and graph them, and solve equations involving both.

  • 4 min read
  • 6 parts
  • 10 questions
  • Draft
  • HL only
Start a Quick 5 on this topic→Jump to the 10 questions
1/6A composite function feeds one function into another
  1. 1A composite function feeds one function into another
  2. 2A composite function is only defined where both steps work
  3. 3An inverse function undoes the original function
  4. 4Finding an inverse means swapping variables and rearranging
  5. 5The graph of an inverse is a reflection of the graph of f
  6. 6Equations with composite and inverse functions use these rules
  7. Check your recall
  8. Practice: 10 questions
1

Part 1 of 6: A composite function feeds one function into another

Converting a temperature can take two steps: multiply, then add. Each step is a function, and the second works on the result of the first. Joining them gives a composite function. Take 5: double it to get 10, then add 3 to get 13.

The notation (f∘g)(x)(f\circ g)(x)(f∘g)(x) means f(g(x))f(g(x))f(g(x)). Apply ggg first, then apply fff to the result. The output of ggg becomes the input of fff. The inner function is the one written nearest to xxx.

Worked example

Forming composites

Let f(x)=2x+3f(x)=2x+3f(x)=2x+3 and g(x)=x2g(x)=x^2g(x)=x2. Find f(g(x))f(g(x))f(g(x)) and g(f(x))g(f(x))g(f(x)), then evaluate each at x=2x=2x=2.
  1. 1
    Replace xxx in fff with g(x)g(x)g(x): f(g(x))=2x2+3f(g(x))=2x^2+3f(g(x))=2x2+3.
  2. 2
    Replace xxx in ggg with f(x)f(x)f(x): g(f(x))=(2x+3)2g(f(x))=(2x+3)^2g(f(x))=(2x+3)2.
  3. 3
    At x=2x=2x=2: f(g(2))=2(4)+3=11f(g(2))=2(4)+3=11f(g(2))=2(4)+3=11.
  4. 4
    At x=2x=2x=2: g(f(2))=(4+3)2=49g(f(2))=(4+3)^2=49g(f(2))=(4+3)2=49.

Answer: f(g(x))=2x2+3f(g(x))=2x^2+3f(g(x))=2x2+3 gives 11 at x=2x=2x=2, and g(f(x))=(2x+3)2g(f(x))=(2x+3)^2g(f(x))=(2x+3)2 gives 49.

Common mistake

The composites f(g(x))f(g(x))f(g(x)) and g(f(x))g(f(x))g(f(x)) are usually different. The order of the functions matters.

Key term

composite function

A composite function uses the output of one function as the input of another.

Part 1 done

2

Part 2 of 6: A composite function is only defined where both steps work

Some inputs break the chain, so a composite may need a smaller domain than you expect. The domain of f∘gf\circ gf∘g is the set of xxx values where both steps work.

Two conditions apply. First, xxx must be in the domain of ggg. Second, g(x)g(x)g(x) must be in the domain of fff.

Two composites of f(x)=xf(x)=\sqrt{x}f(x)=x​ and g(x)=x−4g(x)=x-4g(x)=x−4

CompositeRuleDomain
f(g(x))f(g(x))f(g(x))x−4\sqrt{x-4}x−4​x≥4x\ge4x≥4
g(f(x))g(f(x))g(f(x))x−4\sqrt{x}-4x​−4x≥0x\ge0x≥0
Composite
f(g(x))f(g(x))f(g(x))
Rule
x−4\sqrt{x-4}x−4​
Domain
x≥4x\ge4x≥4
Composite
g(f(x))g(f(x))g(f(x))
Rule
x−4\sqrt{x}-4x​−4
Domain
x≥0x\ge0x≥0

In the first case, x−4x-4x−4 must not be negative, because the square root of a negative number is not real. In the second, only fff restricts xxx. Work out the domain before simplifying the rule, because simplifying can hide a restriction.

Key term

domain

A function’s domain is the set of inputs where the function is defined.

Part 2 done

Quick check

One question on the part you just read

Easy

Which expression does the notation (f∘g)(x)(f\circ g)(x)(f∘g)(x) represent?
Show answer and explanation

Answer: C · Worked explanation

The notation (f∘g)(x)(f\circ g)(x)(f∘g)(x) means f(g(x))f(g(x))f(g(x)). You apply ggg first and then apply fff to the result, so ggg is the inner function. The expression g(f(x))g(f(x))g(f(x)) has the order reversed, which is a different composite. A product or a sum of two function values is not a composite at all, and neither is a quotient.
3

Part 3 of 6: An inverse function undoes the original function

Sometimes you need to go backwards from an output to the input that produced it. The inverse function of fff is written f−1f^{-1}f−1. If f(a)=bf(a)=bf(a)=b, then f−1(b)=af^{-1}(b)=af−1(b)=a.

This means f−1(f(x))=xf^{-1}(f(x))=xf−1(f(x))=x wherever both sides are defined. The inverse undoes what fff did.

Not every function has an inverse. If two inputs give the same output, the inverse cannot tell which to return. A function with no repeated outputs is a one-to-one function. On a graph, a horizontal line meets it at most once.

Common mistake

The notation f−1f^{-1}f−1 does not mean 1f\frac{1}{f}f1​. The -1 marks the inverse function, not a reciprocal.

Key terms · tap one for its definition

inverse function

An inverse function reverses the input-output pairs of a function on a domain where each output has one input.

one-to-one function

A one-to-one function is a function in which each output comes from exactly one input.

Part 3 done

4

Part 4 of 6: Finding an inverse means swapping variables and rearranging

Once you know an inverse exists, you can find its rule. The method has four steps.

  • Write y=f(x)y=f(x)y=f(x).
  • Swap xxx and yyy.
  • Rearrange to make yyy the subject.
  • Write the result as f−1(x)f^{-1}(x)f−1(x) and state its domain.

The domain of f−1f^{-1}f−1 is the set of outputs of fff, called the range of fff. Swapping xxx and yyy swaps the roles of inputs and outputs.

Worked example

Finding an inverse

Find the inverse of f(x)=2x+35f(x)=\frac{2x+3}{5}f(x)=52x+3​.
  1. 1
    Write y=2x+35y=\frac{2x+3}{5}y=52x+3​.
  2. 2
    Swap the variables: x=2y+35x=\frac{2y+3}{5}x=52y+3​.
  3. 3
    Multiply by 5: 5x=2y+35x=2y+35x=2y+3, so 2y=5x−32y=5x-32y=5x−3.
  4. 4
    Divide by 2: y=5x−32y=\frac{5x-3}{2}y=25x−3​.

Answer: f−1(x)=5x−32f^{-1}(x)=\frac{5x-3}{2}f−1(x)=25x−3​.

Test your answer with one value. Applying f−1f^{-1}f−1 to f(a)f(a)f(a) should return aaa. Here f(1)=1f(1)=1f(1)=1, and f−1(1)=5−32=1f^{-1}(1)=\frac{5-3}{2}=1f−1(1)=25−3​=1.

Part 4 done

Quick check

One question on the part you just read

Easy

Given f(x)=x+5f(x)=x+5f(x)=x+5 and g(x)=2xg(x)=2xg(x)=2x, calculate f(g(3))f(g(3))f(g(3)).
Show answer and explanation

Answer: D · Worked explanation

First find g(3)=2×3=6g(3)=2\times3=6g(3)=2×3=6. Then apply fff to this result: f(6)=6+5=11f(6)=6+5=11f(6)=6+5=11. The value 16 is g(f(3))g(f(3))g(f(3)), because f(3)=8f(3)=8f(3)=8 and g(8)=16g(8)=16g(8)=16, so it comes from applying the functions in the wrong order. The value 14 adds f(3)=8f(3)=8f(3)=8 and g(3)=6g(3)=6g(3)=6, which is not a composite.
5

Part 5 of 6: The graph of an inverse is a reflection of the graph of f

A graph shows the same inverse relationship as a picture. Swapping xxx and yyy swaps the coordinates of every point. If (a,b)(a,b)(a,b) lies on fff, then (b,a)(b,a)(b,a) lies on f−1f^{-1}f−1.

So the two graphs are reflections of each other in the line y=xy=xy=x. Points on that line stay where they are.

Figure 1. The graphs of f and its inverse mirror each other across the dashed line y = x.

Take f(x)=x2+1f(x)=x^2+1f(x)=x2+1 for x≥0x\ge0x≥0. Without the restriction, fff is not one-to-one, so it has no inverse. With it, f−1(x)=x−1f^{-1}(x)=\sqrt{x-1}f−1(x)=x−1​ for x≥1x\ge1x≥1.

Exam tip

To sketch an inverse, draw the line y=xy=xy=x first. Then reflect the key points of fff across it.

Part 5 done

6

Part 6 of 6: Equations with composite and inverse functions use these rules

These ideas combine when you solve an equation. It gives a rule that links inputs and outputs, and solving it means finding the inputs that satisfy it.

  • To solve f(g(x))=kf(g(x))=kf(g(x))=k, form the composite, then solve for xxx.
  • To solve f−1(x)=kf^{-1}(x)=kf−1(x)=k, use the fact that x=f(k)x=f(k)x=f(k).

The second method saves effort because you need not find f−1f^{-1}f−1 first. The equation f−1(x)=kf^{-1}(x)=kf−1(x)=k says that kkk is the input that fff sends to xxx.

Worked example

Solving with composites and inverses

Let f(x)=2x+3f(x)=2x+3f(x)=2x+3 and g(x)=x2g(x)=x^2g(x)=x2. Solve (a) f(g(x))=21f(g(x))=21f(g(x))=21 and (b) f−1(x)=5f^{-1}(x)=5f−1(x)=5.
  1. 1
    (a) Form the composite: 2x2+3=212x^2+3=212x2+3=21.
  2. 2
    Rearrange: x2=9x^2=9x2=9, so x=±3x=\pm3x=±3.
  3. 3
    (b) Use x=f(5)=2(5)+3=13x=f(5)=2(5)+3=13x=f(5)=2(5)+3=13.
  4. 4
    Check: f−1(13)=13−32=5f^{-1}(13)=\frac{13-3}{2}=5f−1(13)=213−3​=5.

Answer: (a) x=3x=3x=3 or x=−3x=-3x=−3. (b) x=13x=13x=13.

A graphing calculator can also solve these equations. Plot both sides and read the intersection, but give exact values when you can.

Key term

equation

An equation is a statement that two expressions are equal, solved by finding the values that make it true.

Note read

Check your recall[15 marks]

6 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Define[1 mark]

    Define a composite function.

    Show mark schemeHide mark scheme

    Model answer

    A composite function uses the output of one function as the input of another.

    • 1 mark for stating that the output of one function is used as the input of another
  2. 2.Calculate[4 marks]

    Calculate f(g(2))f(g(2))f(g(2)) and g(f(2))g(f(2))g(f(2)), given f(x)=3x−1f(x)=3x-1f(x)=3x−1 and g(x)=x2+2g(x)=x^2+2g(x)=x2+2.

    Show mark schemeHide mark scheme

    Model answer

    g(2)=6g(2)=6g(2)=6, so f(g(2))=3(6)−1=17f(g(2))=3(6)-1=17f(g(2))=3(6)−1=17. f(2)=5f(2)=5f(2)=5, so g(f(2))=52+2=27g(f(2))=5^2+2=27g(f(2))=52+2=27.

    • 1 mark for finding g(2)=6g(2)=6g(2)=6
    • 1 mark for obtaining f(g(2))=17f(g(2))=17f(g(2))=17
    • 1 mark for finding f(2)=5f(2)=5f(2)=5
    • 1 mark for obtaining g(f(2))=27g(f(2))=27g(f(2))=27
  3. 3.Determine[2 marks]

    Determine the domain of f(g(x))f(g(x))f(g(x)), given f(x)=xf(x)=\sqrt{x}f(x)=x​ and g(x)=x−9g(x)=x-9g(x)=x−9.

    Show mark schemeHide mark scheme

    Model answer

    f(g(x))=x−9f(g(x))=\sqrt{x-9}f(g(x))=x−9​. The expression under the root must not be negative, so x≥9x\ge9x≥9.

    • 1 mark for forming x−9\sqrt{x-9}x−9​
    • 1 mark for stating the domain x≥9x\ge9x≥9
  4. 4.Determine[3 marks]

    Determine the inverse function of f(x)=x+43f(x)=\frac{x+4}{3}f(x)=3x+4​.

    Show mark schemeHide mark scheme

    Model answer

    Write y=x+43y=\frac{x+4}{3}y=3x+4​ and swap: x=y+43x=\frac{y+4}{3}x=3y+4​. Then 3x=y+43x=y+43x=y+4, so f−1(x)=3x−4f^{-1}(x)=3x-4f−1(x)=3x−4.

    • 1 mark for swapping xxx and yyy
    • 1 mark for rearranging for yyy
    • 1 mark for stating f−1(x)=3x−4f^{-1}(x)=3x-4f−1(x)=3x−4
  5. 5.Describe[2 marks]

    Describe how the graph of f−1f^{-1}f−1 is related to the graph of fff.

    Show mark schemeHide mark scheme

    Model answer

    The graph of f−1f^{-1}f−1 is the reflection of the graph of fff in the line y=xy=xy=x. Each point (a,b)(a,b)(a,b) on fff becomes (b,a)(b,a)(b,a).

    • 1 mark for stating reflection in the line y=xy=xy=x
    • 1 mark for stating that coordinates are swapped, so (a,b)(a,b)(a,b) becomes (b,a)(b,a)(b,a)
  6. 6.Explain[3 marks]

    Explain why f(x)=x2f(x)=x^2f(x)=x2 for all real xxx has no inverse function, and state a restriction that gives one.

    Show mark schemeHide mark scheme

    Model answer

    Two inputs such as 2 and −2 give the same output 4, so fff is not one-to-one. The inverse could not decide which input to return. Restricting the domain to x≥0x\ge0x≥0 makes it one-to-one.

    • 1 mark for stating that different inputs give the same output
    • 1 mark for linking this to fff not being one-to-one
    • 1 mark for stating a restriction such as x≥0x\ge0x≥0

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·State[1 mark]

State the condition a function must satisfy to have an inverse function on its domain.
Show answer and explanation

Answer: D · Worked explanation

An inverse function exists only when each output comes from exactly one input, so the function must be one-to-one. Passing through the origin is irrelevant. Many functions with domain all real numbers, such as x2x^2x2, have no inverse because two inputs give the same output. One input with several outputs would not even define a function.
4.

Medium·Determine[2 marks]

Given f(x)=3x−4f(x)=3x-4f(x)=3x−4, determine f−1(5)f^{-1}(5)f−1(5).
Show answer and explanation

Answer: D · Worked explanation

Use f−1(5)=af^{-1}(5)=af−1(5)=a when f(a)=5f(a)=5f(a)=5. Solving 3a−4=53a-4=53a−4=5 gives 3a=93a=93a=9, so a=3a=3a=3. The inverse undoes the function, taking the output 5 back to its input. The value 11 is f(5)f(5)f(5), which applies fff instead of undoing it. The value 111\frac{1}{11}111​ treats the inverse as the reciprocal of f(5)f(5)f(5).
5.

Medium·Determine[2 marks]

Given f(x)=1xf(x)=\frac{1}{x}f(x)=x1​ for x≠0x\ne0x=0 and g(x)=x−3g(x)=x-3g(x)=x−3, determine the domain of f(g(x))f(g(x))f(g(x)).
Show answer and explanation

Answer: D · Worked explanation

The composite is f(g(x))=1x−3f(g(x))=\frac{1}{x-3}f(g(x))=x−31​, and a denominator must not be zero, so x≠3x\ne3x=3. The restriction x≠0x\ne0x=0 belongs to fff on its own, so it does not apply to the composite. Negative values of x−3x-3x−3 are allowed, so the condition x>3x>3x>3 is too strict, and the domain is not all real numbers.
6.

Medium·Determine[2 marks]

Given f(x)=2x−1f(x)=2x-1f(x)=2x−1 and g(x)=x2g(x)=x^2g(x)=x2, solve g(f(x))=25g(f(x))=25g(f(x))=25.
Show answer and explanation

Answer: A · Worked explanation

The composite is g(f(x))=(2x−1)2g(f(x))=(2x-1)^2g(f(x))=(2x−1)2. Setting (2x−1)2=25(2x-1)^2=25(2x−1)2=25 gives 2x−1=52x-1=52x−1=5 or 2x−1=−52x-1=-52x−1=−5, so x=3x=3x=3 or x=−2x=-2x=−2. The values ±13\pm\sqrt{13}±13​ come from solving f(g(x))=25f(g(x))=25f(g(x))=25, which is the composite in the other order. The single answer x=3x=3x=3 misses the negative root of 25.
7.

Medium·Determine[2 marks]

Determine the inverse of f(x)=3x−12f(x)=\frac{3x-1}{2}f(x)=23x−1​.
Show answer and explanation

Answer: B · Worked explanation

Swap the variables to get x=3y−12x=\frac{3y-1}{2}x=23y−1​. Multiply by 2 to get 2x=3y−12x=3y-12x=3y−1, then add 1 and divide by 3, so y=2x+13y=\frac{2x+1}{3}y=32x+1​. The expression 2x−13\frac{2x-1}{3}32x−1​ forgets to reverse the subtraction. The expression 23x−1\frac{2}{3x-1}3x−12​ is 1f(x)\frac{1}{f(x)}f(x)1​, a reciprocal, not an inverse function.
8.

Hard·Determine[2 marks]

Given f(x)=x2−4f(x)=x^2-4f(x)=x2−4 for x≥0x\ge0x≥0, determine f−1(x)f^{-1}(x)f−1(x) and its domain.
Show answer and explanation

Answer: A · Worked explanation

Swapping gives x=y2−4x=y^2-4x=y2−4, so y=x+4y=\sqrt{x+4}y=x+4​, taking the positive root because fff has x≥0x\ge0x≥0. The domain of the inverse is the range of fff, which is y≥−4y\ge-4y≥−4. The domain x≥0x\ge0x≥0 is wrongly copied from fff. The negative root belongs to a different restriction.
9.

Hard·Determine[2 marks]

Given f(x)=2x+1f(x)=2x+1f(x)=2x+1 and g(x)=x−3g(x)=x-3g(x)=x−3, determine the inverse of the composite f(g(x))f(g(x))f(g(x)).
Show answer and explanation

Answer: D · Worked explanation

The composite is f(g(x))=2(x−3)+1=2x−5f(g(x))=2(x-3)+1=2x-5f(g(x))=2(x−3)+1=2x−5. Swapping gives x=2y−5x=2y-5x=2y−5, so 2y=x+52y=x+52y=x+5 and y=x+52y=\frac{x+5}{2}y=2x+5​. The answer x+22\frac{x+2}{2}2x+2​ comes from applying the inverses in the wrong order, using f−1f^{-1}f−1 after g−1g^{-1}g−1. The reciprocal 12x−5\frac{1}{2x-5}2x−51​ confuses the inverse with 1f\frac{1}{f}f1​.
10.

Hard·Determine[2 marks]

Given f(x)=3x+1f(x)=3x+1f(x)=3x+1 and g(f(x))=6x+5g(f(x))=6x+5g(f(x))=6x+5, determine g(x)g(x)g(x).
Show answer and explanation

Answer: B · Worked explanation

Let u=3x+1u=3x+1u=3x+1, so x=u−13x=\frac{u-1}{3}x=3u−1​. Then g(u)=6(u−13)+5=2(u−1)+5=2u+3g(u)=6\left(\frac{u-1}{3}\right)+5=2(u-1)+5=2u+3g(u)=6(3u−1​)+5=2(u−1)+5=2u+3, so g(x)=2x+3g(x)=2x+3g(x)=2x+3. Check: 2(3x+1)+3=6x+52(3x+1)+3=6x+52(3x+1)+3=6x+5. The answer 2x+52x+52x+5 replaces 3x3x3x with xxx and ignores the +1+1+1 inside fff, while 6x+56x+56x+5 is simply the composite itself, not g(x)g(x)g(x).

Keep going

Next topic2.8 Transformations of graphsPrevious topic2.6 The modelling process

More in Topic 2 · Functions

  1. 2.2Functions, domain and rangeNotes · 10 questions
  2. 2.3Graphs of functionsNotes · 10 questions
  3. 2.4Key features of graphsNotes · 10 questions
  4. 2.5Modelling with functionsNotes · 10 questions
  5. 2.6The modelling processNotes · 10 questions
  6. 2.7Composite and inverse functionsNotes · 10 questions· HL only
  7. 2.8Transformations of graphsNotes · 10 questions· HL only
  8. 2.9Further modelsNotes · 10 questions· HL only
  9. 2.10Scaling and linearizing dataNotes · 10 questions· HL only

All IB Mathematics: Applications and Interpretation topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/6 read

  1. 1A composite function feeds one function into another
  2. 2A composite function is only defined where both steps work
  3. 3An inverse function undoes the original function
  4. 4Finding an inverse means swapping variables and rearranging
  5. 5The graph of an inverse is a reflection of the graph of f
  6. 6Equations with composite and inverse functions use these rules
  7. Check your recall
  8. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe

A function and its inverse

y-1012345670246x
  • f, for x ≥ 0
  • Inverse of f
  • y = x
  • (1, 2) on f
  • (2, 1) on inverse