I am having trouble solving the following inequality:
$$\sqrt{1-|x|} \leq x-1$$
I need to find the smallest solution to this inequality.
Here's what I have tried so far:
- I first squared both sides of the inequality to get rid of the square root. This gives me:
$$1-|x| \leq x^2 - 2x + 1$$
- I then simplified this expression to get:
$$|x| - x^2 + 2x \leq 0$$
- Next, I tried to use the fact that $|x| = \pm x$ depending on the sign of $x$. This gives me two cases:
Case 1: $x \geq 0$
In this case, we have $|x| = x$. Substituting this into the inequality, we get:
$$x - x^2 + 2x \leq 0$$
Simplifying this expression, we get:
$$x(x-3) \leq 0$$
This means that $0 \leq x \leq 3$.
Case 2: $x < 0$
In this case, we have $|x| = -x$. Substituting this into the inequality, we get:
$$-x - x^2 + 2x \leq 0$$
Simplifying this expression, we get:
$$x(x+1) \leq 0$$
This means that $-1 \leq x \leq 0$.
- Combining the two cases, we get that the solution to the inequality is $-1 \leq x \leq 3$.
However, I am not sure if this is the smallest solution to the inequality. Can someone please check my work and let me know if I am on the right track?
Thank you!

Since $x-1<0$ is not possible then, there is only one case $x-1≥0$, and when squaring you need the restrictions $x-1≥0$ and $1-|x|≥0$ . But, we don't need the squaring operation. Because,
$$\begin{cases}x≥1\\ |x|≤1\end{cases}\implies x=1\thinspace .$$
This implies that, if there is a solution, then $x=1$ is an only possible root and we see that $x=1$ is a solution .