In simple terms
A friendly intro before the formal notes — no formulas yet.
Function Machines: Inputs, Outputs, and Reversing the Process
A function is a machine: put an allowed input in (the domain) and exactly one output comes out (the range). You can feed one machine's output into another (composite functions), and if the machine never sends two inputs to the same output, you can build a machine that runs it backwards (the inverse).
Think of a recipe. The ingredients you are allowed to use are the domain, and the finished dishes you can make are the range. A composite function is using your finished cake as an ingredient in a trifle — the order matters, because a trifle made from cake is not the same as a cake made from trifle. An inverse function is looking at the finished trifle and working backwards to recover the exact original ingredients, which is only possible if no two ingredient lists ever produce the same trifle.
- 1
Identify the allowed inputs (domain). Watch for the two no-go zones: never divide by zero, and never take an even root of a negative number.
- 2
Determine the possible outputs (range). Think about what the rule does — squaring is never negative, a reciprocal is never zero — and use minima, maxima and asymptotes.
- 3
For a composite , work from the inside out: substitute the whole expression for the inner function into every of the outer function .
- 4
For an inverse, first check the function is one-to-one; then write , swap and , and solve for .
Explore the concept
Use the live diagram, PhET or GeoGebra sim, and synced steps — play it, drag controls, or tap a step.
Step 1
Identify the allowed inputs (domain). Watch for the two no-go zones: never divide by zero, and never take an even root of a negative number.
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, mappings and one-to-one
A function is a rule that maps each input in its domain to exactly one output. We write for the output when the input is , and for the mapping itself. The single-output requirement is the whole point: a rule that could send one input to two different outputs is not a function. Functions are then classified by how outputs are shared. A function is one-to-one if every output comes from exactly one input, and many-to-one if some output is produced by two or more different inputs. This distinction decides later whether an inverse can exist.
Function: each input gives exactly one output. Graphically it passes the vertical line test — no vertical line meets the graph twice.
One-to-one: each output comes from exactly one input; the graph passes the horizontal line test. Example: .
Many-to-one: at least one output comes from several inputs. Example: , where and both map to .
Only one-to-one functions can be inverted over their whole domain — this is why the classification matters.
Domain and range: the function's boundaries
The domain is the complete set of permitted inputs; the range is the complete set of outputs the function actually produces. When finding a domain in SL Maths, watch for the two standard restrictions: you may never divide by zero, and you may never take an even root (such as a square root) of a negative number. Finding a range is about what the rule does to its inputs — squaring can never give a negative, a reciprocal can never give zero — so look for maxima, minima and asymptotes.
For , the domain excludes every with .
For , the domain requires .
Find the range by tracking the outputs across the whole domain — use turning points, end behaviour and asymptotes.
Set notation is expected: e.g. for a domain, for a range.
Composite functions: a chain reaction
A composite function is formed when the output of one function becomes the input of another. The notation reads 'f composed with g of x' and means: apply first, then feed its result into . You build it by substituting the whole expression for into every of , working from the inside out.
(f\circ g)(x) = f(g(x))
Order is everything. applies first, then ; applies first, then . These almost always give different expressions, so before substituting, write down which function is the inner one. Getting the order backwards is one of the most common ways to lose the accuracy mark here.
Inverse functions: reversing the process
An inverse function undoes the action of : if maps to , then maps back to . For an inverse to exist over the whole domain, must be one-to-one — otherwise a single output would have to map back to two different inputs, which no function is allowed to do. You can test this graphically with the horizontal line test. To find the inverse algebraically, write , swap and , and solve for ; swapping the variables is precisely what reverses input and output.
Existence: exists only if is one-to-one (horizontal line test). A many-to-one function needs its domain restricted first — e.g. restrict to .
Algebra: write , swap and , solve for ; then .
Domain and range swap: domain of = range of ; range of = domain of .
Graph: is the reflection of in the line ; every point becomes .
Cancellation: and — composing a function with its inverse returns the input.
Common mistakes examiners penalise
Reversing the order of composition — applies first. Writing instead loses the accuracy mark, because and are almost never equal.
Reading as a reciprocal — the inverse function is not . The is inverse-function notation, not a power.
Forgetting that the domain of is the range of — you cannot just keep the original domain; the domain and range swap when you invert.
Inverting a many-to-one function without restricting the domain — has no inverse until you restrict it (e.g. to ); state the restriction.
Ignoring domain restrictions on a composite — the inner output must be a valid input for the outer function, so needs , not all reals.
Missing the exclusions when finding a domain — forgetting to exclude values that make a denominator zero, or to require the expression under an even root to be .
Sloppy or missing set notation — write domains and ranges properly, e.g. , rather than a vague phrase; examiners expect the notation.
Model answer — marked the way our engine marks it
In Paper 1 the marks are analytic: each is tied to a specific line of working. A method mark (M) rewards a correct approach — a valid substitution or a sound rearrangement — even if the arithmetic later slips. An accuracy mark (A) rewards a correct result and is dependent on the corresponding method being present. IB conventions also let follow-through (FT) protect a later mark that is correctly worked from an earlier (possibly wrong) value, allow 'ignore subsequent working' (ISW) once a correct answer is seen, award an answer that is given (AG) only when the full derivation is shown, and accept any equivalent correct form. Study how each mark below is earned by one specific line.
Where this leads
Functions are the backbone of the rest of the course. The domain-and-range skills reappear the moment you meet rational, exponential and logarithmic functions, each with its own restrictions and asymptotes. Composition underlies the chain rule in calculus, where differentiating is exactly unpicking a composite. Inverses return with logarithms as the inverse of exponentials and with inverse trigonometric functions, and the reflection in is the graphical fingerprint of every one of them. Master the habit — classify the function, state the domain and range in set notation, respect the order of composition, and check one-to-one before inverting — and the functions work throughout the course becomes variations on a method you already own.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
Consider . Find the domain and range of . [4]
- 1
Domain — avoid division by zero. The denominator is . Set it to zero: . [M1: identify the excluded value] The function is defined for every real number except . Domain: . [A1]
Let and . (a) Find an expression for . (b) Find the value of . [4]
- 1
(a) — substitute into . Here is the inner function. [M1: substitute the whole of into ] . [A1]
Let . Find the inverse function . [4]
- 1
First note is one-to-one (a cubic through a single stretch and shift), so an inverse exists. Let : . Swap and : [M1: correct method — swap the variables] . Solve for : [A1: isolate the term in ] . [A1] Therefore . [A1: final answer, accept equivalent forms]
Given and , find and . [5]
- 1
Model answer — full working.
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.
What is a function?
A rule (mapping) that assigns to every input in its domain exactly one output. If a single input could give two different outputs, it is not a function.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
Function: each input gives exactly one output. Graphically it passes the vertical line test — no vertical line meets the graph twice.
- ✓
One-to-one: each output comes from exactly one input; the graph passes the horizontal line test. Example: .
- ✓
Many-to-one: at least one output comes from several inputs. Example: , where and both map to .
- ✓
Only one-to-one functions can be inverted over their whole domain — this is why the classification matters.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Get a Paper 1 question marked: find a composite and an inverse with full working
Get a Paper 1 question marked: find a composite and an inverse 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 1 question marked: find a composite and an inverse with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.