Find all number $z$ such that $\cos(z) = i\sin(z)$.
Options : $$(a) \ in, \ n\in \mathbb{Z} \\ (b) \ inπ +1, \ n\in \mathbb{Z} \\ (c) \ \frac{inπ}{2}, \ n\in \mathbb{Z} \\ (d) \ \text{no solutions exist}.$$
My try : Let $z=x+iy$.
Then, $\cos(z) = \frac{\exp(iz)+exp(-iz)}{2}$ and $\sin(z) = \frac{\exp(iz)-exp(-iz)}{2}$.
$$\therefore \cos(z) = i\sin(z) \\ \implies \frac{\exp(iz)+exp(-iz)}{2} = i \frac{\exp(iz)-exp(-iz)}{2} \\ \implies \exp(iz)\big(1-i\big) = \exp(-iz)\big(-1-i) \\ \implies \frac{\exp(iz)}{exp(-iz)} = - \frac{1+i}{1-i} = -i \\ \implies \exp(i2z) = -i $$
Now, $$i2z = -2y + i 2x$$ $$\therefore \exp(i2z) = -i \\ \implies e^{-2y}\Big(\cos(2x) + i \sin(2x)\Big) = -i$$
Therefore, $$e^{-2y}\cos(2x) = 0, e^{-2y}\sin(2x) = -1 $$ We have, $$ e^{-2y} = 1 \\ \implies y = 0$$ and $$ \cos(2x) = 0, \sin(2x) = -1 \\ \implies 2x = \Big( 2nπ + \frac{3π}{2}\Big) \\ \implies x = \Big(4nπ +3\Big) \frac{π}{4} $$
Thus the solution are the numbers, $$z = \Big(4nπ +3\Big) \frac{π}{4} , \ \ n\in \mathbb{Z}$$.
But when I'm plugging this in the given equation,. I'm getting nonsense.
Can anyone tell me where I'm going wrong?