Unit 1, lesson 10

Absolute Value Functions, Equations, and Inequalities

How absolute value measures distance on the number line, why its graph is a V, and how to solve absolute value equations and inequalities, including the cases that have no solutions or false ones.

  • Theory part 19
  • Practice part 20
  • Special Kinds of Functions

A bolt meant to be 50 millimeters long passes inspection if its length is within 0.1 millimeters of 50, whether it is too long or too short. The rule cares about the size of the error and not its direction. Absolute value measures exactly that, and it turns statements about closeness into equations and inequalities you can solve. Calculus states every “close to” in this language.

Key terms

Absolute value as distance

Definition The absolute value of a real number aa, written ∣a∣\lvert a \rvert, is the distance from aa to 00 on the number line. For real numbers aa and bb, the distance between them is ∣a−b∣\lvert a - b \rvert, and the order does not matter, so ∣a−b∣=∣b−a∣\lvert a - b \rvert = \lvert b - a \rvert. A distance is never negative, so ∣a∣≥0\lvert a \rvert \ge 0 for every real aa, and ∣a∣=0\lvert a \rvert = 0 only when a=0a = 0.

In plain words The absolute value keeps the size of a number and drops its sign. The expression ∣x−5∣\lvert x - 5 \rvert reads “the distance from xx to 55”.

Example The distance between −3-3 and 55 is

∣−3−5∣=∣−8∣=8,\lvert -3 - 5 \rvert = \lvert -8 \rvert = 8,

and also ∣5−(−3)∣=8\lvert 5 - (-3) \rvert = 8. On the line you go 33 units from −3-3 to 00 and 55 more to reach 55. The numbers at distance 44 from 11 are 1−4=−31 - 4 = -3 and 1+4=51 + 4 = 5, so the equation ∣x−1∣=4\lvert x - 1 \rvert = 4 has exactly these two solutions.

Piecewise definition

Definition For every real number xx,

