IB Middle Years Programme · Mathematics (Standard) MYP Year 4

Functions

Cover illustration for Functions (Mathematics (Standard) MYP Year 4).
MYP · Mathematics (Standard) MYP Year 4

Functions

MYP Year 4 Mathematics — Functions

38 min readStandardCore strand — assessed mainly through MYP Criterion B (Investigating Patterns) and Criterion C (Communicating); expect at least one extended, context-based question per assessment.

Every functions question this year is secretly testing the same three instincts: is this actually a function, what's allowed in and out of it, and what happens when you stretch, shift or chain it together. The exam bank leans hard on real data — phone bills, bike rentals, reservoirs — because examiners want to see whether you can translate a messy table into notation, not just manipulate an equation someone already gave you.

Overview

A function is the maths department's promise of predictability: feed the same input in twice, you get the same output twice, every time. Composition, transformations, domain restrictions — all of it is just asking one question in different costumes: does this rule behave itself?

  • Functions are reliable machines — one input, one guaranteed output.
  • Graphs are pictures of rules; transformations are edits made to that picture.
  • Domain and range are the machine's operating limits — what it will accept, and what it can possibly spit out.
  • Real contexts (cost, growth, rentals) are the whole point — MYP5 exam questions almost always dress functions up as a scenario, not a bare equation.

The shape of the chapter

Command terms this topic loves

Command termWhat it demandsAOMark-earning move
StateGive a short answer with no justification required.AO1One correct fact/value earns the mark — extra explanation isn't rewarded but isn't penalised either.
JustifySupport a conclusion with a specific reason or test.AO2The mark sits on the REASON (e.g. 'input 2 gives two different outputs'), not just the yes/no answer.
EvaluateSubstitute given value(s) and compute a numeric result.AO1Marks awarded for correct substitution AND correct arithmetic — one wrong step loses both.
DeduceUse given information to reach an equation or conclusion, showing the reasoning chain.AO2A correct final rule with no visible working (e.g. gradient, then intercept) rarely gets full marks.
AnalyseBreak down data to identify a pattern or relationship.AO2Must name the pattern explicitly (e.g. 'constant difference of 2'), not just describe the numbers.
ExplainGive reasoning that shows understanding of why something is true.AO2Needs a mechanism, not a restatement — e.g. link back to the vertical line test by name.
AdviseGive a reasoned recommendation for a course of action.AO3The numeric answer alone isn't enough — it must be translated into an actual recommendation in context.

Key point

The one test that answers 90% of 'is this a function?' questions: does every input give exactly ONE output? If any input repeats with a different output, it fails — no matter how neat the rest of the pattern looks.

Composite Functions

Composition chains two machines together: the output of the first function becomes the input of the second. is read 'f of g of x' — and it means work out first, then feed that number into .

  • The function written closest to acts first, no matter which letter comes first alphabetically.
  • Domain of a composite depends on BOTH functions — the output of the inner function must itself be a valid input for the outer one.
  • Composition is not commutative: and are usually different functions entirely.

Key terms

Composite function
A new function built by applying one function to the output of another.
Inner function
The function applied first — the one directly touching .
Outer function
The function applied second, to the result of the inner function.

Composite function as a chain of machines

Composition is a two-stage machine: the inner function's output becomes the outer function's input.

x (input)g(x) boxintermediate valuef(x) boxf(g(x)) (final output)

Composition formulas

Apply g first, then apply f to the result.

— any two functions
— the original input
Memorise

Apply f first, then apply g to the result — generally NOT equal to (f∘g)(x).

Worked example

Composing two functions in both orders

Given and , evaluate and , and explain why the answers differ.

Don't mix these up

Concept AConcept BThe distinction that matters
The small circle means 'substitute the output of g into f' — it's substitution, not multiplication.
Read right to left: the function nearest acts first. Swapping the order almost always changes the numeric answer.

Common mistake

Evaluating the outer function before the inner one in a composite expression.

Consequence: Every mark for that part is lost even if the later arithmetic is flawless, because the substitution order itself is what's being tested.

Fix: Identify which function is 'wrapped around' the other — the one written closest to in the notation always goes first in your working.

Key takeaways

  • : always evaluate the inner function first.
  • Composition is not commutative — in general.
  • Composite ≠ product: the circle symbol means substitution, not multiplication.

Transformations

