I'm trying to do this exercise from Daniel Bump's book, Automorphic Forms and Representations. For $f: \mathbb R \rightarrow \mathbb C$, the Fourier transform $\hat{f}$ is defined by
$$\hat{f}(v) = \int_{-\infty}^{\infty} f(u) e^{2\pi i uv} du$$
I'm having trouble with the very first part. The residue computation after "hence" is straightforward, and the "conclude that" will come from the Poisson summation formula.
I need to compute the integral
$$\hat{f}(v) = \int_{-\infty}^{\infty} \frac{e^{2\pi i uv}}{(u - \tau)^k} du$$
I'm guessing what I ought to do is define the meromorphic function $F(z) = \frac{e^{2\pi i vz}}{(z-\tau)^k}$ and the "identity" path $\gamma_N: [-N,N] \rightarrow \mathbb C$, so that
$$\hat{f}(v) = \lim\limits_{N \to \infty}\int\limits_{\gamma_N} F(w)dw$$
For large $N, M$, I could consider the paths
$$N + it, 0 \leq t \leq M$$
$$-N + it, 0 \leq t \leq M$$
$$t + iM, -N \leq t \leq N$$
which surround the singularity $\tau$ of $F(z)$. This last path integral is
$$\int_{-N}^N \frac{e^{2\pi i (t+iM)v}}{(t+iM-\tau)^k}dt$$
which, when $v > 0$, tends to zero as $N$ and $M$ go to infinity at the same rate.
I haven't figured out what to do with the vertical paths.
I also haven't figured out what to do in the case $v \leq 0$.


If $C_R$ is the counterclockwise contour enclosing the rectangle $0 < Im(u)< R, |Re(u)| < R$ and $k \ge 2$ and $v \ge 0$ then $\int_{-\infty}^\infty \frac{e^{2i \pi uv}}{(u-\tau)^k} du = \lim_{R \to \infty}\int_{C_R} \frac{e^{2i \pi uv}}{(u-\tau)^k} du $.
If $Im(\tau) < 0$ then $\int_{C_R}\frac{e^{2i \pi uv}}{(u-\tau)^k} du= 0$ (the function is analytic inside the contour)
if $Im(\tau) > 0$ and $R > |\tau|$ then $\int_{C_R}(\frac{e^{2i \pi uv}}{(u-\tau)^k}- \sum_{l=0}^{k-1} \frac{(2i \pi v)^le^{2i \pi \tau v}}{l!} \frac{1}{(u-\tau)^{k-l}}) du = 0$ so $\int_{C_R}\frac{e^{2i \pi uv}}{(u-\tau)^k} = \int_{C_R} \frac{(2i \pi v)^{k-1} e^{2i \pi \tau v}}{(k-1)!} \frac{1}{u-\tau} du = 2i \pi \frac{(2i \pi v)^{k-1} e^{2i \pi \tau v}}{(k-1)!} $
For $v < 0 $ you need to consider the contour $-C_R$ enclosing the rectangle $0 > Im(u)>- R, |Re(u)| < R$