Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Equations with Absolute Value






Distance, Cases, and the Geometry of the Number Line

The absolute value function strips a number of its sign, returning its distance from zero on the number line. When this function wraps around an expression containing an unknown, the resulting equation splits into cases — each case a separate equation to solve, each constrained to the interval where that case applies. Absolute value equations are not inherently difficult, but they demand a structured approach. The case-splitting method is the reliable path, and the geometric interpretation as distance often reveals the answer faster than the algebra.

Key Terms

Core Concept

Absolute Value— the distance of a number from zero, always non-negative

Equation Solving

Conditional Equation— ∣f(x)∣=k|f(x)| = k with k>0k > 0 splits into two conditional equations
Contradiction— ∣f(x)∣=k|f(x)| = k with k<0k < 0 has no solution
Solution Set— typically two values from the two cases
Extraneous Solution— may arise when squaring to eliminate absolute values

Formulas Used on This Page

Absolute Value Equation— ∣p∣=b  ⟹  p=b or p=−b|p| = b \implies p = b \text{ or } p = -b

See All Algebra Definitions →

See All Algebra Formulas →


Definition of Absolute Value

The absolute value of a real number xx, written ∣x∣|x|, is defined piecewise:

∣x∣={xif x≥0−xif x<0|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}


The notation −x-x in the second case does not mean "a negative number." It means "the opposite of xx." When xx is already negative, −x-x is positive. The absolute value function takes any input and returns a non-negative output: ∣x∣≥0|x| \geq 0 for every real xx, with equality only when x=0x = 0.

Geometrically, ∣x∣|x| is the distance from xx to the origin on the number line. The number −7-7 sits 77 units from zero, so ∣−7∣=7|-7| = 7. The number 44 sits 44 units from zero, so ∣4∣=4|4| = 4. Distance is inherently non-negative, which is why absolute value never produces a negative result.

This non-negativity has an immediate consequence for equations: if ∣f(x)∣=k|f(x)| = k and k<0k < 0, the equation has no solution. No expression inside absolute value bars can produce a negative output. The sign of the right-hand side is the first thing to check before any case analysis begins.

Absolute Value Notation

Notation

Absolute Value Notation

The bars as a bracket pair, the most overloaded glyph in mathematics, and the algebraic alias that lets the bars be squared away.
The ±\pm behind every case split — radical notation; the cases brace in the definition — piecewise functions.
∣a+b∣|a + b|
The absolute value of the whole quantity a plus b
The bars are a bracket pair: everything between them is one block, evaluated first — like the radical's vinculum, an invisible parenthesis with a built-in operation. The mathematical keyboard inserts the pair without typing either bar.
CasesNested bars are legal but hard on the eye: ∣∣x∣−1∣\left||x| - 1\right| resolves inside-out. Print sizes the outer pair taller; handwriting has no such mercy, which is why worked solutions relabel the inner block instead.
Also writtenabs⁡(x)\operatorname{abs}(x) — the functional spelling, universal in programming, rare in print.
Do not confuseA distributable mark. ∣a+b∣≠∣a∣+∣b∣|a + b| \neq |a| + |b| in general — the gap between them is the triangle inequality ∣a+b∣≤∣a∣+∣b∣|a+b| \leq |a| + |b|, and treating the bars like a factor erases it.
∣x∣|x| · ∣z∣|z| · ∣A∣|A| · ∣M∣|M|
The same two bars, four different jobs
The vertical pair is the most overloaded bracket in mathematics. Here it means distance to zero, per the Definition above — and only some of its other jobs keep that meaning.
Cases∣z∣|z| on a complex number is the same idea — distance to the origin, plane instead of line. ∥v∥\|v\| doubles the bars for vector length. Both generalize this page's bars honestly.
Do not confuseThe unrelated jobs. ∣A∣|A| on a set is cardinality — a count; ∣M∣|M| on a matrix is the determinant — which can be negative: the one place the bars carry no non-negativity promise at all.
∣x∣=x2|x| = \sqrt{x^2}
The absolute value is the square root of the square
The bars have an algebraic alias: squaring erases the sign, the principal root keeps the result non-negative. One identity, two directions — it defines ∣x∣|x| without cases, and it lets equations shed their bars by squaring.
Cases∣A∣=∣B∣|A| = |B| is equivalent to A2=B2A^2 = B^2 — the squaring route for Equations with Absolute Value on Both Sides below. Calculus leans on the alias too: x2\sqrt{x^2} differentiates where the piecewise form needs case-work.
Also writtenmax⁡(x,−x)\max(x, -x) — the order-theoretic spelling, common in analysis.
Do not confusex2=x\sqrt{x^2} = x, with the bars dropped. That identity is false for negative xx — the whole story is told at the even-root identity, whose answer is exactly these bars.

