I've been trying to figure out how do they get to the awnser and I realised I might have problems dealing with absolute value.
Heres the question
Express the following without the absolute values:
$$|(|x|-1)|$$
And here is how I develop:
If $ |x|-1 > 0 \Rightarrow |x| > 1$ then $|(|x|-1)|$ = $|x|-1$
If $ |x|-1 < 0 \Rightarrow |x| < 1$ then $|(|x|-1)|$ = $1 - |x|$
Moreover,
If $x>0 \Rightarrow |x| = x$
If $x<0 \Rightarrow |x| = -x$
Which leads to 3 possibilites
If $x>1 \Rightarrow |(|x|-1)| = |x|-1 = x -1$ (since x>0)
If $0<x<1 \Rightarrow |(|x|-1)| = 1- |x| = 1 -x$ (since x>0)
If $0>x \Rightarrow |(|x|-1)| = 1- |x| = 1 - (-x) = 1+x $ (since x<0)
Here are my questions:
- How do I know in which interval the case x =1, x=0 belongs?
- Do I treat the absolute value of x before the one for the whole expression or is it the other way around?
And finally, I dont get how in the corrected exercises they get 4 cases?
The book's awnser
$x-$ 1 if x $ \geqslant 1$.
$1 - x$ if $0 \leqslant x \leqslant 1$.
$1 + x$ if $-1 \leqslant x \leqslant 0$.
$-1 - x$ if $ x \leqslant -1$.
Thank you!
Let's start from inside:
$$||x|-1| = \begin{cases} |x-1| \quad \mathrm{if} \quad x >0 \\|-x-1| \quad \mathrm{if} \quad x \leq0\end{cases}$$
$$= \begin{cases} |x-1| \quad \mathrm{if} \quad x >0 \\ |x+1| \quad \mathrm{if} \quad x \leq0\end{cases}$$
$$= \begin{cases} x-1 \quad \mathrm{if} \quad x >0 \quad \mathrm{and} \quad x-1 >0 \\ 1-x \quad \mathrm{if} \quad x >0 \quad \mathrm{and} \quad x-1 \leq 0\\ x+1 \quad \mathrm{if} \quad x \leq0 \quad \mathrm{and} \quad x+1>0 \\-x-1 \quad \mathrm{if} \quad x \leq0 \quad \mathrm{and} \quad x+1 \leq0\end{cases}$$
$$= \begin{cases} x-1 \quad \mathrm{if} \quad x >0 \quad \mathrm{and} \quad x>1 \\ 1-x \quad \mathrm{if} \quad x >0 \quad \mathrm{and} \quad x \leq 1\\ x+1 \quad \mathrm{if} \quad x \leq0 \quad \mathrm{and} \quad x>-1 \\-x-1 \quad \mathrm{if} \quad x \leq 0 \quad \mathrm{and} \quad x \leq -1\end{cases}$$
$$= \begin{cases} x-1 \quad \mathrm{if} \quad x>1 \\ 1-x \quad \mathrm{if} \quad x \in (0,1]\\ x+1 \quad \mathrm{if} \quad x \in (-1,0] \\-x-1 \quad \mathrm{if} \quad x \leq -1\end{cases}$$
and this is the book's answer.