Maths WorkshopMaths problems with full solutions
Exercise 320Algebra › Equations and radicalsHigh schoolAdded 31 Oct 2026

An equation with absolute values

#absolute value#equations

Statement

Solve in R\mathbb{R} the equation ∣x−1∣+∣x+2∣=5|x-1|+|x+2|=5.

Hint

Split R\mathbb{R} into three intervals according to the signs of x−1x-1 and x+2x+2.

Show solutionHide solution

Solution

Case x≥1x\ge1. The equation becomes (x−1)+(x+2)=5(x-1)+(x+2)=5, that is 2x+1=52x+1=5, so x=2x=2, which is in the interval.

Case −2≤x<1-2\le x<1. The equation becomes (1−x)+(x+2)=3=5(1-x)+(x+2)=3=5, which is impossible.

Case x<−2x<-2. The equation becomes (1−x)+(−x−2)=5(1-x)+(-x-2)=5, that is −2x−1=5-2x-1=5, so x=−3x=-3, which is in the interval.

The solution set is {−3, 2}\{-3,\,2\}.