Advanced level

Absolute value equations and inequalities

The modulus measures a distance — and that one sentence solves the whole lesson. The equation |x − a| = r asks for the points r away from a, a strict inequality gives an interval around a, and the other direction gives a union of two. Plus reading the centre and radius back, and the cases with no solution at all.

Before you start

This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:

Where this is used

Real situations where you count exactly the way this lesson teaches:

  • A parcel and its weight limit
    A carrier accepts parcels of 5 kg with a 200 g tolerance, which is the single condition |m − 5| ≤ 0.2 and means the range from 4.8 to 5.2 kg. A parcel weighing 5.25 kg falls into the next price band — over 50 grams nobody can see by eye.
  • Running and training pace
    A plan calls for 5:30 per kilometre with a 15-second tolerance, that is |t − 330| ≤ 15 in seconds per kilometre — from 5:15 to 5:45. Over 10 km that spreads the finish time from 52:30 to 57:30, five minutes across which a session still counts as "about the same".
  • A lathe and a dimensional tolerance
    A drawing specifies a shaft at 20 mm with a tolerance of ±0.05 mm, that is |d − 20| ≤ 0.05. A part measuring 20.03 mm passes inspection and one at 20.08 mm is scrapped — the whole decision fits inside one inequality with a modulus.
  • Quality control and the three-sigma rule
    A machine packs coffee at 500 g with a standard deviation of 4 g. The alarm is set on the condition |m − 500| > 12, that is outside the range [488, 512] grams. On a machine working correctly such a pack turns up less than once in 300, so every one of them is a reason to stop the line.

All formulas

  • Equation with a modulus

    x=c    x=c or x=c,c>0|x| = c \iff x = c \ \text{or} \ x = -c, \quad c > 0

    for c = 0 one solution, for c < 0 none

  • Distance equal to r

    xa=r    x=ar or x=a+r|x - a| = r \iff x = a - r \ \text{or} \ x = a + r

    two points r away from a

  • Closer than r

    xa<r    x(ar,a+r)|x - a| < r \iff x \in (a - r, a + r)

    one interval around the centre a

  • Further than r

    xa>r    x(,ar)(a+r,+)|x - a| > r \iff x \in (-\infty, a - r) \cup (a + r, +\infty)

    a union of two intervals, never one

  • Modulus of a linear expression

    ax+b=c    ax+b=c or ax+b=c|ax + b| = c \iff ax + b = c \ \text{or} \ ax + b = -c

    two branches, each solved on its own

  • Centre and radius of an interval

    a=p+q2,r=qp2a = \frac{p + q}{2}, \qquad r = \frac{q - p}{2}

    writing the interval [p, q] as the single condition |x − a| ≤ r

Absolute value measures a distance on the number line: xa|x - a| is how far xx is from aa. This whole lesson unfolds from that one sentence — an equation with a modulus asks for the points at a given distance, and an inequality asks for the points closer or further than a given distance.

You can also split the modulus into cases from the definition, and sometimes you must. But in ordinary school problems the distance reading is faster and, more importantly, it does not let you lose the second solution.

The equation |x| = c

x=c    x=c or x=c,c>0|x| = c \iff x = c \ \text{or} \ x = -c, \qquad c > 0

A modulus does not distinguish signs, so the equation has two solutions symmetric about zero. The other two cases follow from the fact that a modulus is never negative:

  • x=0|x| = 0 has one solution: x=0x = 0;
  • x=3|x| = -3 has none, because the left side is non-negative and the right side is negative.

Shifting the centre changes nothing. The equation xa=r|x - a| = r asks for the numbers rr away from aa, and there are two of them — one on each side:

xa=r    x=ar or x=a+r|x - a| = r \iff x = a - r \ \text{or} \ x = a + r
−6−4−202444−1−53
The equation |x + 1| = 4. Since x + 1 is x − (−1), the centre is −1, and four steps each way give −5 and 3.

It is worth reading x+1|x + 1| straight away as x(1)|x - (-1)| — otherwise it is easy to take 11 for the centre instead of 1-1.

The modulus of a linear expression

When something more than xx sits inside the modulus, the equation splits into two branches, each solved on its own:

ax+b=c    ax+b=c or ax+b=c|ax + b| = c \iff ax + b = c \ \text{or} \ ax + b = -c
Solve |2x − 6| = 8.

Inequalities: one band or two tails

This is where half the answer is most easily lost. The direction of the inequality decides the shape of the solution set:

