Definition. A functionf from a set A (the domain) to a set B (the codomain) is a
Rule that assigns to each element a∈A exactly one element f(a)∈B. We write f:A→B.
Definition. The range (or image) of f is the set {f(a):a∈A}⊆B — the
Set of all values actually attained.
Definition. The natural domain of a real-valued function defined by an algebraic expression is
The largest subset of R for which the expression is defined. Common restrictions:
Denominators cannot be zero: x=0 in x1.
Square roots require non-negative arguments: x≥0 in x.
Logarithms require positive arguments: x>0 in lnx.
Example
Find the natural domain of $f(x) = \sqrt{x + 2} + \frac{1}{x - 1}$.
We need: x+2≥0 (for the square root) AND x−1=0 (for the denominator).
So x≥−2 and x=1.
Domain: [−2,1)∪(1,∞).
2. Composition of Functions
Definition. Given functions f:A→B and g:B→CThe compositiong∘f:A→C
is defined by:
(g∘f)(x)=g(f(x))
Theorem. Function composition is associative: (h∘g)∘f=h∘(g∘f).
Theorem. Function composition is not commutative : f∘g=g∘f.
Example
Given $f(x) = 2x + 1$ and $g(x) = x^2$Find $f \circ g$ and $g \circ f$.
(f∘g)(x)=f(g(x))=f(x2)=2x2+1.
(g∘f)(x)=g(f(x))=g(2x+1)=(2x+1)2=4x2+4x+1.
f∘g=g∘f.
:::caution Warning Right to left: (f∘g)(x)=f(g(x)).
:::
3. Inverse Functions
Definition. A function f:A→B is injective (one-to-one) if
f(a1)=f(a2)⟹a1=a2 for all a1,a2∈A. Equivalently, distinct inputs give
Distinct outputs.
Definition. A function f:A→B is surjective (onto) if for every b∈BThere exists
a∈A such that f(a)=b.
Definition. A function that is both injective and surjective is bijective.
Theorem. A function f:A→B has an inverse function f−1:B→A if and only if f is
Bijective.
Proof.
(⇒) If f−1 exists, then f must be injective (otherwise f−1 would be
Multiply-defined) and surjective (otherwise f−1 would be undefined for elements not in the
Range).
(⇐) If f is bijective, then for each b∈B there exists exactly one a∈A with
f(a)=b. Define f−1(b)=a. This is well-defined and satisfies f−1(f(a))=a and
f(f−1(b))=b. ■
Intuition. An inverse function “undoes” the original function. For this to work, the original
Function must pair each input with a unique output (injectivity) and must cover every element of the
Codomain (surjectivity).
3.1 Finding Inverse Functions
Method.
Write y=f(x).
Solve for x in terms of y.
Replace y with x (and x with y) to get f−1(x).
State the domain of f−1 (which equals the range of f).
Example
Find the inverse of $f(x) = \frac{2x + 3}{x - 1}$, $x \neq 1$.
y=x−12x+3
y(x−1)=2x+3
yx−y=2x+3
yx−2x=y+3
x(y−2)=y+3
x=y−2y+3
So f−1(x)=x−2x+3With domain x=2.
The range of f is all real numbers except f(x)=2:
x−12x+3=2⟹2x+3=2x−2⟹3=−2Impossible. So the range is
R∖{2}Which equals the domain of f−1. ✓
Theorem. The graph of y=f−1(x) is the reflection of y=f(x) in the line y=x.
Proof. If (a,b) lies on y=f(x)Then b=f(a)So a=f−1(b)Meaning (b,a) lies On
y=f−1(x). Swapping coordinates is reflection in y=x. ■
4. The Modulus Function
Definition. The modulus (absolute value) function is defined by:
Theorem. The graph of y=f(x−a) is the graph of y=f(x) translated by a units in the
Positive x-direction.
Proof. Let g(x)=f(x−a). The point (x0,y0) lies on y=g(x) if and only if
y0=g(x0)=f(x0−a). This means (x0−a,y0) lies on y=f(x). So the point
(x0,y0) on g corresponds to the point (x0−a,y0) on f — a shift right by a.
■
Intuition. Replacing x with x−a means “to get the same output, I need to input a more.”
The graph shifts right to compensate.
Similarly, y=f(x)+b translates up by b.
5.2 Reflections
Transformation
Effect
y=f(−x)
Reflection in the y-axis
y=−f(x)
Reflection in the x-axis
Proof for y=f(−x) as reflection in the y-axis. If (x0,y0) is on y=f(x)Then
y0=f(x0). The point (−x0,y0) satisfies y0=f(−(−x0))=f(x0)So it lies on
y=f(−x). Reflecting (x0,y0) in the y-axis gives (−x0,y0). ■
5.3 Stretches
Transformation
Effect
y=f(ax)
Horizontal stretch, scale factor a1
y=af(x)
Vertical stretch, scale factor a
Proof for y=f(ax) as horizontal stretch. If (x0,y0) is on y=f(x)Then on
y=f(ax)The same y-value occurs when ax=x0I.e., x=ax0. So
(ax0,y0) is on the new graph — a horizontal stretch by factor a1.
■
:::caution Horizontal transformations are “backwards”: f(x−a) shifts right (not left), and
f(ax) stretches by a1 (not a). This is the single most common error in this topic.
:::
5.4 Combined Transformations
When multiple transformations are applied, the order matters. The convention is:
y=af(x−p)+q
Represents: horizontal translation by p (right), vertical stretch by factor aVertical
Translation by q (up).
:::tip Tip (outside). The order inside-out matters.
:::
6. Even and Odd Functions
Definition. A function f is even if f(−x)=f(x) for all x in its domain. A function
f is odd if f(−x)=−f(x) for all x in its domain.
Theorem. The graph of an even function is symmetric about the y-axis. The graph of an odd
Function has rotational symmetry of order 2 about the origin.
Proof. For even f: the point (−x,f(−x))=(−x,f(x)) is on the graph whenever (x,f(x)) is.
These two points are reflections of each other across the y-axis. ■
For odd f: the point (−x,f(−x))=(−x,−f(x)) is on the graph whenever (x,f(x)) is. Rotating
(x,f(x)) by 180∘ about the origin gives (−x,−f(x)). ■
Algebraic Properties.
Operation
Even × Even
Odd × Odd
Even × Odd
Result
Even
Even
Odd
Proof (for f odd, g odd ⟹fg even).(fg)(−x)=f(−x)g(−x)=(−f(x))(−g(x))=f(x)g(x)=(fg)(x). ■
Proof (for f even, g odd ⟹fg odd).(fg)(−x)=f(−x)g(−x)=f(x)(−g(x))=−f(x)g(x)=−(fg)(x). ■
Theorem. The only function that is both even and odd is f(x)=0 (the zero function on a
Symmetric domain).
Proof.f even: f(−x)=f(x). f odd: f(−x)=−f(x). Therefore f(x)=−f(x)So
2f(x)=0Hence f(x)=0 for all x. ■
Example
Classify $f(x) = x^3 - x$ and $g(x) = \cos(x^2)$.
f(−x)=(−x)3−(−x)=−x3+x=−(x3−x)=−f(x). So f is odd.
g(−x)=cos((−x)2)=cos(x2)=g(x). So g is even.
7. Composite Function Domain and Range
Theorem. The domain of g∘f is {x∈dom(f):f(x)∈dom(g)}.
Proof. For (g∘f)(x)=g(f(x)) to be defined, we need x∈dom(f) (so f(x)
Exists) AND f(x)∈dom(g) (so g can accept f(x) as input). ■
The range of g∘f is the image under g of the set
{f(x):x∈dom(g∘f)}Which is a subset of the range of g.
Example
Given $f(x) = x^2$ with domain $\mathbb{R}$ and $g(x) = \sqrt{x}$ with domain $[0, \infty)$Find the domain and range of $g \circ f$.
Domain: We need x∈R (always true) and f(x)=x2∈[0,∞) (always true).
So dom(g∘f)=R.
Range:g(f(x))=x2=∣x∣. The range of ∣x∣ over R is [0,∞).
Example
Given $f(x) = \frac{1}{x - 1}$ with domain $\mathbb{R} \setminus \{1\}$ and $g(x) = \ln x$ with domain $(0, \infty)$Find the domain of $g \circ f$.
We need x−11>0So x−1>0Giving x>1.
dom(g∘f)=(1,∞).
8. Self-Inverse Functions
Definition. A function f is self-inverse if f−1=fI.e., f(f(x))=x for all x In
the domain of f.
Theorem. If f is self-inverse, then f is bijective and f=f−1.
Proof. If f(f(x))=x for all xThen f has an inverse (namely f itself), so f is
Bijective. And by definition of inverse, f−1=f. ■
To solve inequalities involving the modulus function:
Type 1:∣f(x)∣<g(x) where g(x)>0.
This is equivalent to the compound inequality −g(x)<f(x)<g(x).
Proof.∣f(x)∣<g(x)⟺−g(x)<f(x)<g(x) follows directly from the definition of
Modulus. ■
Type 2:∣f(x)∣>g(x).
This is equivalent to: f(x)>g(x) OR f(x)<−g(x).
Example
Solve $|x^2 - 3x| \lt 4$.
This gives −4<x2−3x<4I.e., two separate inequalities:
x2−3x−4<0⟹(x−4)(x+1)<0⟹−1<x<4.
x2−3x+4>0: discriminant Δ=9−16=−7<0And the coefficient of x2 is
Positive, so this is always true.
Solution: −1<x<4.
Example
Solve $|2x - 1| \geq x + 2$.
Case 1: 2x−1≥0 (i.e., x≥1/2): 2x−1≥x+2⟹x≥3. Combined with
x≥1/2: x≥3.
Case 2: 2x−1<0 (i.e., x<1/2):
−(2x−1)≥x+2⟹−2x+1≥x+2⟹−1≥3x⟹x≤−1/3. Combined
With x<1/2: x≤−1/3.
Solution: x≤−1/3 or x≥3I.e., x∈(−∞,−1/3]∪[3,∞).
10. Transformation Order — Why It Matters
When multiple transformations are applied to y=f(x)The order matters because horizontal and
Vertical transformations interact differently.
Rule. For y=af(bx+c)+d:
Apply horizontal transformations first: the argument is bx+cWhich is a horizontal stretch
by factor 1/b then a horizontal shift of −c/b.
Apply vertical transformations second: vertical stretch by ∣a∣Reflection if a<0Then
vertical shift d.
:::caution Common Pitfall The horizontal shift in f(bx+c) is −c/bNOT −c. The stretch
“absorbs” part of the shift. This is the single most common error in transformation problems.
:::
Example
Describe the transformations mapping $y = x^2$ to $y = 3(2x - 4)^2 + 5$.
Reading from inside out:
x2→(2x)2: horizontal stretch, factor 1/2.
(2x)2→(2x−4)2=[2(x−2)]2=4(x−2)2: horizontal shift right by 2.
If you get this wrong, revise: [Composition](#2-composition-of-functions)
Problem 5. The graph of y=f(x) passes through (0,1) and (3,−2). State the coordinates
Of the corresponding points on: (a) y=f(x+2) (b) y=−f(x) (c) y=f(2x) (d)
y=3f(x)−1
Solution
(a) $y = f(x + 2)$: shift left by 2. Points: $(-2, 1)$ and $(1, -2)$.
(b) y=−f(x): reflect in x-axis. Points: (0,−1) and (3,2).
(c) y=f(2x): horizontal stretch factor 21. Points: (0,1) and
(23,−2).
(d) y=3f(x)−1: vertical stretch factor 3, then shift down 1. Points: (0,2) and (3,−7).
If you get this wrong, revise: [Transformations](#5-transformations-of-graphs)
Problem 6. The function f is defined by f(x)=x3−3x+1. Show that f is not injective
On RAnd find the largest interval containing x=0 on which f is injective.
Solution
$f'(x) = 3x^2 - 3 = 3(x - 1)(x + 1)$.
f′(x)=0 at x=±1. f′(x)<0 for −1<x<1 (decreasing), and f′(x)>0 for x<−1
Or x>1 (increasing).
Since f is decreasing on (−1,1) and increasing on (−∞,−1) and (1,∞)It is not
Injective on all of R. For example, f(−2)=−8+6+1=−1 and f(0)=1 and
f(1)=−1. So f(−2)=f(1)=−1 with −2=1.
The largest interval containing 0 on which f is strictly monotonic (hence injective) is
[−1,1].
If you get this wrong, revise: [Injectivity](#3-inverse-functions) and [Differentiation](./10-differentiation.md)
Problem 7. Solve the inequality ∣x−3∣>∣2x+1∣.
Solution
Square both sides (both sides are non-negative):
(x−3)2X2−6x+9−3x2−10x+83x2+10x−8>(2x+1)2>4x2+4x+1>0<0
(3x−2)(x+4)<0
−4<x<32
If you get this wrong, revise: [Modulus function](#4-the-modulus-function)
Problem 8. Given f(x)=e2x and g(x)=ln(x+1)Find f^{-1}$$g^{-1}And the Domain of
f∘g.
Solution
$f^{-1}(x)$: $y = e^{2x} \implies \ln y = 2x \implies x = \frac◆LB◆\ln y◆RB◆◆LB◆2◆RB◆$.
f−1(x)=21lnxDomain x>0.
g−1(x): y=ln(x+1)⟹x+1=ey⟹x=ey−1.
g−1(x)=ex−1Domain all R.
(f∘g)(x)=f(g(x))=f(ln(x+1))=e2ln(x+1)=(x+1)2.
Domain of f∘g: we need x+1>0 (for g), so x>−1.
If you get this wrong, revise: [Composition](#2-composition-of-functions) and [Inverse functions](#3-inverse-functions)
Problem 9. Sketch the graph of y=∣x2−4∣Showing the coordinates of all points where the
Graph meets the axes.
Solution
$y = |x^2 - 4| = |(x - 2)(x + 2)|$.
When x2−4≥0 (i.e., x≤−2 or x≥2): y=x2−4 (parabola opening up).
When x2−4<0 (i.e., −2<x<2): y=−(x2−4)=4−x2 (parabola opening down).
y-intercept: x=0⟹y=4. Point: (0,4).
x-intercepts: x2−4=0⟹x=±2. Points: (−2,0) and (2,0).
The graph is the standard parabola y=x2−4 with the part between x=−2 and x=2
Reflected above the x-axis.
If you get this wrong, revise: [Modulus function](#4-the-modulus-function) and [Transformations](#5-transformations-of-graphs)
Problem 10. Prove that f:[0,∞)→[0,∞) defined by f(x)=x2+4x is
Bijective, and find f−1.
Solution
**Injective:** $f(x) = x^2 + 4x = (x+2)^2 - 4$. For $x \geq 0$$x + 2 > 0$So $(x+2)^2$ is strictly increasing, hence $f$ is strictly increasing, hence injective.
Surjective: For any y≥0: x2+4x−y=0. By the quadratic formula:
x=L◆B◆−4+16+4y◆RB◆◆LB◆2◆RB◆=−2+4+y. Since y≥0:
4+y≥2So x≥0. Thus every y≥0 has a preimage.
Inverse:y=x2+4x⟹x2+4x−y=0⟹x=L◆B◆−4+16+4y◆RB◆◆LB◆2◆RB◆
(taking the positive root since x≥0).
f−1(x)=−2+4+x=x+4−2Domain x≥0.
If you get this wrong, revise: [Inverse functions](#3-inverse-functions)
Problem 11. Classify each function as even, odd, or neither: (a) f(x)=x4−x2 (b)
g(x)=x3+x (c) h(x)=x+1 (d) k(x)=∣x∣
If x=2: both sides are 0So equality holds. x=2 is a solution.
If x=2: divide both sides by ∣x−2∣>0:
∣x−3∣≥1
This gives x−3≥1 or x−3≤−1I.e., x≥4 or x≤2.
Combined with x=2: x≤2 or x≥4.
Solution: x∈(−∞,2]∪[4,∞).
If you get this wrong, revise: [Modulus inequalities](#9-modulus-inequalities-with-functions)
Problem 15. The graph of y=f(x) passes through (1,3) and (−2,5). State the coordinates
Of the corresponding points on the graph of y=2f(3x−1)+4.
Solution
A point $(x_0, y_0)$ on $y = f(x)$ corresponds to a point on the new graph where $f(3x - 1) = y_0$I.e., $3x - 1 = x_0$So $x = (x_0 + 1)/3$. The new $y$-value is $2y_0 + 4$.
For (1,3): new point is
(31+1,2×3+4)=(32,10).
For (−2,5): new point is
(3−2+1,2×5+4)=(−31,14).
If you get this wrong, revise: [Transformation order](#10-transformation-order--why-it-matters)
:::tip Tip Ready to test your understanding of Functions? The contains the hardest questions
within the A-Level specification for this topic, each with a full worked solution.
Unit tests probe edge cases and common misconceptions. Integration tests combine Functions
with other pure mathematics topics to test synthesis under exam conditions.
See for instructions on self-marking and
building a personal test matrix.
:::
Common Pitfalls
Forgetting the +c constant of integration in indefinite integrals, or misusing boundary
conditions in definite integrals.
Losing marks by not showing sufficient working — always write out each step, especially in proof
questions.
Confusing the domain and range of functions, or not considering restrictions (e.g., denominator
cannot be zero).
Forgetting to check that solutions satisfy the original equation (especially with squaring both
sides or dividing by variables).
Summary
The key principles covered in this topic are linked in the sub-pages above. Focus on understanding
the definitions, applying the formulas or frameworks, and evaluating strengths and limitations of
each approach.
Worked Examples
Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages
linked above.