Skip to main content

Functions

Board Coverage

BoardPaperNotes
AQAPaper 1, 2Functions, composition, inverse, transformations
EdexcelP1, P2Similar; modulus in P1
OCR (A)Paper 1, 2Includes composite functions
CIE (9709)P1Functions, domain, range, inverse

1. Definitions

Definition. A function ff from a set AA (the domain) to a set BB (the codomain) is a rule that assigns to each element aAa \in A exactly one element f(a)Bf(a) \in B. We write f:ABf: A \to B.

Definition. The range (or image) of ff is the set {f(a):aA}B\{f(a) : a \in A\} \subseteq 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\mathbb{R} for which the expression is defined. Common restrictions:

  • Denominators cannot be zero: x0x \neq 0 in 1x\frac{1}{x}.
  • Square roots require non-negative arguments: x0x \geq 0 in x\sqrt{x}.
  • Logarithms require positive arguments: x>0x > 0 in lnx\ln x.
Details

Example Find the natural domain of f(x)=x+2+1x1f(x) = \sqrt{x + 2} + \frac{1}{x - 1}.

We need: x+20x + 2 \geq 0 (for the square root) AND x10x - 1 \neq 0 (for the denominator).

So x2x \geq -2 and x1x \neq 1.

Domain: [2,1)(1,)[-2, 1) \cup (1, \infty).


2. Composition of Functions

Definition. Given functions f:ABf: A \to B and g:BCg: B \to C, the composition gf:ACg \circ f: A \to C is defined by:

(gf)(x)=g(f(x))(g \circ f)(x) = g(f(x))

Theorem. Function composition is associative: (hg)f=h(gf)(h \circ g) \circ f = h \circ (g \circ f).

Theorem. Function composition is not commutative in general: fggff \circ g \neq g \circ f.

Details

Example Given f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2, find fgf \circ g and gfg \circ f.

(fg)(x)=f(g(x))=f(x2)=2x2+1(f \circ g)(x) = f(g(x)) = f(x^2) = 2x^2 + 1.

(gf)(x)=g(f(x))=g(2x+1)=(2x+1)2=4x2+4x+1(g \circ f)(x) = g(f(x)) = g(2x + 1) = (2x + 1)^2 = 4x^2 + 4x + 1.

Clearly fggff \circ g \neq g \circ f.

warning

warning right to left: (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)).


3. Inverse Functions

Definition. A function f:ABf: A \to B is injective (one-to-one) if f(a1)=f(a2)    a1=a2f(a_1) = f(a_2) \implies a_1 = a_2 for all a1,a2Aa_1, a_2 \in A. Equivalently, distinct inputs give distinct outputs.

Definition. A function f:ABf: A \to B is surjective (onto) if for every bBb \in B, there exists aAa \in A such that f(a)=bf(a) = b.

Definition. A function that is both injective and surjective is bijective.

Theorem. A function f:ABf: A \to B has an inverse function f1:BAf^{-1}: B \to A if and only if ff is bijective.

Proof.

(\Rightarrow) If f1f^{-1} exists, then ff must be injective (otherwise f1f^{-1} would be multiply-defined) and surjective (otherwise f1f^{-1} would be undefined for elements not in the range).

(\Leftarrow) If ff is bijective, then for each bBb \in B there exists exactly one aAa \in A with f(a)=bf(a) = b. Define f1(b)=af^{-1}(b) = a. This is well-defined and satisfies f1(f(a))=af^{-1}(f(a)) = a and f(f1(b))=bf(f^{-1}(b)) = b. \blacksquare

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.

  1. Write y=f(x)y = f(x).
  2. Solve for xx in terms of yy.
  3. Replace yy with xx (and xx with yy) to get f1(x)f^{-1}(x).
  4. State the domain of f1f^{-1} (which equals the range of ff).
Details

Example Find the inverse of f(x)=2x+3x1f(x) = \frac{2x + 3}{x - 1}, x1x \neq 1.

y=2x+3x1y = \frac{2x + 3}{x - 1}

y(x1)=2x+3y(x - 1) = 2x + 3

yxy=2x+3yx - y = 2x + 3

yx2x=y+3yx - 2x = y + 3

x(y2)=y+3x(y - 2) = y + 3

x=y+3y2x = \frac{y + 3}{y - 2}

So f1(x)=x+3x2f^{-1}(x) = \frac{x + 3}{x - 2}, with domain x2x \neq 2.

