In an attempt to compute $\sum_{k=0}^{n}{(-1)^k {n\choose k}}$ the author put $x=-1$ in the formula $(x+1)^n=\sum_{k=0}^{n}{ {n\choose k}x^k }$
Then he wrote that we have $$0^n = \begin{cases} 0 &\mbox{if } n \in \mathbb N^* \\ 1 & \mbox{if } n =0 \end{cases} $$
How is that done and is the function $0^n$ defined at all? I mean my understanding is that $0^n=e^{n\log0}$ but $\log 0$ is not defined at all. Thank you for your help.
It is just a matter of definitions. For a polynomial $p(x)\neq 0$ (in general, for an element $a\neq 0$ of some ring) we have $p(x)^0=1$, so that the relation $p(x)^mp(x)^n=p(x)^{m+n}$ holds true for $m,n\in\mathbb{N}$.