IB Diploma Programme · Maths AI Higher Level

Functions

Cover illustration for Functions (Maths AI Higher Level (HL)).
IBDP · Maths AI HL

Functions

AI HL Topic 2: Functions (SL2.1-SL2.5 function basics, modelling, key features; AHL2.6-AHL2.7 composite/inverse functions and transformations); sinusoidal graph work cross-refs AHL3.7 (Geometry & Trigonometry, circular functions)

34 min readAdvanced~15-20% of AI HL assessment (Topic 2: Functions) — rarely tested alone, usually fused with Topic 1 algebra or as the stem of a Paper 2 modelling question

Functions is the topic examiners lean on to test whether you actually understand algebra or just recognise patterns — every rational-function inverse, every transformed graph, every sinusoidal tank/tide model is really asking the same three questions: can you undo a mapping, can you track what , , , do to a graph, and can you read amplitude/period/asymptote straight off a picture. Get comfortable with those three and this topic stops being three subtopics and becomes one recurring skill.

Overview

At HL, Functions sits on top of the SL content (domain, range, key features, modelling) and adds two genuinely new tools: composite/inverse functions with domain restrictions, and a fully general transformation equation . Both get tested through rational functions (asymptotes, self-inverse shortcuts) and through trigonometric models (amplitude, period, principal axis).

  • Functions and their properties: domain/range, one-to-one vs many-to-one, inverse functions, composite functions, asymptotic behaviour of rational functions.
  • Transformations: the single equation covers every translation, stretch and reflection you'll ever be asked to apply.
  • Trigonometric functions: sin/cos/tan graphs, amplitude-period-vertical shift, and solving trig equations over a restricted domain — the go-to tool for anything periodic.

The shape of the chapter

Command terms that decide your mark

Command termWhat it demandsAOMark-earning move
Write downState a result with no working required — read directly from GDC or given info.AO11 mark for the correct value/equation alone; there's no method mark to fall back on if it's wrong.
Show thatProve a given result algebraically — the answer is already known, so every step must be visible.AO2Marks awarded per legitimate step; jumping straight to the printed answer loses marks even if it's correct.
HenceUse the previous part's result directly.AO2A fresh method that ignores the earlier answer scores zero, even if mathematically valid.
JustifyGive an algebraic or logical reason, not a description of the graph.AO2/AO3"It looks one-to-one on the graph" with no algebra typically earns 0 of the available marks.
SketchShow general shape and key features — intercepts, asymptotes, endpoints — not an accurate scale drawing.AO1Marks for each correctly labelled feature; a missing asymptote or endpoint loses a mark even if the curve shape is right.
Determine / FindObtain the answer via calculation or GDC, with working shown.AO1/AO2Method marks are available even with a wrong final value, provided the working is legible.

Key point

The whole topic reduces to three moves: (1) find/use , (2) transform a graph via , (3) match amplitude/period/asymptotes to a real-world context. Nearly every exam question is one of these, or two stitched together.

Functions and Their Properties

A function is a mapping where every input gives exactly one output — that's non-negotiable. What HL adds is the requirement to justify structural claims (one-to-one, invertibility) with algebra rather than a glance at a graph, and to handle rational functions where asymptotes control both the domain/range and whether an inverse is 'nice'.

  • Domain comes from what makes the formula undefined: denominators equal to zero, negative numbers under square roots, or a context restriction (e.g. for time).
  • Range is read from the actual graph, not assumed — a rational function's range typically excludes its horizontal asymptote value.
  • One-to-one must be proved algebraically for 'Justify' questions: assume and show this forces .
  • Finding : replace with , swap , solve for , then state the domain of as the range of — this last step is the one everyone forgets under time pressure.

Vocabulary you must use precisely

