• Practice
  • About 20 min
  • 5 practice questions

The real number system and absolute value: equations and inequalities

Place rational and irrational numbers on the number line, prove √2 is irrational, use the order properties of real numbers, and solve equations and inequalities involving absolute value.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Describe how N, W, Z, Q and R are built and tell rational from irrational numbers by their decimals.
  • Prove that √2 is irrational by contradiction.
  • Use the field and order properties of R, including what happens when an inequality is multiplied by a negative number.
  • Solve |ax + b| = c, |u| = |v|, |x − a| < r and |x − a| > r.

Algebra lets letters stand for numbers, and in this class those numbers are real numbers. Before solving equations and inequalities we need to be clear about what the real numbers are and how they are ordered. The chapter starts there, and then uses absolute value, the distance of a number from zero, as its first tool.

From counting numbers to the real line

N = {1, 2, 3, ...} is enough for counting. To record debts we extend it to the integers Z = {..., −2, −1, 0, 1, 2, ...}; the whole numbers W = {0, 1, 2, ...} differ from N only by 0. Sharing one cake equally among 4 people means solving 4x = 1, which has no integer solution, so we extend Z to the rationals Q = {m/n : m, n ∈ Z, n ≠ 0}. Rational numbers are exactly the decimals that terminate or repeat: 3/8 = 0.375, 4/11 = 0.363636..., −7/3 = −2.333....

On the number line, 0 is the origin and 1 is one unit to its right; a positive number x sits x units right of 0 and −x sits x units left. Between two rationals x < y lies another one, (x + y)/2, so the rationals are packed densely. Yet they do not fill the line: the diagonal of a unit square has length √2, and √2 is not rational.

Theorem: √2 is irrational

Proof by contradiction. Suppose √2 = m/n, where m and n are positive integers with no common factor greater than 1. Squaring, m² = 2n², so m² is even, and therefore m is even (the square of an odd number is odd). Write m = 2k. Then 4k² = 2n², so n² = 2k², and n is even too. Now m and n share the factor 2, contradicting our choice. So the assumption was false and √2 is irrational. The same method shows √3, √5 and in general √p for a prime p are irrational.

The points of the line that are not rational are the irrational numbers, written Q′. Their decimals neither terminate nor repeat. Every real number is rational or irrational but not both: R = Q ∪ Q′ and Q ∩ Q′ = ∅, and N ⊂ W ⊂ Z ⊂ Q ⊂ R. The ratio of a circle's circumference to its diameter, π, is irrational; 22/7 and 3.14 are only approximations to it.

The real numbers

  • Rational Q terminating or repeating decimals
    • Integers Z ⊃ W ⊃ N
    • 3/8 = 0.375
    • 4/11 = 0.3636...
  • Irrational Q′ non-terminating, non-repeating decimals
    • √2, √3, √p for primes p
    • π

Properties of real numbers

Properties of R
PropertyStatement (a, b, c ∈ R)
Closurea + b and ab are real
Associative(a + b) + c = a + (b + c); (ab)c = a(bc)
Commutativea + b = b + a; ab = ba
Identitiesa + 0 = a; a × 1 = a
Inversesa + (−a) = 0; b × (1/b) = 1 for b ≠ 0
Distributivea(b + c) = ab + ac
Ordera < b exactly when b − a > 0; exactly one of a = b, a < b, a > b holds; a² ≥ 0
Addingif a < b then a + c < b + c for every c
Multiplyingif a < b then ax < bx for x > 0, but ay > by for y < 0

Multiplying or dividing both sides of an inequality by a negative number reverses the inequality sign.

— The rule most often forgotten

Absolute value

The absolute value |a| is the distance of a from 0 on the number line: |x| = x if x ≥ 0 and |x| = −x if x < 0. So |x| ≥ 0 and |x| = |−x|. Two facts solve most equations: |x| = |y| exactly when x = y or x = −y; and |x − a| = r exactly when r ≥ 0 and x − a = r or x − a = −r. Further results: |xy| = |x||y|, |x/y| = |x|/|y| for y ≠ 0, the triangle inequality |x + y| ≤ |x| + |y|, and if |x + y| = |x − y| then xy = 0.

Worked example 1: three absolute value equations

