Functions: domain, range, 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.
★HL extension
Extra depth for HL: harder worked examples and HL-standard exam questions.
At HL (AHL 2.14) you must be able to make a function one-to-one by restricting its domain, find the inverse with the correct domain and range, and work carefully with the domains of composite functions.
Restricting the domain to find an inverse
A function has an inverse only if it is one-to-one (it passes the horizontal line test). A quadratic is not one-to-one on , but it is on either side of its vertex. Complete the square to find the vertex, restrict the domain to one side, then invert.
Domains of composite functions
is defined only where is defined and lies in the domain of . Find the domain from the composite rule and the original domains, not just from the simplified formula.
If is increasing, its graph and the graph of can only meet on the line . So can be solved as , which is much easier. (For decreasing functions this shortcut can miss solutions.)
HL exam-style questions
Let , .
- (a)Find the least value of for which has an inverse function.[2]
- (b)For this value of , find and state its domain.[4]
| (a) | |
| M1 | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| A1 | |
| A1 | |
Let , , and , .
- (a)Find an expression for .[1]
- (b)Find the largest possible domain of .[3]
- (c)Write down the range of .[1]
| (a) | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| or | A1 |
| (c) | |
| A1 | |
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 | Q2 | Read values and domain of an inverse and solve an inverse equation | ★☆☆ |
| May 2024 · TZ2 · Paper 1 | Q5 | Analyse a rational function and its inverse from a graph | ★★☆ |
| Nov 2024 · Paper 1 | Q6 | Solve quadratic inequality; find largest domain for invertibility | ★★☆ |
| May 2025 · TZ1 · Paper 1 | Q10 | Rewrite, sketch and solve inequalities for quadratic and log composites | ★★★ |
