Solve for $x$ :$|[x]-2x|=4$ Solve for $x$
$$|[x]-2x|=4$$ where $[.]$ denotes greatest integer function.
How to solve it graphically? can any one guide me step by step to get the solution ?

Without Using Graph.
Given $\left|\lfloor x \rfloor -2x\right| = 4\Rightarrow \left|-\lfloor x \rfloor -2\left\{x\right\}\right|=4\Rightarrow \left|\lfloor x \rfloor +2\{x\}\right|=4$
Now Here Right hand Side is Integer. So Left hand Side must be integer.
So Using $0 \leq \{x\}<1\Rightarrow 0\leq 2\{x\}<2.$
So we get $2\{x\} =0\Rightarrow \{x\} =0$ or $\displaystyle 2\{x\} = 1\Rightarrow \{x\} = \frac{1}{2}$
$\bullet\; $ If $\{x\}=0\;,$ Then equation convert into $|\lfloor x \rfloor | = 4\Rightarrow |x|=4\Rightarrow x=\pm 4$
$\bullet\; $ If $\displaystyle \{x\}=\frac{1}{2}\;,$ Then equation convert into $|\lfloor x \rfloor +1| = 4\Rightarrow \lfloor x\rfloor =\pm 4-1\Rightarrow \lfloor x\rfloor =3,-5$
So we get $\displaystyle x = \lfloor x \rfloor +\{x\} = 3+\frac{1}{2}\;\;,-5+\frac{1}{2}=3.5\;\;,-4.5$
So we get $\displaystyle x = \left\{\pm 4\;, 3.5\;,-4.5\right\}$
