โš”๏ธ Algebra Kingdom ยท Algebra

Absolute Value & Compound Inequalities

Solve equations with an absolute value by splitting them into two cases, and solve compound inequalities joined by "and" or "or", writing each solution as an interval on the number line.

In short

  • The bars measure distance, so |x - a| is how far x is from a, and a distance is never negative.
  • An absolute value equation splits into two cases, one with the right-hand side positive and one with it negative, and the bars have to be alone before you split.
  • An "and" compound inequality is one segment written as a sandwich, while an "or" is two rays written as two separate statements.
  • A "less than" absolute value inequality becomes an "and", and a "greater than" one becomes an "or", because being close traps you and being far does not.
  • Every move in a sandwich is made to all three parts, and dividing by a negative reverses both signs and swaps the two ends over.

Absolute value is a distance

The two bars in |x| do one job: they measure how far x is from 0, ignoring which side of 0 it sits on. |7| = 7 and |-7| = 7, because both numbers are seven steps from 0.

That one idea explains everything else in this topic, including two facts that catch people out:

  • An absolute value is never negative. There is no such thing as a distance of -3.
  • Two different numbers share almost every distance. Only one number is 0 away from 0; every other distance is reached twice, once on each side.

The bars can hold more than a bare x. |x - 3| measures the distance from x to 3, not to 0. Try it: at x = 10 it gives |10 - 3| = 7, and at x = -4 it gives |-4 - 3| = 7. Both of those points are seven steps from 3 on the number line.

So read every absolute value as a distance and name what it is a distance from: |x - 3| is "how far x is from 3", and |x + 6|, which is really |x - (-6)|, is "how far x is from -6".

Two cases: solving |x - a| = b

Because two numbers share each distance, an equation with bars around it usually splits into two ordinary equations.

|x - 3| = 7 says the value of x - 3 is 7 away from 0. The only numbers 7 away from 0 are 7 and -7, so

  • Case 1: x - 3 = 7, giving x = 10
  • Case 2: x - 3 = -7, giving x = -4

Both are genuine solutions, and the check confirms it: |10 - 3| = 7 and |-4 - 3| = 7.

Notice what became negative. It is the right-hand side, not the x. Case 2 is x - 3 = -7, never -x - 3 = 7.

Two special cases fall out of "a distance is never negative":

  • |x - 3| = -7 has no solution at all. Nothing is -7 away from anything.
  • |x - 3| = 0 has exactly one solution, x = 3, because the two cases collapse together.

If the bars are not alone, get them alone first. For 2|x - 3| + 1 = 9, subtract 1 and divide by 2 to reach |x - 3| = 4, and only then split. Splitting early gives the wrong two numbers.

"And" is a sandwich, "or" is two rays

A compound inequality joins two conditions with "and" or with "or", and the joining word decides what the answer looks like on a number line.

"And" needs both conditions at once. x > -2 and x <= 3 leaves only the numbers caught between them, so it is written as one sandwich with x in the middle:

-2 < x <= 3

On the number line that is a single segment with a circle at each end: open at -2 (left out) and filled at 3 (kept in).

"Or" needs only one of the two. x < 2 or x >= 4 gives two separate pieces heading in opposite directions โ€” two rays, with the numbers from 2 to 4 left out. An "or" answer cannot be squeezed into a sandwich, so it is written as two statements: x < 2 or x >= 4.

Solving a sandwich is one calculation done three times over. For -3 < 2x + 1 <= 7, subtract 1 from all three parts to get -4 < 2x <= 6, then divide all three by 2: -2 < x <= 3. An "or" is solved one branch at a time, and the same rule as ever applies to each branch โ€” multiplying or dividing by a negative reverses that branch's sign.

Less than means "and", greater than means "or"

Once the bars mean distance, absolute value inequalities stop needing to be memorised.

|x - 3| < 5 asks which points are *less than* 5 away from 3. Being close to 3 traps you: you cannot wander further than 5 in either direction, so the answer is one stretch around 3.

-5 < x - 3 < 5, which gives -2 < x < 8

|x - 3| > 5 asks which points are *more than* 5 away from 3. Being far from 3 can be done in two ways โ€” far to the left, or far to the right โ€” so the answer is two rays.

x - 3 < -5 or x - 3 > 5, which gives x < -2 or x > 8

That is the whole rule, and the reason behind it: less than = and (one band), greater than = or (two rays). The endpoints follow the sign: < and > leave them out (open circles), while <= and >= keep them in (filled circles).

A coefficient changes nothing about which rule to use. |2x - 3| <= 7 becomes -7 <= 2x - 3 <= 7, then -4 <= 2x <= 10, then -2 <= x <= 5.

Where this goes: tolerance and error bounds

Outside a classroom, this topic is mostly about tolerance โ€” how far from a target a real measurement is allowed to stray.

"A bolt must be within 0.5 mm of 20 mm" is exactly the sentence |x - 20| <= 0.5, and it unpacks into the acceptable range 19.5 <= x <= 20.5. The target sits inside the bars and the tolerance sits on the right; swapping them writes a different rule entirely.

The move runs backwards just as well. If a workshop accepts lengths from 19.5 mm to 20.5 mm, find the middle of the range, (19.5 + 20.5) / 2 = 20, and the distance from the middle to each end, 0.5. The rule behind the range is |x - 20| <= 0.5.

