Today I realized that the antiderivative of $e^{ix}$ is just $-ie^{ix}$. Therefore:
$$\int_0^\pi e^{ix} = -i\left(e^{i\pi} - e^0\right) = -i(-1 - 1) = 2i$$
I know nothing about complex analysis, and had assumed that I would have needed to in order to find this integral. So I was very surprised!
Can I usefully interpret the $2i$ as the area under some curve? (whatever that would mean). Or do I have to abandon that notion when integrating with $i$?
$e^{ix}$ makes me think of the unit circle; is that invovled? Is there some other geometric interpretation?
One way to interpret it is as follows: In general for real $f(x)$, we might say that
$$ \int_{x=0}^\pi f(x) \, dx $$
is equal to $\pi$ times the average value of $f(x)$ between $x = 0$ and $x = \pi$. In this case, that would be the average position on the complex plane of the unit semicircle with positive imaginary component. Since this semicircle is symmetric with respect to the imaginary axis, the average position must be a pure imaginary—its height above the real axis, so to speak. This height, which can be obtained using ordinary integration, can be determined to be $\frac{2}{\pi} i$, so the value is $\pi$ times that, or just $2i$.