This is a simple problem. What I want to know is whether there is an easy and fast way to solve the problem. I solved this problem by considering four situations: a) $x>1$, b) $0<x<1$, c) $x<0$, and d) $x<-1$. Is there any way to eliminate some situations without going through detailed calculations?
Find the two values of $x$ for which $|x-1| + |x| + |x+1| =5/2$.