Function
A relation where every input maps to exactly one output.vertical line test
Domain
The full set of permitted -values — check denominators and roots before assuming .
Range
The full set of output values actually produced — read off the graph, especially around asymptotes.
One-to-one function
; passes the horizontal line test. Required before an inverse function exists without restricting the domain.
Inverse function
Undoes : . Found by swapping and solving; graphically it's the reflection of in .
Composite function
Apply first, then : . Order matters.
Self-inverse function
, so . For this happens exactly when .
Asymptote
A line the graph approaches but never reaches; controls both domain (vertical) and range (horizontal).

The rational-function toolkit

read both asymptotes directly off the coefficients — no long division needed

Memorise

shortcut for 'show ' questions — check this before grinding through algebra

domain of is the set of in the domain of for which lies in the domain of

swapped, not equal — the single most tested consequence of the reflection in

general exponential growth () or decay () model

— initial value at $t=0$
— growth/decay factor per unit time

Asymptotes of a rational function

Both branches hug the asymptotes but never cross them — this is exactly why the range excludes y = 2.

x = 3 (vertical asymptote)y = 2 (horizontal asymptote)y = f(x)x-intercept (-0.5, 0)y-intercept (0, -1/3)

Worked example

Asymptotes and inverse of a rational function (Q1-style)

[2]
for . (a) Write down the equations of the asymptotes. (b) Find .

Worked example

Proving one-to-one algebraically, then inverse and range (Q4-style)

[3]
, . (a) Justify that is one-to-one. (b) Find , stating its domain, and hence state the range of .

Worked example

Inverse of a square-root function, and where f meets f⁻¹ (Q3-style)

[4]
, . (a) Show is one-to-one and find , stating its domain and range. (c) Show that and intersect only on the line , and find that point.

Worked example

Exponential growth: solving for the rate constant (Q6-style)

[2]
models bacteria after hours, . After 3 hours, . (a) Find . (b) Find the time to reach bacteria, to 3 s.f.

The parent functions you're expected to recognise instantly

FunctionGeneral formDomainRangeKey feature
Linearconstant gradient
Quadraticone-sided from the vertexvertex, axis of symmetry
Exponential (if )horizontal asymptote
Rational (linear/linear)vertical asymptote , horizontal
Sinusoidalperiodic, period

Don't mix these up

Concept AConcept BThe distinction that matters
Inverse function Reciprocal undoes the mapping (swap , solve); the reciprocal just divides 1 by the output — completely different functions in general.
One-to-one functionMany-to-one functionOne-to-one passes the horizontal line test and only these have a true inverse without restricting the domain — many-to-one needs a restricted domain first.
Domain of Range of Domain of = range of ; range of = domain of — swapped, not identical.

Common mistake

Isolating correctly in a restricted-domain inverse (e.g. ) but forgetting to state before squaring .

Consequence: Markschemes typically split 3-4 marks across swap/algebra/domain — an unrestricted or sign-ambiguous inverse usually loses the domain mark even if the algebra is otherwise perfect.

Fix: The moment you isolate the square root (or any restricted expression), write down its sign restriction on the same line, before squaring or continuing the algebra.

Examiner tip

For 'state the asymptotes' worth 2 marks, write both as full equations — 'x = 3' and 'y = 2' — not just the bare numbers. One mark per correctly-written equation; '3, 2' with no letters can be marked as only 1/2.

Real-world application

Exponential models like describe bacterial cultures, viral spread and compound interest — but real cultures hit a food/space ceiling and growth flattens out (logistic behaviour). That's exactly why exam questions often add a part asking you to critique the model's long-term prediction: unbounded exponential growth is never realistic forever.

Key takeaways

  • Domain/range come from the graph's actual behaviour, not assumption — check asymptotes and endpoints.
  • Prove one-to-one algebraically (assume , show ) rather than eyeballing the graph.
  • To find : swap and , solve for , then state the domain (= range of ).
  • For : vertical asymptote , horizontal asymptote , self-inverse exactly when .

Transformations of Functions

