Algebra 1Expressions and Equations5 of 5
Expressions and Equations · 5

Absolute Value Equations

To solve an equation with xx 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∣\displaystyle |\inside{x - 3}| =5\displaystyle = \dist{5}
5\htmlClass{lc-orange}{5}
5\htmlClass{lc-orange}{5}
−5\htmlClass{lc-ink}{-5}
0\htmlClass{lc-blue}{0}
5\htmlClass{lc-ink}{5}
Splitting an Absolute Value Equation into Two Branches
∣x∣=5\lvert\inside{x}\rvert = \dist{5}
0\htmlClass{lc-blue}{0}
Text solution
Split into two branchesSince only 55 and −5-5 are 5\dist{5} steps from 0\centre{0}, the expression x−3\inside{x - 3} inside the bars must equal 55 or −5-5.
x−3\displaystyle \inside{x - 3} =5orx−3\displaystyle = 5 \quad \text{or} \quad \inside{x - 3} =−5\displaystyle = -5
Solve each branch for xxAdd 33 to both sides of each equation to find the two numbers that are 5\dist{5} steps away from 3\centre{3}.
x\displaystyle x =8orx\displaystyle = 8 \quad \text{or} \quad x =−2\displaystyle = -2

Now with a two-step expression inside the bars:

∣2x+1∣\displaystyle |\inside{2x + 1}| =9\displaystyle = \dist{9}
Text solution
Split into two branchesKeep 2x+1\inside{2x + 1} exactly as it is and set it equal to 99 and −9-9.
2x+1\displaystyle \inside{2x + 1} =9or2x+1\displaystyle = 9 \quad \text{or} \quad \inside{2x + 1} =−9\displaystyle = -9
Solve each equationSubtract 11 and divide by 22 on each branch.
2x=8or2x=−10x=4orx=−5\displaystyle \begin{aligned} 2x &= 8 & \text{or} && 2x &= -10 \\ x &= 4 & \text{or} && x &= -5 \end{aligned}

