impera Open Impera

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|?

  • −8

  • 8

  • 0

  • 64

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.

Worked example

Two cases

  1. Solve $|2x - 1| = 5$.
  2. Either $2x - 1 = 5$, giving $x = 3$.
  3. Or $2x - 1 = -5$, giving $x = -2$.
  4. Check both: $|6 - 1| = 5$ and $|-4 - 1| = 5$. Both work.

Always check the answers. Some methods produce extra, false solutions.

Worked example

A modulus on both sides

  1. Solve $|x + 1| = |2x - 3|$.
  2. Square both sides: $(x + 1)^2 = (2x - 3)^2$.
  3. $x^2 + 2x + 1 = 4x^2 - 12x + 9$, so $3x^2 - 14x + 8 = 0$.
  4. $(3x - 2)(x - 4) = 0$, so $x = \dfrac{2}{3}$ or $x = 4$.
Check yourself

Solve |x| = 7.

  • x = 7 only

  • x = 49 or x = −49

  • x = −7 only

  • x = 7 or 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.
Worked example

A modulus inequality

  1. Solve $|x - 2| < 3$.
  2. $-3 < x - 2 < 3$.
  3. $-1 < x < 5$.
Worked example

A rational inequality

  1. Solve $\dfrac{x + 1}{x - 2} > 0$.
  2. The critical values are $x = -1$ (top is zero) and $x = 2$ (bottom is zero).
  3. 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.
  4. 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?

  • x = 4

  • −4 < x < 4

  • x < 4 only

  • x < −4 or x > 4

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$.

Worked example

Odd or even?

  1. $f(x) = x^4 - 3x^2$. Then $f(-x) = x^4 - 3x^2 = f(x)$. Even.
  2. $g(x) = x^3 + x$. Then $g(-x) = -x^3 - x = -g(x)$. Odd.
  3. $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?

  • f(x) = 1/x

  • f(x) = x³

  • f(x) = x

  • f(x) = x²

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.
Worked example

$f(x) = x - 2$

  1. $y = |x - 2|$: a V-shape with vertex at $(2, 0)$.
  2. $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?

  • Shifts them up by 1

  • Reflects them in the y-axis

  • Reflects them above the axis

  • Deletes them

Show the answer

Reflects them above the axis

Absolute values are non-negative.

6Solving modulus inequalities

Worked example

$|2x - 3| < 5$

  1. Rewrite: $-5 < 2x - 3 < 5$.
  2. Add 3: $-2 < 2x < 8$.
  3. Divide by 2: $-1 < x < 4$.
Worked example

$|x - 1| \ge 3$

  1. $x - 1 \ge 3$ or $x - 1 \le -3$.
  2. $x \ge 4$ or $x \le -2$.
Check yourself

What is the solution to $|x| < 2$?

  • $x > -2$

  • $x < 2$

  • $-2 < x < 2$

  • $x > 2$ or $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