MathematicsCore20 min read

The Modulus Function

Size without sign, and the two cases that always come with it

This topic appears in:

01

Distance, not direction

Definition

Modulus — |x| = x when x ⩾ 0, and |x| = −x when x < 0 — the distance of x from zero, so never negative.

The modulus of a number is its size with the sign discarded: |5| = 5 and |−5| = 5. A cleaner way to think of it is as a distance from zero, because distance is never negative, and that reading is what makes every later result obvious rather than something to memorise.

The consequence that causes all the trouble is that two different inputs give the same output. So an equation containing a modulus generally has two solutions, and losing one of them is the standard error in this topic.

|x| ⩾ 0 for every x|x| = √(x²)|a| = |b| ⟺ a² = b²|x − a| = distance between x and athe last line is the reading that makes inequalities easy
|x|
the modulus of xits distance from zero
|x − a|
distance from x to athe interpretation to reach for first
√(x²)
always the positive rootwhich is why it equals |x| and not x
02

The graph is a fold

To sketch y = |f(x)|, draw y = f(x) first and then reflect everything below the x-axis upwards. Nothing above the axis moves, because it is already positive.

For a linear expression this produces a V. The corner sits where the bracket equals zero — for y = |2x − 6| that is at x = 3 — and the two arms have gradients that are negatives of each other.

On The fold, the dashed line is the original and the solid V is its modulus. Then switch to the equation and inequality and drag k: notice the two intersection points, and that the inequality gives one interval between them rather than two separate regions.

Only linear insides are required

The syllabus asks for graphs of y = |ax + b|. Graphs of y = |f(x)| and y = f(|x|) for non-linear f are explicitly excluded, so you will not be asked to fold a cubic. Knowing the boundary saves revision time.

03

Solving equations: square, or split into cases

There are two reliable methods and both are accepted. Squaring uses |a| = |b| ⟺ a² = b², which removes the modulus entirely and leaves an ordinary quadratic. It is quick and safe when both sides are moduli.

The case method removes the bars by considering each possibility separately: ax + b = k and ax + b = −k. It generalises better and makes it obvious why two answers appear.

Worked example

Solve |3x − 2| = |2x + 7|.

  1. Both sides are moduli, so square them: (3x − 2)² = (2x + 7)².Squaring is valid here because |a| = |b| exactly when a² = b². No extra solutions can be introduced by this step.
  2. Expand: 9x² − 12x + 4 = 4x² + 28x + 49.Ordinary expansion, with care over the middle terms.
  3. Rearrange: 5x² − 40x − 45 = 0, so x² − 8x − 9 = 0.Dividing through by 5 keeps the numbers small.
  4. Factorise: (x − 9)(x + 1) = 0, giving x = 9 or x = −1.Two solutions, as expected from an equation with moduli on both sides.
  5. Check: |25| = |25| ✓ and |−5| = |5| ✓.Squaring can introduce false solutions when only one side is a modulus, so checking is a good habit.

x = 9 or x = −1

Squaring one side only can invent solutions

For an equation like |x − 1| = 2x, squaring produces a quadratic whose roots include values making the right-hand side negative — impossible, since a modulus cannot equal a negative number. Always substitute your answers back when only one side carried a modulus, and discard any that fail.

04

Inequalities become intervals

Reading |x − a| as a distance turns every modulus inequality into a sentence about how far x may stray from a, and the answer is then immediate.

|x − a| < b says x is within b of a, which is the interval a − b < x < a + b. The reverse, |x − a| > b, says x is further than b away, giving two separate pieces: x < a − b or x > a + b.

|x − a| < ba − b < x < a + b|x − a| > bx < a − b or x > a + bless than gives one interval; greater than gives two
a
the centrethe value the bracket is measured from
b
the allowed distancemust be positive for solutions to exist

The results worth carrying into the exam

  1. |x| ⩾ 0 always, so |f(x)| = negative has no solutions.
  2. Squaring is safe when both sides are moduli, and needs a check when only one is.
  3. The corner of y = |ax + b| is at x = −b/a.
  4. Less-than inequalities give a single interval; greater-than gives two separate regions.
  5. Sketching the two graphs and reading off where one is above the other works for every case and is often the fastest route.
05

Reading a modulus graph off the page

Many questions give the graph rather than the equation and ask you to work backwards. Three features fix it completely, and reading them in order is quicker than trying to fit an equation by inspection.

