$$|x-2|+|x+3|= 5$$
What are the real values of $x$ satisfies the equation?
I tried doing this but it somehow did not work. Could someone explaim why please? Here's my workings :
$$|x-2|+|x+3|=5$$ $$\Rightarrow (x-2)+(x+3)=5$$ $$\Rightarrow x+2+x+3=5$$ $$\Rightarrow x=6$$ $$\Rightarrow x=3$$
The answer is $[-3,2]$
hint
if $a\ge 0$ then $|a|=a $.
if $a\le 0$ then $|a|=-a $.
$$x-2\ge 0\iff x\ge 2$$ $$x+3\ge 0\iff x\ge -3$$
hence
$x\ge 2\implies |x-2|+|x+3|=(x-2)+(x+3) $
$=2x+1=5\implies x=2$
conversly, we check that $2$ is a solution.
$-3\le x <2\implies |x-2|+|x+3|=-(x-2)+(x+3)=5$
the equation is satisfied for $-3\le x <2$.
$x <-3\implies |x-2|+|x+3|=-(x-2)-(x+3) $
$=5-2x=5\implies x=0\notin (-\infty,-3)$
we conclude that the solutions set is $$[-3,2] $$