Stand at on a number line and walk units. You end at or at , 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 is
For every real it satisfies , with only when . It also satisfies .
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 and . For an expression, evaluate inside first. At the value of is , not .
Distance
Definition For real numbers and , the distance between and on the number line is . In particular, is the distance from to , and for
The same picture explains inequalities. For , means , and means or .
In plain words Read as “how far is from .” Exactly two points sit at a given positive distance from , one on each side.
Example Solve . The numbers at distance from are and . Both check, since and . The inequality describes everything between them, .
Case split
Definition Let be an expression in and let be a constant.
- If , then holds exactly when or .
- If , then holds exactly when .
- If , then has no solution.
Before splitting, isolate the absolute value on one side so that the equation has the form .
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 . The two cases are
Check them. The values are and , so the solutions are and . Now compare . Isolating gives , and no distance is negative, so there is no solution. Splitting blindly would give and , and neither one works.
Piecewise interpretation
Definition Any expression with can be written without absolute value bars by splitting at the input where the inside is zero, . On the side where it equals , and on the side where it equals .
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 is zero at , so
At the first piece gives , and at the second piece gives , matching the case split above.
Vertex
Definition For real numbers , and , the graph of
is a V shape with vertex . It opens upward when and downward when , and its two straight sides have slopes and . The graph is symmetric about the vertical line . When , the horizontal line meets the graph in two points if , in one point (the vertex) if , and in no point if .
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 has vertex and opens upward. Its -intercepts solve , so or , which sit units on each side of . In the Desmos graphing calculator you can type y=abs(x+2)-4, then y=0, and click the two intersection points to read and . For the earlier equation, graphing y=abs(2x-3) and y=5 shows a V with vertex crossing the line at and .
Branch condition
Definition When the other side depends on , as in , the equation can hold only where . It is equivalent to
Equivalently, use the piecewise form. On the branch where solve , on the branch where solve , 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 . On the branch the equation is , so , which is not on this branch. On the branch it is , so , which is on this branch. Check in the original equation.
| Candidate | Valid | ||
|---|---|---|---|
| no | |||
| yes |
The only solution is .
Check yourself
- What is the sum of all solutions to ?
Show the answer
The answer is . The case gives , and the case gives . Both check, and their sum is
Entering forgets the negative case. You could enter 8/3 or a decimal such as 2.666 or 2.667.
- For which value of does the equation have no real solution? (A) , (B) , (C) , (D)
Show the answer
The correct choice is (A). The equation is the same as . With the right side is , and an absolute value is never negative. Choice (B) gives , which has the one solution at the vertex . Choices (C) and (D) give positive distances, so each has two solutions.
- What are all solutions of ? (A) only, (B) only, (C) and , (D) there is no solution
Show the answer
The correct choice is (A). The case gives , but then the left side is while the right side is , so it fails. The case gives , so , and both sides equal . 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.