IB Diploma Programme · Maths AA Standard Level

Functions

Cover illustration for Functions (Maths AA Standard Level (SL)).
IBDP · Maths AA SL

Functions

SL2.1–SL2.7 (Functions)

30 min readStandardFunctions underpins roughly a quarter of AA SL content and appears in every P1 and P2 — usually as a full modelling question plus smaller graph/transformation items

This topic is really one idea repeated four times: something goes in, exactly one thing comes out, and you can describe the rule algebraically or as a graph. Every 'model this real-world situation' question — bacteria, vans, tanks, tides — is testing whether you can spot which of linear, quadratic, exponential or trig is the right shape, set up two equations, and solve. The rest (domain/range, composites, inverses, transformations) is vocabulary for describing graphs precisely enough that an examiner can mark it.

Overview

What counts as a function here

A function assigns exactly one output to every input in its domain — written or . Graphically, this is the vertical line test: any vertical line through the domain must cross the graph exactly once. Everything you do in this chapter — building a model, describing a graph's behaviour, stretching it, or restricting it to make an inverse exist — sits on top of that single rule.

  • Domain = valid inputs; range = actual outputs — these are read off a sketch, not guessed from the formula alone.
  • Four families dominate the SL syllabus: linear, quadratic, exponential and trigonometric (sin/cos/tan) — recognising which one fits a data pattern is half the battle in modelling questions.
  • Your GDC is assumed throughout: graphing, finding intersections, and solving numerically are all fair game unless a question says 'show that' or 'algebraically'.

The shape of the chapter

Command terms that decide how you must answer

Command termWhat it demandsAOMark-earning move
Show thatderive the given result using clear algebra — a calculator-verified answer alone scores zeroAO2exact values (ln, surds) must appear in the working, not rounded decimals
Henceuse the result from the previous part directlyAO2re-deriving from scratch instead of using the given result loses marks even if the final answer is right
Stategive the answer with no justification requiredAO1one mark awarded for the correct value alone
Sketchdraw a graph with key features (intercepts, asymptotes, turning points) clearly shownAO1/AO2marks are awarded per labelled feature, not for a technically accurate curve
Determinefind the value through systematic working, often via GDCAO2quoting only a GDC output with no method shown can lose the method mark in multi-step questions

Key point

A function assigns exactly one output to each valid input — every model you build (linear, quadratic, exponential, trig) is that same idea dressed in a real-world context, and every graph skill (domain, inverse, transformation) is just vocabulary for describing it precisely.

Modeling with Functions

Building a model from data

The process is always the same: spot the pattern in the data, choose the matching general equation, substitute the given points to pin down the unknown constants, then use the completed model to answer the actual question (a value, a time, a break-even point).

  • Constant difference between outputs → linear model.
  • Constant ratio between outputs → exponential model.
  • Single turning point / symmetric shape (profit, projectile height) → quadratic model.
  • Two unknown constants need two data points — and the point at almost always hands you one constant for free.
Linear model
, where the quantity changes by a constant amount per unit of .e.g. van value falling by $3000 per year
Exponential model
, where the quantity changes by a constant continuous rate per unit of ( growth, decay).bacteria growth, radioactive decay, compound interest
Break-even point
the value of the independent variable at which two models are equal, e.g. solving for cost = revenue.

linear model

— gradient — rate of change per unit t ([quantity]/[time])
— initial value, at t = 0

continuous exponential growth (k>0) or decay (k<0)

— initial value
— continuous growth/decay rate

gradient from two data points

used to isolate k or t algebraically from an exponential model

Worked example

Setting up and solving a linear population model

[4]
A bacterial colony has population , in hours. At the population is 500; after 3 hours it is 650. (a) Show that and . (b) Find the time at which the population reaches 1000.

Worked example

Show-that with an exponential growth model

models bacteria after hours, . After 3 hours, . (a) Show that . (b) Find correct to 3 s.f.

Worked example

Break-even between a linear cost and a quadratic revenue function

and for . (a) Show that leads to . (b) Find the break-even quantity (quantities) that lie in the valid domain.

Common mistake

Using the point at a second time to try to solve for the exponential constant k (e.g. plugging back into ).

Consequence: This gives , which is always true and contains no information about k — students get stuck mid-derivation and lose both working marks in a 'show that'.

Fix: Always use the SECOND given data point (t ≠ 0) to solve for k; the point at t=0 only ever supplies the initial value.

Examiner tip

In 'show that' questions involving logs, keep exact forms (, , etc.) all the way through the working — matching the given answer exactly, not to 3 s.f., is the strongest signal to the examiner that algebra (not a calculator guess) produced the result.

Exponential growth model with initial value and rate

Continuous exponential growth: the curve always passes through and never touches the horizontal axis.

P0 on vertical axiscurve P(t) = P0 e^{kt}point at t=3, P=4000horizontal asymptote P=0

