I'm given the function:
$$\psi(x)=\begin{cases} A &: x_1<x<x_2\\ 0 &:\text{outside} \end{cases}$$
So, I'm using the Fourier transform and its inverse to show that I'll get the original function $\psi(x)$ back. $$\phi(k)=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty}\psi(x)e^{-ikx}dx=\frac{1}{\sqrt{2\pi}}\int_{x_2}^{x_1}Ae^{-ikx}dx\Rightarrow \phi(k)=-\frac{A}{\sqrt{2\pi}}\frac{1}{ik}\left(e^{-ikx_2}-e^{-ikx_1}\right)$$
I'm struggling to apply the inverse Fourier transform to get back the original function: $$\psi(x)=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty}\phi(k)e^{ikx}dk=-\frac{A}{2\pi i}\int_{-\infty}^{\infty}\frac{1}{k}\left(e^{ik(x-x_2)}-e^{ik(x-x_1)}\right)dk$$ I'm not sure how to integrate this.