Functions, composite & inverse
What a function is, its domain and range, combining functions, and finding and graphing inverse functions.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Use function notation and evaluate functionsSL 2.2
- Find the domain and range of a functionSL 2.2
- Find composite functions SL 2.5
- Find the inverse function SL 2.2, 2.5
- Know that the graph of is the reflection of in SL 2.2
- Know that , and that the domain and range swapSL 2.5
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
A function is a rule that turns each input into exactly one output. You can chain functions together (composite functions) and reverse them (inverse functions), and the domain and range tell you which inputs and outputs are possible.
2.1 Domain and range
Think of a function as a machine. You put in a number, the machine follows its rule, and one number comes out. means "double the input, then add 1", so .
A function gives exactly one output for each input. The domain is the set of allowed inputs; the range is the set of outputs. Look out for square roots (the inside must be ), fractions (the denominator cannot be 0) and logarithms (the inside must be ).
Some inputs are not allowed because the rule breaks. You cannot divide by zero, and (for real numbers) you cannot take the square root of a negative number or the logarithm of zero or a negative number. These are the usual reasons for restricting the domain. On a graph, the domain is the spread of the graph across the -axis, and the range is its spread up the -axis.
2.2 Composite functions
Apply first, then . In general .
is read from the inside out: the output of becomes the input of . The order matters, and in general and are different. For example, "square then add 1" is not the same as "add 1 then square".
2.3 Inverse functions
If is "double, then add 1", its inverse reverses each step in the opposite order: "subtract 1, then halve". So and . In general .
The inverse undoes . To find it: write , make the subject, then swap and . The domain of is the range of , and . The graph of is the reflection of in the line .
An inverse only exists if each output comes from just one input, so that you know which input to go back to. sends both 3 and to 9, so it has no inverse unless the domain is restricted, for example to . This is a one-to-one function. On a graph, the graph of is the reflection of in the line , because swapping and swaps the coordinates of every point.
Define a function: menu → 1: Actions → 1: Define, e.g. Define f(x)=2x+1. Then f(g(3)) evaluates a composite. On a Graphs page, plot , and your inverse to check that they are reflections.
3Explore it
Choose a function. Move the point P along it: its reflection in lies on the inverse.
4Common mistakes & exam tips
Common mistakes
- Doing a composite in the wrong order: means first.
- Confusing with .
- Forgetting to swap and at the end when finding an inverse.
- Giving the domain of as the domain of : it is the range of .
Exam tips
- To find for a number , you can solve instead of finding the whole inverse.
- Points where meets usually lie on , so solve .
- State domain restrictions with your inverse, e.g. .
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.
and .
- (a)Find .[2]
- (b)Find .[2]
- (c)Solve .[2]
| (a) | |
| A1 | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| (c) | |
| M1 | |
| A1 | |
, .
- (a)Write down the range of .[1]
- (b)Find .[2]
- (c)Write down the domain of .[1]
- (d)The graphs of and meet at one point. Find its -coordinate.[2]
| (a) | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| (c) | |
| A1 | |
| (d) | |
| Solve , i.e. | M1 |
| A1 | |
A liquid is heated. Its temperature in °C after minutes is . Temperatures convert to °F using .
- (a)Find .[2]
- (b)Find the time when the temperature is 104 °F.[2]
- (c)Find .[1]
| (a) | |
| M1 | |
| A1 | |
| (b) | |
| M1 | |
| minutes | A1 |
| (c) | |
| A1 | |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2025 · TZ3 · Paper 1 | Q3 | Read f(-3) from graph, domain of inverse, solve f⁻¹(2x-7)=-3 | ★☆☆ |
| May 2023 · TZ2 · Paper 1 | Q6 | Two possible linear f with (g∘f)(x) = 4x² − 14x + 15 | ★★☆ |
| May 2021 · TZ2 · Paper 2 | Q5 | Range of 6x² − 12x + 1; set of c with (g∘f)(x) ≤ 0 for all x | ★★☆ |
| Nov 2022 · Paper 1 | Q7 | Vertex form from vertex and root; find parameters, range, distinct intersections | ★★★ |
