Solving Absolute Value Equations

Solving Absolute Value Equations
We can solve equations involving absolute values either graphically or algebraically.
We'll look at solving equations of the form ∣f(x)∣=g(x).
Solving Graphically: ∣f(x)∣=g(x)
Just like solving any equation graphically, we can graph the functions on both sides of the equation and look for points of intersection.
Example
Solve ∣2x+1∣−5=0 using a graph.
We want to get the absolute value part alone on the left, so we should start by rearranging.
Let's add 5 to both sides to get: ∣f(x)∣∣2x+10∣=g(x)5
Below we've graphed y=∣2x+1∣ in blue, and y=5 in orange.

There are two points of intersection (POIs):
- When x=−3, both functions produce y=5, so the POI is (−3,5)
- When x=2, both functions produce y=5, so the POI is (2,5)
As long as you are able to graph both sides of the equation, you can get an idea of what the solutions are by looking for POIs!
Solving Algebraically: ∣f(x)∣=g(x)
To solve without graphing, we use the piecewise definition of the absolute value:
This way, we just have to check both cases:
- where f(x)=g(x) (in the case that f(x)≥0)
- where −f(x)=g(x) (in the case that f(x)<0)
Example
Solve the same problem as before algebraically: ∣2x+1∣−5=0
Once again, we rewrite this as ∣2x+1∣=5.
According to the piecewise definition:
∣2x+1∣={2x+1,−(2x+1),ifif2x+1≥02x+1<0
Simplify each of the conditions by solving for x:
2x+1≥0 ⟹ 2x≥−1 ⟹ x≥−21
and similarly:
2x+1<0 ⟹ 2x<−1 ⟹ x<−21
So now we can work on each case separately by setting the parts of the piecewise function equal to the RHS, which is 5.
Case 1: 2x+1=5, where x≥−21
Solving for x: 2x+1=5 ⟹ 2x=4 ⟹ x=2
In this case, since the condition is x≥−21, the solution x=2 is accepted.
Case 2: −(2x+1)=5, where x<−21
Solving for x: −(2x+1)=5 ⟹ −2x−1=5 ⟹ −2x=6 ⟹ x=−3
Since the condition is x<−21, the solution x=−3 is accepted.

Example: Solving Absolute Value Equations
Solve ∣x2−4∣−4x=−8.
Start by rearranging to get to the form ∣f(x)∣=g(x):
∣x2−4∣−4x=−8 ⟹ ∣x2−4∣=4x−8
Writing the piecewise definition:
∣x2−4∣={x2−4,−(x2−4),ififx2−4≥0x2−4<0
Now let's determine the conditions more specifically:
x2−4≥0 ⟹ x2≥4 ⟹ x≤−2 or x≥2
and
x2−4<0 ⟹ x2<4 ⟹ −2<x<2
Now we can rewrite the piecewise definition:
∣x2−4∣={x2−4,−x2+4,ififx≤−2 or x≥2−2<x<2
Case 1: x2−4=4x−8, where x≤−2 or x≥2
x2−4=4x−8 ⟹ x2−4x+4=0 ⟹ (x−2)2=0 ⟹ x=2
Since the condition includes x≥2 , our solution x=2 is valid.
Case 2: −x2+4=4x−8, where −2<x<2
−x2+4−x2−4x+12−(x2+4x−12)−(x+6)(x−2)x=−6,2=4x−8=0=0=0
Since the condition is −2<x<2, these are both extraneous (invalid) solutions!
Therefore, the only solution is x=2.
To solve graphically, graph y=∣x2−4∣ and y=4x−8.

We can see that x=2 is indeed the only solution (the only point of intersection).
Practice: Solving Absolute Value Equations
Select all solutions to the equation ∣3x−6∣−x−2=0.
Practice: Solving Absolute Value Equations
Select all solutions to the equation ∣x+5∣=x2−3x.