Moving the same number of steps left or right from 3\centre{3} flips the sign of x−3\inside{x - 3} inside the bars, while the distance ∣x−3∣\dist{|\inside{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\displaystyle 3|\inside{x - 2}| - 4 =11\displaystyle = 11

We cannot split this equation right away because we do not yet know what ∣x−2∣|\inside{x - 2}| equals on its own. Replacing 3∣x−2∣3|\inside{x - 2}| with 3(x−2)3(\inside{x - 2}) would change the equation.

Isolating the Bars First and Special Cases
3∣x−2∣−4\displaystyle 3\lvert\inside{x - 2}\rvert - 4 =11\displaystyle = 11
x\displaystyle x =  ?\displaystyle = \;?
Text solution
Isolate the absolute value barsAdd 44 to both sides and divide by 33 so ∣x−2∣|\inside{x - 2}| is alone on the left.
3∣x−2∣−4=113∣x−2∣=15∣x−2∣=5\displaystyle \begin{aligned} 3|\inside{x - 2}| - 4 &= 11 \\ 3|\inside{x - 2}| &= 15 \\ |\inside{x - 2}| &= \dist{5} \end{aligned}
Split and solveNow that the bars are alone and equal to positive 5\dist{5}, split into two branches and add 22 to both sides.
x−2=5orx−2=−5x=7orx=−3\displaystyle \begin{aligned} \inside{x - 2} &= 5 & \text{or} && \inside{x - 2} &= -5 \\ x &= 7 & \text{or} && x &= -3 \end{aligned}

Sometimes isolating the bars shows that no number could make the equation true:

2∣x+5∣+10\displaystyle 2|\inside{x + 5}| + 10 =4\displaystyle = 4
Text solution
Isolate the absolute value barsSubtract 1010 from both sides and divide by 22.
2∣x+5∣=−6∣x+5∣=−3\displaystyle \begin{aligned} 2|\inside{x + 5}| &= -6 \\ |\inside{x + 5}| &= -3 \end{aligned}
Check the sign of the right sideBecause distance from 0\centre{0} is never negative, no value of xx can make ∣x+5∣|\inside{x + 5}| equal −3-3.
No solution\displaystyle \text{No solution}

And when isolating the bars leaves 0\dist{0} on the right side:

∣x+5∣\displaystyle |\inside{x + 5}| =0\displaystyle = \dist{0}

Since 00 and −0-0 are the same number, both branches give the same equation, so there is just one answer:

x+5=0x=−5\displaystyle \begin{aligned} \inside{x + 5} &= 0 \\ x &= -5 \end{aligned}
3

Variables Outside the Bars and Extraneous Solutions

Now let's solve an equation where xx also appears outside the bars on the other side:

∣2x−3∣\displaystyle |\inside{2x - 3}| =x−1\displaystyle = \otherside{x - 1}

Because we do not know the value of xx ahead of time, we cannot tell just by looking whether the right side x−1\otherside{x - 1} is positive, negative, or zero.

Variables Outside the Bars and Extraneous Solutions
∣2x−3∣\displaystyle \lvert\inside{2x - 3}\rvert =x−1\displaystyle = \otherside{x - 1}
x\displaystyle x =  ?\displaystyle = \;?
Text solution
Split into two branchesSet the inside equal to x−1\otherside{x - 1} and to the negative of the entire right side, −(x−1)-(\otherside{x - 1}).
2x−3\displaystyle \inside{2x - 3} =x−1or2x−3\displaystyle = \otherside{x - 1} \quad \text{or} \quad \inside{2x - 3} =−(x−1)\displaystyle = -(\otherside{x - 1})
Solve each branch for xxDistribute the negative sign on the right branch, then collect like terms.
2x−3=x−1or2x−3=−x+1x−3=−1or3x−3=1x=2or3x=4x=43\displaystyle \begin{aligned} \inside{2x - 3} &= \otherside{x - 1} \\ \text{or}\quad \inside{2x - 3} &= -x + 1 \\ x - 3 &= -1 \\ \text{or}\quad 3x - 3 &= 1 \\ x &= 2 \\ \text{or}\quad 3x &= 4 \\ x &= \frac{4}{3} \end{aligned}

Both x=2x = 2 and x=43x = \frac{4}{3} make the right side x−1\otherside{x - 1} positive, so both solutions work.

Now look at an equation where one of the branches gives a value of xx that makes the right side negative:

∣2x+6∣\displaystyle |\inside{2x + 6}| =4x\displaystyle = \otherside{4x}
Text solution
Split and solve both branchesSet 2x+6\inside{2x + 6} equal to 4x\otherside{4x} and to −4x-\otherside{4x}.
2x+6=4xor2x+6=−4x6=2xor6x=−6x=3orx=−1\displaystyle \begin{aligned} \inside{2x + 6} &= \otherside{4x} & \text{or} && \inside{2x + 6} &= -\otherside{4x} \\ 6 &= 2x & \text{or} && 6x &= -6 \\ x &= 3 & \text{or} && x &= -1 \end{aligned}
Check both answers in the original equationPlug x=3x = 3 and x=−1x = -1 back into ∣2x+6∣=4x|\inside{2x + 6}| = \otherside{4x} to see whether the right side is 00 or positive.
∣2(3)+6∣=4(3)∣2(−1)+6∣=4(−1)∣12∣=12✓∣4∣=−4×\displaystyle \begin{aligned} |\inside{2(3) + 6}| &= \otherside{4(3)} \\ |\inside{2(-1) + 6}| &= \otherside{4(-1)} \\ |\inside{12}| &= \otherside{12} \quad \checkmark \\ |\inside{4}| &= \otherside{-4} \quad \times \end{aligned}

Because x=−1x = -1 makes the right side negative, only x=3x = 3 is a solution:

x\displaystyle x =3(x=−1⏟extraneous solution)\displaystyle = 3 \qquad \Big(\underbrace{x = -1}_{\text{extraneous solution}}\Big)
4

Absolute Value Bars on Both Sides

Next, let's solve an equation with absolute value bars on both sides:

∣2x−3∣\displaystyle |\inside{2x - 3}| =∣x+6∣\displaystyle = |\otherside{x + 6}|
Absolute Value Bars on Both Sides
∣2x−3∣\displaystyle \lvert\inside{2x - 3}\rvert =∣x+6∣\displaystyle = \lvert\otherside{x + 6}\rvert
x\displaystyle x =  ?\displaystyle = \;?
Text solution
Split into two branchesTwo expressions have the same distance from 0\centre{0} when they are equal or opposites, so set 2x−3\inside{2x - 3} equal to x+6\otherside{x + 6} and to −(x+6)-(\otherside{x + 6}).
2x−3\displaystyle \inside{2x - 3} =x+6or2x−3\displaystyle = \otherside{x + 6} \quad \text{or} \quad \inside{2x - 3} =−(x+6)\displaystyle = -(\otherside{x + 6})
Solve each branch for xxDistribute the negative sign on the second branch before solving.
2x−3=x+6or2x−3=−x−6x−3=6or3x−3=−6x=9or3x=−3x=−1\displaystyle \begin{aligned} \inside{2x - 3} &= \otherside{x + 6} \\ \text{or}\quad \inside{2x - 3} &= -x - 6 \\ x - 3 &= 6 \\ \text{or}\quad 3x - 3 &= -6 \\ x &= 9 \\ \text{or}\quad 3x &= -3 \\ x &= -1 \end{aligned}

Because both sides of ∣2x−3∣=∣x+6∣|\inside{2x - 3}| = |\otherside{x + 6}| are inside absolute value bars, neither side can ever be negative, so both x=9x = 9 and x=−1x = -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
200 g\centre{200}\,\text{g}
Target\htmlClass{lc-blue}{\text{Target}}
Distance\htmlClass{lc-orange}{\text{Distance}}
4 g\dist{4}\,\text{g}

Every equation of this type has the same form:

∣x−Center∣\displaystyle |\inside{x - \text{Center}}| =Distance\displaystyle = \dist{\text{Distance}}

For a bag of chips with a target weight of 200 grams\centre{200}\text{ grams}, give or take 4 grams\dist{4}\text{ grams}:

Text solution
Write the equation from the target and distancePut the target 200\centre{200} in place of the center and the allowed 4 grams\dist{4}\text{ grams} in place of the distance.
∣x−200∣\displaystyle |\inside{x - 200}| =4\displaystyle = \dist{4}
Split and solve for the heaviest and lightest weightsSet x−200\inside{x - 200} equal to 44 and −4-4.
x−200=4orx−200=−4x=204⏟heaviest bagorx=196⏟lightest bag\displaystyle \begin{aligned} \inside{x - 200} &= 4 \\ \text{or}\quad \inside{x - 200} &= -4 \\ x &= \underbrace{204}_{\text{heaviest bag}} \\ \text{or}\quad x &= \underbrace{196}_{\text{lightest bag}} \end{aligned}

Now let's build an equation that has two given solutions, x=2x = 2 and x=10x = 10:

Distance=4\htmlClass{lc-orange}{\text{Distance} = 4}
Distance=4\htmlClass{lc-orange}{\text{Distance} = 4}
2\htmlClass{lc-ink}{2}
6\htmlClass{lc-blue}{6}
10\htmlClass{lc-ink}{10}
Center\htmlClass{lc-blue}{\text{Center}}
Text solution
Find the center halfway between the two solutionsAverage 22 and 1010 to find their midpoint.
Center\displaystyle \centre{\text{Center}} =2+102\displaystyle = \frac{2 + 10}{2} =6\displaystyle = \centre{6}
Find the distance from the center to either solutionCount the steps from 6\centre{6} up to 1010 (or down to 22).
Distance\displaystyle \dist{\text{Distance}} =10−6\displaystyle = 10 - \centre{6} =4\displaystyle = \dist{4}
Substitute the center and distance into ∣x−Center∣=Distance|\inside{x - \text{Center}}| = \dist{\text{Distance}}
∣x−6∣\displaystyle |\inside{x - 6}| =4\displaystyle = \dist{4}

If the midpoint turns out to be negative, say Center=−5\centre{\text{Center}} = \centre{-5} and Distance=3\dist{\text{Distance}} = \dist{3}, subtracting the negative number turns the sign inside the bars into a plus:

∣x−(−5)∣\displaystyle |\inside{x - (-5)}| =3  ⟹  ∣x+5∣\displaystyle = \dist{3} \implies |\inside{x + 5}| =3\displaystyle = \dist{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=113|\inside{x - 2}| - 4 = 11   ⟹  \implies ∣x−2∣=5|\inside{x - 2}| = \dist{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|\inside{x + 5}| = -3), stop right there: there is no solution. If the bars equal zero (∣x+5∣=0|\inside{x + 5}| = \dist{0}), solve just the single equation x+5=0\inside{x + 5} = 0.

Splitting ∣A∣=B|\inside{A}| = B into two branches

Keep the inside expression A\inside{A} as it is and set it equal to BB and −B-B.

  • Positive number on the right (∣x−3∣=5|\inside{x - 3}| = \dist{5}   ⟹  \implies x−3=5\inside{x - 3} = 5  or \text{ or } x−3=−5\inside{x - 3} = -5): both answers work automatically.
  • Variable outside the bars (∣2x+6∣=4x|\inside{2x + 6}| = \otherside{4x}   ⟹  \implies 2x+6=4x\inside{2x + 6} = \otherside{4x}  or \text{ or } 2x+6=−4x\inside{2x + 6} = -\otherside{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=−1x = -1 gives ∣4∣=−4|\inside{4}| = \otherside{-4}).
  • Bars on both sides (∣2x−3∣|\inside{2x - 3}| == ∣x+6∣|\otherside{x + 6}|   ⟹  \implies 2x−3\inside{2x - 3} == x+6\otherside{x + 6}  or \text{ or } 2x−3\inside{2x - 3} == −(x+6)-(\otherside{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∣\displaystyle |\inside{x - \text{Center}}| =Distance\displaystyle = \dist{\text{Distance}}

Given two solutions like x=2x = 2 and x=10x = 10, average them to find the center (2+102=6\frac{2 + 10}{2} = \centre{6}) and find the distance from that center to either end (10−6=410 - \centre{6} = \dist{4}) to write ∣x−6∣=4|\inside{x - 6}| = \dist{4}.

6

Practice

1

Solve ∣2x−5∣=9|\inside{2x - 5}| = \dist{9}.

The bars are already isolated. What two values can the inside expression 2x−5\inside{2x - 5} equal?

Split the equation by setting 2x−5\inside{2x - 5} equal to 99 and −9-9. (Watch out: do not change −5-5 to +5+5 inside the bars when splitting; writing 2x+5=92x + 5 = 9 and 2x+5=−92x + 5 = -9 gives the wrong answers x=2x = 2 and x=−7x = -7.)
2x−5=9or2x−5=−92x=14or2x=−4x=7orx=−2\displaystyle \begin{aligned} \inside{2x - 5} &= 9 & \text{or} && \inside{2x - 5} &= -9 \\ 2x &= 14 & \text{or} && 2x &= -4 \\ x &= 7 & \text{or} && x &= -2 \end{aligned}
x=7 or x=−2x = 7 \text{ or } x = -2
2

Solve 4∣x+3∣−5=114|\inside{x + 3}| - 5 = 11.

Clear the −5-5 and the 44 outside the bars first so ∣x+3∣|\inside{x + 3}| is completely alone before splitting.

Add 55 to both sides and divide by 44 to isolate the bars. (Watch out: splitting before isolating the bars into 4(x+3)−5=114(\inside{x + 3}) - 5 = 11 and 4(x+3)−5=−114(\inside{x + 3}) - 5 = -11 gives a wrong second answer of x=−92x = -\frac{9}{2}.)
4∣x+3∣=16∣x+3∣=4\displaystyle \begin{aligned} 4|\inside{x + 3}| &= 16 \\ |\inside{x + 3}| &= \dist{4} \end{aligned}
Now split into two branches and subtract 33 from both sides:
x+3=4orx+3=−4x=1orx=−7\displaystyle \begin{aligned} \inside{x + 3} &= 4 & \text{or} && \inside{x + 3} &= -4 \\ x &= 1 & \text{or} && x &= -7 \end{aligned}
x=1 or x=−7x = 1 \text{ or } x = -7
3

Solve 5∣2x−6∣+7=75|\inside{2x - 6}| + 7 = 7.

Isolate ∣2x−6∣|\inside{2x - 6}| first and look at the number left on the right side.

Subtract 77 from both sides and divide by 55. (Watch out: if you split right at the start into +7+7 and −7-7 before subtracting 77, you get an extra wrong answer of x=85x = \frac{8}{5}.)
5∣2x−6∣=0∣2x−6∣=0\displaystyle \begin{aligned} 5|\inside{2x - 6}| &= 0 \\ |\inside{2x - 6}| &= \dist{0} \end{aligned}
Because the isolated absolute value equals 0\dist{0}, there is only one branch:
2x−6=02x=6x=3\displaystyle \begin{aligned} \inside{2x - 6} &= 0 \\ 2x &= 6 \\ x &= 3 \end{aligned}
x=3x = 3
4

Solve 2∣x−4∣+9=32|\inside{x - 4}| + 9 = 3.

Isolate ∣x−4∣|\inside{x - 4}| first, then check the sign of the number on the right.

Subtract 99 from both sides and divide by 22:
2∣x−4∣=−6∣x−4∣=−3\displaystyle \begin{aligned} 2|\inside{x - 4}| &= -6 \\ |\inside{x - 4}| &= -3 \end{aligned}
Stop here: an absolute value cannot equal a negative number. (Watch out: splitting ∣x−4∣=−3|\inside{x - 4}| = -3 anyway into x−4=3\inside{x - 4} = 3 and x−4=−3\inside{x - 4} = -3 gives the wrong answers x=7x = 7 and x=1x = 1.)
No solution\text{No solution}
5

Solve ∣x+8∣=3x−4|\inside{x + 8}| = \otherside{3x - 4}.

Split into two branches, taking the negative of the entire 3x−4\otherside{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)-(\otherside{3x - 4}); writing −3x−4-3x - 4 without parentheses gives x=−3x = -3.)
x+8=3x−4orx+8=−(3x−4)12=2xorx+8=−3x+4x=6or4x=−4x=−1\displaystyle \begin{aligned} \inside{x + 8} &= \otherside{3x - 4} & \text{or} && \inside{x + 8} &= -(\otherside{3x - 4}) \\ 12 &= 2x & \text{or} && \inside{x + 8} &= -3x + 4 \\ x &= 6 & \text{or} && 4x &= -4 \\ & & && x &= -1 \end{aligned}
Plug both values into ∣x+8∣=3x−4|\inside{x + 8}| = \otherside{3x - 4} to check whether the right side is 00 or positive. (Watch out: forgetting this check leaves the extraneous answer x=−1x = -1 in your final result.)
∣6+8∣=3(6)−4∣−1+8∣=3(−1)−4∣14∣=14✓∣7∣=−7×\displaystyle \begin{aligned} |\inside{6 + 8}| &= \otherside{3(6) - 4} & |\inside{-1 + 8}| &= \otherside{3(-1) - 4} \\ |\inside{14}| &= \otherside{14} \quad \checkmark & |\inside{7}| &= \otherside{-7} \quad \times \end{aligned}
Since x=−1x = -1 is extraneous, only x=6x = 6 works.
x=6x = 6
6

Solve ∣3x−4∣=∣x+8∣|\inside{3x - 4}| = |\otherside{x + 8}|.

Set 3x−4\inside{3x - 4} equal to x+8\otherside{x + 8}, and to −(x+8)-(\otherside{x + 8}).

Split into two branches, using parentheses around x+8\otherside{x + 8} on the negative branch. (Watch out: writing 3x−4=−x+8\inside{3x - 4} = -x + 8 without parentheses gives x=3x = 3 instead of x=−1x = -1. Also, do not throw out x=−1x = -1 just because it is negative, since both sides of the original equation have bars and neither side can be negative.)
3x−4=x+8or3x−4=−(x+8)2x=12or3x−4=−x−8x=6or4x=−4x=−1\displaystyle \begin{aligned} \inside{3x - 4} &= \otherside{x + 8} & \text{or} && \inside{3x - 4} &= -(\otherside{x + 8}) \\ 2x &= 12 & \text{or} && \inside{3x - 4} &= -x - 8 \\ x &= 6 & \text{or} && 4x &= -4 \\ & & && x &= -1 \end{aligned}
x=6 or x=−1x = 6 \text{ or } x = -1
7

A machine cuts wooden boards to a target length of 150 cm150\text{ cm}, give or take 2 cm2\text{ cm}. Write and solve an absolute value equation to find the longest and shortest boards xx the machine allows.

Put the target length in for the center and the allowed variation in for the distance in ∣x−Center∣=Distance|\inside{x - \text{Center}}| = \dist{\text{Distance}}.

Set Center=150\centre{\text{Center}} = \centre{150} and Distance=2\dist{\text{Distance}} = \dist{2}. (Watch out: swapping the target and distance to write ∣x−2∣=150|x - 2| = 150 gives 152 cm152\text{ cm} and −148 cm-148\text{ cm}, and writing a plus sign inside as ∣x+150∣=2|x + 150| = 2 gives negative lengths.)
∣x−150∣\displaystyle |\inside{x - 150}| =2\displaystyle = \dist{2}
Split into two branches and add 150150 to both sides:
x−150=2orx−150=−2x=152orx=148\displaystyle \begin{aligned} \inside{x - 150} &= 2 & \text{or} && \inside{x - 150} &= -2 \\ x &= 152 & \text{or} && x &= 148 \end{aligned}
∣x−150∣|x - 150| == 2; longest board: 152 cm, shortest board: 148 cm2\text{; longest board: } 152\text{ cm, shortest board: } 148\text{ cm}
8

Write an absolute value equation that has the solutions x=−9x = -9 and x=1x = 1.

Find the midpoint halfway between −9-9 and 11 first, then count how many steps it is from that midpoint to either solution.

Average the two solutions to find the center:
Center\displaystyle \centre{\text{Center}} =−9+12\displaystyle = \frac{-9 + 1}{2} =−4\displaystyle = \centre{-4}
Find the distance from the center −4\centre{-4} to either end (Watch out: use the distance from the center to one end, 1−(−4)=51 - (\centre{-4}) = \dist{5}, not the total distance 1−(−9)=101 - (-9) = 10 between the two solutions):
Distance\displaystyle \dist{\text{Distance}} =1−(−4)\displaystyle = 1 - (\centre{-4}) =5\displaystyle = \dist{5}
Substitute Center=−4\centre{\text{Center}} = \centre{-4} and Distance=5\dist{\text{Distance}} = \dist{5} into ∣x−Center∣=Distance|\inside{x - \text{Center}}| = \dist{\text{Distance}}. (Watch out: subtracting −4\centre{-4} flips the sign inside the bars to +4+4; writing ∣x−4∣=5|x - 4| = 5 gives the wrong solutions x=9x = 9 and x=−1x = -1.)
∣x−(−4)∣\displaystyle |\inside{x - (-4)}| =5  ⟹  ∣x+4∣\displaystyle = \dist{5} \implies |\inside{x + 4}| =5\displaystyle = \dist{5}
∣x+4∣=5|x + 4| = 5