Thread: Sine and Cosine of i (imaginary unit)

1. Sine and Cosine of i (imaginary unit)

The following is my working for the Sine and Cosine of the imaginary unit, $i$.

$e^{ix}=cos(x)+i(sin(x))$
Substituting $x=i$ gives
$e^{-1}=cos(i)+i(sin(i))$
Squaring both sides
$e^{-2}=(cos(i))^2-(sin(i))^2+2i(sin(i)cos(i))$
Substituing $1-(sin(i))^2$ for $(cos(i))^2$ gives
$e^{-2}=(1-2((sin(i))^2)+2i(sin(i)cos(i))$
Rearranging the original equation in terms of $cos(i)$ gives
$cos(i)=e^{-1}-i(sin(i))$
Substituing this back into $e^{-2}=(1-2((sin(i))^2)+2i(sin(i)cos(i))$gives
$e^{-2}=(1-2((sin(i))^2)+2i(sin(i))(e^{-1}-i(sin(i)))$
$e^{-2}=(1-2((sin(i))^2)+2i(sin(i))(e^{-1}) -2(i^2)((sin(i))^2)$
$e^{-2}=1+2i(sin(i))(e^{-1})$
Rearranging for sin(i) gives
$(e^{-2}-1)/2i(e^{-1})=sin(i)$
$sin(i)={{1 - e^2} \over 2ei}$
Then to find Cos(i): Substituting back into the original equation gives
$cos(i)=e^{-1}-(i(1-e^2))/(2ei)$
$cos(i)={{1 + e^2} \over 2e}$

The problem is that all the sources I can find for the sine and cosine of $i$ on the internet say
$sin(i) = {{e - 1/e} \over 2} \, i$ or ${{e^2 - 1} \over 2e} \, i$ and
$cos(i)={{e + 1/e} \over 2}$ or ${{e^2 + 1} \over 2e}$.

EDIT: I found my mistake in Cos(i), and now have the same as the internet for cos(i). BUT, I obtained my cos(i) from putting my sin(i) into the original equation and still got the right answer, which makes it even more puzzling.

As you can see, my answers are very close to the others, I just can't figure out where the difference in signs comes from... also, is there any difference if the $i$ is put outside the fraction like they have, or on the bottom like I work it to be?

If I've made any typos or not made anything clear enough, just point it out and I'll change the original post.

Thanks, Spud.

2. Double posting is agains the rules. you already posted the question here and i answered it.