Back to Blog

Functions

Domain, range, inverses, composites, transformations and modelling — the SL topic that shows up in every single paper.

Graph illustrating the vertical line test on a curve with domain and range shaded
Subject
Maths AA
Curriculum
IB Diploma Programme
Grade
DP
Topic
Functions
Reading
7 min
Difficulty
Standard

Quick facts

Difficulty
★★★☆☆
Exam weight
~25% of AA SL, appears in every P1 & P2
Prerequisites
Algebraic manipulation, graphing basics, logarithms
You'll learn
Domain/range, inverses, composites, transformations, modelling
Revision time
45–60 min

Functions is the backbone topic of IB Maths AA — master it and half the syllabus suddenly makes more sense. Every function assigns exactly one output to each input, which is why the vertical line test matters so much when reading domain and range off a graph. From there, the topic branches into modelling real data with linear, exponential and quadratic equations, finding inverse functions (only possible for one-to-one functions), chaining functions together as composites, and transforming graphs using . Examiners love combining these ideas in a single modelling question, so understanding how domain restrictions, inverses and transformations connect — rather than memorising each in isolation — is what separates a 5 from a 7. This teaser covers the five ideas worth locking down first; the full revision notes go deeper into every trap and worked example.

What you’ll be able to do

Apply the vertical line test to identify a valid function
Read domain and range correctly from a sketched graph
Choose the correct model type from a data pattern (linear, exponential, quadratic)
Find and state the domain of an inverse function using the range of the original
Evaluate composite functions $(f\circ g)(x)$ in the correct order
Describe combined transformations of $y=f(x)$ with full detail
Solve break-even and 'show that' questions using exact algebraic forms
1

What Counts as a Function: Domain, Range and the Vertical Line Test

A function gives exactly one output for every input — graphically, that means any vertical line drawn through the domain crosses the graph only once. Domain is the set of valid inputs; range is the set of outputs the function actually produces, and both should be read from a sketch rather than guessed from the formula. Four families dominate SL: linear, quadratic, exponential and trigonometric — spotting which one fits a situation is the real skill being tested.

Diagram of four function family shapes: linear, quadratic, exponential, trigonometric

Exam tip

GDC use is assumed throughout — graphing, finding intersections, and solving f(x)=0 numerically are all fair game unless the question says 'show that' or 'algebraically'.

Mini summary

One input → one output; domain and range come from the graph, not the formula.

2

Modelling: Linear, Exponential and Quadratic

The strategy never changes: spot the pattern in the data, pick the matching model, substitute known points to pin down constants, then use the finished model to answer the question. A constant difference between outputs signals a linear model ; a constant ratio signals exponential ; a single symmetric turning point (profit, height) signals quadratic. Two unknown constants need two data points, and the value at almost always hands you one constant for free.

Table matching data patterns to linear, exponential and quadratic model types

Exam tip

In 'show that' questions with logs, keep exact forms like throughout the working rather than rounding early — matching the given answer exactly proves algebra, not a calculator guess, produced it.

Common mistake

Reusing the point to solve for the exponential rate — that point only ever gives the initial value ; the second (non-zero) data point is needed to solve for .

Mini summary

Constant difference → linear; constant ratio → exponential; turning point → quadratic; t=0 gives a free constant.

3

One-to-One Functions and Inverses

A function is one-to-one if every horizontal line crosses its graph at most once, and only one-to-one functions have an inverse that is itself a function. To find , swap and in then rearrange for — and crucially, the domain of equals the range of the original , not something read off the new equation. Restricting a quadratic's domain (like ) is exactly what makes it one-to-one so an inverse can exist.

Graph showing a horizontal line test on a restricted parabola to justify an inverse function

Exam tip

If asked to justify why exists after a domain restriction, explicitly state that the restriction makes one-to-one — examiners look for this as a specific AO2 mark.

Common mistake

Stating the domain of from the algebraic form of the new expression instead of the range of the original function — always sketch first to find its range.

Mini summary

Horizontal line test → one-to-one → inverse exists; domain of = range of .

4

Composite Functions: Order Matters

