A levels Mathematics · Pure: algebra and functions
The modulus function
1What the modulus is
The modulus of a number, $|x|$, is its non-negative size, ignoring the sign.
$$|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}$$
So $|5| = 5$, $|-5| = 5$ and $|0| = 0$.
Geometrically, $|x - a|$ is the distance between $x$ and $a$ on the number line. For example, $|x - 3| < 2$ means "$x$ is within 2 of 3", so $1 < x < 5$.
Useful facts:
- $|ab| = |a||b|$
- $\left|\dfrac{a}{b}\right| = \dfrac{|a|}{|b|}$
- $|a + b| \leq |a| + |b|$ (the triangle inequality)
- $\sqrt{x^2} = |x|$
Check yourself
What is |3 − 8|?
Show the answer
5
|−5| = 5.
2Graphs of y = |f(x)|
To sketch $y = |f(x)|$:
- Sketch $y = f(x)$.
- Reflect any part below the $x$-axis in the $x$-axis.
- The part above stays the same.
The graph is never below the $x$-axis.
y = |2x − 3|: the part of the line below the x-axis is reflected upwards, making a V shape
Sketching y = |2x − 3|
- $y = 2x - 3$ crosses the $x$-axis at $x = \frac{3}{2}$ and the $y$-axis at $-3$.
- Reflect the part below the axis.
- The graph is a V shape with vertex $\left(\frac{3}{2}, 0\right)$ and $y$-intercept $(0, 3)$.
Check yourself
What does the graph y = |f(x)| do to parts of y = f(x) below the x-axis?
Show the answer
Reflects them in the x-axis
Negative outputs become positive.
3Graphs of y = f(|x|)
To sketch $y = f(|x|)$:
- Sketch $y = f(x)$ for $x \geq 0$ only.
- Reflect this part in the $y$-axis.
The graph is symmetric about the $y$-axis, because $f(|-x|) = f(|x|)$.
y = |x|² − 4|x|
- For $x \geq 0$: $y = x^2 - 4x = x(x - 4)$, with roots $0$ and $4$ and minimum at $(2, -4)$.
- Reflect in the $y$-axis: roots also at $-4$, and a minimum at $(-2, -4)$.
- The graph is a "W" shape, symmetric about the $y$-axis.
Check yourself
Which axis of symmetry does y = f(|x|) always have?
Show the answer
The y-axis
Inputs x and −x give the same output.
4Solving modulus equations
To solve $|f(x)| = g(x)$, solve the two cases $f(x) = g(x)$ and $f(x) = -g(x)$, then check each answer, because some may not satisfy the original equation.
A sketch shows how many solutions to expect.
Modulus equals a constant
- Solve $|2x - 1| = 5$.
- $2x - 1 = 5$ gives $x = 3$; $2x - 1 = -5$ gives $x = -2$.
Modulus equals a line
- Solve $|x - 4| = 2x + 1$.
- Case 1: $x - 4 = 2x + 1$ gives $x = -5$. Check: $|{-9}| = 9$, but $2(-5) + 1 = -9$. Reject.
- Case 2: $x - 4 = -(2x + 1)$ gives $3x = 3$, $x = 1$. Check: $|{-3}| = 3$ and $2(1) + 1 = 3$ ✓.
- Solution: $x = 1$.
Check yourself
Why must you check solutions to |f(x)| = g(x)?
Show the answer
Some may give a negative g(x), which a modulus cannot equal
A modulus is never negative.
5Solving modulus inequalities
Key results, for $a > 0$:
- $|x| < a \Leftrightarrow -a < x < a$.
- $|x| > a \Leftrightarrow x < -a$ or $x > a$.
For harder inequalities, sketch both graphs, find intersections, and read off the required region.
Simple inequality
- Solve $|3x + 2| \leq 7$.
- $-7 \leq 3x + 2 \leq 7$.
- $-9 \leq 3x \leq 5$, so $-3 \leq x \leq \frac{5}{3}$.
Inequality with two moduli
- Solve $|x - 1| > |x + 3|$.
- Squaring both sides (both are non-negative): $(x - 1)^2 > (x + 3)^2$.
- $x^2 - 2x + 1 > x^2 + 6x + 9$, so $-8x > 8$, giving $x < -1$.
Check yourself
What is the solution of |x| < 4?
Show the answer
−4 < x < 4
x is within 4 of zero.
6Modulus with transformations
Modulus graphs combine with transformations.
y = a|x − b| + c
- Sketch $y = 2|x - 1| - 4$.
- Start with $y = |x|$: a V with vertex at the origin.
- Translate 1 right: vertex $(1, 0)$. Stretch vertically by 2: steeper V. Translate 4 down: vertex $(1, -4)$.
- $x$-intercepts: $2|x - 1| = 4$, so $|x - 1| = 2$, giving $x = -1$ and $x = 3$.
- $y$-intercept: $2|{-1}| - 4 = -2$.
Questions often ask for the number of solutions of $f(x) = k$; a sketch of $y = f(x)$ with a horizontal line $y = k$ answers this quickly.
Check yourself
What is the vertex of y = |x + 2| + 3?
Show the answer
(−2, 3)
Translate y = |x| by 2 left and 3 up.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera