B7PureStretch

The Modulus Function

The modulus ∣x∣|x| is the size of a number, ignoring its sign — its distance from zero. That “distance” idea explains its V-shaped graph, why modulus equations usually have two answers, and how to sketch y=∣f(x)∣y = |f(x)|.

30 min Video by TLMaths Algebra and Functions

The big picture

Modulus is where “==” stops meaning a single answer. Because ∣x∣|x| measures distance, the equation ∣x∣=3|x| = 3 asks “which numbers are 3 away from zero?” — and there are two, 33 and −3-3. That two-sidedness runs through everything here: modulus graphs are reflections, modulus equations split into cases, modulus inequalities describe bands around a point. The concept feels fiddly until you hold the distance picture firmly, at which point the algebra and the graphs line up perfectly. It also sharpens the graph-transformation skills from the previous lessons, since y=∣f(x)∣y = |f(x)| is a targeted reflection.

A-Level Maths B7-05: Introducing the Modulus FunctionCurated by Kepler, not produced by us. Watch it, then work through the notes below.
Open on YouTube

What you'll be able to do

  • Interpret ∣x∣|x| as distance from zero and evaluate modulus expressions
  • Sketch y=∣x∣y = |x|, y=∣f(x)∣y = |f(x)| and y=f(∣x∣)y = f(|x|)
  • Solve modulus equations using cases or a sketch
  • Solve modulus inequalities and express the solution as a band
1

What the modulus means

The modulus\textbf{modulus} (or absolute value) ∣x∣|x| is xx with any negative sign stripped away: ∣5∣=5|5| = 5 and ∣−5∣=5|-5| = 5. Formally it is defined in two pieces — it leaves non-negative numbers alone and flips negative ones. Best of all, read it as distance from zero\textbf{distance from zero}, which is always positive or zero.

That distance reading is the key to the whole topic. ∣x−3∣|x - 3| is “the distance between xx and 3”, so ∣x−3∣=5|x - 3| = 5 means “xx is 5 away from 3”, giving x=8x = 8 or x=−2x = -2.

∣x∣={xx≥0−xx<0|x| = \begin{cases} x & x \geq 0 \\ -x & x < 0 \end{cases}
Non-negatives stay; negatives flip sign. Result is always ≥0\geq 0.
2

The graphs

The graph of y=∣x∣y = |x| is a V\textbf{V}: the line y=xy = x for x≥0x \geq 0, and its reflection for x<0x < 0. More generally, y=∣f(x)∣y = |f(x)| takes the graph of ff and reflects any part below the xx-axis up above it — because the modulus makes every output non-negative. The parts already above the axis are untouched.

A different graph, y=f(∣x∣)y = f(|x|), keeps the right-hand half of ff and mirrors it into the left, producing a curve symmetric about the yy-axis. Do not confuse the two: the modulus is outside in the first, inside in the second.

Example 1Describe how to sketch y=∣x−2∣y = |x - 2| from y=x−2y = x - 2.
1Sketch the line y=x−2y = x - 2 (crosses the xx-axis at x=2x = 2).
2The part below the xx-axis (where x<2x < 2) is reflected up.
3The result is a V with its vertex at (2,0)(2, 0).
Answer
A V-shape with minimum point (2,0)(2, 0).
Why this works

y=∣f(x)∣y = |f(x)| reflects the below-axis part up\textbf{up} (modulus outside); y=f(∣x∣)y = f(|x|) reflects the right-hand part into the left\textbf{left} (modulus inside). Outside vs inside — the same distinction as the transformations lesson.

3

Solving modulus equations

For b>0b>0, ∣A∣=b|A|=b means A=bA=b or A=−bA=-b. If b=0b=0, the only possibility is A=0A=0; if b<0b<0, there is no solution because a modulus is non-negative. Split into the appropriate cases, then check every candidate back in the original equation.

For an equation like ∣f(x)∣=∣g(x)∣|f(x)| = |g(x)|, a clean trick is to square both sides (since both are non-negative), turning it into an ordinary equation with no modulus at all.

Example 1Solve ∣2x−1∣=5|2x - 1| = 5.
1Case 1: 2x−1=5⇒2x=6⇒x=32x - 1 = 5 \Rightarrow 2x = 6 \Rightarrow x = 3.
2Case 2: 2x−1=−5⇒2x=−4⇒x=−22x - 1 = -5 \Rightarrow 2x = -4 \Rightarrow x = -2.
3Check both in the original: ∣2(3)−1∣=5|2(3)-1| = 5 ✓ and ∣2(−2)−1∣=∣−5∣=5|2(-2)-1| = |-5| = 5 ✓.
Answer
x=3x = 3 or x=−2x = -2

Tip — A sketch is often faster than casework: draw y=∣f(x)∣y = |f(x)| and the horizontal line, and the intersections are your solutions — and it shows you how many to expect.

4

Modulus inequalities

The distance picture makes inequalities intuitive. ∣x∣<b|x| < b means “within bb of zero”, i.e. −b<x<b-b < x < b — a band. ∣x∣>b|x| > b means “further than bb from zero”, i.e. x<−bx < -b or x>bx > b — two outer regions. Apply the same idea to ∣x−a∣|x - a|: “within bb of aa”.

∣x∣<b  ⇔  −b<x<b|x| < b \;\Leftrightarrow\; -b < x < b
A band around zero.
∣x∣>b  ⇔  x<−b or x>b|x| > b \;\Leftrightarrow\; x < -b \text{ or } x > b
Two outer regions.
Example 1Solve ∣x−4∣≤3|x - 4| \leq 3.
1Read it as “xx is at most 3 from 4”.
2So −3≤x−4≤3-3 \leq x - 4 \leq 3.
3Add 4 throughout: 1≤x≤71 \leq x \leq 7.
Answer
1≤x≤71 \leq x \leq 7

Think like an examiner

  • Check the sign of the right side before splitting ∣A∣=b|A|=b into cases. For positive bb, solve both A=bA=b and A=−bA=-b; a zero or negative right side needs separate treatment.
  • Always check solutions in the original equation — casework can generate values that do not actually work.
  • For y=∣f(x)∣y = |f(x)|, reflect the below-axis part upward; for y=f(∣x∣)y = f(|x|), mirror the right half into the left. Label the vertex.
  • Translate an inequality via the distance idea: ∣x−a∣<b|x - a| < b is the band a−b<x<a+ba - b < x < a + b.

Common misconceptions

Solving ∣2x−1∣=5|2x - 1| = 5 and giving only x=3x = 3.
There are two cases: 2x−1=±52x - 1 = \pm 5, giving x=3x = 3 and x=−2x = -2.
Treating y=∣f(x)∣y = |f(x)| and y=f(∣x∣)y = f(|x|) as the same graph.
Modulus outside reflects below-axis parts up; modulus inside makes the graph symmetric in the yy-axis.
Writing ∣x∣>3|x| > 3 as a single band −3<x<3-3 < x < 3.
“Greater than” gives two outer regions: x<−3x < -3 or x>3x > 3.
Forgetting that ∣x∣|x| can never be negative.
An equation like ∣x∣=−2|x| = -2 has no solution — a distance cannot be negative.

Modulus essentials

∣x∣≥0|x| \geq 0
Distance is never negative.
∣A∣=b⇒A=±b|A| = b \Rightarrow A = \pm b
Two cases when solving.
∣x−a∣<b⇔a−b<x<a+b|x-a| < b \Leftrightarrow a-b < x < a+b
Inequality as a band.
∣x−a∣>b⇔x<a−b or x>a+b|x-a| > b \Leftrightarrow x < a-b \text{ or } x > a+b
Inequality as outer regions.

Stretch yourself

Solve ∣x−1∣=∣2x+3∣|x - 1| = |2x + 3|. (Hint: both sides are non-negative, so squaring removes the modulus entirely.)

Hint — Square both sides to get (x−1)2=(2x+3)2(x-1)^2 = (2x+3)^2, then bring everything to one side and factorise the resulting quadratic.

Reveal solution
SolutionSquare: (x−1)2=(2x+3)2(x-1)^2 = (2x+3)^2. Expand: x2−2x+1=4x2+12x+9x^2 - 2x + 1 = 4x^2 + 12x + 9. Rearrange: 0=3x2+14x+8=(3x+2)(x+4)0 = 3x^2 + 14x + 8 = (3x + 2)(x + 4). So x=−23x = -\tfrac23 or x=−4x = -4. Checking both in the original confirms they work. Squaring is often cleaner than casework when both sides carry a modulus — it disposes of all the sign possibilities at once. ■\blacksquare

Questions students ask

What does the modulus of a number mean?
It is the number’s size ignoring sign — its distance from zero. So ∣−7∣=7|{-7}| = 7 and ∣7∣=7|7| = 7. The result is always zero or positive.
Why do modulus equations usually have two solutions?
Because ∣A∣=b|A| = b means AA is a distance bb from zero, and there are two numbers that far away: A=bA = b and A=−bA = -b. Solving both cases (and checking) gives the two solutions.
What is the difference between y=∣f(x)∣y = |f(x)| and y=f(∣x∣)y = f(|x|)?
y=∣f(x)∣y = |f(x)| reflects any part of the curve below the xx-axis up above it. y=f(∣x∣)y = f(|x|) keeps the right-hand side of the curve and mirrors it into the left, giving a graph symmetric about the yy-axis.
How do I solve a modulus inequality like ∣x−2∣<5|x - 2| < 5?
Read it as distance: “xx is less than 5 from 2”, so −5<x−2<5-5 < x - 2 < 5, giving −3<x<7-3 < x < 7. For “greater than”, you get two outer regions instead of a band.

Key takeaways

  • ∣x∣|x| is distance from zero — always non-negative.
  • y=∣f(x)∣y = |f(x)| reflects below-axis parts up; y=f(∣x∣)y = f(|x|) is symmetric in the yy-axis.
  • ∣A∣=b|A| = b splits into A=bA = b and A=−bA = -b; always check solutions.
  • ∣x−a∣<b|x - a| < b is a band a−b<x<a+ba-b < x < a+b; “>>” gives two outer regions.
  • Squaring both sides clears the modulus when both sides are non-negative.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. What is ∣−9∣|-9|?

    • 99
    • −9-9
    • 00
    • 8181
    Show answer and explanation

    Answer: 99

    The modulus removes the sign: ∣−9∣=9|-9| = 9.

  2. The graph of y=∣x∣y = |x| is:

    • a V-shape with vertex at the origin
    • a straight line
    • a parabola
    • a horizontal line
    Show answer and explanation

    Answer: a V-shape with vertex at the origin

    It is y=xy = x for x≥0x \ge 0 and its reflection for x<0x < 0 — a V.

  3. Solve ∣x+1∣=4|x + 1| = 4.

    • x=3x = 3 or x=−5x = -5
    • x=3x = 3
    • x=5x = 5 or x=−3x = -3
    • x=−5x = -5
    Show answer and explanation

    Answer: x=3x = 3 or x=−5x = -5

    x+1=4x + 1 = 4 or x+1=−4x + 1 = -4, giving x=3x = 3 or x=−5x = -5.

  4. Solve ∣x∣<2|x| < 2.

    • −2<x<2-2 < x < 2
    • x<−2x < -2 or x>2x > 2
    • x<2x < 2
    • x>−2x > -2
    Show answer and explanation

    Answer: −2<x<2-2 < x < 2

    “Within 2 of zero” is the band −2<x<2-2 < x < 2.

  5. Solve ∣x−3∣>1|x - 3| > 1.

    • x<2x < 2 or x>4x > 4
    • 2<x<42 < x < 4
    • x>4x > 4
    • −1<x<1-1 < x < 1
    Show answer and explanation

    Answer: x<2x < 2 or x>4x > 4

    “More than 1 from 3” gives x<2x < 2 or x>4x > 4.

  6. How many solutions does ∣x∣=−3|x| = -3 have?

    • None
    • One
    • Two
    • Infinitely many
    Show answer and explanation

    Answer: None

    A modulus can never be negative, so there is no solution.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 15 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.