The range of ff is all real numbers except f(x)=2f(x) = 2: 2x+3x1=2    2x+3=2x2    3=2\frac{2x + 3}{x - 1} = 2 \implies 2x + 3 = 2x - 2 \implies 3 = -2, impossible. So the range is R{2}\mathbb{R} \setminus \{2\}, which equals the domain of f1f^{-1}. ✓

Theorem. The graph of y=f1(x)y = f^{-1}(x) is the reflection of y=f(x)y = f(x) in the line y=xy = x.

Proof. If (a,b)(a, b) lies on y=f(x)y = f(x), then b=f(a)b = f(a), so a=f1(b)a = f^{-1}(b), meaning (b,a)(b, a) lies on y=f1(x)y = f^{-1}(x). Swapping coordinates is reflection in y=xy = x. \blacksquare


4. The Modulus Function

Definition. The modulus (absolute value) function is defined by:

x={xifx0xifx<0|x| = \begin{cases} x & \mathrm{if } x \geq 0 \\ -x & \mathrm{if } x < 0 \end{cases}

Properties:

ab=aba+ba+b(Triangleinequality)a2=a2x=x2\begin{aligned} |ab| &= |a| \cdot |b| \\ |a + b| &\leq |a| + |b| \quad \mathrm{(Triangle inequality)} \\ |a|^2 &= a^2 \\ |x| &= \sqrt{x^2} \end{aligned}

Theorem (Triangle Inequality). a+ba+b|a + b| \leq |a| + |b| for all a,bRa, b \in \mathbb{R}.

Proof. We consider cases based on the signs of aa and bb.

Case 1: a,b0a, b \geq 0. Then a+b=a+b=a+b|a + b| = a + b = |a| + |b|. Equality holds.

Case 2: a,b0a, b \leq 0. Then a+b0a + b \leq 0, so a+b=(a+b)=ab=a+b|a + b| = -(a + b) = -a - b = |a| + |b|. Equality holds.

Case 3: a0a \geq 0, b0b \leq 0. If a+b0a + b \geq 0: a+b=a+ba+(b)=a+b|a + b| = a + b \leq a + (-b) = |a| + |b|. If a+b0a + b \leq 0: a+b=(a+b)=abab=a+b|a + b| = -(a + b) = -a - b \leq a - b = |a| + |b| (since a0a \geq 0 implies aaa \geq -a, i.e., 2a02a \geq 0). \blacksquare

4.1 Solving Modulus Equations

To solve f(x)=g(x)|f(x)| = g(x):

  1. Case 1: f(x)0f(x) \geq 0, so f(x)=g(x)f(x) = g(x).
  2. Case 2: f(x)<0f(x) < 0, so f(x)=g(x)-f(x) = g(x).
  3. Check solutions against the case conditions.
Details

Example Solve 2x3=x+2|2x - 3| = x + 2.

Case 1: 2x302x - 3 \geq 0, i.e., x32x \geq \frac{3}{2}.

2x3=x+2    x=52x - 3 = x + 2 \implies x = 5. Check: 5325 \geq \frac{3}{2}

Case 2: 2x3<02x - 3 < 0, i.e., x<32x < \frac{3}{2}.

(2x3)=x+2    2x+3=x+2    3x=1    x=13-(2x - 3) = x + 2 \implies -2x + 3 = x + 2 \implies -3x = -1 \implies x = \frac{1}{3}. Check: 13<32\frac{1}{3} < \frac{3}{2}

Solutions: x=13x = \frac{1}{3} and x=5x = 5.


5. Transformations of Graphs

5.1 Translations

Theorem. The graph of y=f(xa)y = f(x - a) is the graph of y=f(x)y = f(x) translated by aa units in the positive xx-direction.

Proof. Let g(x)=f(xa)g(x) = f(x - a). The point (x0,y0)(x_0, y_0) lies on y=g(x)y = g(x) if and only if y0=g(x0)=f(x0a)y_0 = g(x_0) = f(x_0 - a). This means (x0a,y0)(x_0 - a, y_0) lies on y=f(x)y = f(x). So the point (x0,y0)(x_0, y_0) on gg corresponds to the point (x0a,y0)(x_0 - a, y_0) on ff — a shift right by aa. \blacksquare

Intuition. Replacing xx with xax - a means "to get the same output, I need to input aa more." The graph shifts right to compensate.

Similarly, y=f(x)+by = f(x) + b translates up by bb.

5.2 Reflections

TransformationEffect
y=f(x)y = f(-x)Reflection in the yy-axis
y=f(x)y = -f(x)Reflection in the xx-axis

Proof for y=f(x)y = f(-x) as reflection in the yy-axis. If (x0,y0)(x_0, y_0) is on y=f(x)y = f(x), then y0=f(x0)y_0 = f(x_0). The point (x0,y0)(-x_0, y_0) satisfies y0=f((x0))=f(x0)y_0 = f(-(-x_0)) = f(x_0), so it lies on y=f(x)y = f(-x). Reflecting (x0,y0)(x_0, y_0) in the yy-axis gives (x0,y0)(-x_0, y_0). \blacksquare

5.3 Stretches

TransformationEffect
y=f(ax)y = f(ax)Horizontal stretch, scale factor 1a\frac{1}{a}
y=af(x)y = af(x)Vertical stretch, scale factor aa

Proof for y=f(ax)y = f(ax) as horizontal stretch. If (x0,y0)(x_0, y_0) is on y=f(x)y = f(x), then on y=f(ax)y = f(ax), the same yy-value occurs when ax=x0ax = x_0, i.e., x=x0ax = \frac{x_0}{a}. So (x0a,y0)(\frac{x_0}{a}, y_0) is on the new graph — a horizontal stretch by factor 1a\frac{1}{a}. \blacksquare

warning

Horizontal transformations are "backwards": f(xa)f(x - a) shifts right (not left), and f(ax)f(ax) stretches by 1a\frac{1}{a} (not aa). 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(xp)+qy = af(x - p) + q

represents: horizontal translation by pp (right), vertical stretch by factor aa, vertical translation by qq (up).

tip

tip (outside). The order inside-out matters.


6. Even and Odd Functions

Definition. A function ff is even if f(x)=f(x)f(-x) = f(x) for all xx in its domain. A function ff is odd if f(x)=f(x)f(-x) = -f(x) for all xx in its domain.

Theorem. The graph of an even function is symmetric about the yy-axis. The graph of an odd function has rotational symmetry of order 2 about the origin.

Proof. For even ff: the point (x,f(x))=(x,f(x))(-x, f(-x)) = (-x, f(x)) is on the graph whenever (x,f(x))(x, f(x)) is. These two points are reflections of each other across the yy-axis. \blacksquare

For odd ff: the point (x,f(x))=(x,f(x))(-x, f(-x)) = (-x, -f(x)) is on the graph whenever (x,f(x))(x, f(x)) is. Rotating (x,f(x))(x, f(x)) by 180180^\circ about the origin gives (x,f(x))(-x, -f(x)). \blacksquare

Algebraic Properties.

OperationEven ×\times EvenOdd ×\times OddEven ×\times Odd
ResultEvenEvenOdd

Proof (for ff odd, gg odd     fg\implies fg even). (fg)(x)=f(x)g(x)=(f(x))(g(x))=f(x)g(x)=(fg)(x)(fg)(-x) = f(-x)g(-x) = (-f(x))(-g(x)) = f(x)g(x) = (fg)(x). \blacksquare

Proof (for ff even, gg odd     fg\implies fg odd). (fg)(x)=f(x)g(x)=f(x)(g(x))=f(x)g(x)=(fg)(x)(fg)(-x) = f(-x)g(-x) = f(x)(-g(x)) = -f(x)g(x) = -(fg)(x). \blacksquare

Theorem. The only function that is both even and odd is f(x)=0f(x) = 0 (the zero function on a symmetric domain).

Proof. ff even: f(x)=f(x)f(-x) = f(x). ff odd: f(x)=f(x)f(-x) = -f(x). Therefore f(x)=f(x)f(x) = -f(x), so 2f(x)=02f(x) = 0, hence f(x)=0f(x) = 0 for all xx. \blacksquare

Details

Example Classify f(x)=x3xf(x) = x^3 - x and g(x)=cos(x2)g(x) = \cos(x^2).

f(x)=(x)3(x)=x3+x=(x3x)=f(x)f(-x) = (-x)^3 - (-x) = -x^3 + x = -(x^3 - x) = -f(x). So ff is odd.

g(x)=cos((x)2)=cos(x2)=g(x)g(-x) = \cos((-x)^2) = \cos(x^2) = g(x). So gg is even.


7. Composite Function Domain and Range

Theorem. The domain of gfg \circ f is {xdom(f):f(x)dom(g)}\{x \in \mathrm{dom}(f) : f(x) \in \mathrm{dom}(g)\}.

Proof. For (gf)(x)=g(f(x))(g \circ f)(x) = g(f(x)) to be defined, we need xdom(f)x \in \mathrm{dom}(f) (so f(x)f(x) exists) AND f(x)dom(g)f(x) \in \mathrm{dom}(g) (so gg can accept f(x)f(x) as input). \blacksquare

The range of gfg \circ f is the image under gg of the set {f(x):xdom(gf)}\{f(x) : x \in \mathrm{dom}(g \circ f)\}, which is a subset of the range of gg.

Details

Example Given f(x)=x2f(x) = x^2 with domain R\mathbb{R} and g(x)=xg(x) = \sqrt{x} with domain [0,)[0, \infty), find the domain and range of gfg \circ f.

Domain: We need xRx \in \mathbb{R} (always true) and f(x)=x2[0,)f(x) = x^2 \in [0, \infty) (always true). So dom(gf)=R\mathrm{dom}(g \circ f) = \mathbb{R}.

Range: g(f(x))=x2=xg(f(x)) = \sqrt{x^2} = |x|. The range of x|x| over R\mathbb{R} is [0,)[0, \infty).

Details

Example Given f(x)=1x1f(x) = \frac{1}{x - 1} with domain R{1}\mathbb{R} \setminus \{1\} and g(x)=lnxg(x) = \ln x with domain (0,)(0, \infty), find the domain of gfg \circ f.

We need 1x1>0\frac{1}{x-1} > 0, so x1>0x - 1 > 0, giving x>1x > 1.

dom(gf)=(1,)\mathrm{dom}(g \circ f) = (1, \infty).


8. Self-Inverse Functions

Definition. A function ff is self-inverse if f1=ff^{-1} = f, i.e., f(f(x))=xf(f(x)) = x for all xx in the domain of ff.

Theorem. If ff is self-inverse, then ff is bijective and f=f1f = f^{-1}.

Proof. If f(f(x))=xf(f(x)) = x for all xx, then ff has an inverse (namely ff itself), so ff is bijective. And by definition of inverse, f1=ff^{-1} = f. \blacksquare

Common self-inverse functions:

  • f(x)=axf(x) = \frac{a}{x} (reciprocal, x0x \neq 0): f(f(x))=a/(a/x)=xf(f(x)) = a/(a/x) = x. ✓
  • f(x)=axf(x) = a - x (reflection): f(f(x))=a(ax)=xf(f(x)) = a - (a - x) = x. ✓
  • f(x)=ax+bcxaf(x) = \frac{ax + b}{cx - a} (general fractional linear, c0c \neq 0): verify f(f(x))=xf(f(x)) = x.

Proof for f(x)=(ax+b)/(cxa)f(x) = (ax+b)/(cx-a). Let f(x)=ax+bcxaf(x) = \frac{ax+b}{cx-a}. Then:

f(f(x))=LBaax+bcxa+bRB◆◆LBcax+bcxaaRB=LBa(ax+b)+b(cxa)cxaRB◆◆LBc(ax+b)a(cxa)cxaRB=a2x+ab+bcxabacx+bcacx+a2=(a2+bc)xa2+bc=xf(f(x)) = \frac◆LB◆a \cdot \frac{ax+b}{cx-a} + b◆RB◆◆LB◆c \cdot \frac{ax+b}{cx-a} - a◆RB◆ = \frac◆LB◆\frac{a(ax+b) + b(cx-a)}{cx-a}◆RB◆◆LB◆\frac{c(ax+b) - a(cx-a)}{cx-a}◆RB◆ = \frac{a^2 x + ab + bcx - ab}{acx + bc - acx + a^2} = \frac{(a^2 + bc)x}{a^2 + bc} = x

\blacksquare (provided a2+bc0a^2 + bc \neq 0).


9. Modulus Inequalities with Functions

To solve inequalities involving the modulus function:

Type 1: f(x)<g(x)|f(x)| \lt g(x) where g(x)>0g(x) > 0.

This is equivalent to the compound inequality g(x)<f(x)<g(x)-g(x) \lt f(x) \lt g(x).

Proof. f(x)<g(x)    g(x)<f(x)<g(x)|f(x)| \lt g(x) \iff -g(x) \lt f(x) \lt g(x) follows directly from the definition of modulus. \blacksquare

Type 2: f(x)>g(x)|f(x)| \gt g(x).

This is equivalent to: f(x)>g(x)f(x) > g(x) OR f(x)<g(x)f(x) < -g(x).

Details

Example Solve x23x<4|x^2 - 3x| \lt 4.

This gives 4<x23x<4-4 \lt x^2 - 3x \lt 4, i.e., two separate inequalities:

x23x4<0    (x4)(x+1)<0    1<x<4x^2 - 3x - 4 \lt 0 \implies (x-4)(x+1) \lt 0 \implies -1 \lt x \lt 4.

x23x+4>0x^2 - 3x + 4 \gt 0: discriminant Δ=916=7<0\Delta = 9 - 16 = -7 \lt 0, and the coefficient of x2x^2 is positive, so this is always true.

Solution: 1<x<4-1 \lt x \lt 4.

Details

Example Solve 2x1x+2|2x - 1| \geq x + 2.

Case 1: 2x102x - 1 \geq 0 (i.e., x1/2x \geq 1/2): 2x1x+2    x32x - 1 \geq x + 2 \implies x \geq 3. Combined with x1/2x \geq 1/2: x3x \geq 3.

Case 2: 2x1<02x - 1 < 0 (i.e., x<1/2x < 1/2): (2x1)x+2    2x+1x+2    13x    x1/3-(2x-1) \geq x + 2 \implies -2x + 1 \geq x + 2 \implies -1 \geq 3x \implies x \leq -1/3. Combined with x<1/2x < 1/2: x1/3x \leq -1/3.

Solution: x1/3x \leq -1/3 or x3x \geq 3, i.e., x(,1/3][3,)x \in (-\infty, -1/3] \cup [3, \infty).


10. Transformation Order — Why It Matters

When multiple transformations are applied to y=f(x)y = f(x), the order matters because horizontal and vertical transformations interact differently.

Rule. For y=af(bx+c)+dy = af(bx + c) + d:

  1. Apply horizontal transformations first: the argument is bx+cbx + c, which is a horizontal stretch by factor 1/b1/b then a horizontal shift of c/b-c/b.
  2. Apply vertical transformations second: vertical stretch by a|a|, reflection if a<0a < 0, then vertical shift dd.
warning

Common Pitfall The horizontal shift in f(bx+c)f(bx + c) is c/b-c/b, NOT c-c. The stretch "absorbs" part of the shift. This is the single most common error in transformation problems.

Details

Example Describe the transformations mapping y=x2y = x^2 to y=3(2x4)2+5y = 3(2x - 4)^2 + 5.

Reading from inside out:

  1. x2(2x)2x^2 \to (2x)^2: horizontal stretch, factor 1/21/2.
  2. (2x)2(2x4)2=[2(x2)]2=4(x2)2(2x)^2 \to (2x - 4)^2 = [2(x - 2)]^2 = 4(x-2)^2: horizontal shift right by 2.
  3. 4(x2)234(x2)2=12(x2)24(x-2)^2 \to 3 \cdot 4(x-2)^2 = 12(x-2)^2: vertical stretch, factor 3.
  4. 12(x2)212(x2)2+512(x-2)^2 \to 12(x-2)^2 + 5: vertical shift up by 5.

Note: the horizontal shift is 2 (not 4), because 2x4=2(x2)2x - 4 = 2(x - 2).


11. Problem Set

Problem 1. Given f(x)=1x3+2f(x) = \frac{1}{x - 3} + 2, find the domain, range, and inverse function.

Details

Solution Domain: x3x \neq 3, i.e., R{3}\mathbb{R} \setminus \{3\}.

Range: As x3+x \to 3^+, f(x)+f(x) \to +\infty; as x3x \to 3^-, f(x)f(x) \to -\infty. As x±x \to \pm\infty, f(x)2f(x) \to 2. So f(x)2f(x) \neq 2.

Range: R{2}\mathbb{R} \setminus \{2\}.

Inverse: y=1x3+2    y2=1x3    x3=1y2    x=1y2+3y = \frac{1}{x - 3} + 2 \implies y - 2 = \frac{1}{x - 3} \implies x - 3 = \frac{1}{y - 2} \implies x = \frac{1}{y - 2} + 3.

f1(x)=1x2+3f^{-1}(x) = \frac{1}{x - 2} + 3, domain x2x \neq 2.

If you get this wrong, revise: Inverse functions


Problem 2. Given f(x)=x24x+9f(x) = x^2 - 4x + 9 for x2x \geq 2, find f1(x)f^{-1}(x).

Details

Solution Completing the square: f(x)=(x2)2+5f(x) = (x - 2)^2 + 5.

For x2x \geq 2, ff is injective (strictly increasing).

y=(x2)2+5    (x2)2=y5    x2=y5y = (x - 2)^2 + 5 \implies (x - 2)^2 = y - 5 \implies x - 2 = \sqrt{y - 5}

(taking the positive root since x2x \geq 2).

x=y5+2x = \sqrt{y - 5} + 2

f1(x)=x5+2f^{-1}(x) = \sqrt{x - 5} + 2, domain x5x \geq 5.

If you get this wrong, revise: Inverse functions


Problem 3. Solve 3x+1=2x+5|3x + 1| = 2x + 5.

Details

Solution Case 1: 3x+103x + 1 \geq 0, i.e., x13x \geq -\frac{1}{3}.

3x+1=2x+5    x=43x + 1 = 2x + 5 \implies x = 4. Check: 4134 \geq -\frac{1}{3}

Case 2: 3x+1<03x + 1 < 0, i.e., x<13x < -\frac{1}{3}.

(3x+1)=2x+5    3x1=2x+5    5x=6    x=65-(3x + 1) = 2x + 5 \implies -3x - 1 = 2x + 5 \implies -5x = 6 \implies x = -\frac{6}{5}.

Check: 65<13-\frac{6}{5} < -\frac{1}{3}

Solutions: x=65x = -\frac{6}{5} and x=4x = 4.

If you get this wrong, revise: Modulus equations


Problem 4. Given f(x)=2x1f(x) = 2x - 1 and g(x)=x2+3g(x) = x^2 + 3, find (gf)(x)(g \circ f)(x) and solve (gf)(x)=12(g \circ f)(x) = 12.

Details

Solution (gf)(x)=g(f(x))=g(2x1)=(2x1)2+3=4x24x+4(g \circ f)(x) = g(f(x)) = g(2x - 1) = (2x - 1)^2 + 3 = 4x^2 - 4x + 4.

4x24x+4=12    4x24x8=0    x2x2=0    (x2)(x+1)=04x^2 - 4x + 4 = 12 \implies 4x^2 - 4x - 8 = 0 \implies x^2 - x - 2 = 0 \implies (x - 2)(x + 1) = 0.

x=2x = 2 or x=1x = -1.

If you get this wrong, revise: Composition


Problem 5. The graph of y=f(x)y = f(x) passes through (0,1)(0, 1) and (3,2)(3, -2). State the coordinates of the corresponding points on: (a) y=f(x+2)y = f(x + 2) (b) y=f(x)y = -f(x) (c) y=f(2x)y = f(2x) (d) y=3f(x)1y = 3f(x) - 1

Details

Solution (a) y=f(x+2)y = f(x + 2): shift left by 2. Points: (2,1)(-2, 1) and (1,2)(1, -2).

(b) y=f(x)y = -f(x): reflect in xx-axis. Points: (0,1)(0, -1) and (3,2)(3, 2).

(c) y=f(2x)y = f(2x): horizontal stretch factor 12\frac{1}{2}. Points: (0,1)(0, 1) and (32,2)\left(\frac{3}{2}, -2\right).

(d) y=3f(x)1y = 3f(x) - 1: vertical stretch factor 3, then shift down 1. Points: (0,2)(0, 2) and (3,7)(3, -7).

If you get this wrong, revise: Transformations


Problem 6. The function ff is defined by f(x)=x33x+1f(x) = x^3 - 3x + 1. Show that ff is not injective on R\mathbb{R}, and find the largest interval containing x=0x = 0 on which ff is injective.

Details

Solution f(x)=3x23=3(x1)(x+1)f'(x) = 3x^2 - 3 = 3(x - 1)(x + 1).

f(x)=0f'(x) = 0 at x=±1x = \pm 1. f(x)<0f'(x) < 0 for 1<x<1-1 < x < 1 (decreasing), and f(x)>0f'(x) > 0 for x<1x < -1 or x>1x > 1 (increasing).

Since ff is decreasing on (1,1)(-1, 1) and increasing on (,1)(-\infty, -1) and (1,)(1, \infty), it is not injective on all of R\mathbb{R}. For example, f(2)=8+6+1=1f(-2) = -8 + 6 + 1 = -1 and f(0)=1f(0) = 1 and f(1)=1f(1) = -1. So f(2)=f(1)=1f(-2) = f(1) = -1 with 21-2 \neq 1.

The largest interval containing 00 on which ff is strictly monotonic (hence injective) is [1,1][-1, 1].

If you get this wrong, revise: Injectivity and Differentiation


Problem 7. Solve the inequality x3>2x+1|x - 3| > |2x + 1|.

Details

Solution Square both sides (both sides are non-negative):

(x3)2>(2x+1)2x26x+9>4x2+4x+13x210x+8>03x2+10x8<0\begin{aligned} (x - 3)^2 &> (2x + 1)^2 \\ x^2 - 6x + 9 &> 4x^2 + 4x + 1 \\ -3x^2 - 10x + 8 &> 0 \\ 3x^2 + 10x - 8 &< 0 \end{aligned}

(3x2)(x+4)<0(3x - 2)(x + 4) < 0

4<x<23-4 < x < \frac{2}{3}

If you get this wrong, revise: Modulus function


Problem 8. Given f(x)=e2xf(x) = e^{2x} and g(x)=ln(x+1)g(x) = \ln(x + 1), find f1f^{-1}, g1g^{-1}, and the domain of fgf \circ g.

Details

Solution f1(x)f^{-1}(x): y=e2x    lny=2x    x=LBlnyRB◆◆LB2RBy = e^{2x} \implies \ln y = 2x \implies x = \frac◆LB◆\ln y◆RB◆◆LB◆2◆RB◆.

f1(x)=12lnxf^{-1}(x) = \frac{1}{2}\ln x, domain x>0x > 0.

g1(x)g^{-1}(x): y=ln(x+1)    x+1=ey    x=ey1y = \ln(x + 1) \implies x + 1 = e^y \implies x = e^y - 1.

g1(x)=ex1g^{-1}(x) = e^x - 1, domain all R\mathbb{R}.

(fg)(x)=f(g(x))=f(ln(x+1))=e2ln(x+1)=(x+1)2(f \circ g)(x) = f(g(x)) = f(\ln(x + 1)) = e^{2\ln(x+1)} = (x + 1)^2.

Domain of fgf \circ g: we need x+1>0x + 1 > 0 (for gg), so x>1x > -1.

If you get this wrong, revise: Composition and Inverse functions


Problem 9. Sketch the graph of y=x24y = |x^2 - 4|, showing the coordinates of all points where the graph meets the axes.

Details

Solution y=x24=(x2)(x+2)y = |x^2 - 4| = |(x - 2)(x + 2)|.

When x240x^2 - 4 \geq 0 (i.e., x2x \leq -2 or x2x \geq 2): y=x24y = x^2 - 4 (parabola opening up).

When x24<0x^2 - 4 < 0 (i.e., 2<x<2-2 < x < 2): y=(x24)=4x2y = -(x^2 - 4) = 4 - x^2 (parabola opening down).

yy-intercept: x=0    y=4x = 0 \implies y = 4. Point: (0,4)(0, 4).

xx-intercepts: x24=0    x=±2x^2 - 4 = 0 \implies x = \pm 2. Points: (2,0)(-2, 0) and (2,0)(2, 0).

The graph is the standard parabola y=x24y = x^2 - 4 with the part between x=2x = -2 and x=2x = 2 reflected above the xx-axis.

If you get this wrong, revise: Modulus function and Transformations


Problem 10. Prove that f:[0,)[0,)f: [0, \infty) \to [0, \infty) defined by f(x)=x2+4xf(x) = x^2 + 4x is bijective, and find f1f^{-1}.

Details

Solution Injective: f(x)=x2+4x=(x+2)24f(x) = x^2 + 4x = (x+2)^2 - 4. For x0x \geq 0, x+2>0x + 2 > 0, so (x+2)2(x+2)^2 is strictly increasing, hence ff is strictly increasing, hence injective.

Surjective: For any y0y \geq 0: x2+4xy=0x^2 + 4x - y = 0. By the quadratic formula: x=LB4+16+4yRB◆◆LB2RB=2+4+yx = \frac◆LB◆-4 + \sqrt{16 + 4y}◆RB◆◆LB◆2◆RB◆ = -2 + \sqrt{4 + y}. Since y0y \geq 0: 4+y2\sqrt{4 + y} \geq 2, so x0x \geq 0. Thus every y0y \geq 0 has a preimage.

Inverse: y=x2+4x    x2+4xy=0    x=LB4+16+4yRB◆◆LB2RBy = x^2 + 4x \implies x^2 + 4x - y = 0 \implies x = \frac◆LB◆-4 + \sqrt{16 + 4y}◆RB◆◆LB◆2◆RB◆ (taking the positive root since x0x \geq 0).

f1(x)=2+4+x=x+42f^{-1}(x) = -2 + \sqrt{4 + x} = \sqrt{x + 4} - 2, domain x0x \geq 0.

If you get this wrong, revise: Inverse functions


Problem 11. Classify each function as even, odd, or neither: (a) f(x)=x4x2f(x) = x^4 - x^2 (b) g(x)=x3+xg(x) = x^3 + x (c) h(x)=x+1h(x) = x + 1 (d) k(x)=xk(x) = |x|

Details

Solution (a) f(x)=(x)4(x)2=x4x2=f(x)f(-x) = (-x)^4 - (-x)^2 = x^4 - x^2 = f(x). Even.

(b) g(x)=(x)3+(x)=x3x=(x3+x)=g(x)g(-x) = (-x)^3 + (-x) = -x^3 - x = -(x^3 + x) = -g(x). Odd.

(c) h(x)=x+1h(x)h(-x) = -x + 1 \neq h(x) and h(x)h(x)h(-x) \neq -h(x). Neither.

(d) k(x)=x=x=k(x)k(-x) = |-x| = |x| = k(x). Even.

If you get this wrong, revise: Even and odd functions


Problem 12. Given f(x)=2x+3f(x) = 2x + 3 with domain R\mathbb{R} and g(x)=x1g(x) = \sqrt{x - 1} with domain [1,)[1, \infty), find the domain of fgf \circ g and gfg \circ f.

Details

Solution fgf \circ g: domain is {x1:g(x)R}=[1,)\{x \geq 1 : g(x) \in \mathbb{R}\} = [1, \infty) (since ff accepts all reals).

gfg \circ f: domain is {xR:f(x)1}={x:2x+31}={x:x1}=[1,)\{x \in \mathbb{R} : f(x) \geq 1\} = \{x : 2x + 3 \geq 1\} = \{x : x \geq -1\} = [-1, \infty).

If you get this wrong, revise: Composite function domain


Problem 13. Verify that f(x)=3x+2x3f(x) = \frac{3x + 2}{x - 3} is self-inverse.

Details

Solution f(f(x))=LB33x+2x3+2RB◆◆LB3x+2x33RB=LB3(3x+2)+2(x3)x3RB◆◆LB3x+23(x3)x3RB=9x+6+2x63x+23x+9=11x11=xf(f(x)) = \frac◆LB◆3 \cdot \frac{3x+2}{x-3} + 2◆RB◆◆LB◆\frac{3x+2}{x-3} - 3◆RB◆ = \frac◆LB◆\frac{3(3x+2) + 2(x-3)}{x-3}◆RB◆◆LB◆\frac{3x+2 - 3(x-3)}{x-3}◆RB◆ = \frac{9x + 6 + 2x - 6}{3x + 2 - 3x + 9} = \frac{11x}{11} = x

Since f(f(x))=xf(f(x)) = x, ff is self-inverse. ✓

If you get this wrong, revise: Self-inverse functions


Problem 14. Solve the inequality x25x+6x2|x^2 - 5x + 6| \geq |x - 2|.

Details

Solution Factor: x25x+6=(x2)(x3)x^2 - 5x + 6 = (x-2)(x-3). So (x2)(x3)x2|(x-2)(x-3)| \geq |x-2|.

If x=2x = 2: both sides are 00, so equality holds. x=2x = 2 is a solution.

If x2x \neq 2: divide both sides by x2>0|x-2| > 0:

x31|x - 3| \geq 1

This gives x31x - 3 \geq 1 or x31x - 3 \leq -1, i.e., x4x \geq 4 or x2x \leq 2.

Combined with x2x \neq 2: x2x \leq 2 or x4x \geq 4.

Solution: x(,2][4,)x \in (-\infty, 2] \cup [4, \infty).

If you get this wrong, revise: Modulus inequalities


Problem 15. The graph of y=f(x)y = f(x) passes through (1,3)(1, 3) and (2,5)(-2, 5). State the coordinates of the corresponding points on the graph of y=2f(3x1)+4y = 2f(3x - 1) + 4.

Details

Solution A point (x0,y0)(x_0, y_0) on y=f(x)y = f(x) corresponds to a point on the new graph where f(3x1)=y0f(3x - 1) = y_0, i.e., 3x1=x03x - 1 = x_0, so x=(x0+1)/3x = (x_0 + 1)/3. The new yy-value is 2y0+42y_0 + 4.

For (1,3)(1, 3): new point is (1+13,2×3+4)=(23,10)\left(\frac{1+1}{3}, 2 \times 3 + 4\right) = \left(\frac{2}{3}, 10\right).

For (2,5)(-2, 5): new point is (2+13,2×5+4)=(13,14)\left(\frac{-2+1}{3}, 2 \times 5 + 4\right) = \left(-\frac{1}{3}, 14\right).

If you get this wrong, revise: Transformation order


tip

tip Ready to test your understanding of Functions? The diagnostic test 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 Diagnostic Guide for instructions on self-marking and building a personal test matrix.