$$|x| + |x-1| = 3$$
in my textbook, they say that for this equation, there are 3 cases:
$x\geq1$,
$0 \leq x < 1$ and
$ x < 0$
where do these come from and why? i thought, there are 4 cases
$x$ positive
$x-1$ positive
$x$ is negative
$x-1$ is negative
$x$ positive
$x-1$ is negative
$x$ is negative
$x-1$ is positive
The problem is the absolute value. Sometimes $|a|$ is $a$ and sometimes $|a|$ is $-a$. Here we have the cases
In each case, replacing the absolute value expression with the corresponing absoluteness-less expression for the case in question gives us a simple equation that can be solved.