If the Fourier transform is defined by $\hat f( \xi)=\int_{-\infty}^{\infty}e^{-ix \xi}f(x)dx$.
How to calculate the Fourier transform of $$\begin{equation*} f(x)= \begin{cases} \frac{e^{ibx}}{\sqrt a} & \text{if $|x|\le a$,} \\ 0 &\text{if $|x|>a$.} \end{cases} \end{equation*}$$ The numbers $a$ and $b$ are positive.
I think when $|x|>a$, the Fourier transform is $0$. But when $|x|\le a$, I tried to calculate $\frac{1}{\sqrt a} \int_{-\infty}^{\infty}e^{ix(b-\xi)}dx$. I didn't learn complex analysis before, so I don't know how to calculate this integral. Can someone help me? Thanks so much!
Note that $f(x)=0$ for all $|x|>a$, so
$$\hat{f}(\xi) = \int_{-\infty}^{\infty} e^{-\imath \, x \xi} f(x) \, = \int_{-a}^a e^{-\imath \, x \xi} f(x) \, dx.$$
Using the definition of $f$, we get
$$\hat{f}(\xi) = \frac{1}{\sqrt{a}} \int_{-a}^a e^{\imath \, b x} e^{-\imath \, x \xi} \, dx = \frac{1}{\sqrt{a}} \int_{-a}^a e^{\imath \, x(b-\xi)} \, dx.$$
Now use either