IB Maths AI HLFurther Functions & GraphsPaper 1 & 2Mappings, domain, range~8 min read
Functions & Mappings
A function is a special kind of mapping — every input has exactly one output. The rest of the topic is bookkeeping: which set of inputs are allowed (the domain), which outputs come out (the range), and how to write it all down using f(x) notation.
📘 What you need to know
A mapping takes inputs to outputs. Four types: one-to-one, many-to-one, one-to-many, many-to-many.
A function is a mapping where every input has exactly one output. So only one-to-one and many-to-one are functions.
Vertical line test: a graph is a function iff every vertical line crosses it at most once.
Notation: f(x) is the output for input x. If f(2) = 5 then the point (2, 5) is on the graph.
Domain = set of inputs (in terms of x); range = set of outputs (in terms of f(x)). Range depends on the domain.
Number sets: ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ. Default “largest domain” is x ∈ ℝ, restricted only by √x needing x ≥ 0, 1/x needing x ≠ 0, etc.
Mappings — the four types
A mapping sends each input to some output. The four types describe whether inputs can share outputs and whether one input can have several outputs. The first two are functions (one output per input); the last two are not.
Top row: each input has exactly one output — functions. Bottom row: at least one input has multiple outputs — not functions.
Functions, notation, domain and range
If f is a function and x is the input, then f(x) is the output. So f(2) = 5 puts the point (2, 5) on the graph of y = f(x). The domain is the set of allowed inputs — written in terms of x — and the range is the set of outputs that come out — written in terms of f(x). The range depends on the domain: shrinking the domain shrinks the range.
If no domain is stated, assume the largest possible domain — usually all real numbers, restricted only by features that block specific inputs: √x needs x ≥ 0, 1/x needs x ≠ 0, and similar.
Sketching helps: when the domain is restricted, the cleanest way to find the range is to sketch y = f(x) over the given x-interval. Check the endpoints and any turning points inside the interval.
Function notation and number setsf(x) = output when input is x; f(a) = b ⇔ (a, b) on the graph
ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ (naturals, integers, rationals, reals)
Piecewise functions
A piecewise function uses different rules on different intervals of x. To evaluate f(x): pick the rule whose interval contains x, then substitute. The intervals must not overlap, but together they make up the function’s domain.
A piecewise function may or may not be continuous at a boundary. To check at x = a, evaluate both pieces at the boundary value: if they agree, the function is continuous there; if they disagree, it has a jump.
🧠Recipe — finding the range from a given domain
Write down the function and the domain interval.
Check for turning points inside the domain (e.g. the vertex of a parabola).
Evaluate f(x) at the endpoints of the domain and at any turning points inside it.
Compare those values to find the smallest and largest outputs.
State the range as an inequality in f(x), e.g. −3 ≤ f(x) ≤ 6.
Worked examples
WE 1
Classify the mappings
Classify each as one-to-one, many-to-one, one-to-many or many-to-many, and state whether it is a function.
(a) x → 2x + 1 · (b) x → x2 · (c) x → ±√x
(a) distinct inputs give distinct outputs2(1)+1 = 3, 2(2)+1 = 5, … all different(a) one-to-one — function ✓(b) different inputs can share an output(−2)² = 2² = 4; one output, two inputs(b) many-to-one — function ✓(c) a single input gives two outputs4 → +2 and −2(c) one-to-many — not a function ✗
State the domain and range of f(x) = (x − 1)2 + 3.
no restrictions on inputdomain: x ∈ ℝparabola, vertex at (1, 3), opens upward(x − 1)² ≥ 0 for all x, so (x − 1)² + 3 ≥ 3range: f(x) ≥ 3the minimum 3 is reached at x = 1; no upper limit.
WE 4
Range from a restricted domain
Find the range of f(x) = x2 − 4x + 1 for 0 ≤ x ≤ 5.
vertex at x = −b/(2a) = 4/2 = 2 (inside domain)f(2) = 4 − 8 + 1 = −3 (minimum)check endpointsf(0) = 1f(5) = 25 − 20 + 1 = 6 (maximum)range: −3 ≤ f(x) ≤ 6when the vertex is inside the domain, the minimum is at the vertex; the maximum is at the farther endpoint.
WE 5
Largest possible domain
State the largest possible domain of f(x) = √(2x − 6).
the argument of a square root must be ≥ 02x − 6 ≥ 02x ≥ 6x ≥ 3largest domain: x ≥ 3other typical restrictions: 1/(…) needs … ≠ 0; log(…) needs … > 0.
WE 6
Piecewise function: evaluate and check continuity
For f(x) = {x2 if x ≤ 1; 3x − 2 if 1 < x ≤ 5; −x + 8 if x > 5}: (a) find f(0), f(3), f(10). (b) Determine whether f is continuous at x = 1 and at x = 5.
(a) pick the correct piece for each inputf(0): 0 ≤ 1 ⇒ f(0) = 0² = 0f(3): 1 < 3 ≤ 5 ⇒ f(3) = 3(3) − 2 = 7f(10): 10 > 5 ⇒ f(10) = −10 + 8 = −2f(0) = 0 · f(3) = 7 · f(10) = −2(b) compare both pieces at each boundaryat x = 1: 1² = 1 and 3(1) − 2 = 1 ⇒ equal, continuous ✓at x = 5: 3(5) − 2 = 13 and −5 + 8 = 3 ⇒ jump, not continuous ✗continuous at x = 1; not continuous at x = 5
💡 Top tips
Brackets save lives in f(x) substitution — especially for negative inputs.
Sketch first when finding the range over a restricted domain — turning points inside the interval are easy to miss.
When a function involves √, log, or 1/(…), flag the restrictions on x immediately.
For piecewise functions, the boundary value belongs to whichever piece’s interval includes it (look at ≤ vs <).
Domain is in terms of x; range is in terms of f(x) (or y).
âš Common mistakes
Claiming one-to-many mappings are functions — they fail the vertical line test.
Reading endpoints as the range automatically — a turning point inside the domain can be the true minimum or maximum.
Forgetting the restriction on √ or 1/(…) when stating the largest domain.
Choosing the wrong piece at a boundary value of a piecewise function (read the interval inequality carefully).
Swapping domain and range — domain is the inputs (x-values), range is the outputs (f(x)-values).
Next up: Graphing Functions & Their Key Features — sketching y = f(x) and identifying intercepts, turning points and asymptotes.
Need help with AI HL Functions?
Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.