The mod­u­lus of a num­ber mea­sures its size with­out car­ing about its sign: the mod­u­lus of −5-5 and of 55 are both 55. You can think of ∣x∣|x| as the dis­tance of xx from 00 on the num­ber line. The mod­u­lus func­tion is the source of a large fam­ily of equa­tions and inequal­i­ties, and this les­son builds the foun­da­tion: the def­i­n­i­tion, the graph, and the prop­er­ties you will use in every mod­u­lus prob­lem after­wards.

The mod­u­lus of a real num­ber

The mod­u­lus (or absolute value) of a real num­ber xx is writ­ten ∣x∣|x| and read "mod xx". It is defined by

∣x∣={x,x≥0−x,x<0|x| = \begin{cases} x, & x \geq 0 \\ -x, & x < 0 \end{cases}

For a num­ber that is zero or pos­i­tive, the mod­u­lus is the num­ber itself. For a neg­a­tive num­ber, the mod­u­lus is the neg­a­tive of the num­ber, which is pos­i­tive.

Num­ber Sign Mod­u­lus
−1-1 neg­a­tive −(−1)=1-(-1) = 1
00 zero 00
11 pos­i­tive 11
−2-2 neg­a­tive −(−2)=2-(-2) = 2
22 pos­i­tive 22
−3-3 neg­a­tive −(−3)=3-(-3) = 3
33 pos­i­tive 33

Stu­dents some­times think "−x-x is always neg­a­tive", so ∣x∣=−x|x| = -x looks wrong. It is not: when xx itself is neg­a­tive, −x-x is pos­i­tive. For x=−3x = -3, −x=3-x = 3.

The mod­u­lus func­tion

The func­tion f(x)=∣x∣f(x) = |x|, x∈Rx \in \mathbb{R}, is called the mod­u­lus func­tion.

Domain=R,Range=[0,∞)\text{Domain} = \mathbb{R}, \qquad \text{Range} = [0, \infty)

Every real num­ber has a mod­u­lus, and the mod­u­lus is never neg­a­tive; every non-neg­a­tive num­ber is the mod­u­lus of some­thing (itself).

The graph of y=∣x∣y = |x|

xx −3-3 −2-2 −1-1 00 11 22 33
y=∣x∣y = \lvert x \rvert 33 22 11 00 11 22 33

For x≥0x \geq 0 the graph is the line y=xy = x; for x<0x < 0 it is the line y=−xy = -x. Together they make a V shape with its cor­ner at the ori­gin. The right arm goes through (1,1)(1, 1), (2,2)(2, 2), (3,3)(3, 3), and the left arm through (−1,1)(-1, 1), (−2,2)(-2, 2), (−3,3)(-3, 3). The graph is sym­met­ric about the yy-axis and never goes below the xx-axis.

Prop­er­ties of the mod­u­lus

In these prop­er­ties xx and yy are any real num­bers, and "for all" is writ­ten ∀\forall.

  1. ∣x∣≥0|x| \geq 0, ∀x∈R\forall x \in \mathbb{R}.
  2. ∣x∣=0  ⟹  x=0|x| = 0 \implies x = 0.
  3. ∣x∣=x  ⟹  x≥0|x| = x \implies x \geq 0.
  4. ∣x∣>x  ⟹  x<0|x| > x \implies x < 0.
  5. ∣x∣<x|x| < x is true for no real xx: the solu­tion set is ϕ\phi.
  6. ∣−x∣=∣x∣|-x| = |x|.
  7. ∣xn∣=∣x∣n|x^n| = |x|^n.
  8. ∣xy∣=∣x∣∣y∣|xy| = |x||y|.
  9. ∣xy∣=∣x∣∣y∣\displaystyle \left|\frac{x}{y}\right| = \frac{|x|}{|y|}, for y≠0y \neq 0.
  10. (a) ∣∣x∣−∣y∣∣≤∣x+y∣≤∣x∣+∣y∣\big||x| - |y|\big| \leq |x + y| \leq |x| + |y| and (b) ∣∣x∣−∣y∣∣≤∣x−y∣≤∣x∣+∣y∣\big||x| - |y|\big| \leq |x - y| \leq |x| + |y|.
  11. ∣x+y∣=∣x∣+∣y∣|x + y| = |x| + |y| when xy≥0xy \geq 0.
  12. ∣x+y∣<∣x∣+∣y∣|x + y| < |x| + |y| when xy<0xy < 0.

Prop­er­ties 3 and 5 are used a great deal, and prop­erty 10 is the famous tri­an­gle inequal­ity.

A com­mon mis­take. Prop­erty 6 says ∣−x∣=∣x∣|-x| = |x|. It does not say ∣−x∣=x|-x| = x. Test with x=−2x = -2: the left side is ∣−(−2)∣=∣2∣=2|-(-2)| = |2| = 2, while x=−2x = -2. The two sides dif­fer, so ∣−x∣=x|-x| = x is false in gen­eral.

Prop­erty 11 explained. When xx and yy have the same sign (or one is zero), adding them makes the size grow, so ∣x+y∣|x + y| is the full ∣x∣+∣y∣|x| + |y|. For exam­ple, with x=0x = 0 and y=−2y = -2 we have xy=0xy = 0, and ∣x+y∣=∣0−2∣=2|x + y| = |0 - 2| = 2 while ∣x∣+∣y∣=0+2=2|x| + |y| = 0 + 2 = 2. When xx and yy have oppo­site signs, they partly can­cel, so ∣x+y∣|x + y| is smaller: with x=3x = 3, y=−5y = -5, ∣x+y∣=2|x + y| = 2 but ∣x∣+∣y∣=8|x| + |y| = 8. That is prop­erty 12.

Mod­u­lus inequal­i­ties

Think of ∣x∣|x| as the dis­tance from 00. Let a>0a > 0.

  1. ∣x∣<a  ⟹  −a<x<a|x| < a \implies -a < x < a, that is, x∈(−a,a)x \in (-a, a).

    ∣x∣≤a  ⟹  −a≤x≤a|x| \leq a \implies -a \leq x \leq a, that is, x∈[−a,a]x \in [-a, a].

    ∣x∣>a  ⟹  x<−a|x| > a \implies x < -a or x>ax > a, that is, x∈(−∞,−a)∪(a,∞)x \in (-\infty, -a) \cup (a, \infty).

    ∣x∣≥a  ⟹  x≤−a|x| \geq a \implies x \leq -a or x≥ax \geq a, that is, x∈(−∞,−a]∪[a,∞)x \in (-\infty, -a] \cup [a, \infty).

A dis­tance less than aa means xx lies between −a-a and aa; a dis­tance greater than aa means xx lies out­side. The same short rule as for qua­drat­ics: less, lies between.

Exam­ple 1

Solve ∣x∣<2|x| < 2.

−2<x<2-2 < x < 2, that is, x∈(−2,2)x \in (-2, 2).

Exam­ple 2

Solve ∣x−3∣<2|x - 3| < 2.

Treat x−3x - 3 as the quan­tity inside the mod­u­lus:

−2<x−3<2−2+3<x<2+31<x<5\begin{aligned} -2 &< x - 3 < 2 \\ -2 + 3 &< x < 2 + 3 \\ 1 &< x < 5 \end{aligned}

So x∈(1,5)x \in (1, 5). In words, xx is less than 22 units away from 33.

Exam­ple 3

Solve ∣2x−3∣≥2|2x - 3| \geq 2.

Greater than or equal, so the quan­tity lies out­side [−2,2][-2, 2]:

2x−3≤−2or2x−3≥22x - 3 \leq -2 \quad \text{or} \quad 2x - 3 \geq 2

2x≤1or2x≥52x \leq 1 \quad \text{or} \quad 2x \geq 5

x≤12orx≥52\displaystyle x \leq \frac{1}{2} \quad \text{or} \quad x \geq \frac{5}{2}

So x∈(−∞,12]∪[52,∞)=R−(12,52)\displaystyle x \in \left(-\infty, \frac{1}{2}\right] \cup \left[\frac{5}{2}, \infty\right) = \mathbb{R} - \left(\frac{1}{2}, \frac{5}{2}\right). On a num­ber line, shade every­thing to the left of 12\displaystyle \frac{1}{2} and to the right of 52\displaystyle \frac{5}{2}, with filled dots at both ends.

Prac­tice

  1. Find ∣−9∣|-9|.
  2. Find ∣5−8∣|5 - 8|.
  3. Find ∣−4∣×∣3∣|-4| \times |3| and ∣(−4)×3∣|(-4) \times 3|, and say which prop­erty they show.
  4. Is ∣x∣>x|x| > x true for x=−3x = -3?
  5. For which real num­bers is ∣x∣=x|x| = x?
  6. Check prop­erty 11 or 12 for x=3x = 3, y=5y = 5 and for x=3x = 3, y=−5y = -5.
  7. Solve ∣x∣≤4|x| \leq 4.
  8. Solve ∣x+1∣<3|x + 1| < 3.
  9. Solve ∣x−5∣>2|x - 5| > 2.
  10. Solve ∣3x+1∣≥5|3x + 1| \geq 5.
  11. Solve ∣2x−1∣<0|2x - 1| < 0.

Answers

Show answers
  1. 99.
  2. ∣−3∣=3|-3| = 3.
  3. Both are 1212; this is prop­erty 8, ∣xy∣=∣x∣∣y∣|xy| = |x||y|.
  4. Yes: ∣−3∣=3|-3| = 3 and 3>−33 > -3.
  5. For x≥0x \geq 0, that is, x∈[0,∞)x \in [0, \infty).
  6. For x=3x = 3, y=5y = 5: xy>0xy > 0 and ∣8∣=8=3+5|8| = 8 = 3 + 5, as prop­erty 11 says. For x=3x = 3, y=−5y = -5: xy<0xy < 0 and ∣−2∣=2<8|-2| = 2 < 8, as prop­erty 12 says.
  7. x∈[−4,4]x \in [-4, 4].
  8. −3<x+1<3-3 < x + 1 < 3, so −4<x<2-4 < x < 2, that is, x∈(−4,2)x \in (-4, 2).
  9. x−5<−2x - 5 < -2 or x−5>2x - 5 > 2, so x<3x < 3 or x>7x > 7: x∈(−∞,3)∪(7,∞)x \in (-\infty, 3) \cup (7, \infty).
  10. 3x+1≤−53x + 1 \leq -5 or 3x+1≥53x + 1 \geq 5, so x≤−2x \leq -2 or x≥43\displaystyle x \geq \frac{4}{3}: x∈(−∞,−2]∪[43,∞)\displaystyle x \in (-\infty, -2] \cup \left[\frac{4}{3}, \infty\right).
  11. A mod­u­lus is never neg­a­tive, so there is no solu­tion: x∈ϕx \in \phi.