Skip to content
Tutorials Center
My learning

Topics

Lesson 3 of 38 ยท Getting Started

Absolute Value Equations and Inequalities

Learn what absolute value means as distance, then solve absolute value equations and inequalities with case splits and number-line pictures.

The absolute value of a number is its distance from zero on the number line. Distance is never negative, so |5| = 5 and |-5| = 5. This simple picture explains every rule in this lesson.

Formally, |x| = x when x โ‰ฅ 0, and |x| = -x when x < 0. The second line looks strange until you remember that -x is positive when x is negative: |-5| = -(-5) = 5.

Absolute value matters whenever a quantity can miss a target in either direction: a machine part must be 10 mm long, give or take 0.1 mm; a thermostat holds 21 ยฐC within a degree. Both are absolute value statements.

Distance on the number line

The expression |x - a| is the distance between x and a. So |x - 3| = 5 asks: which numbers are exactly 5 units from 3? Walk 5 to the right (8) or 5 to the left (-2).

flowchart LR
    A["-2"] -- "5 units" --> B["3"]
    B -- "5 units" --> C["8"]

The solutions of |x - 3| = 5 sit 5 units either side of 3.

Solving absolute value equations

Step 1: isolate the absolute value. Step 2: split into two cases: the inside equals the positive value, or the negative value. Step 3: solve both and check.

Example 1. Solve |2x - 1| = 7. Two cases: 2x - 1 = 7 gives x = 4; 2x - 1 = -7 gives x = -3. Check: |2(4) - 1| = 7 and |2(-3) - 1| = |-7| = 7. Both work.

Example 2. Solve 3|x + 2| - 4 = 11. Isolate: 3|x + 2| = 15, so |x + 2| = 5. Cases: x + 2 = 5 gives x = 3; x + 2 = -5 gives x = -7.

Special cases. |x| = -3 has no solution, because a distance cannot be negative. |x| = 0 has exactly one solution, x = 0.

Example 3 (extraneous solutions). Solve |x - 1| = 2x. Cases: x - 1 = 2x gives x = -1; x - 1 = -2x gives x = 1/3. Check x = -1: left |-2| = 2, right -2. Not equal, so reject it. Check x = 1/3: left |-2/3| = 2/3, right 2/3. It works. Only 1/3 is a solution. When the right side contains a variable, always check.

Python Solve |ax + b| = c with a check

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Absolute value inequalities

Because |x| is a distance, an inequality turns into a picture.

  • |x| < k (with k > 0) means "within k of zero": -k < x < k. This is an and statement.
  • |x| > k means "farther than k from zero": x < -k or x > k.

Replace x with any expression to get the general rule.

Example 4. Solve |x - 3| โ‰ค 2. Rewrite as -2 โ‰ค x - 3 โ‰ค 2, then add 3: 1 โ‰ค x โ‰ค 5. Interval: [1, 5]. This reads "x is within 2 of 3".

Example 5. Solve |2x + 1| > 5. Rewrite as 2x + 1 < -5 or 2x + 1 > 5. Then x < -3 or x > 2. Interval: (-โˆž, -3) โˆช (2, โˆž).

Example 6. Solve |x| < -2: no solution. Solve |x| > -2: every real number, since distance is always at least 0.

Remember the shape: "less than" gives a single connected interval; "greater than" gives two pieces that point outward.

Python Tolerance checker

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Floating-point numbers can surprise you at boundaries (10.10 - 10.0 is not exactly 0.1 in binary). Real engineering code uses a small safety margin or exact decimals for that reason.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Solve |x - 4| = 6.

    x - 4 = 6 gives x = 10 and x - 4 = -6 gives x = -2.
  2. 2. Which describes |x + 1| < 3?

    -3 < x + 1 < 3, so subtracting 1 gives -4 < x < 2.
  3. 3. How many solutions does |3x - 2| = -1 have?

    An absolute value is never negative, so it cannot equal -1.
  4. 4. Why must you check answers to |x - 1| = 2x?

    The right side must be at least 0. A candidate that makes 2x negative is extraneous.

Summary

  • |x| is the distance from zero; |x - a| is the distance from a.
  • To solve |expr| = k, isolate the absolute value, then solve expr = k and expr = -k.
  • |expr| < k means -k < expr < k; |expr| > k means expr < -k or expr > k.
  • If k < 0: |expr| = k and |expr| < k have no solution, while |expr| > k is always true.
  • Check candidates when the other side contains a variable.

Next: Systems of Linear Equations