Transformations edit the graph of without changing which family it belongs to — a shifted parabola is still a parabola. Every transformation question is really asking you to match a piece of the equation to a movement on the picture.

  • outside the function shifts the whole graph vertically — behaves exactly as it looks.
  • inside the function (as in ) shifts horizontally — and does the OPPOSITE of what the sign suggests.
  • A multiplier outside stretches vertically; a multiplier inside compresses horizontally by factor .
  • A negative sign outside flips the graph over the -axis; a negative sign inside flips it over the -axis.

Transformation rules for

Vertical translation by units (up if ).

Horizontal translation by units (right if ) — opposite to the sign shown.

Vertical stretch by factor (compression if ).

Horizontal stretch by factor .

Reflection in the -axis.

Reflection in the -axis.

Translating a parabola

The parabola (vertex ) translated to (vertex ) — 2 right, 1 up.

y = x^2y = (x-2)^2 + 1vertex (0,0)vertex (2,1)

Mnemonic

Outside acts normal, inside acts backwards.

For : the OUTSIDE change () does what it looks like — add , shift up. The INSIDE change () does the OPPOSITE of what it looks like — shift right by , not left.

Worked example

Reading a transformation off an equation

The graph of is transformed to . State the transformation and the new vertex.

Examiner tip

When two transformations are combined (e.g. a stretch AND a shift), don't trust intuition — substitute a simple test point like into the new equation and check it lands where you expect on the transformed graph before you commit to a final sketch.

Key takeaways

  • Changes outside the function act as they look; changes inside act in reverse.
  • moves the graph right and up — always check the sign of carefully.
  • A stretch factor multiplies distances from the axis; a negative sign reflects across it.

Types of Functions

Different function families produce different shapes because they encode different growth patterns — constant rate, constant curvature, constant ratio, or a rule that switches between all of these.

  • Linear: adds the same amount each step — straight line.
  • Quadratic: rate of change itself changes steadily — one turning point.
  • Exponential: multiplies by the same factor each step — curve that never quite reaches zero.
  • Piecewise: genuinely different rules on different intervals — must be checked at every boundary.

Function families at a glance

TypeGeneral formKey featureEveryday example
LinearConstant rate of change (straight line)Data plan charging $2 per GB plus a $3 fixed fee
QuadraticOne turning point, symmetric parabolaHeight of a ball over time under gravity
ExponentialConstant ratio between consecutive outputs; horizontal asymptoteCompound interest, bacterial growth
PiecewiseDifferent rule per -intervalRule can change slope or jump at boundariesTiered data charges by usage band

A piecewise cost function

Boundary behaviour matters: a filled dot means the point IS included, an open circle means it is approached but not reached.

f(x) = x^2 (x ≤ 0)f(x) = 2 (0 < x < 3)f(x) = x - 1 (x ≥ 3)filled dot at (0,0)open circle near (0,2)filled dot at (3,2)

Worked example

Testing and evaluating a piecewise charge function

[4]
A mobile data plan charges according to usage (GB used in a month): for ; for ; for , where is the monthly charge in dollars. (a) Justify whether this relation is a function. (b) Evaluate , , and . (c) A customer claims their charge 'jumps unexpectedly' between low and high usage — assess this claim.

Common mistake

Declaring a piecewise relation 'not a function' just because it has multiple rules.

Consequence: Loses the justification mark even if the yes/no answer happens to be correct.

Fix: Check the boundary values specifically — only overlapping domain intervals with different outputs actually break the function definition.

Key takeaways

  • Identify a function's family by its pattern: constant difference (linear), constant second difference (quadratic), constant ratio (exponential).
  • A piecewise rule is a function as long as no -value is covered by two branches.
  • Continuity must be checked numerically at each boundary — never assumed from the shape of the rule.

Applications of Functions

Every real formula — a bill, a growth rate, a distance — is a function once you name what's going in and what's coming out. The exam bank tests this constantly: build the rule from a table, evaluate it, then translate the answer back into a sentence about the situation.

  • First job always: identify which variable is the input and which is the output.
  • Second job: build or use the rule (often linear) with real numbers from a table or graph.
  • Third job: check the answer makes sense in context — negative hours, negative GB, or impossible charges should raise a flag.

Same skeleton, different costume

A phone bill, a bike rental fee and a reservoir's water use are all the same mathematical object: a rule linking usage (input) to an outcome (output). Examiners love this context precisely because it tests whether you can turn words into notation — not just manipulate an equation someone already built for you.

