Is Euler's formula valid for complex arguments

832 Views Asked by At

I found this question here :

Evaluate $\cos(z)$, given that $z = i \log(2+\sqrt{3})$

It says that - $$e^{-iz} = \cos(z) - i \sin(z)$$ isn't necessarily true because $$\sin z$$ is imaginary (for the particular value of z in the link). But, the proof of Euler's formula using Maclaurin series suggests that it should be valid for complex arguments too. What am I missing?

2

There are 2 best solutions below

0
On BEST ANSWER

No, it doesn't say that $$e^{iz}=\cos(iz)-i\sin(iz)$$is not necessarily true! It is true. What it says in that other answer is that $\cos(iz)$ is not necessarily the real part of $e^{iz}$.

1
On

You are missing nothing: for every complex number $z$, $e^{iz}=\cos z+i\sin z$.