Absolute Value Equation Calculator

Solve an equation with absolute value bars and see both cases worked.

Type bars with the | key, such as |2x - 3| = 7 or |x + 1| = |2x - 4|.

Try

Result

You entered∣x−1∣=2x\left|x - 1\right| = 2x

x=13\displaystyle x = \frac{1}{3}

Decimal

0.333333\displaystyle 0.333333
Show the work
  1. Absolute value equals a number

    ∣A∣=B|A| = B means that AA is BB units from zero, so AA is either BB or −B-B. Write one equation for each possibility.

    Using A=B∨A=−BA = B \lor A = -B

    x−1=2xx−1=−2x\begin{gathered} x - 1 = 2x \\ x - 1 = -2x \end{gathered}
  2. Solve the first case

    Set the expression inside the bars equal to the right-hand side, then collect the xx terms and divide by the coefficient.

    x−1=2x−x=1x=−1\begin{gathered} x - 1 = 2x \\ -x = 1 \\ x = -1 \end{gathered}
  3. Solve the second case

    Set the expression inside the bars equal to the opposite of the right-hand side, then solve in the same way.

    x−1=−2x3x=1x=13\begin{gathered} x - 1 = -2x \\ 3x = 1 \\ x = \frac{1}{3} \end{gathered}
  4. Check each solution

    Substitute each candidate into the original equation. An absolute value is never negative, so a candidate that makes the right-hand side negative does not work; the one that fails is extraneous and is dropped.

    x=−1 ⁣: ∣−2∣=2≠−2x=13 ⁣: ∣−23∣=23=23\begin{gathered} x = -1\colon\ \left|-2\right| = 2 \ne -2 \\ x = \frac{1}{3}\colon\ \left|-\frac{2}{3}\right| = \frac{2}{3} = \frac{2}{3} \end{gathered}
  5. Result

    So x=13x = \frac{1}{3} is the only solution.

Worked examples