Every transformation you'll ever be asked about is one instance of . The trick isn't memorising four separate rules — it's correctly identifying , , , from whatever form the equation is given in, especially when and are tangled together un-factorised.

  • (outside, added last): vertical translation — up if , down if .
  • (outside, multiplying ): vertical stretch by factor ; reflection in the -axis if .
  • (inside, subtracted from ): horizontal translation — right if , left if . Always identify from the factorised form .
  • (inside, multiplying ): horizontal stretch by factor — a bigger compresses the graph; reflection in the -axis if .
  • When a question gives you key points on rather than a formula, transform the coordinates directly: .

The master equation

every translation, stretch and reflection is this equation with different values of

Memorise

how a key point on maps to a point on

works even when you never write down 's equation

Transforming a piecewise graph point-by-point

Each vertex shifts right 1, then its height doubles and drops by 2 — the image is not a rigid shift, it's stretched too.

y = g(x)y = 2g(x-1) - 2P(-1,1) -> P'(0,0)Q(1,5) -> Q'(2,8)R(3,3) -> R'(4,4)S(5,1) -> S'(6,0)

Worked example

Transforming key points without ever finding g's equation

[4]
The graph of passes through , , , . Find the coordinates of the images of these points on .

Six transformations, one pattern

TransformationEquation (from )Effect on point Effect on graph
Vertical translationshifts up units (down if )
Horizontal translationshifts right units (left if )
Vertical stretchstretches from the -axis by factor ; reflects in -axis if
Horizontal stretchcompresses toward -axis by factor ; reflects in -axis if
Reflection in x-axisflips vertically
Reflection in y-axisflips horizontally

Mnemonic

Inside = opposite, Outside = obvious

In : the constants attached to (the and 'inside' the function) transform opposite to intuition — shifts RIGHT, and COMPRESSES the graph. The constants attached to the output ( and , 'outside') do exactly what they look like — stretches vertically, shifts up.

Common mistake

Reading as 'shift 6 right, then stretch by ' by using the raw number attached to instead of factorising first.

Consequence: This produces a graph shifted 6 units instead of 3 — a very common HL-only wrong-answer pattern that loses the transformation method mark even though the 'shift and stretch' idea was right.

Fix: Factorise first: . Now read off (horizontal stretch factor ) and (shift right 3) — the transformation is always identified from , never from the un-factorised expression.

Examiner tip

When given a table or graph of key points instead of an equation for , transform the coordinates directly using — examiners specifically design these questions to test whether you can transform without ever writing 's formula.

Key point

If a question gives you all at once, apply them to coordinates in this order: divide by then add ; multiply by then add . Two separate operations, never combined into one messy step.

Key takeaways

  • Every transformation is one instance of — identify first, then transform key points.
  • Horizontal changes () act on and behave opposite to intuition; vertical changes () act on and behave as expected.
  • Factorise before describing a transformation whenever and appear tangled together.
  • The coordinate mapping works even without knowing 's formula — essential for graph-only questions.

Trigonometric Functions

Trig functions are just a special case of transformations applied to the parent / graphs — which is why this subtopic sits inside Functions rather than off on its own. Amplitude, period and principal axis are simply , (rearranged) and from the master transformation equation, applied to a periodic parent function.

  • and : domain all reals, range , period radians ().
  • : period , vertical asymptotes at where the underlying cosine hits zero.
  • General model : amplitude , period , principal axis (midline) .
  • Solving trig equations over a stated domain: expect more than one root per period — use symmetry of the curve, don't just take the GDC's first answer.

Reading a sinusoidal graph

Amplitude
in — half the vertical distance between max and min.
Period
Length of one complete cycle: radians (or ).
Principal axis (vertical shift)
, the line the graph oscillates about — the average of the maximum and minimum values.
Phase shift
The horizontal translation applied to the parent graph — watch which sign convention the equation uses.

The sinusoidal model

amplitude , period , principal axis , horizontal shift

always match the unit to the GDC mode you're solving in

Data booklet

the formula-booklet convention uses — see the common mistake below before reading off a shift direction

Parent graphs of sin x and cos x