The same shape appears wherever measurement does: a temperature that must stay within 2 degrees of a set point, a scale accurate to within 5 grams, an error bound in science that says a measured value is within some margin of the true one.

Later on, the two-case split turns up again in piecewise functions โ€” a function that follows one rule for x below a boundary and another above it โ€” and the graph of y = |x - 3| is exactly that: two straight pieces meeting in a V at x = 3.

Worked examples

Example 1

Solve 2|x - 3| + 1 = 9. Give both solutions.

  1. The bars are not on their own yet, so do not split anything yet. Subtract 1 from both sides: 2|x - 3| = 8.
  2. Divide both sides by 2: |x - 3| = 4.
  3. Now split. Case 1: x - 3 = 4, so x = 7. Case 2: x - 3 = -4, so x = -1.
  4. Check both: |7 - 3| = 4 and |-1 - 3| = 4, so 2(4) + 1 = 9 either way. The solutions are -1 and 7.

Example 2

Solve -3 < 2x + 1 <= 7 and describe the solution on a number line.

  1. This is two conditions at once, so keep x in the middle and do every move to all three parts.
  2. Subtract 1 from all three parts: -4 < 2x <= 6.
  3. Divide all three parts by 2. It is positive, so both signs stay as they are: -2 < x <= 3.
  4. On the number line that is one segment: an open circle at -2, a filled circle at 3, and everything between them shaded.

Example 3

Solve |2x - 3| > 7.

  1. The bars say "distance from 0", so this asks for the values of 2x - 3 that are more than 7 away from 0.
  2. Far from 0 can mean either direction, so this is an "or": 2x - 3 < -7 or 2x - 3 > 7.
  3. First branch: add 3 to get 2x < -4, then divide by 2 to get x < -2.
  4. Second branch: add 3 to get 2x > 10, then divide by 2 to get x > 5.
  5. The solution is x < -2 or x > 5 โ€” two rays, with the numbers from -2 to 5 left out.

Practice problems, with solutions

Three problems of increasing difficulty, each with the full working. In the game these are generated fresh every time; these three are fixed so this page always shows the same ones.

Problem 1

Difficulty 1 of 5

Solve for x. |x - 7| = 2 Give both solutions, smaller one first, as "a, b".

Answer: (5, 9)

  1. |x - 7| = 2
  2. Case 1: x - 7 = 2, so x = 9.
  3. Case 2: x - 7 = -2, so x = 5.
  4. Check: |9 - 7| = |2| = 2, and |5 - 7| = |-2| = 2. Both work.

Problem 2

Difficulty 3 of 5

Solve for x. |5x - 45| = 5 Give both solutions, smaller one first, as "a, b".

Answer: (8, 10)

  1. |5x - 45| = 5
  2. Case 1: 5x - 45 = 5, which gives x = 10.
  3. Case 2: 5x - 45 = -5, which gives x = 8.
  4. Check: at x = 10 the inside is 5, and at x = 8 it is -5. Both have absolute value 5.

Problem 3

Difficulty 4 of 5

Solve for x. -69 <= 5x - 19 < -54 Write the solution as one compound inequality, like "1 < x <= 5".

Answer: -10 <= x < -7

  1. -69 <= 5x - 19 < -54
  2. -50 <= 5x < -35 (add 19 on all three parts)
  3. Divide all three parts by 5; it is positive, so the directions stay.
  4. -10 <= x < -7
  5. Check: x = -9 sits inside that interval, and putting it into 5x - 19 gives -64, which is between -69 and -54.

Common mistakes

  • Giving only the positive case: answering |x - 3| = 7 with x = 10 and stopping. The other case, x - 3 = -7, is a real solution too.
  • Making the x negative instead of the other side: writing -x - 3 = 7 for case 2, when it should be x - 3 = -7.
  • Splitting before the bars are alone: turning 2|x - 3| + 1 = 9 straight into x - 3 = 9 rather than reaching |x - 3| = 4 first.
  • Accepting a negative distance: giving two solutions for |x + 5| = -4, which has none at all.
  • Operating on only two of the three parts: subtracting 1 from the middle and the right of -3 < 2x + 1 <= 7 but leaving the -3 alone.
  • Using "and" where "or" was needed: writing -2 < x < 5 for |2x - 3| > 7, when no number can be both below -2 and above 5.
  • Not flipping the signs when dividing a sandwich by a negative, which leaves an answer like 5 < x < -3 that no number satisfies.

What you should be able to do

  • Solve |x - a| = b and |ax + b| = c, giving both solutions.
  • Solve an "and" compound inequality such as -3 < 2x + 1 <= 7.
  • Solve an "or" compound inequality and describe its solution set.
  • Solve an absolute value inequality and write the solution as a compound inequality.

Where this fits in the curriculum

Common Core

  • HSA-REI.B.3

    High school โ€” Solve linear equations and inequalities in one variable, including compound inequalities.

  • HSA-CED.A.1

    High school โ€” Create equations and inequalities in one variable and use them to solve problems.

  • 6.NS.C.7.C

    Grade 6 โ€” Understand the absolute value of a rational number as its distance from 0 on the number line.

Ontario

  • G8.C2.4

    Grade 8 โ€” Solve inequalities that involve integers, and verify and graph the solutions.

    Ontario has no expectation for absolute value equations or compound inequalities before the senior courses; Grade 8 inequalities are the nearest, so this pairing is a judgement call.

SAT

  • Heart of Algebra

    Absolute value equations and compound inequalities in one variable.

Learn these first