To solve an equation with x inside absolute value bars, we need a way to rewrite the equation without the bars.
1
Splitting an Absolute Value Equation into Two Branches
Let's solve an equation where an expression inside absolute value bars equals a positive number:
∣x−3∣=5
Splitting an Absolute Value Equation into Two Branches
Text solution
Split into two branchesSince only 5 and −5 are 5 steps from 0, the expression x−3 inside the bars must equal 5 or −5.
x−3=5orx−3=−5
Solve each branch for xAdd 3 to both sides of each equation to find the two numbers that are 5 steps away from 3.
x=8orx=−2
Now with a two-step expression inside the bars:
∣2x+1∣=9
Text solution
Split into two branchesKeep 2x+1 exactly as it is and set it equal to 9 and −9.
2x+1=9or2x+1=−9
Solve each equationSubtract 1 and divide by 2 on each branch.
2xx=8=4oror2xx=−10=−5
Moving the same number of steps left or right from 3 flips the sign of x−3 inside the bars, while the distance ∣x−3∣ stays the same:
Going the same number of steps left or right of 3 flips the sign inside the bars, while the distance stays the same.
2
Isolating the Bars First and Special Cases
Next, let's solve an equation that has numbers outside the absolute value bars:
3∣x−2∣−4=11
We cannot split this equation right away because we do not yet know what ∣x−2∣ equals on its own. Replacing 3∣x−2∣ with 3(x−2) would change the equation.
Isolating the Bars First and Special Cases
3∣x−2∣−4=11
x=?
Text solution
Isolate the absolute value barsAdd 4 to both sides and divide by 3 so ∣x−2∣ is alone on the left.
3∣x−2∣−43∣x−2∣∣x−2∣=11=15=5
Split and solveNow that the bars are alone and equal to positive 5, split into two branches and add 2 to both sides.
x−2x=5=7ororx−2x=−5=−3
Sometimes isolating the bars shows that no number could make the equation true:
2∣x+5∣+10=4
Text solution
Isolate the absolute value barsSubtract 10 from both sides and divide by 2.
2∣x+5∣∣x+5∣=−6=−3
Check the sign of the right sideBecause distance from 0 is never negative, no value of x can make ∣x+5∣ equal −3.
No solution
And when isolating the bars leaves 0 on the right side:
∣x+5∣=0
Since 0 and −0 are the same number, both branches give the same equation, so there is just one answer:
x+5x=0=−5
3
Variables Outside the Bars and Extraneous Solutions
Now let's solve an equation where x also appears outside the bars on the other side:
∣2x−3∣=x−1
Because we do not know the value of x ahead of time, we cannot tell just by looking whether the right side x−1 is positive, negative, or zero.
Variables Outside the Bars and Extraneous Solutions
∣2x−3∣=x−1
x=?
Text solution
Split into two branchesSet the inside equal to x−1 and to the negative of the entire right side, −(x−1).
2x−3=x−1or2x−3=−(x−1)
Solve each branch for xDistribute the negative sign on the right branch, then collect like terms.
2x−3or2x−3x−3or3x−3xor3xx=x−1=−x+1=−1=1=2=4=34
Both x=2 and x=34 make the right side x−1 positive, so both solutions work.
Now look at an equation where one of the branches gives a value of x that makes the right side negative:
∣2x+6∣=4x
Text solution
Split and solve both branchesSet 2x+6 equal to 4x and to −4x.
2x+66x=4x=2x=3ororor2x+66xx=−4x=−6=−1
Check both answers in the original equationPlug x=3 and x=−1 back into ∣2x+6∣=4x to see whether the right side is 0 or positive.
∣2(3)+6∣∣2(−1)+6∣∣12∣∣4∣=4(3)=4(−1)=12✓=−4×
Because x=−1 makes the right side negative, only x=3 is a solution:
x=3(extraneous solutionx=−1)
4
Absolute Value Bars on Both Sides
Next, let's solve an equation with absolute value bars on both sides:
∣2x−3∣=∣x+6∣
Absolute Value Bars on Both Sides
∣2x−3∣=∣x+6∣
x=?
Text solution
Split into two branchesTwo expressions have the same distance from 0 when they are equal or opposites, so set 2x−3 equal to x+6 and to −(x+6).
2x−3=x+6or2x−3=−(x+6)
Solve each branch for xDistribute the negative sign on the second branch before solving.
2x−3or2x−3x−3or3x−3xor3xx=x+6=−x−6=6=−6=9=−3=−1
Because both sides of ∣2x−3∣=∣x+6∣ are inside absolute value bars, neither side can ever be negative, so both x=9 and x=−1 are valid solutions.
5
Writing Absolute Value Equations from a Center and Distance
Finally, let's go in the opposite direction: building an absolute value equation from a target value and an allowed distance, or from two given solutions.
Writing Absolute Value Equations from a Center and Distance
Every equation of this type has the same form:
∣x−Center∣=Distance
For a bag of chips with a target weight of 200 grams, give or take 4 grams:
Text solution
Write the equation from the target and distancePut the target 200 in place of the center and the allowed 4 grams in place of the distance.
∣x−200∣=4
Split and solve for the heaviest and lightest weightsSet x−200 equal to 4 and −4.
Now let's build an equation that has two given solutions, x=2 and x=10:
Text solution
Find the center halfway between the two solutionsAverage 2 and 10 to find their midpoint.
Center=22+10=6
Find the distance from the center to either solutionCount the steps from 6 up to 10 (or down to 2).
Distance=10−6=4
Substitute the center and distance into ∣x−Center∣=Distance
∣x−6∣=4
If the midpoint turns out to be negative, say Center=−5 and Distance=3, subtracting the negative number turns the sign inside the bars into a plus:
∣x−(−5)∣=3⟹∣x+5∣=3
See how moving the two solutions shifts the midpoint inside the bars and changes the distance on the right:
Between any two solutions on the number line, the midpoint is subtracted inside the absolute value bars and the distance from that midpoint to either solution goes on the right side of the equation.
Key concepts
For the equations in this lesson, isolate the bars first and check the right side before deciding whether to split into two branches:
Isolate the bars before splitting
Clear any numbers outside the bars using normal algebra (3∣x−2∣−4=11⟹∣x−2∣=5), and do not replace the absolute value bars with parentheses.
When not to split into two branches
Look at the isolated right side before writing two equations. If the bars equal a negative number (∣x+5∣=−3), stop right there: there is no solution. If the bars equal zero (∣x+5∣=0), solve just the single equation x+5=0.
Splitting ∣A∣=B into two branches
Keep the inside expression A as it is and set it equal to B and −B.
Positive number on the right(∣x−3∣=5⟹x−3=5 or x−3=−5): both answers work automatically.
Variable outside the bars(∣2x+6∣=4x⟹2x+6=4x or 2x+6=−4x): wrap the entire right side in parentheses when making it negative, and plug your answers back into the original equation to cross out any extraneous solution that makes the side without bars negative (x=−1 gives ∣4∣=−4).
Bars on both sides(∣2x−3∣=∣x+6∣⟹2x−3=x+6 or 2x−3=−(x+6)): use the same split; since neither side can be negative, no extraneous solutions can appear.
Writing an equation from a target or two solutions
∣x−Center∣=Distance
Given two solutions like x=2 and x=10, average them to find the center (22+10=6) and find the distance from that center to either end (10−6=4) to write ∣x−6∣=4.
6
Practice
1
Solve ∣2x−5∣=9.
The bars are already isolated. What two values can the inside expression 2x−5 equal?
Split the equation by setting 2x−5 equal to 9 and −9. (Watch out: do not change −5 to +5 inside the bars when splitting; writing 2x+5=9 and 2x+5=−9 gives the wrong answers x=2 and x=−7.)
2x−52xx=9=14=7ororor2x−52xx=−9=−4=−2
x=7 or x=−2
2
Solve 4∣x+3∣−5=11.
Clear the −5 and the 4 outside the bars first so ∣x+3∣ is completely alone before splitting.
Add 5 to both sides and divide by 4 to isolate the bars. (Watch out: splitting before isolating the bars into 4(x+3)−5=11 and 4(x+3)−5=−11 gives a wrong second answer of x=−29.)
4∣x+3∣∣x+3∣=16=4
Now split into two branches and subtract 3 from both sides:
x+3x=4=1ororx+3x=−4=−7
x=1 or x=−7
3
Solve 5∣2x−6∣+7=7.
Isolate ∣2x−6∣ first and look at the number left on the right side.
Subtract 7 from both sides and divide by 5. (Watch out: if you split right at the start into +7 and −7 before subtracting 7, you get an extra wrong answer of x=58.)
5∣2x−6∣∣2x−6∣=0=0
Because the isolated absolute value equals 0, there is only one branch:
2x−62xx=0=6=3
x=3
4
Solve 2∣x−4∣+9=3.
Isolate ∣x−4∣ first, then check the sign of the number on the right.
Subtract 9 from both sides and divide by 2:
2∣x−4∣∣x−4∣=−6=−3
Stop here: an absolute value cannot equal a negative number. (Watch out: splitting ∣x−4∣=−3 anyway into x−4=3 and x−4=−3 gives the wrong answers x=7 and x=1.)
No solution
5
Solve ∣x+8∣=3x−4.
Split into two branches, taking the negative of the entire 3x−4 on the second branch, and then test both answers in the original equation.
Split into two branches. (Watch out: on the negative branch, wrap the whole right side in parentheses as −(3x−4); writing −3x−4 without parentheses gives x=−3.)
Plug both values into ∣x+8∣=3x−4 to check whether the right side is 0 or positive. (Watch out: forgetting this check leaves the extraneous answer x=−1 in your final result.)
∣6+8∣∣14∣=3(6)−4=14✓∣−1+8∣∣7∣=3(−1)−4=−7×
Since x=−1 is extraneous, only x=6 works.
x=6
6
Solve ∣3x−4∣=∣x+8∣.
Set 3x−4 equal to x+8, and to −(x+8).
Split into two branches, using parentheses around x+8 on the negative branch. (Watch out: writing 3x−4=−x+8 without parentheses gives x=3 instead of x=−1. Also, do not throw out x=−1 just because it is negative, since both sides of the original equation have bars and neither side can be negative.)
A machine cuts wooden boards to a target length of 150 cm, give or take 2 cm. Write and solve an absolute value equation to find the longest and shortest boards x the machine allows.
Put the target length in for the center and the allowed variation in for the distance in ∣x−Center∣=Distance.
Set Center=150 and Distance=2. (Watch out: swapping the target and distance to write ∣x−2∣=150 gives 152 cm and −148 cm, and writing a plus sign inside as ∣x+150∣=2 gives negative lengths.)
∣x−150∣=2
Split into two branches and add 150 to both sides:
x−150x=2=152ororx−150x=−2=148
∣x−150∣=2; longest board: 152 cm, shortest board: 148 cm
8
Write an absolute value equation that has the solutions x=−9 and x=1.
Find the midpoint halfway between −9 and 1 first, then count how many steps it is from that midpoint to either solution.
Average the two solutions to find the center:
Center=2−9+1=−4
Find the distance from the center −4 to either end (Watch out: use the distance from the center to one end, 1−(−4)=5, not the total distance 1−(−9)=10 between the two solutions):
Distance=1−(−4)=5
Substitute Center=−4 and Distance=5 into ∣x−Center∣=Distance. (Watch out: subtracting −4 flips the sign inside the bars to +4; writing ∣x−4∣=5 gives the wrong solutions x=9 and x=−1.)