Worked example

Building and using a linear cost model

[3]
A bike rental company charges a fixed fee plus an hourly rate. ($) for $hh=1,2,3,4 \to C=8,14,20,26$. (a) Deduce $C(h). (b) Calculate the cost for 7 hours. (c) Advise a customer with a \50 budget on the maximum rental time.

Worked example

Reading a function value off a graph

A mobile data plan's cost function passes through the point , where the input is GB used and the output is the monthly charge. Deduce the value of and state what it represents.

Examiner tip

'Advise' and 'deduce' in applied function questions always want the number tied back to the scenario in words — a bare '' with no sentence about the customer loses the context mark even when the algebra is flawless.

Key takeaways

  • Building a model from a table: find the rate (gradient) first, then solve for the fixed value using one data point.
  • Always convert an inequality answer (like ) back into a plain-English recommendation.
  • A function value quoted from a graph point, like , needs a context sentence to earn full marks.

Domain and Range

Domain is every valid input; range is every output the rule actually produces. Restrictions come from two places: the algebra itself (square roots, denominators) and the real world the function is modelling (you can't rent negative hours).

  • Algebraic restriction: anything under a square root must be ; anything in a denominator must be .
  • Context restriction: even if the algebra allows negative or non-integer inputs, the situation might forbid them.
  • Range is found AFTER the domain — work out what outputs the restricted inputs can actually generate.

Key terms

Domain
The complete set of input values () for which a function is defined.
Range
The complete set of output values ( or ) the function actually produces.
Interval notation
Shorthand for a set of values, e.g. means all values from to inclusive.

Domain and range of a semicircle function

The square root gives only the upper half of the circle — domain , range .

y = sqrt(16 - x^2)domain: -4 ≤ x ≤ 4range: 0 ≤ y ≤ 4(-4,0)(0,4)(4,0)

Worked example

Finding domain and range from the algebra

Determine the domain and range of .

Worked example

Restricting domain from real-world context

A mobile data cost function is , where is GB used. State a sensible domain and the resulting range.

Common mistake

Stating a real-world function's domain/range purely from the algebra, ignoring that negative inputs are physically meaningless.

Consequence: Loses the context/reasonableness mark that MYP applied questions specifically award for linking maths back to the situation.

Fix: Always ask: does a negative, zero, or non-integer input actually make sense here? Restrict the domain before stating the range.

Key takeaways

  • Domain = valid inputs; range = resulting outputs — never swap them.
  • Square roots restrict to non-negative arguments; denominators restrict to non-zero values.
  • Real-world context can restrict domain even when the algebra alone wouldn't.

Introduction to Functions

A relation is any pairing of inputs and outputs. A function is the special, well-behaved case where every input is paired with exactly ONE output — this single rule is what the vertical line test and every 'is this a function?' question is really checking.

  • notation reads as 'the output of when the input is ' — not ' multiplied by '.
  • The independent variable () is what you choose; the dependent variable ( or ) is what results from that choice.
  • Repeated OUTPUTS are completely fine for a function; repeated INPUTS with different outputs are not.

Key terms

Relation
Any set of ordered pairs or rule linking inputs to outputs — no restriction on repeats.
Function
A relation in which every input is paired with exactly one output.
Independent variable
The input, usually — the value you choose or control.
Dependent variable
The output, usually or — its value depends on the chosen input.

Function vs non-function as arrow diagrams

Left: every input has exactly one arrow out — a function. Right: input 2 has two arrows out — not a function.

Machine 1 (function)Machine 2 (not a function)1→3, 2→5, 3→7, 4→91→4, 2→6, 2→8, 3→10

Worked example

Testing four machines against the definition of a function

[2]
State the definition of a function [2]. A factory uses four machines. Machine 1 — Input: 1,2,3,4, Output: 3,5,7,9. Machine 2 — Input: 1,2,2,3, Output: 4,6,8,10. Machine 3 — Input: 2,4,6,8, Output: 5,9,13,17. Machine 4 — Input: 0,1,2,3, Output: 1,4,7,10. Justify which machines represent a function.

Don't mix these up

Concept AConcept BThe distinction that matters
RelationFunctionEvery function is a relation, but not every relation is a function — the extra rule is 'one input, one output only'.
Independent variableDependent variableIndependent = what you choose (usually ); dependent = what results from that choice, so its value depends on the input.

Examiner tip

When a question gives you a table instead of a graph (e.g. temperature vs consumption ), you still apply the vertical line test — check whether any -value in the table repeats with a different -value. Distinct -values in a table are only evidence the SAMPLED data is consistent with a function; state that explicitly rather than claiming certainty for every possible input.

Key takeaways

  • A function requires every input to map to exactly one output — check for repeated inputs, not repeated outputs.
  • notation names the output produced by input under rule .
  • Tabulated data can only confirm the function test for the values actually given.

Linear Functions

A linear function adds the same amount for every extra unit of input — the gradient is that constant rate, and the -intercept is the starting/fixed value before any input is applied.

  • Constant first difference in a table is the signature of a linear rule — check it before assuming any other function type.
  • Gradient = rate of change in context (dollars per GB, dollars per hour); intercept = fixed cost/starting value.
  • If a table's inputs repeat with different outputs, no single linear rule (or any function) can fit it — say so rather than averaging.

Linear function formulas

Slope-intercept form.

— gradient (rate of change)
— $y$-intercept (value when $x=0$)
Memorise

Gradient between two known points.

Memorise

Linear cost function from a table

Reading the fixed fee (\2, the \y-intercept) and the hourly rate (\6, the gradient) directly off the line.

C(h) = 6h + 2y-intercept (0,2)gradient triangle: rise 18, run 3(1,8)(4,26)budget line C = 50 at h = 8

Worked example

Deducing a linear rule and spotting a non-function

Customer A: (GB) , (cost) . Customer B: , . (a) Analyse the pattern in Customer A's data and deduce a rule . (b) Comment on Customer B's data.

Worked example

Evaluating and spotting an incorrect bill

[3]
A plan charges ( = GB, = cost). Claimed bill: 5, 7, 9, 10. (a) Evaluate at each value. (b) Deduce which claimed cost is incorrect.

Common mistake

Substituting the OUTPUT value into the function instead of the input.

Consequence: Every subsequent evaluation is wrong even though the formula itself was written correctly.

Fix: Underline which variable is the input in the question before substituting anything into .

Key takeaways

  • Constant first difference in a table signals a linear rule; find from two points, then from one.
  • A repeated input with two different outputs means the data isn't a function — no linear rule can fit it.
  • Always re-verify a deduced rule against a data point not used to build it.

Quadratic Functions

A quadratic function's graph is a parabola — one turning point, symmetric about a vertical line through the vertex. General form is fast to read the -intercept from; vertex form is fast to read the turning point from.

  • The sign of tells you the direction: positive opens upward (minimum), negative opens downward (maximum).
  • The axis of symmetry sits exactly halfway between any pair of roots.
  • Not every quadratic factorises neatly — the quadratic formula always works as a backup.

Quadratic formulas

General form; is the -intercept directly.

Vertex form; the vertex is directly.

Axis of symmetry (from general form).

Memorise

Quadratic formula — solves when factorising is hard.

Memorise

Parabola with intercepts and vertex labelled

: roots at , axis of symmetry , vertex .

y = x^2 - 4x + 3root x=1root x=3vertex (2,-1)y-intercept (0,3)axis of symmetry x=2

Worked example

Extracting all key features of a quadratic

For , find the -intercept, the roots, the axis of symmetry and the vertex.

Examiner tip

If a quadratic doesn't factorise with small whole numbers, don't guess-and-check for minutes — 'solve' and 'find the roots' accept the quadratic formula for full marks provided the substitution is shown.

Key takeaways

  • General form gives the -intercept instantly; vertex form gives the turning point instantly.
  • Axis of symmetry is the -coordinate only — substitute back to find the vertex's -value.
  • The quadratic formula always works, even when factorising doesn't.

Graphs of Functions

A graph carries information you should be able to read straight off it, without needing the equation: intercepts, turning points, and where the function increases or decreases.

  • -intercepts are where the curve crosses the horizontal axis — the roots.
  • The -intercept is a single point where the curve crosses the vertical axis.
  • A maximum or minimum turning point tells you the range instantly, once you know which way the curve opens.
  • Domain/range can often be read visually before ever writing down the equation.

Reading key features off a parabola

: a maximum at gives the range instantly.

y = -x^2 + 2x + 3x-intercept x=-1x-intercept x=3maximum (1,4)y-intercept (0,3)

Worked example

Reading domain, range and intercepts directly off a graph

A parabola on a graph passes through and , has a maximum at , and crosses the -axis at . Determine its domain, range and intercepts directly from the graph, without using the equation.

Key takeaways

  • -intercepts, -intercept and turning points should be readable directly from a labelled graph.
  • Whether range is or the turning point's -value depends entirely on whether it's a minimum or maximum.
  • A smooth polynomial curve (no breaks) always has domain = all real numbers.

Exponential Functions

Exponential functions model repeated MULTIPLICATION rather than repeated addition — each step multiplies the previous output by the same factor, so growth (or decay) compounds instead of staying steady.

  • Base : growth — outputs increase and the curve gets steeper over time.
  • Base : decay — outputs shrink toward zero but never actually reach it.
  • The graph has a horizontal asymptote at (for the basic form) and never crosses the -axis.

Exponential function formula

Growth if ; decay if .

— initial value, at $x=0$
— growth/decay factor
Memorise

Percentage growth model: is the growth rate as a decimal (e.g. 4% → , base ).

Exponential growth curve

passes through , , — each step doubles the output; the curve approaches but never touches .

y = 3(2)^x(0,3)(1,6)(2,12)asymptote y = 0

Linear vs exponential: spotting the difference in a table

FeatureLinear functionExponential function
Pattern between outputsConstant DIFFERENCE (add same amount each step)Constant RATIO (multiply by same factor each step)
General form
Long-term behaviourGrows/falls at a steady, unchanging rate foreverGrowth accelerates (or decay slows) — never actually reaches zero
Graph shapeStraight lineCurve with a horizontal asymptote

Worked example

Percentage growth model

An investment of \A(n)=500(1.04)^nn$ is the number of years. Calculate the value after 5 years and state what the base $1.04$ represents.

Common mistake

Reading a table and assuming a constant difference (linear) without checking for a constant ratio.

Consequence: Leads to selecting the wrong function type entirely, so every formula built afterwards (gradient, intercept) is meaningless for that data.

Fix: Divide consecutive outputs, not subtract them — a constant ratio confirms exponential; a constant difference confirms linear.

Where exponential models actually show up

Compound interest, viral spread, radioactive decay and bacterial cultures all follow this pattern — anywhere the NEXT value depends on multiplying the CURRENT value by a fixed factor rather than adding a fixed amount.

Key takeaways

  • Constant ratio between consecutive outputs signals exponential, not linear.
  • Base means growth; base between 0 and 1 means decay; the curve never reaches .
  • In percentage models, the base is (growth) or (decay), not itself.

Quick Reference

Functions — everything on one page

Formulas

  • Inner function first — order matters.
  • Shift right, up — inside is opposite, outside is normal.
  • = gradient/rate, = -intercept/fixed value.
  • Gradient from two points.
  • Vertex form: vertex is directly.
  • Axis of symmetry from general form.
  • Quadratic formula — always works.
  • Growth if , decay if .

Key facts

Vertical line test
No input repeats with a different output
Horizontal shift sign
Opposite to the sign shown inside the bracket
Axis of symmetry
, halfway between the roots
Exponential asymptote
, never actually reached
Composite order
Function closest to evaluates first

Mnemonics

  • Outside acts normal, inside acts backwards.For : shifts as it looks (up); shifts opposite to its sign (right for ).

Don't confuse

  • Domain vs Range: Domain = valid inputs (); range = resulting outputs ().
  • Relation vs Function: Function = relation where every input has exactly ONE output.
  • vs : Read right-to-left; the function nearest acts first — order changes the answer.
  • Linear pattern vs Exponential pattern: Linear = constant DIFFERENCE between outputs; exponential = constant RATIO.

Command terms

Justify:
Name the specific test/reason (e.g. vertical line test), not just state yes/no.
Deduce:
Show the working chain — gradient then intercept — not just the final rule.
Evaluate:
Substitute the correct variable and compute the exact numeric value.
Advise:
State the number AND translate it into a recommendation in context.

Exam checklist

  • Checked every input for repeats before declaring a function — not just the outputs.
  • For composites, evaluated the function nearest first.
  • For horizontal shifts, reversed the sign inside the bracket.
  • Stated domain/range as intervals of the correct variable, restricted to sensible real-world values where needed.
  • Divided (not subtracted) consecutive outputs to test for an exponential pattern.
  • Tied every numeric answer back to the context sentence when the command term demands it (advise, explain, deduce).