In simple terms
A friendly intro before the formal notes — no formulas yet.
Functions: the machine that only ever gives one answer
A function is a rule that takes an input, does one predictable thing to it, and returns exactly one output. Master three ideas — which inputs are allowed (domain), which outputs come out (range), and how to run the rule backwards (inverse) — and you can describe, sketch and reverse almost any function on the course.
Picture a coffee machine with buttons. You press a button (the input ) and one specific drink comes out (the output ). It is a proper function because one button never pours two different drinks. The domain is the set of buttons that actually do something; the range is the collection of drinks you can end up holding. The inverse is the barista working backwards: shown the drink on the counter, they tell you which single button must have been pressed to make it.
- 1
Write the rule and check it is a function. In each input gives exactly one output, so it passes the vertical line test.
- 2
Fix the domain — the inputs you are allowed to use. Sometimes it is all real numbers; sometimes the equation forbids values (no dividing by zero, no square-rooting a negative); sometimes a real context restricts it (a length cannot be negative).
- 3
Read off the range — every output the rule can produce over that domain. A sketch or the GDC makes the smallest and largest outputs visible.
- 4
Reverse the rule to get the inverse: write , swap and , solve for . Its graph is the mirror image of the original in the line .
Explore the concept
Use the live diagram, PhET or GeoGebra sim, and synced steps — play it, drag controls, or tap a step.
Step 1
Write the rule and check it is a function. In each input gives exactly one output, so it passes the vertical line test.
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Full topic notes
Formal explanation with the rigour you need for the exam.
Function notation and the idea of a function
A function is a rule that assigns to each input exactly one output. We write , read as ' of ', where names the rule and is the input; the whole symbol is the output. So means 'put into the rule' — for it gives . The one rule that must never be broken is that a single input cannot lead to two different outputs. Graphically this is the vertical line test: if any vertical line meets the graph more than once, that would have two -values, so the graph is not a function.
is an output, not a product. means apply the rule to ; it does not mean .
Vertical line test: a graph is a function exactly when every vertical line crosses it at most once.
Substitution is everywhere: evaluating , solving for intercepts, and finding intersections all start from careful substitution into the notation.
Domain and range
The domain is the set of allowed inputs — every you may feed the rule. The range is the set of outputs — every the rule actually produces over that domain. For the domain can be all real numbers, , but the range is only , because squaring never gives a negative. Two things can limit a domain. The algebra forbids some inputs — you cannot divide by zero, so excludes , and you cannot square-root a negative, so needs . A real context forbids others — a length, a time after an event or a number of items cannot be negative.
Reading the range from a graph is a genuine exam skill, not a formula. Find the turning points and the behaviour at the ends. A parabola with a minimum at that opens upward reaches every height at or above , so its range is . If the domain is restricted, the range shrinks with it: the same parabola on (its right half only) still has range , but on it runs from the minimum up to .
Read the range from the graph: the lowest and highest heights the curve reaches are the ends of the range. The GDC is ideal for seeing them.
Watch for forbidden inputs: division by zero and square roots of negatives are the usual reasons a domain is not all of .
Choose a sensible domain for a model: let the context set the limits — for example for time, and an upper limit if the model only makes sense until the ball lands or the tank empties.
The inverse function
The inverse of , written , runs the process backwards. If takes to — that is — then takes back to , so . Because inputs and outputs trade places, the domain of is the range of and the range of is the domain of . Not every function can be reversed cleanly: it must be one-to-one, meaning each output comes from a single input, which you can check with the horizontal line test. To build the inverse algebraically, undo the rule step by step by swapping and and solving.
To find the inverse of algebraically: \n 1. Write the function as . \n 2. Swap the variables and . \n 3. Rearrange to make the subject. \n 4. Replace with .
The domain of is the range of ; the range of is the domain of .
A function has an inverse function only if it is one-to-one (passes the horizontal line test).
The swap is the method: interchanging and is the step the marker looks for. Solving before swapping is the usual error.
The single most common error in this topic is confusing the inverse with the reciprocal . They are different rules. For the inverse is , but the reciprocal is — check by composing: must return , and does not.
Graphs of functions and their inverses
There is a clean geometric picture behind all of this: the graph of is the reflection of in the line . It follows directly from the coordinate swap — every point on the original becomes on the inverse, and reflecting in is precisely the transformation that interchanges the two coordinates. That is why the two graphs always meet the line symmetrically, and it gives you a quick way to sketch an inverse without any algebra.
To sketch an inverse, first draw the line as a mirror.
Take a few clear points on , such as , and plot the swapped points .
Join the swapped points into a curve that is the mirror image of the original in .
On Paper 1 you may be asked to sketch the inverse: rule in the line and plot reflected points carefully. On Paper 2, graph both and its inverse on the GDC, add , and confirm the reflection — a fast, reliable check on your algebra.
Using the GDC to graph and find key features
On Paper 2 the calculator is the tool of choice for graphs. Enter a function to see its shape, then use the built-in features to read off what a question asks for. The 'zero' (or root) feature gives the -intercepts — where ; evaluating gives the -intercept. The 'maximum' and 'minimum' features locate turning points, which is exactly how you find the ends of a range. And the 'intersect' feature finds where two graphs meet — the graphical way to solve . In each case, quote the coordinates the GDC returns to the accuracy the question requires, usually 3 significant figures.
Intercepts: use 'zero' for -intercepts and evaluate for the -intercept.
Maxima and minima: the turning-point features give the highest and lowest outputs — the range endpoints for many functions.
Intersections: graph both curves and use 'intersect' to solve ; there may be more than one solution, so scan the whole window.
Accuracy: write down what the screen shows to 3 s.f. unless told otherwise, and keep full figures for any later step.
Common mistakes examiners penalise
Writing as — the inverse is not the reciprocal. Find it by swapping and and solving, then check that .
Solving before swapping — the method mark for an inverse is the interchange of and . Rearranging first and swapping the labels at the end usually loses it.
Giving domain and range with the wrong variable — use for the domain (inputs) and or for the range (outputs); do not report a range as an -inequality.
Reading the range as the domain from a graph — the range is a set of heights (-values). Look at how high and low the curve reaches, not how far left and right it goes.
Ignoring the context of a model — a real-world domain is limited by meaning: time satisfies , and often an upper limit too (until the ball lands). Do not default to all real numbers.
Forgetting the domain–range swap for inverses — the domain of is the range of , and the range of is the domain of ; do not just reuse the original set.
Assuming every function has an inverse — a many-to-one function (like on all of ) needs its domain restricted first; check the horizontal line test.
Reporting only one GDC intersection — can have several solutions. Look across the whole graph and give every intersection the question asks for, to 3 s.f.
Model answer — marked the way our engine marks it
In IB Mathematics the marks are analytic: each is tied to a specific line of working. A method mark (M) rewards a correct approach; an accuracy mark (A) rewards a correct result and depends on the method mark it follows, so an A-mark cannot be earned without its M-mark. Follow-through (FT) means an earlier slip need not cost the marks that depend on it, provided the later step is carried out correctly on your own figures. On Paper 2, GDC graphing is expected, but an instruction to find still requires the algebraic swap-and-solve. Study how each mark below is earned by a specific line — that is exactly how the Practice button will mark your own attempt.
Where this leads
Domain, range and inverse are the grammar of every function you will meet next. Reading a range from a graph is exactly the skill you reuse for the outputs of exponential, logarithmic and trigonometric models; the reflection in reappears when the logarithm is introduced as the inverse of the exponential; and the discipline of choosing a sensible domain is what makes a real-world model trustworthy. Above all, the habit of showing method — write the rule, swap, solve, and quote the GDC to the stated accuracy — is the discipline every function question on both papers rewards. Get the three headlines right — allowed inputs, produced outputs, and the process reversed — and the rest of the functions strand becomes variations on ideas you already control.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A function is defined by for the domain . (a) State the range of . (b) Write down the coordinates of the vertex. [4]
- 1
(a) Range. The rule is a quadratic in vertex form , so its vertex is at and, because the coefficient of is positive, the parabola opens upward. The domain is exactly the right-hand half of the parabola starting at the vertex, so the smallest output is the vertex value and outputs increase without bound from there. [M1: identify the minimum/vertex value]\nRange: (equivalently ). [A1]\n\n**(b) Vertex.** Comparing with gives , . [M1: compare with vertex form]\nVertex: . [A1]
Let . (a) Find the inverse function . (b) The domain of is . Find the range of . [5]
- 1
(a) Inverse. Write the rule as .\nSwap and : . [M1: swap and ]\nSolve for :\n\n. [A1]\nSo . [A1]\n\n**(b) Range of the inverse.** The range of equals the domain of . [M1: use the domain–range swap]\nThe domain of is , so the range of is . [A1]
For , find , and use your GDC to find where if . [5]
- 1
Model answer — full working.\n\nInverse of . Write the rule as .\nSwap and : .\nSolve for :\n\n\nSo \n\nIntersection of and . Graph and on the GDC and use the intersect feature. Solving , i.e. , the two graphs meet at\n\n(The corresponding points are approximately and .)\n\n---\nHow our marking engine awards the 5 marks:\n\n- M1 — swap. A method mark for interchanging and : writing from . This is the defining step of finding an inverse, so it is rewarded even if the rearrangement that follows slips.\n- A1 — inverse. Awarded for , correctly solved for . This accuracy mark depends on the M1 above and accepts any equivalent form, such as .\n- M1 — use the GDC intersect. A method mark for setting up the intersection — graphing both and and using intersect (or equivalently solving ). It is the approach that earns the mark, so it survives a rounding slip in the values.\n- A1 — first value. Awarded for (3 s.f.).\n- A1 — second value. Awarded for (3 s.f.). The two A-marks are independent, so a candidate who finds one root correctly still banks its mark; both are FT on the candidate's own correctly-read GDC screen.\n\n**'Accept equivalent forms and correct rounding.'** The engine accepts the inverse in any equivalent algebraic form, and accepts the intersection values as coordinates or as -values, provided they are correctly rounded (e.g. or depending on the GDC, and ). Once the correct answers appear, ignore subsequent working (ISW) means a later restatement does not lose marks.\n\nBottom line: of the 5 marks, two are method marks that survive an arithmetic or rounding slip, and the accuracy marks are shielded by follow-through — but only if the swap step and the GDC set-up are written down. A candidate who jumps straight to and a single intersection risks losing the method mark and one of the two answer marks.
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
Function
A rule that assigns to each input in the domain exactly one output. 'Exactly one' is the whole point: an input that could give two outputs is not a function.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
is an output, not a product. means apply the rule to ; it does not mean .
- ✓
Vertical line test: a graph is a function exactly when every vertical line crosses it at most once.
- ✓
Substitution is everywhere: evaluating , solving for intercepts, and finding intersections all start from careful substitution into the notation.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Get a Paper 2 functions question marked: find an inverse and use the GDC to find intersections, with full working
Get a Paper 2 functions question marked: find an inverse and use the GDC to find intersections, with full working
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Get a Paper 2 functions question marked: find an inverse and use the GDC to find intersections, with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.