Solve the equation
Find where the expression inside the bars changes sign. behaves differently on either side of , so the real line splits into two branches: and . On each branch the absolute value can be replaced by an ordinary linear expression, turning one hard equation into two ordinary quadratics.
Branch 1: , so . Substituting and collecting terms:
Keep only the branch-1 root that actually satisfies . Numerically (accept), while (reject). The rejected value solves the rewritten equation but not the original one, because on that side is not .
Branch 2: , so .
Here (accept) and (reject).
Verify both survivors in the original equation. For : , , , so the total is . For : , , , total . Both check out.
Report both roots. The equation has exactly two solutions,
One root sits on each side of the break point — a useful reminder that a case split can, and often does, contribute a root from every branch.
Need to solve a different problem like this? Open the solver →