
Functions
SL2.1–SL2.7 (Functions)
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 term | What it demands | AO | Mark-earning move |
|---|---|---|---|
| Show that | derive the given result using clear algebra — a calculator-verified answer alone scores zero | AO2 | exact values (ln, surds) must appear in the working, not rounded decimals |
| Hence | use the result from the previous part directly | AO2 | re-deriving from scratch instead of using the given result loses marks even if the final answer is right |
| State | give the answer with no justification required | AO1 | one mark awarded for the correct value alone |
| Sketch | draw a graph with key features (intercepts, asymptotes, turning points) clearly shown | AO1/AO2 | marks are awarded per labelled feature, not for a technically accurate curve |
| Determine | find the value through systematic working, often via GDC | AO2 | quoting only a GDC output with no method shown can lose the method mark in multi-step questions |
Key point
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
Worked example
Show-that with an exponential growth model
Worked example
Break-even between a linear cost and a quadratic revenue function
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
Exponential growth model with initial value and rate
Continuous exponential growth: the curve always passes through and never touches the horizontal axis.
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
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.
Frequently confused
| Concept A | Concept B | The 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. | ||
| Domain | Range | domain 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
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)
| Transformation | Equation | Effect on graph |
|---|---|---|
| Vertical translation | shifts graph up (k>0) / down (k<0) by k units | |
| Horizontal translation | shifts graph right (h>0) / left (h<0) by h units | |
| Vertical stretch | stretches vertically by factor a (|a|>1 stretch, 0<|a|<1 compress); a<0 also reflects in the x-axis | |
| Horizontal stretch | stretches horizontally by factor 1/b; b<0 also reflects in the y-axis | |
| Reflection in x-axis | flips the graph vertically | |
| Reflection in y-axis | flips 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
Combined transformation of a parabola
Original vertex (0,0) maps to the new vertex (-3,5); the parabola also flips and stretches vertically.
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
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)
Pythagorean identity — used to simplify or solve trig equations
definition of tangent
Graphs of y = sin x and y = cos x
Both curves have amplitude 1 and period ; cos is sin shifted left by .
sin, cos and tan compared
| Feature | sin x | cos x | tan x |
|---|---|---|---|
| Period | 2π | 2π | π |
| Range | [-1, 1] | [-1, 1] | all reals |
| Asymptotes | none | none | x = π/2 + nπ |
| Value at x = 0 | 0 | 1 | 0 |
| Symmetry | odd: sin(-x) = -sin x | even: cos(-x) = cos x | odd: tan(-x) = -tan x |
Worked example
Modelling and solving with a periodic function
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
Where periodic models actually get examined
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?