xa<r    x(ar,a+r)|x - a| < r \iff x \in (a - r, a + r) xa>r    x(,ar)(a+r,+)|x - a| > r \iff x \in (-\infty, a - r) \cup (a + r, +\infty)

The first says "closer than rr to aa" and gives one interval around the centre. The second says "further than rr from aa" and gives a union of two intervals — everything outside that band. A non-strict sign (\le, \ge) only closes the ends; it does not change the shape.

−4−2024682[−1, 5](−∞, −1)(5, +∞)
The band on the axis is the solution of |x − 2| ≤ 3. The two bands above it solve |x − 2| > 3 — together they cover the whole axis, because they are complementary sets.

The two sets together cover the whole axis and do not overlap. That is the simplest way to check an answer: if the two solution sets do not complement each other, something went wrong.

Solve |3x + 6| ≥ 9.

Centre and radius: the other direction

The same pair of formulas read backwards turns an interval into a single condition with a modulus. The centre of [p,q][p, q] is its midpoint and the radius is half its length:

a=p+q2,r=qp2a = \frac{p + q}{2}, \qquad r = \frac{q - p}{2}

For the interval [4,10][4, 10] that gives a=7a = 7 and r=3r = 3, so the condition 4x104 \le x \le 10 becomes x73|x - 7| \le 3. This is how every tolerance is written: the nominal value is the centre, the tolerance is the radius.

Cases with no solutions

Before splitting a modulus, it is worth looking at the right-hand side:

InequalitySolution setWhy
W(x)<2\lvert W(x) \rvert < -2\varnothinga modulus is never negative
W(x)>2\lvert W(x) \rvert > -2R\mathbb{R}a modulus always exceeds a negative number
W(x)0\lvert W(x) \rvert \le 0the solutions of W(x)=0W(x) = 0a modulus is zero only at zero
W(x)0\lvert W(x) \rvert \ge 0R\mathbb{R}the condition always holds

Four rows that need no computation — only recognition.

Practice

Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.

Exercise 1 of 8Score: 0
|x − 2| = 2

Common mistakes

  • One solution instead of twox=5|x| = 5 has the solutions 55 and 5-5. A modulus does not distinguish signs, so keeping only the positive one is not allowed.
  • Writing xa>r\lvert x - a \rvert > r as a single interval — the answer is always a union of two intervals, one on each side.
  • The wrong sign of the centre — in x+1|x + 1| the centre is 1-1, not 11. Rewriting it as x(1)|x - (-1)| helps.
  • Not reversing the second branch — from Wc|W| \ge c the second branch is WcW \le -c, with the inequality reversed.
  • Solving an equation with a negative right-hand sidex3=2|x - 3| = -2 has no solutions, and there is nothing to split into cases.
  • Dropping the coefficient when factoring it out3x+6|3x + 6| is 3x+23|x + 2|, so the inequality 9\ge 9 becomes x+23|x + 2| \ge 3, not 9\ge 9.

Formula card

Topic: Absolute value equations and inequalities

  • Equation with a modulus

    x=c    x=c or x=c,c>0|x| = c \iff x = c \ \text{or} \ x = -c, \quad c > 0

    for c = 0 one solution, for c < 0 none

  • Distance equal to r

    xa=r    x=ar or x=a+r|x - a| = r \iff x = a - r \ \text{or} \ x = a + r

    two points r away from a

  • Closer than r

    xa<r    x(ar,a+r)|x - a| < r \iff x \in (a - r, a + r)

    one interval around the centre a

  • Further than r

    xa>r    x(,ar)(a+r,+)|x - a| > r \iff x \in (-\infty, a - r) \cup (a + r, +\infty)

    a union of two intervals, never one

  • Modulus of a linear expression

    ax+b=c    ax+b=c or ax+b=c|ax + b| = c \iff ax + b = c \ \text{or} \ ax + b = -c

    two branches, each solved on its own

  • Centre and radius of an interval

    a=p+q2,r=qp2a = \frac{p + q}{2}, \qquad r = \frac{q - p}{2}

    writing the interval [p, q] as the single condition |x − a| ≤ r

−6−4−202444−1−53
The equation |x + 1| = 4 asks for the numbers 4 away from −1. The answer is two points: −5 and 3.
−4−2024682[−1, 5](−∞, −1)(5, +∞)
The inequality |x − 2| ≤ 3 is a band around 2, and |x − 2| > 3 is everything outside it — two intervals, not one.

Frequently asked questions

Related articles