Same amplitude (1) and period (2 pi), just shifted a quarter-period apart — cos x is sin x shifted left by pi/2.

y = sin xy = cos xperiod = 2 piamplitude = 1

Sinusoidal model of tank volume over 24 hours

Amplitude 500, period 24 hours, principal axis at V = 2000 — every one of these is read straight from the max/min points.

V(t) = 2000 + 500 sin(pi t / 12)principal axis V = 2000maximum (6, 2500)minimum (18, 1500)

Worked example

Extracting amplitude, minimum, and solving a trig inequality from a model (Q5-style)

[1]
models the volume of water (litres) in a tank, . (a) State the type of function . (b) Calculate the minimum volume. (c) The tank is 'low' when . Find the values of for which the tank is low.

Worked example

Amplitude, period and principal axis from an equation

[3]
State the amplitude, period, and equation of the principal axis of .

Don't mix these up

Concept AConcept BThe distinction that matters
AmplitudeVertical shift (principal axis) Amplitude = half the distance between max and min; = the value the graph oscillates about, found by averaging max and min.
PeriodHorizontal stretch factor Increasing COMPRESSES the graph (shorter period); period — a bigger never means a longer period.

Common mistake

Solving a trig equation on the GDC and reporting only the first root it returns.

Consequence: Trig equations over a stated domain almost always have two or more solutions per period; markschemes award a mark per valid root, so reporting one root loses at least 1 mark even with a correct method.

Fix: Sketch the curve (or use sine/cosine symmetry: and for sine, and / for cosine) to find every root inside the given domain before stopping.

Examiner tip

Check your GDC's angle mode (Radian vs Degree) against the question's units before solving any trig equation. A perfectly correct method in the wrong mode still loses every accuracy mark — the single most common lost mark in AI HL trig questions.

Key point

The formula booklet writes the model as — note the . Since , a positive shifts the graph LEFT, the opposite of the convention used elsewhere. Always check which convention the question itself is using before stating a shift direction.

Real-world application

Tide heights, daylight hours across the year, AC voltage, and the water-tank example above are all modelled with — anything that oscillates smoothly and repeats. Amplitude tells you the size of the swing, period tells you how often it repeats, tells you the 'resting' average level.

Key takeaways

  • Amplitude , period , principal axis = average of max and min — extract all three from a labelled graph or a table of max/min values.
  • Watch the formula-booklet sign convention — shifts the graph LEFT when positive, opposite to the convention.
  • Trig equations over a restricted domain need every root, not just the GDC's first — use curve symmetry to find the rest.
  • Always confirm GDC angle mode before solving — wrong mode strips accuracy marks even with a perfect method.

Quick Reference

Functions — everything on one page

Formulas

  • asymptotes of
  • self-inverse condition for a linear-over-linear rational function
  • master transformation equation
  • coordinate mapping for transforming key points directly
  • amplitude , period , principal axis
  • general exponential growth/decay model

Key facts

Period of
radians
Self-inverse condition
Domain of
range of

Mnemonics

  • Inside = opposite, Outside = obviousconstants attached to () behave opposite to intuition; constants attached to () behave as expected

Don't confuse

  • vs : inverse undoes the mapping; the reciprocal just divides 1 by the output — unrelated in general
  • Amplitude vs Vertical shift : amplitude = half the max-min gap; = the midline the graph oscillates about

Command terms

Show that:
display every algebraic step toward the given answer
Hence:
must reuse the previous part's result, not a fresh method
Justify:
needs an algebraic/logical reason, not a description of the graph

Exam checklist

  • Stated both asymptote equations in full (x = ..., y = ...)
  • Proved one-to-one algebraically before finding an inverse
  • Swapped x/y, solved, and stated the restricted domain of f⁻¹
  • Factorised b(x-h) before describing a horizontal transformation
  • Read amplitude/period/principal axis off max & min values, not guessed
  • Checked GDC angle mode before solving any trig equation
  • Found ALL roots of a trig equation within the given domain