Unit 3, lesson 33

Absolute Value Equations and Graphs

How absolute value measures distance, why most absolute value equations split into two cases, when a case must be thrown out, and how the V-shaped graph shows the number of solutions.

  • Theory part 65
  • Practice part 66
  • Nonlinear Equations and Functions

Theory, part 65

Practice, part 66

Stand at 33 on a number line and walk 55 units. You end at 88 or at −2-2, depending on the direction. An absolute value equation asks exactly this kind of question, and that is why it usually has two answers. Seeing the distance behind the symbols tells you when it has two, one or none, and how to keep from accepting a wrong one.

See also Absolute Value as Distance and a Graph in Foundations for Calculus and Absolute Value Functions, Equations, and Inequalities in Precalculus.

Key terms

Absolute value

Definition The absolute value of a real number aa is

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

For every real aa it satisfies ∣a∣≥0\lvert a \rvert \ge 0, with ∣a∣=0\lvert a \rvert = 0 only when a=0a = 0. It also satisfies ∣−a∣=∣a∣\lvert -a \rvert = \lvert a \rvert.

In plain words Absolute value keeps the size of a number and drops its sign. It can never be negative, so an equation that sets an absolute value equal to a negative number has no solution.

Example The values are ∣7∣=7\lvert 7 \rvert = 7 and ∣−7∣=−(−7)=7\lvert -7 \rvert = -(-7) = 7. For an expression, evaluate inside first. At x=1x = 1 the value of ∣2x−9∣\lvert 2x - 9 \rvert is ∣−7∣=7\lvert -7 \rvert = 7, not 2⋅1+92 \cdot 1 + 9.

Distance

Definition For real numbers aa and bb, the distance between aa and bb on the number line is ∣a−b∣\lvert a - b \rvert. In particular, ∣x∣\lvert x \rvert is the distance from xx to 00, and for d>0d > 0

∣x−c∣=dmeansx=c+d or x=c−d.\begin{gathered} \lvert x - c \rvert = d \quad \text{means} \\[0.4em] x = c + d \ \text{or} \ x = c - d. \end{gathered}

The same picture explains inequalities. For d>0d > 0, ∣x−c∣<d\lvert x - c \rvert < d means c−d<x<c+dc - d < x < c + d, and ∣x−c∣>d\lvert x - c \rvert > d means x<c−dx < c - d or x>c+dx > c + d.

In plain words Read ∣x−c∣\lvert x - c \rvert as “how far xx is from cc.” Exactly two points sit at a given positive distance from cc, one on each side.

Example Solve ∣x−4∣=3\lvert x - 4 \rvert = 3. The numbers at distance 33 from 44 are 4+3=74 + 3 = 7 and 4−3=14 - 3 = 1. Both check, since ∣7−4∣=3\lvert 7 - 4 \rvert = 3 and ∣1−4∣=3\lvert 1 - 4 \rvert = 3. The inequality ∣x−4∣≤3\lvert x - 4 \rvert \le 3 describes everything between them, 1≤x≤71 \le x \le 7.

Case split

Definition Let EE be an expression in xx and let dd be a constant.

  • If d>0d > 0, then ∣E∣=d\lvert E \rvert = d holds exactly when E=dE = d or E=−dE = -d.
  • If d=0d = 0, then ∣E∣=0\lvert E \rvert = 0 holds exactly when E=0E = 0.
  • If d<0d < 0, then ∣E∣=d\lvert E \rvert = d has no solution.

Before splitting, isolate the absolute value on one side so that the equation has the form ∣E∣=d\lvert E \rvert = d.

In plain words The inside is either the positive distance or its negative. Solve both linear equations. A zero distance gives one case and a negative distance gives none.

Example Solve ∣2x−3∣=5\lvert 2x - 3 \rvert = 5. The two cases are

2x−3=5sox=4,2x−3=−5sox=−1.\begin{aligned} 2x - 3 &= 5 \quad \text{so} \quad x = 4, \\[0.4em] 2x - 3 &= -5 \quad \text{so} \quad x = -1. \end{aligned}

Check them. The values are ∣8−3∣=5\lvert 8 - 3 \rvert = 5 and ∣−2−3∣=5\lvert -2 - 3 \rvert = 5, so the solutions are x=4x = 4 and x=−1x = -1. Now compare ∣x−1∣+6=2\lvert x - 1 \rvert + 6 = 2. Isolating gives ∣x−1∣=−4\lvert x - 1 \rvert = -4, and no distance is negative, so there is no solution. Splitting blindly would give x=−3x = -3 and x=5x = 5, and neither one works.

Piecewise interpretation

Definition Any expression ∣mx+n∣\lvert mx + n \rvert with m≠0m \ne 0 can be written without absolute value bars by splitting at the input where the inside is zero, x=−nmx = -\frac{n}{m}. On the side where mx+n≥0mx + n \ge 0 it equals mx+nmx + n, and on the side where mx+n<0mx + n < 0 it equals −(mx+n)-(mx + n).

In plain words An absolute value function is two linear pieces glued together at the point where the inside changes sign.

Example The inside of ∣2x−3∣\lvert 2x - 3 \rvert is zero at x=32x = \frac{3}{2}, so