Key takeaways

  • Constant difference between outputs → linear ; constant ratio → exponential ; single turning point → quadratic.
  • Two unknowns need two equations — the value at t=0 almost always gives one constant immediately.
  • 'Show that' demands exact algebra with logs/surds kept in exact form until the final substitution.
  • Break-even and max/min problems reduce to solving or — always check solutions lie inside the stated domain before quoting them.

Functions and Their Properties

Domain, range, and what makes something invertible

Domain and range describe the boundaries of a function's behaviour; one-to-one-ness determines whether it can be reversed. A composite function chains two functions together, and only one-to-one functions have an inverse that is itself a function.

  • Domain restrictions come from context (e.g. for time), square roots (need inside), denominators (), or logs (argument ).
  • Range is read from the actual shape of the graph — sketch it, don't infer it purely from the equation.
  • A function is one-to-one if every horizontal line crosses the graph at most once; this is required for an inverse function to exist.
  • Composite : apply g first (it's closest to x), then f — order matters and generally .
Domain
the complete set of input values for which the function is defined.
Range
the complete set of output values the function actually produces over its domain.
One-to-one function
each output corresponds to exactly one input (passes the horizontal line test) — required for an inverse function to exist.
Inverse function
the function that reverses : if then . Domain of = range of ; range of = domain of .

composite function — apply g first, then f

the defining property of an inverse function

method: swap x and y in y=f(x), then rearrange for y

Worked example

Finding a composite and an inverse function

and for . Find (a) , (b) and state its domain.

f and its inverse as a reflection in y = x

and are always reflections of each other in the line — a fast sanity check on your algebra.

y = f(x)y = f^{-1}(x)y = x (line of reflection)

Frequently confused

Concept AConcept BThe distinction that matters
is the inverse function (undoes f); is a completely different function, the reciprocal — mixing these up is one of the most common IB errors in this topic.
DomainRangedomain is what you're allowed to feed IN; range is what actually comes OUT — for the domain is but the range is , a different restriction entirely.
in , g acts first (innermost) — the two composites are generally different functions unless f and g happen to commute.

Common mistake

Stating the domain of by looking only at the algebraic form of the new expression, instead of the range of the original function.

Consequence: For functions with restricted domains (square roots, quadratics restricted to one branch), this gives the wrong domain and loses the accuracy mark even when the inverse rule itself is correct.

Fix: Always find the range of f first (sketch it if needed) — that range IS the domain of , no exceptions.

Examiner tip

When a quadratic's domain is restricted (e.g. ) before asking for an inverse, that restriction exists specifically so g becomes one-to-one — stating this explicitly if asked to justify why exists is a common AO2 mark examiners look for.

Key takeaways

  • Domain = valid inputs, range = actual outputs — read range from a sketch, don't guess from the formula.
  • Only one-to-one functions (pass the horizontal line test) have an inverse that is also a function.
  • To find : swap x and y, rearrange for y; domain of = range of f.
  • in general — always work from the inside out.

Transformations of Functions

Mapping one graph onto another

Every transformation of can be written as . Vertical changes (, ) act exactly as they look; horizontal changes (, ) act on x BEFORE f is evaluated, so they behave backwards to intuition.

  • Vertical: outside moves the graph up/down; outside stretches vertically (and flips if negative) — exactly as it looks.
  • Horizontal: shifts RIGHT by h; stretches horizontally by factor — both are the OPPOSITE of what the sign suggests.
  • When several transformations combine, deal with the inside of the bracket (horizontal: reflect, stretch, translate) first, then apply the outside (vertical) operations.

Transformation rules for y = f(x)

TransformationEquationEffect on graph
Vertical translationshifts graph up (k>0) / down (k<0) by k units
Horizontal translationshifts graph right (h>0) / left (h<0) by h units
Vertical stretchstretches vertically by factor a (|a|>1 stretch, 0<|a|<1 compress); a<0 also reflects in the x-axis
Horizontal stretchstretches horizontally by factor 1/b; b<0 also reflects in the y-axis
Reflection in x-axisflips the graph vertically
Reflection in y-axisflips the graph horizontally

general combined transformation of y = f(x)

— vertical stretch factor (reflects in x-axis if negative)
— horizontal stretch factor is 1/b (reflects in y-axis if negative)
— horizontal translation
— vertical translation

Worked example

Describing a combined transformation

The graph of is transformed to give . Describe the sequence of transformations and state the new vertex.

Combined transformation of a parabola

Original vertex (0,0) maps to the new vertex (-3,5); the parabola also flips and stretches vertically.

y = x^2 (original)y = -2(x+3)^2 + 5 (image)vertex (0,0)vertex (-3,5)

Mnemonic

Inside is Opposite, Outside is Obvious

Anything added or multiplied INSIDE the function bracket (affecting x) does the OPPOSITE of what it looks like (e.g. moves right); anything OUTSIDE the bracket (affecting y) does exactly what it looks like ( moves up).

Common mistake

Applying vertical and horizontal transformations in an inconsistent order when a question combines a stretch AND a translation, e.g. .

Consequence: Coordinates of transformed key points come out wrong even though the named transformations are individually correct — this loses marks on 'state the coordinates of the image of point P' questions.

Fix: Transform coordinates one operation at a time, directly from the equation, in the order they act on x (horizontal first, working outward), then check by substituting the original point into the full transformed equation.

Examiner tip

When asked to 'describe' a transformation, name ALL of: type (translation/stretch/reflection), direction/axis, and exact scale factor or vector — a bare 'it moves' scores zero; mark schemes award one mark per correctly stated element.

Key takeaways

  • and : vertical does what it looks like, horizontal is reversed.
  • and : vertical stretch factor a, horizontal stretch factor — negative a or b adds a reflection.
  • Match to before describing anything — this avoids sign confusion on the shift direction.
  • 'Describe the transformation' answers need type + direction + magnitude for full marks.

Trigonometric Functions

Periodic behaviour: sin, cos and tan

Sine and cosine oscillate smoothly between and with period ; tan repeats every and has vertical asymptotes wherever . The general model (or the cosine equivalent) uses the exact same transformation logic as any other function — amplitude, period, phase shift and midline are just renamed a, b, h, d.

  • Amplitude : half the vertical distance between max and min.
  • Period : length of one complete cycle.
  • Midline : the horizontal line the graph oscillates around; max , min .
  • Trig equations solved over a stated domain usually have MULTIPLE solutions — sketch the graph or use symmetry, don't stop at the calculator's principal value.
Amplitude
half the distance between the maximum and minimum value of a periodic function: in .
Period
the length of one complete cycle before the graph repeats: for or .

Trig function formulas

general sine model

— amplitude
— controls period: period = 2π/b
— horizontal (phase) shift
— vertical shift / midline value

period of sin(bx) or cos(bx)

Data booklet

Pythagorean identity — used to simplify or solve trig equations

Data booklet

definition of tangent

Data booklet

Graphs of y = sin x and y = cos x

Both curves have amplitude 1 and period ; cos is sin shifted left by .

y = sin xy = cos xamplitude = 1period = 2π

sin, cos and tan compared

Featuresin xcos xtan x
Period2π2ππ
Range[-1, 1][-1, 1]all reals
Asymptotesnonenonex = π/2 + nπ
Value at x = 0010
Symmetryodd: sin(-x) = -sin xeven: cos(-x) = cos xodd: tan(-x) = -tan x

Worked example

Modelling and solving with a periodic function

The height metres of a Ferris wheel seat above the ground, minutes after the ride starts, is modelled by . (a) State the maximum height and the period of the ride. (b) Find the first time the seat reaches a height of 22.5 m.

Common mistake

Leaving the calculator in degree mode while the model uses radians (or vice versa) — especially when π appears explicitly in the argument.

Consequence: Every trig value comes out completely wrong while the working still looks structurally correct — this silently costs every mark from that point onward.

Fix: Before solving any trig equation, check whether the argument uses π (radians) or plain degrees, and set the GDC mode to match — do this before touching any numbers.

Examiner tip

When solving (or similar) over a stated domain like , sketch the graph first to count how many solutions exist — mark schemes award a mark for EACH correct solution, and 'forgot the second one' is the single most common lost mark in this topic.

Where periodic models actually get examined

Tide heights, Ferris wheel/London Eye seat height, daylight hours across a year, sound wave pressure, and AC voltage are all modelled with or its cosine equivalent — IB questions favour Ferris wheel and tide-height contexts because they force you to interpret amplitude as 'half the swing', midline as the 'average', and period as 'time for one full cycle'.

Key takeaways

  • Amplitude = |a|, period = 2π/b, midline = d — read all three straight from without needing calculus.
  • Maximum = midline + amplitude, minimum = midline − amplitude.
  • Trig equations usually have multiple solutions in a given domain — sketch or use symmetry, don't stop at the calculator's principal value.
  • Radians vs degrees mode is the most common silent error — check the mode before you solve anything.

Quick Reference

Functions — quick reference

Formulas

  • linear model
  • exponential model
  • composite — apply g first
  • general transformation
  • period = 2π/b, amplitude = |a|, midline = d
  • Pythagorean identity

Key facts

Period of sin(bx) or cos(bx)
2π/b
Domain of f⁻¹
= range of f
Vertical asymptote of tan x
x = π/2 + nπ

Mnemonics

  • Inside is Opposite, Outside is Obvioushorizontal transformations (inside the bracket) reverse direction; vertical ones (outside) act as expected

Don't confuse

  • vs : inverse function vs reciprocal — completely different objects
  • Domain vs Range: inputs allowed vs outputs produced

Command terms

Show that:
derive using exact algebra, keeping ln/surds throughout
Hence:
must use the previous result — don't re-derive from scratch
Determine:
systematic working, GDC acceptable but state the method

Exam checklist

  • Checked GDC is in the correct angle mode (radians vs degrees) before any trig work?
  • Stated domain restrictions and checked solutions actually lie inside them (break-even, inverse domains, trig solution sets)?
  • Kept exact values (ln, surds) through 'show that' working instead of rounding early?
  • Matched a transformed function to before describing the transformation?
  • Read range off a sketch rather than guessing from the equation?