Find the geometric locus of the set of $z \in \mathbb C$ so that $$\frac{z+2}{z(z+1)}\in \mathbb R$$ Source: IME (Military Engineering Institute, Brazil, entrance exam, 1974)
My attempt: With the notation $z=a+bi$, the solution provided in a book is either the line $b=0$ or the circle $(a+2)^2+b^2=2$ but I could not find it, or not able to recognize this locus set from the algebraic development I did (or the solution or the statement has some mistake).
Hints and solutions are welcomed.
HINT: Multiply the fraction by $$ \frac{\bar z(\bar z-1)}{\bar z(\bar z-1)}\;. $$ In this way the denominator will be real and you should only look at the numerator, splitting it into its real and imaginary part.