For
$$e^{-j\pi n}$$
How does this become $$(-1)^n$$
or is it actually $$(-1)^{-n}$$ I have checked on calculator and values are all the same when the same n value is used
$\endgroup$ 33 Answers
$\begingroup$Consider the power series of $e^x$, that is:
$$e^x=\sum_{n=0}^{\infty}\frac{x^n}{n!}=1+\frac x{1!}+\frac{x^2}{2!} +\frac{x^3}{3!}+\frac{x^4}{4!}+\ ...$$
Now consider Euler's constant $e$ raised to the power $ix$, such that $i:=\sqrt{-1}$
$$e^{ix}=\sum_{n=0}^{\infty}\frac{(xi)^n}{n!}=1+ix+\frac{(ix)^2}{2!}+\frac {(ix)^3}{3!}+\frac {(ix)^4}{4!}+\frac {(ix)^5}{5!}+\ ...$$
Noting $i^2=-1$, an equivalent expression is:
$$e^{ix}=\sum_{n=0}^{\infty}\frac{(xi)^n}{n!}=1+ix-\frac{x^2}{2!}-\frac {i(x)^3}{3!}+\frac {x^4}{4!}+\frac {i(x)^5}{5!}-\ ...$$
Factoring yields a very interesting expression:
$$=\sum_{k=0,m=1,k \ even}^{\infty}\frac {x^k(-1)^{(m+1)}}{k!}+(i)\sum_{k=1,m=1,k \ odd}^{\infty}\frac {{x^k}{(-1)^{m+1}}}{k!}$$
$$=\left(1-\frac {x^2}{2!}+\frac {x^4}{4!}-\frac {x^6}{6!} + \ ...\right)+i\left(x-\frac {x^3}{3!}+\frac {x^5}{5!} -\frac {x^7}{7!} \ + \ ...\right)=\cos x+i \sin x$$
Denoted as "Euler's Formula," various mathematical equalities can thus be proved such as the trigonometric angle identities upon considering its real and imaginary parts.
Now that we have some intuition behind Euler's formula, your above question can now be analysed:
We have:
$$e^{i\pi}=-1$$ Why? Simply set $x=\pi$ in the formula $e^{{i}{x}}= \cos x+i \sin x $.
Thus finally:
$$e^{i\pi\ n}=e^{(i\pi)n}=(-1)^n$$
$\endgroup$ 2 $\begingroup$$e^{πj}=-1$
So $e^{-πjn}=(e^{πj})^{-n}=(-1)^{-n}$.
I am assuming $j$ is the imaginary unit, or $\sqrt{-1}$.
$\endgroup$ 3 $\begingroup$It's best to simply sketch an Argand diagram for this. You will soon see that the value of $e^{n \pi j}$ just oscillates between $-1$ and $1$ depending on whether $n$ is odd or even hence it is equal to $(-1)^n$.
To see this explicitly just use the fact that $e^{j \pi n}=\cos nx +j \sin nx$ and noting that the sine of any integer multiple of $\pi$ is zero. If you do the same for $-\pi$ you will get the same answer (equivalent to $-n$). It just means that the complex vector is rotating around the unit circle in the opposite direction now.
$\endgroup$