Why does $z\mapsto \exp(-z^2)$ have an antiderivative on $\mathbb C$?
So far I have seen the following results:
- If $f\colon U\to\mathbb C$ has an antiderivative $F$ on $U$ then $\displaystyle\int_\gamma f(z)~\mathrm dz=F(\gamma(b))-F(\gamma(a))$ along a smooth curve $\gamma\colon[a,b]\to\mathbb C$.
- If $f$ has an antiderivative then $\displaystyle\int_\gamma f(z)~\mathrm dz$ depends only on the start and end point of the curve $\gamma$.
- If $f$ has an antiderivative, then $\displaystyle\oint_\gamma f(z)~\mathrm dz=0$ for all closed curves $\gamma$.
My problem is that I could use those results to show a function has no antiderivative (like $1/z$ yielding $2\pi\mathrm i\neq 0$ on $\partial B_r(0)$) but I am unsure what might work the other way round. What might be useful here in terms of complex analysis?
EDIT
There is a follow-up question based on the problem above.
Use the result from above to calculate
$$\int_{-\infty}^\infty\exp(-x^2-\mathrm ikx)\,\mathrm dx, k\in\mathbb R.$$
I guess something constructive like GEdgar's suggestion might be useful here, isn't it?
EDIT 2
Here is my solution for the follow-up question
$$ \begin{align*} \int_{-\infty}^\infty \exp(-x^2-\mathrm ikx)\,\mathrm dx &= \int_{-\infty}^\infty \exp(-(x^2+\mathrm ikx))\,\mathrm dx \\ &= \int_{-\infty}^\infty \exp\left(-\left(x^2+\mathrm ikx-\frac{k^2}{4}+\frac{k^2}{4}\right)\right)\,\mathrm dx \\ &= \int_{-\infty}^\infty \exp\left(-\left(\left(x+\frac{1}{2} \mathrm ik\right)^2+\frac{k^2}{4}\right)\right)\,\mathrm dx \\ &= \exp\left(-\frac{k^2}{4}\right)\int_{-\infty}^\infty \exp\left(-\left(x+\frac{1}{2} \mathrm ik\right)^2\right)\,\mathrm dx \\ &= \exp\left(-\frac{k^2}{4}\right)\int_{-\infty}^\infty \exp(-t^2)\,\mathrm dt \\ &= \exp\left(-\frac{k^2}{4}\right)\sqrt{\pi} \end{align*} $$
Another way.
$\exp(-z^2)$ is an entire function. Its power series at the origin converges for all $z$.
Take the anti-derivative of that series term-by-term. It still converges for all $z$. (Use the formula for radius of convergence.) So the series of antiderivatives is an antiderivative for $\exp(-z^2)$.
That argument works for all entire functions. In this case: $$ f(z) = \sum_{n=0}^\infty \frac{(-1)^n}{n!} z^{2n} \\ F(z) :=\sum_{n=0}^\infty \frac{(-1)^n}{n!}\;\frac{z^{2n+1}}{2n+1} \\ F'(z) = f(z) $$