How do I have to write condition in math?
For example,
Solve, $|x + 1| + |x - 1| \leq 2$
if x < -1
-x - 1 - x + 1 <= 2
-2x <= 2
x >= -1
No solution
if -1 <= x < 1
x + 1 - x + 1 <= 2
2 <= 2
Infinitely many solutions
-1 <= x < 1
if x >= 1
x + 1 + x - 1 <= 2
2x <= 2
x <= 1
x = 1
So, -1 <= x <= 1
Can I write like this?