Absolute Value Equation Solver
Solve |ax + b| = c and |ax + b| = |cx + d| with step-by-step case analysis, verification, and formatted solutions.
What Is the Absolute Value Equation Solver?
The Absolute Value Equation Solver works through two types of equations that students and professionals encounter most often. In Mode 1 you solve the standard form |ax + b| = c, a linear expression inside absolute value bars set equal to a constant. In Mode 2 you solve |ax + b| = |cx + d|, where both sides carry an absolute value, which also appears frequently in algebra and precalculus.
For every equation the solver performs a full case analysis, splitting into the two linear sub-equations that arise when you remove the absolute value bars, and then verifies each solution by substituting it back into the original equation. This catches sign errors and confirms the answer is genuine, not extraneous.
All three possible outcomes are handled: two solutions (the most common case), exactly one solution (when the right-hand side is zero), and no solution (when the right-hand side is negative or the equation is a contradiction).
Formula
c < 0No solutionc = 0ax + b = 0 → x = −b / ac > 0Case 1: ax + b = c → x₁ = (c − b) / aCase 2: ax + b = −c → x₂ = (−c − b) / aax + b = (cx + d)x₁ = (d − b) / (a − c)ax + b = −(cx + d)x₂ = −(b + d) / (a + c)How to Use
Mode 1, Solve |ax + b| = c
- 1Select mode: Make sure the "|ax + b| = c" tab is active (highlighted in orange).
- 2Enter a: The coefficient of x inside the absolute value bars. Use negative values freely (e.g. −2).
- 3Enter b: The constant term inside the bars. Enter 0 if there is no constant.
- 4Enter c: The value on the right-hand side of the equation. Negative values will immediately return "No solution".
- 5Click Solve: Each case is solved and displayed in its own card with working steps and a verification check.
Mode 2, Solve |ax + b| = |cx + d|
- 1Switch mode: Click the "|ax + b| = |cx + d|" tab. Four input fields appear.
- 2Enter a and b: Coefficients for the left-side expression inside the bars.
- 3Enter c and d: Coefficients for the right-side expression inside the bars.
- 4Click Solve: Both cases are solved, deduplicated if equal, and verified against the original equation.
Example Calculation
Example 1, Two solutions (most common)
Solve |2x − 3| = 7 (a = 2, b = −3, c = 7)
Case 1: 2x − 3 = 7 → 2x = 10 → x = 5
Case 2: 2x − 3 = −7 → 2x = −4 → x = −2
Verify: |2(5) − 3| = |7| = 7 ✓ |2(−2) − 3| = |−7| = 7 ✓
Solutions: x = 5 and x = −2
Example 2, One solution (c = 0)
Solve |3x + 6| = 0 (a = 3, b = 6, c = 0)
3x + 6 = 0 → x = −6 / 3 = −2
There is exactly one solution because the only number whose absolute value is 0 is 0 itself.
Solution: x = −2
Example 3, No solution (c < 0)
Solve |x + 4| = −5 (a = 1, b = 4, c = −5)
|anything| ≥ 0, so |x + 4| can never equal −5.
No solution. The solution set is empty (∅).
Example 4, Absolute equals absolute (Mode 2)
Solve |2x − 1| = |x + 3| (a = 2, b = −1, c = 1, d = 3)
Case 1: 2x − 1 = x + 3 → x = 4
Case 2: 2x − 1 = −(x + 3) → 3x = −2 → x = −2/3
Verify: |2(4)−1| = |7| = 7, |4+3| = 7 ✓ |2(−2/3)−1| = 7/3, |−2/3+3| = 7/3 ✓
Solutions: x = 4 and x = −2/3
Understanding Absolute Value Equation
What Is an Absolute Value Equation?
An absolute value equation is any equation that contains an absolute value expression, something enclosed in vertical bars like |ax + b|. The absolute value of a number is its distance from zero on the number line, which means it strips away the sign and always returns a non-negative result. This single property is what makes absolute value equations behave differently from ordinary linear equations: the same equation can have zero, one, or two solutions depending entirely on the value on the right-hand side.
Solving these equations is a core skill in algebra and precalculus. They appear in physics (tolerance bands, error margins), engineering (signal magnitude), economics (deviation from a target), and computer science (distance metrics and norms).
The Core Principle: Distance from Zero
The key insight is geometric. When you write |ax + b| = c, you are asking: for what values of x does the expression ax + b land exactly c units away from zero? There are exactly two such locations on the number line, positive c and negative c, which is why the standard case produces two equations:
ax + b = c ← the expression equals +c
ax + b = −c ← the expression equals −c
Solving each linear equation independently gives the two candidate solutions. The same logic extends to |ax + b| = |cx + d|: the two expressions are equal in absolute value when they are either equal or opposite in sign, again producing two cases.
Three Possible Outcomes, Explained
| Condition | Number of solutions | Why |
|---|---|---|
| c < 0 | None | |anything| ≥ 0, so it can never equal a negative number |
| c = 0 | One (x = −b/a) | Only 0 has absolute value 0; one unique intersection |
| c > 0 | Two (x₁ and x₂) | Two points at distance c from zero on the number line |
| a = 0 and |b| = c | Infinite (all real x) | The equation becomes a true constant statement |
| a = 0 and |b| ≠ c | None | The equation becomes a false constant statement |
Always check the right-hand side first. If c is negative, you can stop immediately, no solution exists without any further calculation.
Solving |ax + b| = |cx + d|, The Two-Case Method
When both sides carry an absolute value, the principle is the same but applied symmetrically. Two expressions are equal in absolute value when they are identical or when they are exact opposites:
Case 1: ax + b = cx + d → rearrange as a standard linear equation
Case 2: ax + b = −(cx + d) → distribute and rearrange
Each case reduces to a straightforward linear equation. It is possible for both cases to produce the same x value (giving one unique solution), for each to produce a distinct x (giving two), or for one or both cases to be degenerate (producing no solution or infinitely many).
What Are Extraneous Solutions and Why Do They Matter?
An extraneous solution is a value of x that satisfies one of the algebraic sub-equations but not the original absolute value equation. They are more common when absolute value equations are combined with other operations (squaring both sides, for example), but can arise in any multi-step solving process due to sign mishandling.
The safe and correct workflow is always to substitute every candidate solution back into the original equation and confirm that both sides are equal. This solver performs that verification automatically and marks each solution as confirmed or flagged.
Step-by-Step Method for Solving by Hand
- Isolate the absolute value, make sure |ax + b| is alone on one side before splitting into cases.
- Check the right-hand side, if it is negative, write "No solution" and stop.
- Split into two cases, set the inner expression equal to +c and −c (or +(cx+d) and −(cx+d) for Mode 2).
- Solve each linear equation, apply basic algebra to isolate x in each case.
- Verify both solutions, substitute each x back into the original equation and confirm the equality holds.
- Report the solution set, list all verified solutions, or state no solution / infinite solutions where applicable.
Common Mistakes to Avoid
- Forgetting the negative case, only setting up ax + b = c and missing ax + b = −c is the single most common error. Both cases must always be solved.
- Skipping verification, not checking candidate solutions allows extraneous answers to slip through, especially in more complex equations.
- Operating before isolating, distributing or rearranging terms before the absolute value is isolated on its own side leads to incorrect case splits.
- Treating |−x| as −|x|, they are always equal: |−x| = |x|, since absolute value only cares about magnitude, not sign.
Real-World Applications of Absolute Value Equations
- Manufacturing tolerances, "the diameter must be 50 mm ± 0.1 mm" translates directly to |d − 50| = 0.1, giving two boundary values (49.9 and 50.1 mm).
- Temperature ranges, a thermostat that triggers at exactly ±5°C from a setpoint uses absolute value to define both threshold values simultaneously.
- Finance, break-even analysis sometimes asks when the profit or loss magnitude hits a specific value: |revenue − cost| = target.
- Physics, wave equations and oscillation problems often involve absolute value when describing amplitude or displacement from equilibrium in both directions.
- Navigation and GPS, computing distance from a reference point (in one dimension) is an absolute value equation: |position − waypoint| = distance.
Absolute Value in Higher Mathematics
The concept scales far beyond introductory algebra:
- Epsilon-delta limits (calculus), the formal definition of a limit uses absolute value: |f(x) − L| < ε whenever |x − a| < δ.
- Complex modulus, for a complex number z = a + bi, the modulus |z| = √(a² + b²) extends absolute value to two dimensions.
- Metric spaces, abstract distance functions (metrics) are defined by properties that mirror the absolute value: non-negativity, symmetry, and the triangle inequality.
- L¹ norm in machine learning, the sum of absolute values of a vector's components is the L¹ norm, used in Lasso regression and sparse optimization to promote simpler models.
Frequently Asked Questions
What is absolute value?
The absolute value of a number is its distance from zero on the number line, always expressed as a non-negative value. Written as |x|, it equals x when x ≥ 0 and equals −x when x < 0. So |5| = 5, |−5| = 5, and |0| = 0. Distance is never negative, which is the geometric reason absolute value cannot produce a negative result.
Why do absolute value equations usually have two solutions?
Because |expression| = c means the expression inside is at distance c from zero on the number line. There are exactly two numbers at any given positive distance from zero: +c and −c. Setting the inner expression equal to each gives two separate linear equations, and each typically yields one solution for x. The exception is c = 0, which gives only one solution, and c < 0, which gives none.
When is there no solution?
When the right-hand side c is negative. Since |anything| ≥ 0 for all real numbers, an absolute value expression can never equal a negative number. For example, |3x + 2| = −4 has no solution regardless of what x is.
When is there exactly one solution?
When c = 0. The only number whose absolute value is 0 is 0 itself, so |ax + b| = 0 reduces to the single equation ax + b = 0, giving x = −b/a (provided a ≠ 0).
What are extraneous solutions?
Extraneous solutions are values of x that satisfy one of the split cases algebraically but do not satisfy the original absolute value equation. They most often appear when solving more complex absolute value equations (involving expressions that could be set up incorrectly). This solver verifies every solution by substituting it back, flagging any result that does not check out.
How do I solve |ax + b| = |cx + d|?
Remove the absolute value bars using two cases: Case 1 sets the inner expressions equal (ax + b = cx + d), and Case 2 sets them as negatives of each other (ax + b = −(cx + d)). Solve each linear equation separately and verify both results in the original equation. This is exactly what Mode 2 of this solver does automatically.
What if a = 0 in |ax + b| = c?
When a = 0 the equation degenerates to |b| = c, which no longer depends on x. If |b| equals c, then every real number x is a solution (infinitely many solutions). If |b| ≠ c, there is no solution at all. The solver detects and reports both degenerate cases.
How is this different from an absolute value inequality?
An absolute value equation (using =) asks for the specific x values where the expression equals the target. An absolute value inequality (using < or >) asks for a range of x values. For example, |x − 3| = 2 gives two points (x = 1 and x = 5), while |x − 3| < 2 gives the interval 1 < x < 5. This solver handles equations only.