
Functions
Every 'model this real situation' question in your MYP5 exam is secretly asking one thing: can you treat a rule as a function, evaluate it, graph it, and pull information back out of it? That's this entire chapter. Get comfortable moving between a table of values, an equation and a graph — examiners test all three representations of the same function inside a single question, and most lost marks come from language and set-up, not algebra.
Overview — the shape of this chapter
Why this topic is basically the whole course
A function is a reliable machine: put a number in, get exactly one number out. Every other idea here — domain, range, transformations, inverses, composites — is just asking what the machine accepts, what it produces, and what happens when you chain machines together or run one backwards.
- MYP5 Extended blends algebraic fluency (solving, simplifying) with the language of functions (notation, domain, range) — most marks are lost on wording, not working.
- Real-world contexts (cost plans, drone flights, bridge deflection) dominate the exam bank — you build a function FROM a table or story, not just manipulate one you're given.
- Graphs, tables and equations are three views of the same object — a question can switch representation mid-way and still expects the same reasoning underneath.
The shape of the chapter
Command terms that decide how you answer
| Command term | What it demands | AO | Mark-earning move |
|---|---|---|---|
| State | Give a brief answer — a definition, value or equation — with no explanation. | AO1 | 1 mark per correct fact; a vague or partial version scores nothing. |
| Evaluate | Substitute the given input into the function and simplify to a single numerical answer. | AO2 | Showing the substitution earns a method mark even if final arithmetic slips. |
| Determine / Deduce | Use given information (a graph, table or point) to establish something not stated outright — reasoning must be visible. | AO2/AO3 | The answer alone rarely scores full marks — the mark scheme wants the calculation or comparison behind it. |
| Justify | Give a reason, backed by a calculation or a stated rule (e.g. the vertical line test), for why a claim is true or false. | AO3 | A correct answer with no reason attached still scores 0. |
| Construct | Build an equation, table, graph or system directly from context, points or a description. | AO2 | Marks are awarded for each construction step (e.g. each equation in a system), not just the final result. |
| Solve | Find the value(s) of the unknown satisfying an equation or inequality. | AO2 | All valid solutions must be listed — dropping one root of a quadratic costs a mark even with perfect method. |
Key point
Applications of Functions
Applications questions rarely hand you a clean equation — you're given a table, a sentence, or a single point, and expected to recognise the underlying function or use one you're given to check a real claim.
- Identify the independent variable (what you control/measure — time, GB used, load) and the dependent variable (what the function outputs — cost, altitude, deflection) before touching any numbers.
- 'Evaluate and compare' questions like a disputed phone bill test whether you can substitute correctly, not whether you know new theory.
- When a table doesn't fit a straight line, the pattern of differences tells you the family: constant first differences → linear, constant second differences → quadratic.
Worked example
Checking a disputed phone bill
Worked example
Modelling bridge deflection with three data points
Common mistake
Treating the independent variable in a table as whichever column happens to be on the left, without reading which quantity the question calls the input.
Consequence: Swapping x and y flips gradient/rate calculations and can invert a correct linear model — an easy way to lose the construct mark entirely.
Fix: Underline the sentence that says what the input represents (e.g. 'x is the number of gigabytes') before writing a single equation.
Where this actually shows up
Key takeaways
- Evaluate first, compare second — never call a claim 'wrong' without showing the calculated value beside it.
- Constant second differences in a table signal a quadratic model — set up one equation per point and eliminate systematically.
- Always check a solved model against a data point you didn't use — it's free error-catching.
Linear Programming
Linear programming turns real-world limits (budget, time, materials) into inequalities and asks: what's the best you can do without breaking any of them? The answer is never hiding in the middle of the feasible region — it's always sitting on a corner.
- Each constraint is an inequality in two variables — graph its boundary line, then shade the side that satisfies it.
- The feasible region is the overlap of every shaded half-plane, including when the context can't go negative.
- The objective function (profit, cost — whatever you're optimising) is tested ONLY at the vertices of the feasible region: the corner-point principle.
- Constraint
- An inequality restricting the possible values of the variables, based on a real limit.e.g.
- Feasible region
- The set of all points satisfying every constraint simultaneously — the overlap of all shaded regions.
- Objective function
- The quantity being maximised or minimised, written in the same variables as the constraints.e.g.
- Corner-point principle
- The maximum or minimum value of a linear objective function over a feasible region always occurs at a vertex of that region.Never in the interior, never mid-edge.
General linear objective function in two variables
- — profit/cost contributed per unit of $x$ and $y$
Feasible region for maximising P = 3x + 5y
Constraints and (plus ) with vertices at (0,0), (5,0), (4,3), (0,5).
Worked example
Maximising profit within two constraints
Common mistake
Shading the wrong side of a boundary line (e.g. shading where instead of ).
Consequence: The entire feasible region ends up in the wrong place, so every vertex and the final answer are wrong even though the method looks correct.
Fix: Test the origin in the original inequality — if it's true, shade the side containing the origin; if false, shade the other side.
Key takeaways
- Feasible region = overlap of all shaded half-planes, including any non-negativity constraints.
- The optimal value of a linear objective function always occurs at a vertex — test every vertex, nothing else.
- Double-check which side of each boundary line to shade using the origin test.
Introduction to Functions
Before any graphing or transforming, MYP5 wants a precise definition in your own words — this is a near-guaranteed 'state' question somewhere on the paper.
- A function assigns every element of the domain exactly one element of the range — 'exactly one' is the phrase examiners look for, not 'a' or 'some'.
- Function notation names the output when the rule is applied to input — is a NUMBER, not an instruction.
- A relation that isn't a function (like ) can still be mathematically sensible — it simply fails the one-output rule.
- Function
- A relation in which every input (element of the domain) is mapped to exactly one output (element of the range).The exact 2-mark wording: 'every input' + 'exactly one output'.
- Domain
- The complete set of input values for which the function is defined.
- Range
- The complete set of output values the function actually produces.
- Mapping diagram
- A diagram with two ovals (domain, range) and arrows showing which input goes to which output.
Worked example
Stating the definition (2 marks)
Worked example
Reading meaning from function notation
Function vs non-function mapping diagrams
Left: every input has exactly one arrow out — a function. Right: one input has two arrows out — not a function.
Definition questions are 2 marks for a reason
Key takeaways
- Memorise the two-part definition word-for-word: relation + exactly one output.
- reads as 'input gives output ' — always translate it back into the real-world context when asked to interpret it.
- A mapping diagram fails the function test the instant one arrow splits into two.
Types of Functions
Every function you meet in MYP5 belongs to a small number of families, and you're expected to recognise the family from the equation OR the graph shape without being told which is which.
- Linear: constant rate of change, straight-line graph, .
- Quadratic: constant SECOND difference in a table, parabola graph, .
- Exponential: constant RATIO between consecutive outputs, curve flattening toward an asymptote, .
- Piecewise: different rules apply on different intervals of the domain — you must check the intervals don't overlap for it to still count as a function.
Function families at a glance
| Family | Typical equation | Graph shape | How you spot it in a table |
|---|---|---|---|
| Linear | Straight line | Constant first differences | |
| Quadratic | Parabola (U or ∩) | Constant SECOND differences | |
| Exponential | Curve flattening to an asymptote | Constant RATIO between outputs | |
| Piecewise | Different rule per interval | Graph built from separate pieces | Domain split into non-overlapping intervals |
Worked example
Justifying and evaluating a piecewise charge function
Piecewise charge function
Left piece: parabola arm ending at (0,0). Middle piece: constant y=2 from just after 0 up to just before 3. Right piece: line from (3,2) rising through (4,3) and (5,4).
Common mistake
Assuming a piecewise rule with three separate formulas can't be a function 'because there are three rules'.
Consequence: This reasoning is backwards and scores 0 for the justify mark — the number of formulas is irrelevant; only overlap of domains matters.
Fix: Always check the boundary values individually (like and here) — confirm each satisfies exactly one of the stated inequalities.
Key takeaways
- Identify a function's family from constant first differences (linear), second differences (quadratic) or ratios (exponential) in a table.
- A piecewise rule is still one function as long as its domain pieces never overlap — check boundary points explicitly.
- A 'jump' in a piecewise graph occurs only where the one-sided values genuinely disagree — verify with numbers, don't guess.
Transformations
Every transformation you're asked to describe fits the same template: . Learn what each letter does once, and every 'describe the transformation' question becomes a checklist.
- : vertical translation — up if , down if .
- : horizontal translation — shifts RIGHT when has (this is the sign everyone flips).
- : vertical stretch by factor ; if , also reflects in the x-axis.
- : horizontal stretch by factor ; if , also reflects in the y-axis.
General transformation of a parent function
- — vertical stretch factor; negative reflects in the x-axis
- — horizontal stretch factor is $1/|b|$; negative reflects in the y-axis
- — horizontal translation (shift right if positive)
- — vertical translation (shift up if positive)
Parent parabola vs transformed parabola
Parent through (-2,4),(-1,1),(0,0),(1,1),(2,4); transformed with vertex (-1,-3) through (0,-5) and (-2,-5).
Mnemonic
Inside opposite, outside obvious
Anything added/multiplied INSIDE the bracket with x (affecting and ) does the OPPOSITE of what it looks like — shifts LEFT. Anything OUTSIDE the bracket (affecting and ) does exactly what it looks like — shifts UP.
Worked example
Describing a full transformation
Common mistake
Describing transformations in the wrong order, or skipping the reflection when is negative.
Consequence: Even with all four numbers identified correctly, presenting them in an order that doesn't reproduce the given equation loses the accuracy mark.
Fix: State transformations affecting (from and ) before those affecting (from and ), matching the order the equation is built in.
Key takeaways
- Always rewrite the bracket as before reading off the horizontal translation — the sign flips.
- Negative reflects in the x-axis; negative reflects in the y-axis — easy to mix up under time pressure.
- Describe transformations affecting before those affecting to match the mark scheme's expected order.
Inverse Functions
An inverse function undoes what the original does — if turns 2 into 7, must turn 7 back into 2. Graphically, that's a reflection in the line .
- Method: write , swap and , then solve for — the result is .
- genuinely exists as a function only if is one-to-one (passes the horizontal line test) — otherwise the domain may need restricting.
- Key identity: and — use this to check your inverse.
Defining property of an inverse function
f(x)=2x+3 and its inverse reflected in y=x
through (0,3),(2,7),(-1,1); through (3,0),(7,2),(1,-1); dashed line .
Worked example
Finding and checking an inverse
Common mistake
Calling the inverse function.
Consequence: This is a conceptual error, not an arithmetic slip — it typically loses all method and answer marks on the question.
Fix: Say 'swap x and y' out loud before starting — the reciprocal never involves swapping variables.
Key takeaways
- Inverse method: swap and , then solve for — always in that order.
- Graphically, and are mirror images across the line .
- Verify your inverse using one known input-output pair — it takes seconds and catches most errors.
Domain and Range
Domain and range questions are really about spotting what could go wrong with an input — a negative under a square root, a zero on a denominator, or a real-world quantity that can't be negative.
- Square roots: the expression under the root must be — set it up as an inequality and solve for .
- Fractions: the denominator can never equal 0 — exclude that single value from the domain.
- Real-world context often adds its OWN restriction (e.g. time ) on top of the algebraic one — the domain is the INTERSECTION of both.
- Range is usually deduced AFTER the domain is fixed — substitute the domain's boundary and behaviour to see which outputs are possible.
- Domain
- The set of all -values for which a function produces a real, defined output.
- Range
- The set of all possible output values the function actually takes across its domain.
- Set notation for domain/range
- Written as — read as 'the set of real such that is at least 3'.
Worked example
Domain and range of a drone descent model
Graph of f(x) = √(x-3) + 2
Curve starts at (3,2), passing through (4,3) and (7,4); domain begins at x=3, range begins at y=2.
Key point
Set notation loses easy marks
Key takeaways
- Square root domains need the inside ; fraction domains exclude values making the denominator 0.
- Real-world domain restrictions and algebraic domain restrictions must be intersected, not just one or the other.
- Work out the range only after the domain is fixed, using the domain's boundary and end behaviour.
Quadratic Functions
A quadratic's graph is a parabola, and every question about it is really asking you to extract one of four features: the roots, the vertex, the y-intercept, or a specific input/output pair.
- Standard form gives the y-intercept instantly: .
- Vertex form gives the vertex instantly — no calculation needed.
- Axis of symmetry: — substitute back in to find the vertex from standard form.
- To solve for a specific output, rearrange to and factorise or use the quadratic formula.
Quadratic formula — solves
- — coefficients of $x^2$, $x$ and the constant term
Axis of symmetry / vertex x-coordinate for
Three forms of a quadratic — read off different features instantly
| Form | Equation | Reveals directly |
|---|---|---|
| Standard | y-intercept | |
| Factored | x-intercepts (roots) | |
| Vertex | Vertex and axis of symmetry |
Parabola y = x² − 4x + 3
Roots at (1,0) and (3,0), vertex at (2,-1), y-intercept at (0,3).
Worked example
Drone altitude — evaluating, solving, and justifying in context
Common mistake
Forgetting to reject a mathematically valid but contextually impossible root (like negative time).
Consequence: Loses the final accuracy/justify mark even though every algebraic step was correct.
Fix: Whenever represents something physical (time, length, quantity), check the sign of every solution against context before finalising the answer.
Key takeaways
- Standard, factored and vertex forms each hand you a different feature for free — pick the form that matches what's being asked.
- Solving means rearranging to first, then factorising or using the quadratic formula.
- Always sanity-check quadratic solutions against the real-world context — reject roots that don't make physical sense.
Graphs of Functions
Reading a graph is a skill examiners test directly — locating intercepts, turning points and intervals of increase/decrease without being handed the equation.
- x-intercept(s): where the curve crosses the x-axis, i.e. where — there can be none, one, or several.
- y-intercept: where the curve crosses the y-axis — always just , a single point.
- Turning points (local max/min): where the curve changes from increasing to decreasing or vice versa.
- Average rate of change between two points on ANY curve is — the gradient of the straight line joining those two points, not the curve's own steepness.
Reading turning points and intercepts from a cubic
: local max at (-1,2), local min at (1,-2), x-intercepts at (0,0), , .
Worked example
Average rate of change on a non-linear graph
Frequently confused
| Concept A | Concept B | The distinction that matters |
|---|---|---|
| x-intercept | y-intercept | x-intercept solves (there can be several); y-intercept is simply (always exactly one point). |
| Domain | Range | Domain restricts what you're allowed to put IN (-values); range describes what actually comes OUT (-values). |
| Function | Relation | Every function is a relation, but a relation is only a function if every input gives exactly one output. |
Reading turning points off a graph
Key takeaways
- x-intercepts come from solving ; the y-intercept is just — don't confuse the processes.
- Average rate of change between two points uses only their output values, via — never estimate it visually.
- State turning points as full coordinate pairs, not a single x-value.
Linear Functions
A linear function is the one family where the gradient means something concrete in every context — it's the rate at which the output changes per unit of input, and the y-intercept is the 'starting' value.
- Gradient — calculate it from ANY two points in a table, then verify with a third pair.
- y-intercept : substitute one known point into once is known, and solve for .
- In context, is a RATE (dollars per hour, metres per second) and is a FIXED starting amount (a base fee, an initial position).
- Constant first differences in a table are the fingerprint confirming a relationship really is linear before you commit to the model.
Gradient between two points
Slope-intercept form of a linear function
- — gradient / rate of change
- — y-intercept / fixed starting value
Bike rental cost function C(h) = 6h + 2
Line through (0,2) and (1,8), with cost at 7 hours marked at (7,44).
Worked example
Bike rental — building and using a linear model
'Deduce the equation' wants the gradient calculation shown
Common mistake
Using only two rows of a table to find and without checking that a third row confirms the pattern.
Consequence: If the data is secretly quadratic (like the bridge deflection example), forcing a linear equation through it gives a model that's wrong for every other value.
Fix: Always check at least one extra row of the table (constant first differences) before committing to a linear model.
Key takeaways
- Confirm linearity with constant first differences before finding and — don't assume from just two points.
- In context, gradient = rate (output units per input unit), y-intercept = fixed starting value.
- 'Advise' or 'recommend' questions want the inequality translated into a plain-English recommendation, not left as raw algebra.
Composite Functions
A composite function chains two machines together — processes the input first, then processes whatever produced. Get the order backwards and you're solving a completely different problem.
- — read right to left: do first, then feed that result into .
- In general — order matters, so identify which function is 'inner' before substituting.
- The domain of is restricted to inputs for which is itself a valid input for — not just the domain of alone.
Definition of a composite function — apply first, then
Function machine chain for a composite
Composition order: g acts first, then f acts on the result.
Worked example
Showing composite functions aren't commutative
Common mistake
Assuming means 'multiply by '.
Consequence: This produces an entirely different (and wrong) expression, usually losing every mark on the question.
Fix: Read out loud as 'f of g of x' before writing anything down.
Key takeaways
- : apply the function closest to first.
- and are generally different — never assume they're equal without checking.
- The domain of a composite depends on both functions, not just the inner one.
Exponential Functions
Exponential functions model anything that grows or shrinks by a constant PERCENTAGE per step, not a constant amount — that's what separates them from linear models.
- General form : is the starting value (at ), is the growth/decay factor per unit of .
- : growth (value increases); : decay (value decreases toward zero, never reaching it).
- The graph always has a horizontal asymptote — a value approached but never touched — at for the basic form, shifted if the equation has .
- Constant RATIO between consecutive table outputs (not constant difference) is the fingerprint of an exponential model.
General exponential function
- — initial value, output when $x=0$
- — growth factor ($b>1$) or decay factor ($0<b<1$) per unit increase in $x$
Exponential function shifted vertically — the horizontal asymptote becomes
Exponential growth curve y = 2(1.5)^x
Curve through (0,2) and (2,4.5), approaching but never touching y=0 as x decreases.
Worked example
Depreciating drone value
Common mistake
Confusing the coefficient (starting value) with the base (growth/decay factor per step) when writing an exponential model from a context.
Consequence: Swapping them turns a decaying model into an exploding one (or vice versa) — every subsequent value calculated from it is wrong.
Fix: Ask 'what's the value when ?' — that number is always , never .
Same shape, everywhere
Key takeaways
- = starting value (at ); = growth () or decay () factor per step — never mix these up.
- Constant ratio between consecutive outputs in a table signals an exponential model, not constant difference.
- The graph approaches its asymptote but never crosses it — state this explicitly when describing the graph's behaviour.
Quick Reference
Functions — everything on one page
Formulas
- Gradient of a line / average rate of change between two points
- Linear function form
- Standard quadratic form; y-intercept
- Axis of symmetry / vertex x-coordinate
- Quadratic formula
- Exponential model; =start value, =growth/decay factor
- General transformation template
- Apply the inner function first
Key facts
- Vertical line test
- No vertical line should cross a function's graph more than once
- Horizontal asymptote of
- (or if shifted)
- Vertex form
- gives vertex directly
Mnemonics
- Inside opposite, outside obviousChanges to x inside the bracket act in reverse; changes outside the bracket act as they appear.
Don't confuse
- x-intercept vs y-intercept: x-intercept solves ; y-intercept is simply .
- Domain vs Range: Domain = valid inputs; range = resulting outputs.
- Function vs Relation: A function is a relation where every input gives exactly one output.
- Inverse vs Reciprocal : Inverse swaps x and y and solves for y; reciprocal just divides 1 by the function — never the same thing.
Command terms
- State:
- one-line fact, no working needed
- Evaluate:
- substitute and simplify to a number
- Deduce / Determine:
- show the calculation or comparison that leads to the answer
- Justify:
- give a reason backed by a calculation or rule
- Construct:
- build the equation, system or graph from raw data
Exam checklist
- Checked the function definition wording includes 'exactly one output'?
- Domain worked out before range?
- Rejected any context-impossible solutions (negative time, negative length)?
- Read correctly for horizontal translation direction?
- Checked composite function order — inner function first?
- Verified a linear/quadratic/exponential model against an unused data point?