IB Diploma Mathematics AA · Functions
Modulus functions and inequalities (HL)
1The modulus function
The modulus (absolute value) of a number is its size, ignoring its sign.
$$|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}$$
So $|5| = 5$ and $|-5| = 5$.
The graph of $y = |x|$ is a V shape with its point at the origin.
Modulus graphs
Two related graphs.
- $y = |f(x)|$: any part of the graph of $f$ that is below the $x$-axis is reflected up. The part above is unchanged.
- $y = f(|x|)$: the part of the graph for $x \geq 0$ is kept and reflected in the $y$-axis. The original left-hand part is discarded.
Check yourself
What is |−8|?
Show the answer
8
The modulus is the size of a number without its sign.
2Modulus equations
To solve an equation with a modulus, consider both cases, or square both sides.
Two cases
- Solve $|2x - 1| = 5$.
- Either $2x - 1 = 5$, giving $x = 3$.
- Or $2x - 1 = -5$, giving $x = -2$.
- Check both: $|6 - 1| = 5$ and $|-4 - 1| = 5$. Both work.
Always check the answers. Some methods produce extra, false solutions.
A modulus on both sides
- Solve $|x + 1| = |2x - 3|$.
- Square both sides: $(x + 1)^2 = (2x - 3)^2$.
- $x^2 + 2x + 1 = 4x^2 - 12x + 9$, so $3x^2 - 14x + 8 = 0$.
- $(3x - 2)(x - 4) = 0$, so $x = \dfrac{2}{3}$ or $x = 4$.
Check yourself
Solve |x| = 7.
Show the answer
x = 7 or x = −7
Both 7 and −7 have modulus 7.
3Inequalities
To solve an inequality such as $f(x) > g(x)$:
- find where $f(x) = g(x)$, the critical values;
- use a graph or test values to decide which regions satisfy the inequality.
Two modulus results are worth knowing.
- $|x| < a$ means $-a < x < a$: the values between.
- $|x| > a$ means $x < -a$ or $x > a$: the values outside.
A modulus inequality
- Solve $|x - 2| < 3$.
- $-3 < x - 2 < 3$.
- $-1 < x < 5$.
A rational inequality
- Solve $\dfrac{x + 1}{x - 2} > 0$.
- The critical values are $x = -1$ (top is zero) and $x = 2$ (bottom is zero).
- Test a value in each region. $x = -2$: $\dfrac{-1}{-4} > 0$. Yes. $x = 0$: $\dfrac{1}{-2} < 0$. No. $x = 3$: $\dfrac{4}{1} > 0$. Yes.
- Solution: $x < -1$ or $x > 2$.
For top marks: never multiply both sides of an inequality by an expression that could be negative. If you multiply by a negative number, the inequality sign reverses.
Check yourself
What does |x| < 4 mean?
Show the answer
−4 < x < 4
The values lie between −4 and 4.
4Odd, even and self-inverse functions
Some functions have symmetry.
- An even function satisfies $f(-x) = f(x)$. Its graph is symmetrical about the $y$-axis. Examples: $x^2$, $\cos x$, $|x|$.
- An odd function satisfies $f(-x) = -f(x)$. Its graph has rotational symmetry of order 2 about the origin. Examples: $x^3$, $\sin x$, $\dfrac{1}{x}$.
- Most functions are neither.
A self-inverse function satisfies $f(f(x)) = x$. Its graph is symmetrical about the line $y = x$.
Odd or even?
- $f(x) = x^4 - 3x^2$. Then $f(-x) = x^4 - 3x^2 = f(x)$. Even.
- $g(x) = x^3 + x$. Then $g(-x) = -x^3 - x = -g(x)$. Odd.
- $h(x) = x^2 + x$. Then $h(-x) = x^2 - x$, which is neither $h(x)$ nor $-h(x)$. Neither.
Check yourself
Which function is even?
Show the answer
f(x) = x²
f(−x) = f(x), so the graph is symmetrical about the y-axis.
5Graphs of $y = |f(x)|$ and $y = f(|x|)$
Two different modulus transformations:
- $y = |f(x)|$: any part of the graph below the $x$-axis is reflected above it.
- $y = f(|x|)$: the part for $x \ge 0$ is kept and reflected in the $y$-axis, so the graph is symmetrical.
$f(x) = x - 2$
- $y = |x - 2|$: a V-shape with vertex at $(2, 0)$.
- $y = |x| - 2$: a V-shape with vertex at $(0, -2)$.
Check yourself
What does $y = |f(x)|$ do to parts of the graph below the x-axis?
Show the answer
Reflects them above the axis
Absolute values are non-negative.
6Solving modulus inequalities
$|2x - 3| < 5$
- Rewrite: $-5 < 2x - 3 < 5$.
- Add 3: $-2 < 2x < 8$.
- Divide by 2: $-1 < x < 4$.
$|x - 1| \ge 3$
- $x - 1 \ge 3$ or $x - 1 \le -3$.
- $x \ge 4$ or $x \le -2$.
Check yourself
What is the solution to $|x| < 2$?
Show the answer
$-2 < x < 2$
Within 2 of zero.
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