A composite function chains two functions together: means apply first (it's closest to ), then feed the result into . In general , so always work from the inside out and never assume the order can be swapped.

Flow diagram showing input x passing through g then f to illustrate composite functions

Common mistake

Computing when the question asks for — for functions with restricted domains, this genuinely changes the numerical answer, not just the notation.

Mini summary

— inner function first, then outer.

5

Transformations of y = f(x)

Every transformation fits the form : vertical changes (, ) behave exactly as they look, but horizontal changes (, ) act on before is evaluated, so they behave backwards to intuition. shifts RIGHT by , and stretches horizontally by factor . When several transformations combine, deal with the inside of the bracket first (horizontal), then apply the outside (vertical) operations.

Parabola transformed by y = -2(x+3)^2 + 5 showing reflection, stretch and translation
TransformationEquationEffect on graph
Vertical translationy = f(x) + kShifts up (k>0) or down (k<0)
Vertical stretchy = a f(x)Stretches vertically by factor a; flips if a<0
Horizontal translationy = f(x - h)Shifts RIGHT by h (opposite of the sign)
Horizontal stretchy = f(bx)Stretches horizontally by factor 1/b

Exam tip

When asked to 'describe' a transformation, state the type, direction/axis, AND the exact scale factor or vector — a vague 'it moves' scores zero marks.

Common mistake

Reading as 'shift right 3' — since , this is actually , a shift LEFT by 3, the single most common transformation error in the syllabus.

Mini summary

Vertical changes act as they look; horizontal changes act backwards — always deal with the inside of the bracket first.

Quick formula sheet

Linear model: quantity changes by constant amount m per unit of t.Same difference each step = straight line.
Exponential model: continuous growth (k>0) or decay (k<0) from initial value P0.Same ratio each step = exponential.
Gradient calculated from two data points.
Composite function: apply g first, then f.Read right to left — g is closest to x.
Defining property of an inverse function.
Method to find an inverse: swap x and y, then rearrange for y.
General combined transformation of y=f(x); horizontal changes (b,h) act opposite to intuition.

Practice questions

Easy
  1. State whether the horizontal line test or the vertical line test is used to check for a one-to-one function.
  2. Given m and c, write the linear model V(t)=mt+c and state what m represents.
  3. Describe, in words, the effect of the transformation y = f(x) + 4 on the graph of y = f(x).
Medium
  1. A population is P(t)=P0·e^(kt). Given P(0)=200 and P(4)=500, set up (without solving) the equation you'd use to find k.
  2. For f(x)=3x+1, find f⁻¹(x) and state its domain in terms of the range of f.
  3. Describe the sequence of transformations that maps y=x² onto y=(x-2)²-1, stating the new vertex.
Challenge
  1. C(x)=6000+50x and R(x)=90x-0.04x² model cost and revenue for 0≤x≤400. Set up the equation for the break-even quantity and identify which root(s) are valid in the domain.
  2. For f(x)=2x-3 and g(x)=x²+1 (x≥0), find (f∘g)(3) and explain why the domain restriction on g matters when finding g⁻¹.
  3. A model P(t)=500e^(kt) gives P(3)=4000. Show that k = ln8/3 using exact values, then find P(5) to 3 s.f.

Frequently asked questions

What is the difference between domain and range?+

Domain is the set of valid inputs a function accepts; range is the set of outputs it actually produces. Both should be identified from a sketch of the graph, not guessed purely from the equation.

How do you know if a function has an inverse?+

A function has an inverse (that is itself a function) only if it's one-to-one — meaning it passes the horizontal line test, where every horizontal line crosses the graph at most once.

Why does the domain of f⁻¹ equal the range of f?+

An inverse reverses inputs and outputs, so whatever f could output becomes what f⁻¹ can accept as input. That's why you must find the range of f first, usually from a sketch, rather than reading it from the algebraic form of f⁻¹.

Why does y = f(x+3) shift the graph left, not right?+

Horizontal transformations act on x before f is evaluated, so they work opposite to what the sign suggests. Since f(x-h) shifts right by h, writing x+3 as x-(-3) gives h=-3, meaning a shift left by 3.

How do I choose between a linear, exponential or quadratic model?+

Check the pattern in the data: a constant difference between outputs points to a linear model, a constant ratio points to exponential, and a single symmetric turning point (like a maximum profit or projectile height) points to quadratic.

Does f∘g equal g∘f?+

Generally no. (f∘g)(x) means apply g first then f, while (g∘f)(x) applies f first then g — these usually give different results, so always work from the inside out.

Get the full IB Maths AA Functions revision notes

Complete worked examples for modelling, inverses, composites and transformations Full breakdown of every common mistake and examiner trap in this topic Formula sheet and step-by-step methods ready for P1 and P2 exam-style questions Original mock practice questions with full explanations to test yourself
Get the Functions notes on RevisionPrep

Related articles