(i) |3x − 4| = 8: either 3x − 4 = 8, giving x = 4, or 3x − 4 = −8, giving x = −4/3. (ii) 2|x + 1| − 5 = 9: first isolate the modulus, |x + 1| = 14/2 = 7, so x + 1 = 7 or x + 1 = −7, giving x = 6 or x = −8. (iii) |x − 4| = |3x + 2|: either x − 4 = 3x + 2, giving x = −3, or x − 4 = −(3x + 2), giving 4x = 2 and x = 1/2. Check: at x = −3 both sides are 7; at x = 1/2 both sides are 3.5.

Inequalities with absolute value

Let r > 0. If x ≥ 0, |x| < r says x < r; if x < 0, it says −x < r, that is x > −r. Together: |x| < r ⇔ −r < x < r, the interval (−r, r). In the same way |x| > r ⇔ x < −r or x > r, the set (−∞, −r) ∪ (r, ∞). Shifting by a: |x − a| ≤ r ⇔ a − r ≤ x ≤ a + r, and |x − a| ≥ r ⇔ x ≤ a − r or x ≥ a + r. If r < 0, |x| < r has no solution and |x| > r holds for every real x, because |x| is never negative.

Less than or greater than?

  • |x − a| < r
    • Points closer than r to a
    • One interval (a − r, a + r)
    • Write as a double inequality
  • |x − a| > r
    • Points farther than r from a
    • Two rays (−∞, a − r) ∪ (a + r, ∞)
    • Write as two separate inequalities

Worked example 2: inside and outside

(i) |2x − 5| ≤ 7: −7 ≤ 2x − 5 ≤ 7. Add 5: −2 ≤ 2x ≤ 12. Divide by 2: −1 ≤ x ≤ 6, so the solution is [−1, 6]. (ii) |x + 3| > 4: x + 3 < −4 or x + 3 > 4, so x < −7 or x > 1, the set (−∞, −7) ∪ (1, ∞). (iii) |6 − 2x| < −1 has no solution, since a modulus cannot be negative.

Worked example 3: a modulus in the denominator

Solve 3/|x − 1| > 1, x ≠ 1. Since |x − 1| > 0, multiplying both sides by it keeps the sign: 3 > |x − 1|. So −3 < x − 1 < 3, that is −2 < x < 4, and x ≠ 1. The solution set is (−2, 1) ∪ (1, 4).

Key takeaways: rationals are terminating or repeating decimals and irrationals are not; √2 is irrational by a proof by contradiction; multiplying an inequality by a negative number reverses it; |x − a| < r is one interval around a, while |x − a| > r is two rays; and always isolate the modulus before splitting into cases.

Check your understanding

  1. 1. Which of these numbers is irrational?

    1. 0.121212...
    2. √49
    3. √11
    4. 22/7
    Show answer

    Answer: C. 11 is a prime, so √11 is irrational: its decimal neither ends nor repeats. 0.121212... repeats (it equals 12/99 = 4/33), √49 = 7, and 22/7 is a ratio of integers.

  2. 2. What are the solutions of |2x + 3| = 11?

    1. x = 4 and x = −7
    2. x = 4 only
    3. x = −4 and x = 7
    4. x = 7 and x = −7
    Show answer

    Answer: A. 2x + 3 = 11 gives x = 4, and 2x + 3 = −11 gives 2x = −14, x = −7. Check: |8 + 3| = 11 and |−14 + 3| = 11.

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

    1. [3, 7]
    2. (3, 7)
    3. (−∞, 3) ∪ (7, ∞)
    4. (−∞, 3] ∪ [7, ∞)
    Show answer

    Answer: D. |x − 5| ≥ 2 means x − 5 ≤ −2 or x − 5 ≥ 2, so x ≤ 3 or x ≥ 7. The end points are included because of ≥.

  4. 4. If a < b, which statement is always true?

    1. −2a < −2b
    2. −2a > −2b
    3. a² < b²
    4. 1/a > 1/b
    Show answer

    Answer: B. Multiplying a < b by the negative number −2 reverses the sign: −2a > −2b. The other two can fail: a = −3, b = 1 gives a² = 9 > 1 = b², and 1/a = −1/3 < 1 = 1/b.

  5. 5. For which x is 4/|x + 2| > 2 (x ≠ −2)?

    1. (−4, −2) ∪ (−2, 0)
    2. (−4, 0)
    3. (0, 4)
    4. (−∞, −4) ∪ (0, ∞)
    Show answer

    Answer: A. Multiply by the positive |x + 2|: 4 > 2|x + 2|, so |x + 2| < 2, giving −4 < x < 0. The point x = −2 must be removed, so the answer is (−4, −2) ∪ (−2, 0).

Privacy · Terms · Refunds · Delivery