Find all $x$ for which $$\left| x - \left| x-1 \right| \right| = \lfloor x \rfloor.$$Express your answer in interval notation.
I started by looking at x < 1 and x $\geq$ 1 separately, but I got stuck on what to do next.
Find all $x$ for which $$\left| x - \left| x-1 \right| \right| = \lfloor x \rfloor.$$Express your answer in interval notation.
I started by looking at x < 1 and x $\geq$ 1 separately, but I got stuck on what to do next.
Suppose the equation holds. Then $\lfloor x \rfloor \geq 0$ since it is equal to an absolute value. Consequently, we have $x \geq 0$.
Case 1: $0 \leq x < 1$. Then we have $x - (1 - x) = 0$. Then $x = \frac{1}{2}$.
Case 2: $x \geq 1$. Then we have $x - (x - 1) = 1 = \lfloor x \rfloor$. This can only be true if $x \in [1, 2)$.
Then if $x$ solves the equation, we have either $x = \frac{1}{2}$ or $x \in [1, 2)$.
It's easy to check that $x = \frac{1}{2}$ or $x \in [1, 2)$ implies that $x$ is a solution to the equation. Then the solution set is
$\{\frac{1}{2}\} \cup [1, 2) = [\frac{1}{2}, \frac{1}{2}] \cup [1, 2)$