Either the Algebra or Pre-Calculus sub-forums are fine.

.

Equating real and imaginary parts gives:

and .

From the second equation we find .

Substituting into the first gives

.

Since we know is real, that means we can only accept the cases

and .

Therefore or .

Since we know

that means or .

So the solutions are:

and .