The corner sits where the bracket is zero, so its x-coordinate gives the constant: a corner at x = 4 means the bracket is x − 4. The gradient of the right-hand arm gives the coefficient, since the arms have gradients ±a. And if the whole V has been lifted off the x-axis, a constant has been added outside the modulus.

Feature of the graphWhat it tells you
corner at x = kthe bracket is (x − k)
right arm has gradient athe coefficient of x is a
corner sits on the x-axisnothing is added outside
corner lifted to y = cthe equation ends "+ c"
V opens downwardsthere is a minus in front of the modulus

Inside the bars or outside?

A constant inside the modulus slides the corner sideways: y = |x − 3| has its corner at x = 3. A constant outside lifts the whole graph: y = |x| + 3 keeps its corner at x = 0 but raises it to y = 3. Deciding which one a graph shows is simply a question of whether the corner moved along the axis or off it.

Practice questions

5 questions · 17 marks · full working on every one

Try each one on paper first, then open the working. The marks are shown where they are actually awarded, because that is where they are actually lost.

Short questions

2 · 4 marks

Two marks each, in the style of the short-question section of the paper. Answer in two or three lines.

SQ1[2 marks]
Explain why the equation |2x + 1| = −3 has no solutions.
Model answer

A modulus measures a distance, so |2x + 1| is never negative for any real x. It can therefore never equal −3, and the equation has no solutions.

Examiner tip. One mark for stating the modulus is non-negative, one for concluding. Do not attempt to solve it — the mark is for recognising there is nothing to solve.

SQ2[2 marks]
State the coordinates of the corner of the graph y = |4x + 10|, and the gradients of its two arms.
Model answer

The bracket is zero when 4x + 10 = 0, so x = −2.5 and the corner is at (−2.5, 0). The arms have gradients 4 and −4.

Examiner tip. The corner always sits on the x-axis for y = |ax + b|, and the gradients are ±a.

Solved numericals

2 · 7 marks

Full working, one step per line, with the marks shown where they are awarded.

N1[3 marks]
Solve |x − 4| = 7.
Full working
  1. Either x − 4 = 7 or x − 4 = −7Both cases must be written down; this is where the second solution comes from.[1]
  2. x = 11From the positive case.[1]
  3. x = −3From the negative case. Giving only x = 11 scores one mark out of three.[1]

x = 11 or x = −3

N2[4 marks]
Solve the inequality |2x − 5| < 3.
Full working
  1. Write as a double inequality: −3 < 2x − 5 < 3A less-than modulus gives a single interval, so this form is available immediately.[1]
  2. Add 5 throughout: 2 < 2x < 8Whatever is done must be done to all three parts.[1]
  3. Divide by 2: 1 < x < 4Dividing by a positive number leaves the inequality signs unchanged.[1]
  4. Solution set: 1 < x < 4Stated as an interval. Writing it as two separate inequalities joined by "or" would be the answer to the greater-than version and is wrong here.[1]

1 < x < 4

Exam questions

1 · 6 marks

Multi-part questions with a full mark scheme.

Q1[6 marks]
The functions f and g are given by f(x) = |x + 2| and g(x) = |3x − 6|.
(a) Sketch both graphs on the same axes, stating the coordinates of each corner.
(b) Solve f(x) = g(x).
(c) Hence state the set of values of x for which f(x) > g(x).
Mark scheme
  1. (a) f is a V with corner at (−2, 0); g is a V with corner at (2, 0) and steeper arms of gradient ±3.The corner is where each bracket equals zero.[1]
  2. Both graphs sketched with correct V shapes and corners on the x-axis.Relative steepness matters for reading off part (c).[1]
  3. (b) Square both sides: (x + 2)² = (3x − 6)²Valid since both sides are moduli.[1]
  4. x² + 4x + 4 = 9x² − 36x + 36, so 8x² − 40x + 32 = 0, that is x² − 5x + 4 = 0Dividing by 8 simplifies the factorising.[1]
  5. (x − 1)(x − 4) = 0, so x = 1 or x = 4Two intersection points, as the sketch predicts.[1]
  6. (c) From the sketch f is above g between the intersections, so 1 < x < 4.The sketch decides which region, which is why part (a) came first.[1]

(a) corners (−2, 0) and (2, 0); (b) x = 1 or x = 4; (c) 1 < x < 4