The Basic Equation

The equation ∣A∣=B|A| = B, where AA is an expression and BB is a constant, has three possible structures depending on the sign of BB.

When B>0B > 0, the equation splits into two cases:

Absolute Value Equation
∣p∣=b  ⟹  p=b or p=−b(b>0)|p| = b \implies p = b \text{ or } p = -b \quad (b > 0)
Learn more about this formula: Absolute Value Equation →


Both must be solved, and both solutions (if they exist) belong to the solution set. The equation ∣2x−3∣=7|2x - 3| = 7 becomes 2x−3=72x - 3 = 7 or 2x−3=−72x - 3 = -7, giving x=5x = 5 or x=−2x = -2.

When B=0B = 0, the equation reduces to a single case: A=0A = 0. There is no split because zero is its own opposite. The equation ∣4x+1∣=0|4x + 1| = 0 gives 4x+1=04x + 1 = 0, so x=−14x = -\frac{1}{4}.

When B<0B < 0, no solution exists. The equation ∣x+3∣=−2|x + 3| = -2 asks for a non-negative quantity to equal −2-2, which is impossible. The solution set is empty, and no algebra is needed to determine this.

Checking the sign of the right-hand side before proceeding is not a shortcut — it is the logical first step. A negative right-hand side eliminates the equation immediately, and recognizing this saves the effort of setting up cases that cannot produce valid solutions.
Sign of B Resulting case(s) Solution count
B > 0 A = B or A = −B two (typically)
B = 0 A = 0 one
B < 0 (impossible — absolute value is never negative) none — empty set

Solving Equations of the Form |f(x)| = k

When the expression inside the absolute value is a function of xx rather than xx alone, the case-splitting method applies in the same way. The equation ∣f(x)∣=k|f(x)| = k (with k>0k > 0) generates two separate equations:

f(x)=kandf(x)=−kf(x) = k \quad \text{and} \quad f(x) = -k


Each equation is solved independently using whatever method the form of f(x)f(x) requires. The union of both solution sets is the complete answer.

When f(x)f(x) is linear, each case produces a linear equation with exactly one solution, so the original absolute value equation has exactly two solutions (assuming k>0k > 0). The equation ∣3x+5∣=11|3x + 5| = 11 yields 3x+5=113x + 5 = 11 (so x=2x = 2) and 3x+5=−113x + 5 = -11 (so x=−163x = -\frac{16}{3}).

When f(x)f(x) is quadratic, each case is a quadratic equation that may contribute zero, one, or two solutions. The equation ∣x2−4∣=5|x^2 - 4| = 5 splits into x2−4=5x^2 - 4 = 5 and x2−4=−5x^2 - 4 = -5. The first gives x2=9x^2 = 9, so x=±3x = \pm 3. The second gives x2=−1x^2 = -1, which has no real solutions. The complete solution set is {−3,3}\{-3, 3\}.

The method extends to any expression inside the absolute value. The internal structure determines how hard each case is to solve, but the case-splitting framework is always the same.

Equations with Absolute Value on Both Sides

When absolute value appears on both sides — ∣f(x)∣=∣g(x)∣|f(x)| = |g(x)| — the equation asserts that two expressions are equal in magnitude, possibly differing in sign. This decomposes into two cases:

f(x)=g(x)orf(x)=−g(x)f(x) = g(x) \quad \text{or} \quad f(x) = -g(x)


Each case is solved separately, and the results are combined.

The equation ∣2x−1∣=∣x+4∣|2x - 1| = |x + 4| produces two equations. From 2x−1=x+42x - 1 = x + 4: x=5x = 5. From 2x−1=−(x+4)2x - 1 = -(x + 4): 2x−1=−x−42x - 1 = -x - 4, so 3x=−33x = -3 and x=−1x = -1. Both candidates should be verified: ∣2(5)−1∣=∣9∣=9|2(5) - 1| = |9| = 9 and ∣5+4∣=∣9∣=9|5 + 4| = |9| = 9, confirming x=5x = 5. Similarly, ∣2(−1)−1∣=∣−3∣=3|2(-1) - 1| = |-3| = 3 and ∣−1+4∣=∣3∣=3|-1 + 4| = |3| = 3, confirming x=−1x = -1. The solution set is {−1,5}\{-1, 5\}.

An alternative approach uses the algebraic identity ∣A∣=∣B∣|A| = |B| if and only if A2=B2A^2 = B^2. Squaring both sides removes all absolute value bars at once, producing the equation (2x−1)2=(x+4)2(2x - 1)^2 = (x + 4)^2. Expanding and simplifying yields a polynomial equation. This method is algebraically equivalent to case-splitting but carries a risk: squaring can introduce extraneous solutions, so every candidate must be checked in the original equation.

Equations with Multiple Absolute Value Terms

Equations containing two or more absolute value terms — such as ∣x−1∣+∣x+3∣=8|x - 1| + |x + 3| = 8 — cannot be handled by a single case split. Each absolute value expression changes its behavior at a critical point where the expression inside equals zero, and the equation must be analyzed separately on each interval defined by these critical points.

For ∣x−1∣+∣x+3∣=8|x - 1| + |x + 3| = 8, the critical points are x=1x = 1 and x=−3x = -3. These divide the number line into three intervals: x<−3x < -3, −3≤x≤1-3 \leq x \leq 1, and x>1x > 1. On each interval, every absolute value expression has a definite sign, so the piecewise definition removes the bars entirely.

On x<−3x < -3: both x−1<0x - 1 < 0 and x+3<0x + 3 < 0, so the equation becomes −(x−1)+(−(x+3))=8-(x - 1) + (-(x + 3)) = 8, which simplifies to −2x−2=8-2x - 2 = 8, giving x=−5x = -5. Since −5<−3-5 < -3, this value lies in the interval and is valid.

On −3≤x≤1-3 \leq x \leq 1: x−1≤0x - 1 \leq 0 and x+3≥0x + 3 \geq 0, so the equation becomes −(x−1)+(x+3)=8-(x - 1) + (x + 3) = 8, which simplifies to 4=84 = 8. This is false, so no solution exists in this interval.

On x>1x > 1: both expressions are positive, so the equation becomes (x−1)+(x+3)=8(x - 1) + (x + 3) = 8, giving 2x+2=82x + 2 = 8 and x=3x = 3. Since 3>13 > 1, this is valid.

The solution set is {−5,3}\{-5, 3\}. The interval method is systematic: identify critical points, solve on each interval using the appropriate piecewise form, and verify that each candidate belongs to the interval where it was derived.
Interval |x − 1| |x + 3| Equation becomes Result
x < −3 −(x − 1) −(x + 3) −2x − 2 = 8 x = −5 ✓
−3 ≤ x ≤ 1 −(x − 1) (x + 3) 4 = 8 no solution ✗
x > 1 (x − 1) (x + 3) 2x + 2 = 8 x = 3 ✓

Absolute Value and Extraneous Solutions

The case-splitting method, when applied correctly, does not generate extraneous solutions. Each case defines a condition under which the absolute value expression takes a specific sign, and solving within that condition produces only valid results — provided the solution is checked against the interval constraint.

Extraneous solutions enter through a different route: squaring. The equation ∣x−2∣=3x−4|x - 2| = 3x - 4 can be solved by case-splitting (the reliable method) or by squaring both sides to obtain (x−2)2=(3x−4)2(x - 2)^2 = (3x - 4)^2. Squaring eliminates the absolute value but is not reversible — it treats ∣A∣=B|A| = B and ∣A∣=−B|A| = -B identically, and if BB takes negative values for some xx, those values may appear as solutions to the squared equation without satisfying the original.

For this equation, case-splitting gives two cases. From x−2=3x−4x - 2 = 3x - 4: x=1x = 1. Check: ∣1−2∣=1|1 - 2| = 1 and 3(1)−4=−13(1) - 4 = -1. Since 1≠−11 \neq -1, this candidate is extraneous. From −(x−2)=3x−4-(x - 2) = 3x - 4: −x+2=3x−4-x + 2 = 3x - 4, so x=32x = \frac{3}{2}. Check: ∣32−2∣=12|\frac{3}{2} - 2| = \frac{1}{2} and 3(32)−4=123(\frac{3}{2}) - 4 = \frac{1}{2}. This one holds. The only solution is x=32x = \frac{3}{2}.

The first candidate failed because the right-hand side 3x−43x - 4 was negative at x=1x = 1. An absolute value equation ∣A∣=B|A| = B requires B≥0B \geq 0 at the solution point. This constraint is automatically enforced by careful case-splitting but easily missed when squaring.

