IB Mathematics: Analysis and Approaches · Topic 2 · Functions
2.5 Composite and inverse functions
Form composite functions, find inverse functions, use the notation correctly and solve equations that involve either.
1/6A composite function feeds one output into another
- A composite function feeds one output into another
- Order matters, and the inner function limits the domain
- An inverse function undoes what the original does
- Swapping the variables and rearranging finds the inverse rule
- Only one-to-one functions have inverse functions
- Equations with composites and inverses reduce to simpler equations
- Check your recall
- Practice: 10 questions
Part 1 of 6: A composite function feeds one output into another
Picture two machines in a row. The first doubles a number, and the second adds 3. Feed in 4 and the first gives 8, then the second gives 11.
A composite function works the same way. We write for . This means apply first and then .
Any chain of steps can be described this way, such as converting a price and then adding a fixed fee. Say aloud as “ after ”.
For the machines above, let and . Then . Check with : .
Key term
composite function
A composite function uses the output of one function as the input of another.
Part 2 of 6: Order matters, and the inner function limits the domain
Now swap the order of the machines. With and , we get . This differs from , so and are usually not equal.
Do not confuse with the product . The first chains the functions. The second multiplies their outputs.
The inner function also controls which inputs are allowed. An input to must lie in the domain of . Its output must then lie in the domain of .
Worked example
Find a composite function and its domain
- Apply first: .
- Put this into : .
- A square root needs a non-negative input, so .
- Therefore .
Answer: , with domain .
Compare the other order. Here , which needs only . Different orders can change the domain as well as the rule.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 6: An inverse function undoes what the original does
Composition also helps us undo a function. If doubles a number and adds 3, the reverse subtracts 3 and halves.
The inverse function of is written . It sends each output of back to the input that produced it. So and .
In terms of pairs, if , then . The inverse swaps the roles of input and output.
Not every function has an inverse. A function must pair each output with a single input before it can be reversed. Later sections show when this holds.
Key term
inverse function
An inverse function reverses the input-output pairs of a function on a domain where each output has one input.
Part 4 of 6: Swapping the variables and rearranging finds the inverse rule
To find the inverse rule, follow the same idea in four steps.
- Write .
- Swap and .
- Rearrange to make the subject.
- Write the result as .
Take care when appears in a denominator. Collect all the terms on one side and then factorise.
Worked example
Find an inverse function
- Write .
- Swap the variables: .
- Clear the fraction: , so .
- Collect the terms: , so .
- Divide by : .
Answer: , for .
The domain of is the range of . The range of is the domain of . Here needs , so never gives an output of 2.
Test the answer with one value. We have , and , as it should.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 5 of 6: Only one-to-one functions have inverse functions
The swap method fails for some functions. Take , where both 3 and -3 give 9. Reversing 9 would need two answers, which a function cannot give.
A one-to-one function gives each output from exactly one input. The horizontal line test checks this on a graph. If any horizontal line cuts the graph twice, there is no inverse function.
We can often restrict the domain to repair this. Taking makes one-to-one, so .
The graph of is the reflection of the graph of in the line . Points on become points on .
Key terms · tap one for its definition
one-to-one function
A one-to-one function is a function in which each output value comes from exactly one input value.
horizontal line test
The horizontal line test states that a function is one-to-one exactly when no horizontal line meets its graph more than once.
Part 6 of 6: Equations with composites and inverses reduce to simpler equations
Now we can solve equations built from these ideas. To solve , first write out the composite rule. Then solve the resulting equation in the usual way.
Worked example
Solve a composite equation
- Write the composite: .
- Simplify: .
- Set it equal to 11: , so .
- Take square roots: .
Answer: .
An equation such as needs no inverse rule. It says . If and , then , so .
Check each answer against the domain of the inner function. Reject any value that is not allowed.
Check your recall[15 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Write down[1 mark]
Write down what means in terms of and .
Show mark schemeHide mark scheme
Model answer
, so is applied first and then .
- 1 mark for writing , with applied first
- 2.Calculate[3 marks]
Let and . Calculate and .
Show mark schemeHide mark scheme
Model answer
, so . Also , so .
- 1 mark for finding and using it in to get 9
- 1 mark for finding
- 1 mark for using 7 in to get 48
- 3.Determine[3 marks]
Determine for .
Show mark schemeHide mark scheme
Model answer
Write and swap to get . Rearranging gives , so .
- 1 mark for swapping and
- 1 mark for rearranging to make the subject
- 1 mark for stating
- 4.Explain[3 marks]
Explain why for all real has no inverse function, and how restricting the domain fixes this.
Show mark schemeHide mark scheme
Model answer
Different inputs such as 3 and -3 give the same output 9, so the function is not one-to-one and cannot be reversed. Restricting the domain to makes it one-to-one.
- 1 mark for stating that two different inputs, such as 3 and -3, give the same output
- 1 mark for concluding that the function is not one-to-one, so it cannot be reversed
- 1 mark for restricting the domain, for example to , so that the function is one-to-one
- 5.Determine[3 marks]
Let and . Determine the value of for which .
Show mark schemeHide mark scheme
Model answer
. Setting gives .
- 1 mark for writing
- 1 mark for simplifying to
- 1 mark for solving to obtain
- 6.Deduce[2 marks]
Let . Deduce the value of without finding the rule for .
Show mark schemeHide mark scheme
Model answer
If , then . So , which gives .
- 1 mark for stating that means
- 1 mark for solving to get

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.
EasyIdentify[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumCalculate[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: A · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: C · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation