Functions
🎯What you need to be able to do
- Move between the three forms of the equation of a straight line, and use the parallel and perpendicular conditions.
- Use the language of functions precisely: domain, range, image, graph, and function notation.
- Find and use composite functions and inverse functions, and know when an inverse exists.
- Work with quadratics in all three forms and read the right information off each.
- Solve quadratic equations and inequalities, and use the discriminant to describe the roots.
- Sketch the reciprocal and rational functions and state their asymptotes.
- Recognise exponential and logarithmic graphs as inverses of one another.
- Apply transformations to any graph, and know that the order matters.
- AHL Use the factor and remainder theorems, and the sum and product of the roots of a polynomial.
- AHL Sketch harder rational functions, including those with an oblique asymptote.
- AHL Classify functions as odd, even or self-inverse, and restrict a domain to force an inverse.
- AHL Solve inequalities and modulus equations graphically and algebraically.
📚The mathematics
2.1 Straight lines
Gradient–intercept form is the one to read a graph from; general form is the one exam questions like to state answers in; point–gradient form is the one to build a line with, because it needs only a point and a gradient and no rearranging.
Parallel lines have \( m_1 = m_2 \). Perpendicular lines have \( m_1 \times m_2 = -1 \), so the perpendicular gradient is the negative reciprocal: a gradient of \( \tfrac{3}{4} \) gives \( -\tfrac{4}{3} \). Flip and change sign — forgetting one of the two halves is the standard error.
2.2 The language of functions
A function assigns to each input exactly one output. The domain is the set of allowed inputs; the range is the set of outputs actually produced. Unless a question restricts it, the domain is the largest set for which the rule makes sense — which in practice means excluding whatever makes a denominator zero, a square root negative, or a logarithm non-positive.
Range is harder than domain because it depends on shape, so sketch first. For \( f(x) = x^2 - 4 \) the domain is all of \( \mathbb{R} \) but the range is \( f(x) \ge -4 \), and you only see that from the vertex.
An inverse function undoes the original: \( f^{-1}(f(x)) = x \). It exists only when \( f \) is one-to-one, so that no output comes from two different inputs — the horizontal line test. Geometrically the graph of \( f^{-1} \) is the reflection of \( f \) in the line \( y = x \), which is why the domain and range swap over: the domain of \( f^{-1} \) is the range of \( f \).
2.3 & 2.4 Graphs and their key features
Know the difference between the command terms: sketch wants the general shape with the important features labelled; draw wants an accurate plot to scale with a ruler for straight lines. Either way, label the axes and mark the features you were asked for.
The features worth naming are the intercepts, the maximum and minimum points, the vertex, any axis of symmetry, the zeros of the function (which are the roots of the equation \( f(x) = 0 \)), and the vertical and horizontal asymptotes. To find where two curves meet, either solve simultaneously or use the intersection function on your calculator — but on Paper 1 you have no calculator, so solve.
2.5 Composite and inverse functions
\( (f \circ g)(x) = f(g(x)) \): the inner function \( g \) acts first, even though it is written second. Substitute the whole of \( g(x) \) into \( f \), brackets and all.
To find an inverse algebraically: write \( y = f(x) \), swap \( x \) and \( y \), and make \( y \) the subject. State the domain of the inverse explicitly if the question asks — it is the range of the original.
2.6 & 2.7 Quadratics
Three forms, each of which hands you something different for free:
- \( f(x) = ax^{2} + bx + c \) — the \(y\)-intercept is \( (0, c) \), and the axis of symmetry is \( x = -\dfrac{b}{2a} \).
- \( f(x) = a(x-p)(x-q) \) — the \(x\)-intercepts are \( (p,0) \) and \( (q,0) \), and the axis of symmetry sits midway between them at \( x = \dfrac{p+q}{2} \).
- \( f(x) = a(x-h)^{2} + k \) — the vertex is \( (h,k) \). Note the sign: \( (x-3)^{2} \) puts the vertex at \( x = +3 \).
You are expected to convert between them: expand to go from factorised or vertex form to general form, factorise or complete the square to come back. The sign of \( a \) tells you which way the parabola opens.
The quadratic formula and the discriminant \( \Delta = b^{2} - 4ac \):
- \( \Delta > 0 \): two distinct real roots — the curve crosses the \(x\)-axis twice.
- \( \Delta = 0 \): two equal real roots — the curve touches the axis; the line is tangent.
- \( \Delta < 0 \): no real roots — the curve misses the axis entirely.
Questions asking for the values of a parameter \(k\) that give a particular number of roots are discriminant questions in disguise, and they almost always end in a quadratic inequality in \(k\). Solve it by finding the critical values and then testing which region works, or sketch the parabola in \(k\) — do not just divide through by \(k\), because you do not know its sign.
2.8 Reciprocal and rational functions
\( f(x) = \dfrac{1}{x} \) is a hyperbola with the axes as its asymptotes, and it is self-inverse: reflecting it in \( y = x \) leaves it unchanged.
For \( f(x) = \dfrac{ax+b}{cx+d} \), the vertical asymptote is where the denominator vanishes, \( x = -\dfrac{d}{c} \), and the horizontal asymptote is \( y = \dfrac{a}{c} \), the ratio of the leading coefficients. A sketch should show both asymptotes as dashed lines and both intercepts.
2.9 Exponentials and logarithms
\( f(x) = a^{x} \) (with \( a > 0 \)) passes through \( (0,1) \), has the \(x\)-axis as a horizontal asymptote, and never takes a negative value. Its inverse \( f(x) = \log_a x \) passes through \( (1,0) \), has the \(y\)-axis as a vertical asymptote, and is only defined for \( x > 0 \). Each is the other reflected in \( y = x \), which is a fast way to recall which asymptote goes where.
The two relationships worth having automatic are \( a^{x} = \mathrm{e}^{x\ln a} \) and \( \log_a a^{x} = x \).
2.10 & 2.11 Solving equations, and transformations
Some equations yield to algebra — \( \mathrm{e}^{2x} - 5\mathrm{e}^{x} + 4 = 0 \) is a hidden quadratic in \( \mathrm{e}^{x} \), so substitute \( u = \mathrm{e}^{x} \), solve, and then undo the substitution. Others have no analytic route at all, such as \( \mathrm{e}^{x} = \sin x \), and are meant to be solved graphically with technology on Paper 2.
Transformations of \( y = f(x) \):
Everything outside the function acts vertically and does what it says; everything inside acts horizontally and does the opposite of what it looks like. That single rule explains why \( f(x-3) \) moves the graph right and why \( f(2x) \) squashes it. For composite transformations the order matters — a stretch then a translation is not the same as the translation then the stretch.
AHL 2.12 Polynomials
The remainder theorem: dividing \( P(x) \) by \( (x-a) \) leaves remainder \( P(a) \). The factor theorem is the special case \( P(a) = 0 \iff (x-a) \) is a factor, and it is how you find the first root of a cubic before dividing down to a quadratic.
For \( \sum_{r=0}^{n} a_r x^{r} = 0 \), the sum of the roots is \( -\dfrac{a_{n-1}}{a_n} \) and the product is \( \dfrac{(-1)^{n}a_0}{a_n} \). These let you answer questions about roots without ever finding them — and they pair naturally with the conjugate-root fact from Topic 1.
AHL 2.13–2.16 Further functions
Rational functions of the form \( \dfrac{ax+b}{cx^{2}+dx+e} \) and \( \dfrac{ax^{2}+bx+c}{dx+e} \). The second type has an oblique asymptote: divide out to write it as a linear term plus a proper fraction, and the linear term is the asymptote.
A function is even if \( f(-x) = f(x) \) — symmetric about the \(y\)-axis — and odd if \( f(-x) = -f(x) \) — rotationally symmetric about the origin. Most functions are neither. A function is self-inverse if \( f^{-1} = f \), which shows up as symmetry in the line \( y = x \).
Restricting the domain can force an inverse to exist: \( f(x) = x^{2} \) has no inverse over \( \mathbb{R} \), but restricted to \( x \ge 0 \) it does.
For the graphs of \( |f(x)| \), \( f(|x|) \), \( \dfrac{1}{f(x)} \) and \( [f(x)]^{2} \), work from the original graph rather than from algebra: \( |f(x)| \) reflects anything below the \(x\)-axis upwards; \( f(|x|) \) keeps the right half and mirrors it to the left; \( \dfrac{1}{f(x)} \) turns zeros into vertical asymptotes and vice versa. For modulus equations, solving \( |g(x)| = k \) means solving both \( g(x) = k \) and \( g(x) = -k \), then checking each answer against the original.
✏️Worked example
(a) The inner function acts first, so substitute \( g \) into \( f \):
The domain is inherited from \( g \): the composite is undefined wherever \( g \) is, so \( x \in \mathbb{R},\ x \ne 3 \). Simplifying the algebra does not un-break that point.
(b) Write \( y = 2x - 5 \), swap the letters to get \( x = 2y - 5 \), and make \( y \) the subject: \( f^{-1}(x) = \dfrac{x+5}{2} \).
(c) Tangency means the line meets the curve exactly once, so setting them equal must give a quadratic with a repeated root:
Tangent \( \Rightarrow \Delta = 0 \), so \( (3-k)^{2} - 4(1)(6) = 0 \), giving \( (3-k)^{2} = 24 \) and \( 3 - k = \pm 2\sqrt{6} \). Hence \( k = 3 \mp 2\sqrt{6} \), that is \( k = 3 + 2\sqrt{6} \) or \( k = 3 - 2\sqrt{6} \).
📝Practise
Work through these, then reveal the answer. Each question targets a different objective from the list above.
1. A line passes through \( (2, -1) \) and is perpendicular to \( 3x + 4y = 12 \). Find its equation in the form \( ax + by + d = 0 \).
2. \( f(x) = \dfrac{2x+1}{x-4} \). State the domain and range, and the equations of both asymptotes.
3. Write \( f(x) = 2x^{2} - 12x + 23 \) in the form \( a(x-h)^{2} + k \), and hence state the vertex and the range.
4. The graph of \( y = f(x) \) is transformed to \( y = 3f(x-2) - 1 \). Describe the transformations in order, and state the image of the point \( (5, 4) \).
5. AHL Given that \( (x - 2) \) is a factor of \( P(x) = x^{3} + ax^{2} - 5x + 6 \), find \(a\) and fully factorise \(P(x)\).
6. AHL Solve \( |2x - 1| = x + 4 \).
🔗Go deeper — other people’s work
These are external resources, not mine. If one stops working, tell me and everything above it on this page still stands.
- Desmos — build a slider for each parameter and watch the transformations happen live
- Khan Academy — functions, quadratics and transformations
- GeoGebra — reflect a function in \( y = x \) to see the inverse appear