Geometric Interpretation

Absolute value measures distance on the number line, and this interpretation converts many equations into geometric statements that can be read directly.

The equation ∣x−a∣=d|x - a| = d asks: which points on the number line are exactly dd units from aa? There are two such points, one on each side: x=a+dx = a + d and x=a−dx = a - d. The solutions are symmetric about aa, and aa is their midpoint. The equation ∣x−5∣=3|x - 5| = 3 has solutions x=8x = 8 and x=2x = 2, both exactly 33 units from 55.

The equation ∣x−a∣=∣x−b∣|x - a| = |x - b| asks: which point is equidistant from aa and bb? On the number line, exactly one point lies at equal distance from two distinct fixed points — the midpoint x=a+b2x = \frac{a + b}{2}. The equation ∣x−1∣=∣x−7∣|x - 1| = |x - 7| has the single solution x=4x = 4, the midpoint of 11 and 77.

The equation ∣x−a∣+∣x−b∣=d|x - a| + |x - b| = d asks: which points have the property that their total distance to aa and bb equals dd? The minimum possible value of ∣x−a∣+∣x−b∣|x - a| + |x - b| is ∣a−b∣|a - b| (achieved by any xx between aa and bb). If d<∣a−b∣d < |a - b|, no solution exists. If d=∣a−b∣d = |a - b|, every point in the closed interval [a,b][a, b] is a solution. If d>∣a−b∣d > |a - b|, exactly two solutions exist, one beyond each endpoint.

These geometric readings do not replace the algebraic method, but they provide a check on the number and location of solutions before any computation begins.
Equation form Geometric question Solution
|x − a| = d which points are exactly d units from a? x = a + d and x = a − d
|x − a| = |x − b| which point is equidistant from a and b? x = (a + b) ⁄ 2 (midpoint)
|x − a| + |x − b| = d, d < |a − b| total distance less than the gap? none (impossible)
|x − a| + |x − b| = d, d = |a − b| total distance equals the gap? every x in [a, b]
|x − a| + |x − b| = d, d > |a − b| total distance greater than the gap? two points, one outside each endpoint

Summary of Absolute Value Equation Forms

The forms covered above all fit a small set of patterns. The table below collects them with the recommended method for each and the typical number of solutions to expect. The constraint ∣A∣≥0|A| \geq 0 is the unifying logic: every method either uses it directly (case-splitting) or has to verify it after the fact (squaring).
Equation form Method Number of solutions
|A| = k, k > 0 split into A = k and A = −k; solve each two (typically)
|A| = 0 solve A = 0 one
|A| = k, k < 0 none — read off immediately none (empty set)
|f(x)| = k, k > 0 split into f(x) = k and f(x) = −k; solve each by appropriate method depends on f
|f(x)| = |g(x)| f = g or f = −g (or square both sides; verify) depends on f, g
|f(x)| = g(x) split into two cases; require g(x) ≥ 0 at each candidate verify carefully — squaring risks extraneous solutions
Multiple |…| terms (sum/difference) interval method: find critical points, solve on each interval using piecewise definition varies; verify each candidate lies in its interval

Absolute Value Equations FAQ

Does ∣a+b∣|a + b| equal ∣a∣+∣b∣|a| + |b|?

+
Not in general. The bars are a bracket pair, not a factor that distributes across a sum, so the inside is evaluated first: ∣3+(−5)∣=2|3 + (-5)| = 2, while ∣3∣+∣−5∣=8|3| + |-5| = 8. What always holds is the weaker triangle inequality ∣a+b∣≤∣a∣+∣b∣|a + b| \leq |a| + |b|, with equality only when aa and bb share a sign.Read more →

Why do vertical bars mean different things in different places?

+
They are the most overloaded bracket in mathematics. Some uses keep this meaning: ∣z∣|z| for a complex number is still distance to the origin, and ∥v∥\|v\| doubles the bars for vector length. Others do not: ∣A∣|A| on a set is cardinality, a count, and ∣M∣|M| on a matrix is the determinant, which can be negative.Read more →

Can you get rid of absolute value bars by squaring?

+
Yes, when both sides carry bars. Because ∣x∣=x2|x| = \sqrt{x^2}, the equation ∣A∣=∣B∣|A| = |B| is equivalent to A2=B2A^2 = B^2, which turns a case analysis into one polynomial equation. It does not work for ∣A∣=k|A| = k with a bare constant, where squaring introduces the spurious branch A=−kA = -k unless k≥0k \geq 0 is checked first.Read more →