Absolute Value Equation
solver.
Absolute value equations split into two cases, and each answer gets checked.
- Solutions
- 2
- Tip of the V at x =
- 32
- Tip to each answer
- 72
The tip of the V sits at x = 1.5. Both answers are 3.5 away from it, one on each side.
Both sides on one graph
Drag the point to raise or lower the lineThe V is y = |2x − 3| and the other side is y = 7. They meet at x = −2 and x = 5.
Working
- 1An absolute value is never negativec = 7 is allowed
- 2Split into two equations2x − 3 = 7 or 2x − 3 = −7
- 3Case 1: the inside equals +c2x − 3 = 72x = 7 − (−3) = 10x=102=5
- 4Case 2: the inside equals −c2x − 3 = −72x = −7 − (−3) = −4x=−42=−2
- 5Check: put each answer backAt x =−2,|−7|=7, which is cAt x =5,|7|=7, which is c
What if c changes
| c | How many | Solutions |
|---|---|---|
| −1 | 0 | None |
| 0 | 1 | 1.5 |
| 1 | 2 | 1, 2 |
| 2 | 2 | 0.5, 2.5 |
| 5 | 2 | −1, 4 |
| 7(yours) | 2 | −2, 5 |
| 10 | 2 | −3.5, 6.5 |
Below 0 there is no answer, at 0 there is one, and above 0 there are two, as long as a is not 0.
How it's worked out
The bars measure distance from 0 on the number line. A distance of c can run in two directions, so says the same thing as or . With a line inside the bars, you get two plain equations and solve each one.
Here a is the number in front of x, b is the number added inside the bars, and c is the right side. Solving each case gives the two answers below. OpenStax states the rule by the sign of c: no solution when c is negative, one when c is 0, and two when c is positive.
With bars on both sides, two absolute values match when the insides are equal or when they are opposite. A case can lose its x altogether. Then it is either true for every x or never true, and the steps say which.
| Equation | Solution | Why |
|---|---|---|
| |x − 4| = 3 | x = 1, x = 7 | c above 0: two points 3 from 4 |
| |x − 4| = 0 | x = 4 | c is 0: the inside must be 0 |
| |x − 4| = −3 | No solution | c below 0: nothing can equal it |
| |−3| = 3 | All real numbers | a is 0 and |b| = c: always true |
| |x + 2| = |x − 6| | x = 2 | Same slope: only one case gives an x |
| |2x + 1| = |−2x − 1| | All real numbers | Opposite insides: always true |
Worked examples
Marta checks a homework answer
Marta has on a worksheet. She wrote x = 5 and stopped. The right side is above 0, so a second answer must exist. Setting the inside to 7 gives 5, and setting it to −7 gives −2.
Putting them back gives for the first and for the second, so both hold. The tip of the V sits at 1.5, and each answer is 3.5 away from it. That even spacing is a quick test for any answer pair of this kind.
Dev turns a shaft tolerance into two limits
A drawing calls for a shaft of 50 mm with a tolerance of 0.1 mm either way. A size x is on the limit when its distance from 50 is exactly 0.1, which is . The two answers are 49.9 mm and 50.1 mm, the smallest and largest sizes Dev can accept.
Sizes between the limits pass, and that is an inequality rather than an equation. The inequality solver gives the whole range.
Priya looks for the point halfway between two mile markers
Two rest stops sit at marker 2 and marker −4 on a straight road. Priya wants the spot equally far from both, so she writes . The first case, , loses its x and is never true. The second case gives x = −1.
At that spot each stop is 3 miles away. The two V shapes have the same slope, so they cross just once, midway between their tips. With different slopes you usually get two crossings, as does: x = or x = 4.
Reading your result
Look at the graph first. The V is the left side, with its tip where the inside is 0. Each crossing with the other side is one solution. A line below the x-axis never reaches the V, which is the picture behind the rule that c cannot be negative. A line at height 0 touches only the tip.
Fractions stay exact when the numbers are whole. The check for at the lower answer gives on both sides. With decimal coefficients the answer is shown to the places you pick, so a long decimal can leave a tiny rounding gap in the check.
Only a line can go inside the bars here. For the same two cases apply, but each one is a quadratic, so finish them with the quadratic solver. Coefficients can reach in size.
Common mistakes
- Splitting before the bars stand alone. In , subtract 10 first. That leaves , and the answer is no solution, with no need to split at all.
- Dropping the second case. Solving only feels finished, since it does give a true answer. The other answer comes from the negative side.
- Missing a sign in the opposite case. The right side becomes , so both terms change sign. Writing moves the answer.
- Pulling the bars apart. is not . At x = 1 the first is 2, while the second is below 0.