Where $z$ is a complex number.
$\sin z-\cos z = \mathrm{i} \implies \frac{\mathrm{e}^{\mathrm{i}z}-\mathrm{e}^{-\mathrm{i}z}}{2\mathrm{i}}-\frac{\mathrm{e}^{\mathrm{i}z}-\mathrm{e}^{-\mathrm{i}z}}{2} = \mathrm{i}$
multiply both sides by $4\mathrm{i}$
$2\mathrm{e}^{\mathrm{i}z}-2\mathrm{e}^{-\mathrm{i}z}-2\mathrm{i}\mathrm{e}^{\mathrm{i}z}-2\mathrm{i}\mathrm{e}^{\mathrm{i}z} = -4$
divide both sides by $2$, bring everything to the LHS
$\Rightarrow \mathrm{e}^{\mathrm{i}z}-\mathrm{e}^{-\mathrm{i}z}-\mathrm{i}\mathrm{e}^{\mathrm{i}z}-\mathrm{i}\mathrm{e}^{\mathrm{i}z}+2 = 0$
multiply by $\mathrm{e}^{\mathrm{i}z}$
$(1-\mathrm{i})\mathrm{e}^{2\mathrm{i}z}+2\mathrm{e}^{\mathrm{i}z}-(\mathrm{i}+1) = 0$.
quadratic formula,
$\mathrm{e}^{\mathrm{i}z} = \frac{-2 \pm \sqrt{12}}{2(1-\mathrm{i})} = \frac{(-1 \pm \sqrt{3})(1+\mathrm{i})}{2}$
If the above expression is correct, then eventually my final answer becomes $z = \frac{\pi}{4} +2k\pi - \mathrm{i}\ln\left( \frac{-\sqrt{2}+\sqrt{6}}{2} \right)$. Could anyone verify that my final answer for $z$ is correct?
thanks : )
Well, we have:
And we want to solve:
$$\sin\left(\text{z}\right)-\cos\left(\text{z}\right)=i\tag3$$
So we can also write:
$$\frac{\exp\left(\text{z}i\right)-\exp\left(-\text{z}i\right)}{2i}-\frac{\exp\left(\text{z}i\right)+\exp\left(-\text{z}i\right)}{2}=i\tag4$$
Substitute $\text{y}:=\exp\left(\text{z}i\right)$, so we get:
$$\frac{\text{y}-\frac{1}{\text{y}}}{2i}-\frac{\text{y}+\frac{1}{\text{y}}}{2}=i\space\Longleftrightarrow\space$$ $$\text{y}=\left(\frac{1}{2}+\frac{i}{2}\right)\cdot\left(\sqrt{3}-1\right)\space\vee\space\text{y}=\left(-\frac{1}{2}-\frac{i}{2}\right)\cdot\left(1+\sqrt{3}\right)\tag5$$