∣2x−3∣={2x−3,x≥32,−2x+3,x<32.\lvert 2x - 3 \rvert = \begin{cases} 2x - 3, & x \ge \frac{3}{2}, \\[0.3em] -2x + 3, & x < \frac{3}{2}. \end{cases}

At x=4x = 4 the first piece gives 55, and at x=−1x = -1 the second piece gives 2+3=52 + 3 = 5, matching the case split above.

Vertex

Definition For real numbers a≠0a \ne 0, hh and kk, the graph of

y=a∣x−h∣+ky = a \lvert x - h \rvert + k

is a V shape with vertex (h,k)(h, k). It opens upward when a>0a > 0 and downward when a<0a < 0, and its two straight sides have slopes aa and −a-a. The graph is symmetric about the vertical line x=hx = h. When a>0a > 0, the horizontal line y=cy = c meets the graph in two points if c>kc > k, in one point (the vertex) if c=kc = k, and in no point if c<kc < k.

In plain words The vertex is the corner of the V, where the inside of the absolute value is zero. Counting where a horizontal line crosses the V counts the solutions of the matching equation.

Example The graph of y=∣x+2∣−4y = \lvert x + 2 \rvert - 4 has vertex (−2,−4)(-2, -4) and opens upward. Its xx-intercepts solve ∣x+2∣=4\lvert x + 2 \rvert = 4, so x=2x = 2 or x=−6x = -6, which sit 44 units on each side of x=−2x = -2. In the Desmos graphing calculator you can type y=abs(x+2)-4, then y=0, and click the two intersection points to read (−6,0)(-6, 0) and (2,0)(2, 0). For the earlier equation, graphing y=abs(2x-3) and y=5 shows a V with vertex (32,0)\left(\frac{3}{2}, 0\right) crossing the line at (−1,5)(-1, 5) and (4,5)(4, 5).

Branch condition

Definition When the other side depends on xx, as in ∣E∣=g(x)\lvert E \rvert = g(x), the equation can hold only where g(x)≥0g(x) \ge 0. It is equivalent to

E=g(x) or E=−g(x),together with g(x)≥0.\begin{gathered} E = g(x) \ \text{or} \ E = -g(x), \\[0.4em] \text{together with} \ g(x) \ge 0. \end{gathered}

Equivalently, use the piecewise form. On the branch where E≥0E \ge 0 solve E=g(x)E = g(x), on the branch where E<0E < 0 solve −E=g(x)-E = g(x), and keep a solution only if it lies on its own branch. Either way, check every candidate in the original equation.

In plain words With a variable on the right, the two cases are not automatically both valid. A candidate that makes the right side negative, or that falls outside its branch, must be thrown out.

Example Solve ∣x−3∣=2x\lvert x - 3 \rvert = 2x. On the branch x≥3x \ge 3 the equation is x−3=2xx - 3 = 2x, so x=−3x = -3, which is not on this branch. On the branch x<3x < 3 it is 3−x=2x3 - x = 2x, so x=1x = 1, which is on this branch. Check in the original equation.

Candidate∣x−3∣\lvert x - 3 \rvert2x2xValid
x=−3x = -366−6-6no
x=1x = 12222yes

The only solution is x=1x = 1.

Check yourself

  1. What is the sum of all solutions to ∣3x−4∣=11\lvert 3x - 4 \rvert = 11?
Show the answer

The answer is 83\frac{8}{3}. The case 3x−4=113x - 4 = 11 gives x=5x = 5, and the case 3x−4=−113x - 4 = -11 gives x=−73x = -\frac{7}{3}. Both check, and their sum is

5−73=83.5 - \frac{7}{3} = \frac{8}{3}.

Entering 55 forgets the negative case. You could enter 8/3 or a decimal such as 2.666 or 2.667.

  1. For which value of cc does the equation ∣x+3∣−2=c\lvert x + 3 \rvert - 2 = c have no real solution? (A) −3-3, (B) −2-2, (C) 00, (D) 55
Show the answer

The correct choice is (A). The equation is the same as ∣x+3∣=c+2\lvert x + 3 \rvert = c + 2. With c=−3c = -3 the right side is −1-1, and an absolute value is never negative. Choice (B) gives ∣x+3∣=0\lvert x + 3 \rvert = 0, which has the one solution x=−3x = -3 at the vertex (−3,−2)(-3, -2). Choices (C) and (D) give positive distances, so each has two solutions.

  1. What are all solutions of ∣x−5∣=2x−1\lvert x - 5 \rvert = 2x - 1? (A) 22 only, (B) −4-4 only, (C) −4-4 and 22, (D) there is no solution
Show the answer

The correct choice is (A). The case x−5=2x−1x - 5 = 2x - 1 gives x=−4x = -4, but then the left side is ∣−9∣=9\lvert -9 \rvert = 9 while the right side is −9-9, so it fails. The case x−5=−(2x−1)x - 5 = -(2x - 1) gives 3x=63x = 6, so x=2x = 2, and both sides equal 33. Choice (B) solves only the first case and skips the check, (C) is what you get by solving both cases without checking, and (D) ignores the valid branch.

How this lesson connects