I was given a task to solve this equation for $x$:
$$\frac{x-1}{x+1}=z\frac{1+i}{1-i}$$
for a complex number $z$ such that $z^2+z+1=0$. Solving this for $x$ is trivial but simplifying solution using the given condition is what's bothering me. Thanks ;)