Question:-
Find the range of real number $\alpha$ for which the equation $z+ \alpha \left| z-1\right| + 2i = 0$; $z=x+iy$ has a solution. Also find the solution.
Attempt at a solution:-
On substituting $z=x+iy$ in the equation $z+ \alpha \left| z-1\right| + 2i = 0$, we get that the imaginary part of the complex variable $z$ should be $-2$, i.e $y=-2$. So, the complex variable is of the form $z=x-2i$.
As, the real part of the equation is also $0$, so we get the following equation for the real part
$$\begin{equation}x=-\alpha\sqrt{x^2-2x+5} \end{equation} \tag{1}$$
After squaring both sides of the equation, we arrive at the following quadratic equation.
$$\begin{equation} (\alpha^2-1)x^2-2\alpha^2x+5\alpha^2=0 \end{equation} \tag{2}$$
Now, as $x$ has to be real so $D \ge 0 \implies 5-4\alpha^2 \ge 0 \implies -\dfrac{\sqrt{5}}{2}\le \alpha \le \dfrac{\sqrt{5}}{2}$
Now, let's consider different cases.
Case 1:-
When $\alpha^2=1$, then from $(2)$, we get $x=\dfrac{5}{2}$. Now, after plugging $x=\dfrac{5}{2}$ in $(1)$, we get $\dfrac{5}{2}=-\alpha\left(\dfrac{5}{2}\right)$, so from this we conclude that when $x=\dfrac{5}{2}$, then, $\alpha=-1$
The place where I am getting stuck:-
I am not able to think up of the different solutions of $x$, when $\alpha^2 \neq 1$. If anyone can help me think of how to go about solving for the remaining cases.