∣x∣={x,x≥0,−x,x<0.\lvert x \rvert = \begin{cases} x, & x \ge 0, \\ -x, & x < 0. \end{cases}

When x<0x < 0 the number −x-x is positive, so the output is never negative. Applied to an expression, the same rule gives ∣x−c∣=x−c\lvert x - c \rvert = x - c for x≥cx \ge c and ∣x−c∣=c−x\lvert x - c \rvert = c - x for x<cx < c. Also x2=∣x∣\sqrt{x^2} = \lvert x \rvert for every real xx, because the square root sign means the nonnegative root.

In plain words If the number inside the bars is already nonnegative, leave it alone. If it is negative, change its sign.

Example To write f(x)=∣2x−6∣f(x) = \lvert 2x - 6 \rvert without bars, find where the inside is nonnegative. Since 2x−6≥02x - 6 \ge 0 exactly when x≥3x \ge 3,

f(x)={2x−6,x≥3,6−2x,x<3.f(x) = \begin{cases} 2x - 6, & x \ge 3, \\ 6 - 2x, & x < 3. \end{cases}

As a check, the second branch gives f(1)=6−2=4f(1) = 6 - 2 = 4, which matches ∣2−6∣=4\lvert 2 - 6 \rvert = 4, and the first gives f(5)=10−6=4f(5) = 10 - 6 = 4.

V-shaped graph

Definition Let aa, hh and kk be real numbers with a≠0a \ne 0. By the piecewise definition, the function f(x)=a∣x−h∣+kf(x) = a\lvert x - h \rvert + k equals a(x−h)+ka(x - h) + k for x≥hx \ge h and −a(x−h)+k-a(x - h) + k for x<hx < h. So its graph consists of two half-lines that meet at the vertex (h,k)(h, k), with slope −a-a on the left and slope aa on the right, and it is symmetric about the vertical line x=hx = h. If a>0a > 0 the graph opens upward and kk is the minimum value of ff. If a<0a < 0 it opens downward and kk is the maximum value.

In plain words The graph is a V with a sharp corner at the vertex, the point where the expression inside the bars is zero. The basic graph y=∣x∣y = \lvert x \rvert has its corner at the origin and arms of slope −1-1 and 11. Calculus later shows that a graph has no tangent line at such a corner.

Example For f(x)=∣x−2∣−3f(x) = \lvert x - 2 \rvert - 3 the vertex is (2,−3)(2, -3) and the V opens upward.

xx−1-1001122334455
f(x)f(x)00−1-1−2-2−3-3−2-2−1-100

The table shows the symmetry about x=2x = 2. The minimum value is −3-3, the range is [−3,∞)[-3, \infty), the yy-intercept is (0,−1)(0, -1), and the xx-intercepts are (−1,0)(-1, 0) and (5,0)(5, 0), the two points at distance 33 from 22.

Equations

Definition Let uu be an expression in xx and let c>0c > 0 be a constant. The equation ∣u∣=c\lvert u \rvert = c holds exactly when

u=coru=−c.u = c \quad \text{or} \quad u = -c.

For two expressions uu and vv, the equation ∣u∣=∣v∣\lvert u \rvert = \lvert v \rvert holds exactly when u=vu = v or u=−vu = -v.

In plain words A number whose absolute value is cc is either cc or −c-c. So one absolute value equation splits into two ordinary equations, and you keep the solutions of both.

Example Solve ∣2x−5∣=7\lvert 2x - 5 \rvert = 7. Either 2x−5=72x - 5 = 7, which gives x=6x = 6, or 2x−5=−72x - 5 = -7, which gives x=−1x = -1. Both check out, since ∣12−5∣=7\lvert 12 - 5 \rvert = 7 and ∣−2−5∣=7\lvert -2 - 5 \rvert = 7. The solution set is {−1,6}\{-1, 6\}.

Inequalities

Definition Let uu be an expression in xx and let c>0c > 0 be a constant. Then

∣u∣<c  ⟺  −c<u<c,\lvert u \rvert < c \iff -c < u < c,∣u∣>c  ⟺  u<−c  or  u>c.\lvert u \rvert > c \iff u < -c \ \text{ or } \ u > c.

The same holds with ≤\le in place of << and ≥\ge in place of >> on both sides. A “less than” inequality becomes a single chain, which is an “and” statement. A “greater than” inequality becomes an “or” statement, which cannot be written as one chain.

In plain words Less than cc means the inside is trapped between −c-c and cc. Greater than cc means it escapes past one end or the other.

Example Solve ∣3x+1∣≤8\lvert 3x + 1 \rvert \le 8. It becomes

−8≤3x+1≤8.-8 \le 3x + 1 \le 8.

Subtracting 11 from all three parts gives −9≤3x≤7-9 \le 3x \le 7, and dividing by the positive number 33 keeps the directions, so −3≤x≤73-3 \le x \le \frac{7}{3}. The solution set is [−3,73]\left[-3, \frac{7}{3}\right]. Both endpoints are included because there ∣3x+1∣=8\lvert 3x + 1 \rvert = 8 exactly.

Inside versus outside an interval

Definition For a center aa and a radius r>0r > 0,

∣x−a∣<r  ⟺  a−r<x<a+r,\begin{aligned} &\lvert x - a \rvert < r \\[0.4em] &\quad \iff a - r < x < a + r, \end{aligned}

so the solutions form the open interval (a−r,a+r)(a - r, a + r) centered at aa. On the other hand, ∣x−a∣>r\lvert x - a \rvert > r holds exactly on (−∞,a−r)∪(a+r,∞)(-\infty, a - r) \cup (a + r, \infty), the outside of the closed interval [a−r,a+r][a - r, a + r]. With ≤\le the endpoints join the inside, and with ≥\ge they join the outside. Conversely, an open interval (p,q)(p, q) with p<qp < q is the solution set of ∣x−m∣<r\lvert x - m \rvert < r, where

m=p+q2andr=q−p2.m = \frac{p + q}{2} \quad \text{and} \quad r = \frac{q - p}{2}.

In plain words A small distance from the center means inside one interval. A large distance means outside it, which is two pieces, one on each side.

Example The inequality ∣x−4∣≥2\lvert x - 4 \rvert \ge 2 asks for the numbers at least 22 away from 44. Those are the numbers outside the open interval (2,6)(2, 6), so the solution set is (−∞,2]∪[6,∞)(-\infty, 2] \cup [6, \infty). Going the other way, the interval (1,7)(1, 7) has midpoint 44 and half-length 33, so

(1,7)={x∣∣x−4∣<3}.(1, 7) = \{x \mid \lvert x - 4 \rvert < 3\}.

The formal definition of a limit describes the inputs close to aa with inequalities of this kind, such as ∣x−a∣<δ\lvert x - a \rvert < \delta.

Zero and negative comparison values

Definition The rules for equations and inequalities above need c>0c > 0. When the comparison value is 00 or negative, use the fact that ∣u∣≥0\lvert u \rvert \ge 0 always holds, with equality only when u=0u = 0. This gives the table below, where cc is a negative constant and only inputs at which uu is defined count.

StatementSolutions
∣u∣=0\lvert u \rvert = 0 or ∣u∣≤0\lvert u \rvert \le 0exactly where u=0u = 0
∣u∣<0\lvert u \rvert < 0none
∣u∣>0\lvert u \rvert > 0exactly where u≠0u \ne 0
∣u∣≥0\lvert u \rvert \ge 0every input
∣u∣=c\lvert u \rvert = c, ∣u∣<c\lvert u \rvert < c or ∣u∣≤c\lvert u \rvert \le cnone
∣u∣>c\lvert u \rvert > c or ∣u∣≥c\lvert u \rvert \ge cevery input

In plain words An absolute value is never negative. So it can never equal or fall below a negative number, it is always above one, and it equals zero only when the inside is zero.

Example The equation ∣x−5∣=−3\lvert x - 5 \rvert = -3 has no solution. Splitting it carelessly into x−5=−3x - 5 = -3 or x−5=3x - 5 = 3 would produce 22 and 88, but ∣8−5∣=3\lvert 8 - 5 \rvert = 3, not −3-3, and the same goes for 22. Here are a few more cases.

ProblemSolution set
∣x+1∣≤0\lvert x + 1 \rvert \le 0{−1}\{-1\}
∣x+1∣>0\lvert x + 1 \rvert > 0(−∞,−1)∪(−1,∞)(-\infty, -1) \cup (-1, \infty)
∣2x−1∣≥−4\lvert 2x - 1 \rvert \ge -4R\mathbb{R}
∣x∣<−1\lvert x \rvert < -1∅\varnothing

Extraneous candidates

Definition When the right side contains the variable, as in ∣u∣=v\lvert u \rvert = v, the equation holds exactly when

v≥0and(u=v  or  u=−v).v \ge 0 \quad \text{and} \quad \bigl(u = v \ \text{ or } \ u = -v\bigr).

Solving u=vu = v and u=−vu = -v without the condition v≥0v \ge 0 can produce candidates that fail the original equation. Such a number is called an extraneous candidate and must be thrown out. Squaring both sides causes the same problem, since u2=v2u^2 = v^2 only says that ∣u∣=∣v∣\lvert u \rvert = \lvert v \rvert. The safe habit is to substitute every candidate into the original equation.

In plain words The algebra hands you possible answers, not guaranteed ones. An absolute value cannot equal a negative number, so any candidate that makes the right side negative is out.

Example Solve ∣x−1∣=2x+1\lvert x - 1 \rvert = 2x + 1. The case x−1=2x+1x - 1 = 2x + 1 gives x=−2x = -2, and the case x−1=−(2x+1)x - 1 = -(2x + 1) gives 3x=03x = 0, so x=0x = 0. Now check both.

CandidateLeft side ∣x−1∣\lvert x - 1 \rvertRight side 2x+12x + 1Verdict
−2-233−3-3extraneous
001111solution

The solution set is {0}\{0\}.

Check yourself

  1. Solve ∣x−1∣=∣x+3∣\lvert x - 1 \rvert = \lvert x + 3 \rvert.
Show the answer

Either x−1=x+3x - 1 = x + 3, which reduces to −1=3-1 = 3 and has no solution, or x−1=−(x+3)x - 1 = -(x + 3), which gives 2x=−22x = -2 and x=−1x = -1. As a check, ∣−1−1∣=2\lvert -1 - 1 \rvert = 2 and ∣−1+3∣=2\lvert -1 + 3 \rvert = 2. In terms of distance, −1-1 is the point halfway between 11 and −3-3. The solution set is {−1}\{-1\}.

  1. Solve ∣2x+3∣>5\lvert 2x + 3 \rvert > 5, and then solve ∣x−7∣≤−2\lvert x - 7 \rvert \le -2.
Show the answer

The first inequality means 2x+3<−52x + 3 < -5 or 2x+3>52x + 3 > 5, so x<−4x < -4 or x>1x > 1. Its solution set is (−∞,−4)∪(1,∞)(-\infty, -4) \cup (1, \infty). The second inequality has no solutions, because an absolute value is never negative, so its solution set is ∅\varnothing.

  1. Solve ∣x+2∣=3x−2\lvert x + 2 \rvert = 3x - 2.
Show the answer

The case x+2=3x−2x + 2 = 3x - 2 gives x=2x = 2, and the case x+2=−(3x−2)x + 2 = -(3x - 2) gives 4x=04x = 0, so x=0x = 0. The candidate x=2x = 2 gives ∣4∣=4\lvert 4 \rvert = 4 and 3⋅2−2=43 \cdot 2 - 2 = 4, so it works. The candidate x=0x = 0 gives ∣2∣=2\lvert 2 \rvert = 2 but 3⋅0−2=−23 \cdot 0 - 2 = -2, so it is extraneous. The solution set is {2}\{2\}.

How this lesson connects