Plancherel's theorem says that
$f(x) = \frac{1}{2\pi} \int^\infty_{-\infty} F(k) e^{ikx} dk$
where
$F(k) = \int^\infty_{-\infty} f(x)e^{-ikx}dx$.
I'm wondering if we can prove this using Cauchy's integral formula somehow like this.
$f(x) = \frac{1}{2\pi} \int^\infty_{-\infty} \int^\infty_{-\infty} f(x')e^{-ikx'} dx' e^{ikx} dk$
$= \frac{1}{2\pi} \int^\infty_{-\infty} \int^\infty_{-\infty} e^{ik(x-x')} dk f(x') dx'$
$= \lim_{k_0\rightarrow\infty} \frac{1}{2\pi} \int^\infty_{-\infty} \frac{1}{i(x-x')} (e^{ik_0(x-x')}-e^{-ik_0(x-x')}) f(x') dx'$
$= \lim_{k_0\rightarrow\infty} -f(x)+f(x)$
$=0$
where I used Cauchy's integral formula in the next to last equality. I did contour integral over a upper half-circle and assumed f(x) goes to 0 at large x. However I got 0 instead of $f(x)$ at the last equality. I believe there are some problems in my understanding of complex analysis, so please let me know them!