• Practice
  • About 15 min
  • 5 practice questions

Modulus and signum problems: ranges, equations and inequalities

Find the minimum of sums of moduli, solve equations and inequalities with |ax + b|, find the range of signum expressions and count solutions of equations in |x|.

If something looks wrong, please tell us.

The modulus function appears in exam problems in four standard disguises: a sum of moduli whose smallest value is asked, an equation, an inequality and an equation with |x| hiding inside a quadratic. All of them yield to one idea: |A| is A when A ≥ 0 and −A when A < 0, so split the line at the points where each expression inside a modulus is zero.

Sums of moduli

For |x − a| + |x − b| with a < b, think of the distance from x to a plus the distance from x to b. The smallest possible total is b − a, reached for every x between a and b. Outside that interval the total grows linearly. For three terms |x − a| + |x − b| + |x − c| with a < b < c, the minimum is at the middle point x = b, and the value is c − a.

Worked example 1: minimum value

The minimum of |x − 1| + |x − 3| is 3 − 1 = 2, reached for all x in [1, 3]. Check at x = 2: 1 + 1 = 2. At x = 0: 1 + 3 = 4. The range of the function is [2, ∞). For |x − 1| + |x − 2| + |x − 3| the minimum is at x = 2 with value 1 + 0 + 1 = 2 (which is 3 − 1).

|x − a| + |x − b| has minimum b − a on [a, b]. |A| < k means −k < A < k. |A| ≥ k means A ≤ −k or A ≥ k. For an equation, split at the zeros of the expressions inside the moduli.

Worked example 2: an equation

Solve |x − 1| + |x − 3| = 6. The sum is 2 on [1, 3], so solutions lie outside it. For x > 3 the equation is (x − 1) + (x − 3) = 6, so 2x = 10 and x = 5. For x < 1 it is (1 − x) + (3 − x) = 6, so 4 − 2x = 6 and x = −1. Both fit their regions. The solutions are x = 5 and x = −1, which are at equal distances (2) from the nearest end, as expected from the symmetry about x = 2.

Worked example 3: inequalities

Solve |2x − 3| < 5. This means −5 < 2x − 3 < 5, so −2 < 2x < 8 and −1 < x < 4. Next, |x − 2| ≥ 3 means x − 2 ≤ −3 or x − 2 ≥ 3, so x ≤ −1 or x ≥ 5. The first is a single interval, the second is two separate pieces.

When the modulus equals an expression

In |x − 2| = 2x − 1, the right side must be non-negative, so x ≥ 1/2. For x ≥ 2: x − 2 = 2x − 1 gives x = −1, which is not in the region. For 1/2 ≤ x < 2: 2 − x = 2x − 1 gives x = 1, which is in the region. So the only solution is x = 1. Always check solutions against the region and against the sign of the right side.

Signum and |x| in quadratics

sgn(x) is 1, 0 or −1 according as x is positive, zero or negative. For f(x) = sgn(x² − 4): it is 1 when |x| > 2, 0 at x = ±2 and −1 when |x| < 2, so the range is {−1, 0, 1}. For an equation like x² − 3|x| + 2 = 0, use the fact that x² = |x|² and put u = |x| ≥ 0: u² − 3u + 2 = 0, so u = 1 or u = 2. Each positive u gives two values of x, so the solutions are x = ±1 and x = ±2, which is 4 solutions.

Key takeaways: the sum |x − a| + |x − b| is smallest between a and b; split at zeros for equations; |A| < k is a single interval and |A| ≥ k is two pieces; check candidates against the region; sgn takes only the values −1, 0, 1; for x² and |x| together put u = |x| and count two values of x for each positive u.

Check your understanding

  1. 1. What is the minimum value of |x − 1| + |x − 3|?

    1. 0
    2. 1
    3. 2
    4. 4
    Show answer

    Answer: C. The sum is the total distance from x to 1 and to 3, which is at least the distance between 1 and 3, namely 2, and equals 2 for every x in [1, 3].

  2. 2. What is the solution of |2x − 3| < 5?

    1. −1 < x < 4
    2. x < −1 or x > 4
    3. −4 < x < 1
    4. x < 4
    Show answer

    Answer: A. |2x − 3| < 5 means −5 < 2x − 3 < 5. Adding 3 gives −2 < 2x < 8, so −1 < x < 4.

  3. 3. What are the solutions of |x − 1| + |x − 3| = 6?

    1. x = 1 and x = 3
    2. x = −2 and x = 6
    3. x = 0 and x = 4
    4. x = −1 and x = 5
    Show answer

    Answer: D. For x > 3: 2x − 4 = 6 gives x = 5. For x < 1: 4 − 2x = 6 gives x = −1. Both lie in their regions.

  4. 4. What is the range of f(x) = sgn(x² − 4)?

    1. {−1, 1}
    2. {−1, 0, 1}
    3. {0, 1}
    4. R
    Show answer

    Answer: B. x² − 4 is positive for |x| > 2, zero at x = ±2 and negative for |x| < 2, so sgn takes the values 1, 0 and −1.

  5. 5. How many real solutions does x² − 3|x| + 2 = 0 have?

    1. 4
    2. 2
    3. 3
    4. 6
    Show answer

    Answer: A. With u = |x|, u² − 3u + 2 = 0 gives u = 1 or 2. Each positive u gives two values of x: ±1 and ±2. That is 4 solutions.

Privacy · Terms · Refunds · Delivery