Fourier Transform – Fourier Transform of a Short Signal

fourier transformheisenberg-uncertainty-principle

if I have a sine wave signal for a duration of only a few seconds, the Fourier transform will show me, that this signal corresponds to a range of frequencies. Why is this the case?
I do understand that every signal is composed of sine waves, even this sine wave pulse, but I don't get the intuition behind that for this case. Even if my sine wave is not infinitely long, I should still be able, to measure the distance of 2 peaks as precisely as I want. Therefore, I should also be able, to calculate the frequency as precisely as I want to. Where is the uncertainty? Why would the frequency of a longer signal be less uncertain?

Best Answer

The issue is that a sine wave on a finite interval is not the same function as a pure sine wave, and so the Fourier transforms will be different.

Note that in the rest of this answer, I'm going to assume by "Fourier transform" you mean "Fourier transform over the entire real line," and not "a Fourier series over a finite region of the real line." But I will mention just for completeness that if you have a sine wave with period $T$ and you do a Fourier series over a finite interval of length $kT$ for some positive integer $k$, then in fact you would find that the only non-zero Fourier coefficient is the one corresponding to the sine wave of period $T$.

Anyway back to your question. The Fourier transform $\tilde{f}(\omega)$ of $f(t)$ is

\begin{equation} \tilde{f}(\omega) = \int_{-\infty}^\infty {\rm d} t e^{-i \omega t}f(t) \end{equation} If we take $f(x) = e^{i \Omega t}$ for $t_1 \leq t \leq t_2$, and $0$ otherwise, then \begin{equation} \tilde{f}(\omega) = \int_{t_1}^{t_2} {\rm d} t e^{i (\Omega-\omega) t} = \frac{e^{i (\Omega-\omega) t_2} - e^{i(\Omega-\omega) t_1}}{i (\Omega-\omega) } \end{equation} There are a few useful special cases to know.

One is when $\Omega=0$ -- then $f(t)$ describes one pulse of a square wave. Taking $t_2=-t_1=T/2$ for simplicity, the Fourier transform is \begin{equation} \tilde{f}(\omega) = \frac{2 \sin (\omega T/2)}{\omega} \end{equation} This characteristic behavior $|\tilde{f}(\omega)|\sim 1/\omega$ is common to "sharp edges" in the time domain signal, which excite Fourier modes of arbitrarily large frequencies. The slow falloff $\sim 1/\omega$ can cause many issues in dealing with sharp edges in time domain signals, when transforming into the frequency domain, in practical applications.

Another interesting limit is $\omega \rightarrow \Omega$. In fact the Fourier transform is equal to $T$, and diverges in the limit of infinite times! This is precisely the frequency of the truncated sine wave. We can understand the $T\rightarrow \infty$ limit by proceeding carefully. For simplicity let's assume $t_2=T/2>0$ and $t_1=-t_2=-T/2$, and refer to $f_T(\omega)$ as the truncated sine wave, with the duration of the window being $T$. Then \begin{eqnarray} \tilde{f}_T(\omega) &=& \int_{-T/2}^{T/2} {\rm d} t e^{ -i (\omega-\Omega) t } \\ &=& \int_{-T/2}^0 {\rm d} t e^{ - i (\omega - \Omega ) t } + \int_{0}^{T/2} {\rm d} t e^{- i (\omega - \Omega )t} \\ &=& \frac{1 - \exp\left( \frac{-i T}{2}\left(\omega - \Omega \right) \right)}{i(\omega - \Omega )} + \frac{\exp\left( \frac{i T}{2}\left(\omega - \Omega \right) \right) - 1 }{i(\omega - \Omega )} \\ &=& \frac{2 \sin \bigl((\omega - \Omega) T/2\bigr)}{\omega - \Omega} \end{eqnarray} Now we can take the limit $T\rightarrow \infty$, using the delta function representation \begin{equation} \lim_{\epsilon\rightarrow 0} \frac{\sin (x/\epsilon)}{\pi x} = \delta(x) \end{equation} where $\delta(x)$ is a Dirac delta function.

This yields \begin{equation} \lim_{T \rightarrow \infty} \tilde{f}_T(\omega) = 2\pi \delta(\omega-\Omega) \end{equation} In the limit, the function $\sin T (\omega-\Omega)/(\omega-\Omega)$ becomes $\sim \delta(\omega-\Omega)$. This corresponds to your intuition that the Fourier transform should be dominated by the frequency of the truncated part of the sine wave.

Note: Thanks to @nanoman, who pointed out an error in an earlier version of this post.