Fourier series and transforms

  1. The sine-cosine form of the Fourier series is \[f(x) = \frac{a_0}{2} + \sum_{n=1}^\infty \big[a_n \cos(nx) + b_n\sin(nx) \big]\,. \] Why is \(a_0\) not included in the sum? [answer]

    \(a_0\) is not included in the sum to preserve a symmetric form of the definitions of \(a_n\) and \(b_n\).

  2. Use orthogonality to determine \(a_0\), \(a_n\), and \(b_n\). [answer]

    First multiply both sides of the form above by \(\cos(mx)dx\) on both sides and integrate from \(-\pi\) to \(\pi\). Do the same for \(\sin(mx)dx\). Use the relations \begin{align*} \int_{-\pi}^\pi \sin mx \sin nx dx &= \delta_{nm}\pi\\ \int_{-\pi}^\pi \cos mx \cos nx dx &= \delta_{nm}\pi\quad (2\pi \text{ for } m=n=0)\\ \int_{-\pi}^\pi \sin mx \cos nx dx &=0 \end{align*} and obtain \begin{align*} a_0&=\frac{1}{\pi}\int_{-\pi}^\pi f(x) dx\\ a_n&=\frac{1}{\pi}\int_{-\pi}^\pi f(x)\cos nx dx\\ b_n&=\frac{1}{\pi}\int_{-\pi}^\pi f(x)\sin nx dx \end{align*}

  3. If \(f(x)\) is periodic in \(2\pi\), has a finite number of maxima, minima, and discontinuities, and if \(\int_{-\pi}^\pi |f(x)|dx \) is finite, what is the relationship between \(f(x)\) and its Fourier series? What are these conditions called? [answer]

    The Fourier series of \(f(x)\) will converge to \(f(x)\) at all points where \(f(x)\) is continuous. For points at which \(f(x)\) is discontinuous (i.e., has a jump), the Fourier series converges to the midpoint of the jump.

    These are the Dirichlet conditions.

  4. Obtain the Fourier series expansion coefficients of a periodic square wave, which is \(1\) for \(-\pi \leq x\leq 0 \) and \(-1\) for \(0 < x \leq \pi \). [answer]

    Using the definitions above, \(a_0=0\), \(a_n=0\), and \(b_n = -4/n\pi\) for odd \(n\) and \(0\) for even \(n\).

  5. Obtain the Fourier series expansion coefficients of a periodic sawtooth wave, which is \(x/\pi\) for \(-\pi \leq x\leq \pi \). [answer]

    Using the definitions above, \(a_0=0\), \(a_n=0\), and \(b_n = -(-1)^n 2/n\pi\).

  6. Obtain the Fourier series expansion coefficients for some of the periodic functions listed here. [answer]

    The expansion coefficients are listed on that page. The half-wave rectified sine appears in the Penn State math packet.

  7. The complex-exponential form of the Fourier series is \[f(x) = \sum_{n = -\infty}^{\infty} c_n e^{inx}\] Use orthogonality to determine \(c_n\). [answer]

    The orthogonality relation is \[\int_{-\pi}^{\pi} e^{inx}e^{-imx}dx = 2\pi \delta_{nm} \,.\] Multiplying both sides by \(e^{-imx}\) and integrating from \(-\pi\) to \(\pi\) gives \[c_n = \frac{1}{2\pi}\int_{-\pi}^{\pi} f(x)e^{-inx}dx.\]

  8. Attempt some of these problems from Boas's Methods book, using the sine-cosine and complex exponential Fourier series. [answer]

    The answers are provided in that document.

  9. State Parseval's theorem. [answer]

    Parseval's theorem says that the average value of \(|f(x)|^2\) over a period is the sum of the magnitude-squared of the expansion coefficients. This is most straightforwardly written in terms of the complex exponential Fourier series (because there's only one expansion coefficient): \[|f(x)|^2 = \sum_{-\infty}^{\infty} |c_n|^2 \,.\] Parseval's theorem is sometimes referred to as the "completeness relation," because if any one of the harmonics were left out, then \(|f(x)|^2 > \sum_{-\infty}^{\infty} |c_n|^2 \,.\), which is known as Bessel's inequality.

  10. In what sense is the Fourier transform a generalization of the Fourier series? What are the conditions for the convergence of the Fourier transform? [answer]

    The Fourier transform is the "continuum limit" of the Fourier series, expressing a function as the integral of a continuous spectrum of waves, rather than as just the sum of a discrete spectrum of waves. The Fourier transform applies to arbitrary functions (not necessarily periodic).

    The form of the Fourier transform can readily be derived by considering the complex-exponential form of the Fourier series, given above. In the limit that \(n\) is a continuous index \(k\), the series becomes an integral, \[f(x) = \int_{-\infty}^\infty c(k) e^{ikx}dk,\] and the coefficients \(c(k)\) are \[c(k) = \frac{1}{2\pi}\int_{-\infty}^\infty f(x) e^{-ikx}dx.\] Note that the appearance of \(1/2\pi\) in the expression for \(c(k)\) is merely a convention.

    The conditions for the convergence of the Fourier transform are the same as those for the Fourier series (the Dirichlet conditions).

  11. Given the function \begin{align*} f(x) = \begin{cases} 1,\quad &x \in [-1,1]\\ 0,\quad & |x| \in (1,\infty) \end{cases}\,. \end{align*} calculate its Fourier transform \(c(k)\). Write the integral representation of \(f(k)\) in terms of the calculated \(c(k)\). [answer]

    Calculating the Fourier transform in this case is straightforward: \begin{align*} c(k) = \frac{1}{2\pi} \int_{-\infty}^{\infty} f(x) e^{-ikx} dx &= \frac{1}{2\pi}\int_{-1}^{1} e^{-ikx} dx\\ &= \frac{i}{2\pi k} (e^{-ik}-e^{ik})\\ &= -\frac{i}{2\pi k} (e^{ik}-e^{-ik})\\ &= -\frac{i}{2\pi k} 2i \sin{k}\\ &= \frac{\sin{k}}{\pi k} \end{align*} So the integral representation of the given function is \(f(x) = \int_{-\infty}^{\infty} \frac{\sin k}{\pi k} e^{ikx}dk\).

  12. Given the function \begin{align*} f(x) = \begin{cases} x,\quad &x \in [0,1]\\ 0,\quad & \text{otherwise} \end{cases}\,. \end{align*} calculate its Fourier transform \(c(k)\). Write the integral representation of \(f(k)\) in terms of the calculated \(c(k)\). [answer]

    \begin{align*} c(k) = \frac{1}{2\pi} \int_{-\infty}^{\infty} f(x) e^{-ikx} dx &= \frac{1}{2\pi}\int_{0}^{1} xe^{-ikx} dx\\ &= \frac{ixe^{-ikx}}{2\pi k} + \frac{e^{-ikx}}{2\pi k^2} \bigg\rvert_{x=0}^{1}\\ &=\frac{ie^{-ik}}{2\pi k} + \frac{e^{-ik}-1}{2\pi k^2} \end{align*} So the integral representation of the given function is \[f(x) = \int_{-\infty}^{\infty} \bigg( \frac{ie^{-ik}}{2\pi k} + \frac{e^{-ik}-1}{2\pi k^2} \bigg) e^{ikx}dk\,.\]

  13. What does a Gaussian pulse in the time domain i.e., \(\exp (-t^2/T^2)\) look like in the frequency domain? [answer]

    Since the Fourier transform of a Gaussian is a Gaussian, the signal in the frequency domain is a Gaussian.

  14. ☸ Now consider a sine wave modulated by a Gaussian envelope in the time domain, i.e., \(\exp(j\omega_0 t) \exp (-t^2/T^2)\). What does this signal look like in the frequency domain? [answer]

    The Fourier transform of this signal is also a pure Gaussian. I confirmed this analytically and numerically.

    At first, it was not intuitively clear to me why this signal is a pure Gaussian in the frequency domain, rather than a combination of a Gaussian and a delta function in the frequency domain. I was expecting a \(\delta\)- function to appear at the frequency \(\omega_0\). This can be rationalized by making use of the convolution theorem, which states that the Fourier transform of the product of two functions is equal to the convolution of their individual Fourier transforms. We wish to find the Fourier transform of a sinusoid \(\times\) a Gaussian, and we know that the Fourier transform of a sinuosoid is a delta function, while that of a Gaussian is a Gaussian. By the convolution theorem, the Fourier transform of the product is the convolution of the delta function and the Gaussian, which is a pure Gaussian.

↑ Return to math index ← Return to previous topic → Advance to next topic