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.



Definition of Absolute Value

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

x={xif x0xif 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: x0|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.

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: A=BA = B or A=BA = -B. Both must be solved, and both solutions (if they exist) belong to the solution set. The equation 2x3=7|2x - 3| = 7 becomes 2x3=72x - 3 = 7 or 2x3=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.

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 x24=5|x^2 - 4| = 5 splits into x24=5x^2 - 4 = 5 and x24=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 2x1=x+4|2x - 1| = |x + 4| produces two equations. From 2x1=x+42x - 1 = x + 4: x=5x = 5. From 2x1=(x+4)2x - 1 = -(x + 4): 2x1=x42x - 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 (2x1)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 x1+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 x1+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, 3x1-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 x1<0x - 1 < 0 and x+3<0x + 3 < 0, so the equation becomes (x1)+((x+3))=8-(x - 1) + (-(x + 3)) = 8, which simplifies to 2x2=8-2x - 2 = 8, giving x=5x = -5. Since 5<3-5 < -3, this value lies in the interval and is valid.

On 3x1-3 \leq x \leq 1: x10x - 1 \leq 0 and x+30x + 3 \geq 0, so the equation becomes (x1)+(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 (x1)+(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.

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 x2=3x4|x - 2| = 3x - 4 can be solved by case-splitting (the reliable method) or by squaring both sides to obtain (x2)2=(3x4)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 x2=3x4x - 2 = 3x - 4: x=1x = 1. Check: 12=1|1 - 2| = 1 and 3(1)4=13(1) - 4 = -1. Since 111 \neq -1, this candidate is extraneous. From (x2)=3x4-(x - 2) = 3x - 4: x+2=3x4-x + 2 = 3x - 4, so x=32x = \frac{3}{2}. Check: 322=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 3x43x - 4 was negative at x=1x = 1. An absolute value equation A=B|A| = B requires B0B \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 xa=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=adx = a - d. The solutions are symmetric about aa, and aa is their midpoint. The equation x5=3|x - 5| = 3 has solutions x=8x = 8 and x=2x = 2, both exactly 33 units from 55.

The equation xa=xb|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 x1=x7|x - 1| = |x - 7| has the single solution x=4x = 4, the midpoint of 11 and 77.

The equation xa+xb=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 xa+xb|x - a| + |x - b| is ab|a - b| (achieved by any xx between aa and bb). If d<abd < |a - b|, no solution exists. If d=abd = |a - b|, every point in the closed interval [a,b][a, b] is a solution. If d>abd > |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.