Calculus · Integrals with a Parameter
A Fourier series writes a periodic function as a sum of sines and cosines. But most signals in real life, like a single clap or a single pulse, are not periodic. The Fourier integral handles them by replacing the sum with an integral over all frequencies. This post explains how it works, and how it leads to the Fourier transform.
Recall that a function with period \(2\ell\) can be written as a Fourier series
\[ f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty}\Big(a_n\cos\frac{n\pi x}{\ell} + b_n\sin\frac{n\pi x}{\ell}\Big). \]Only the frequencies \( \lambda_n = \frac{n\pi}{\ell} \) appear, spaced \( \Delta\lambda = \frac{\pi}{\ell} \) apart. Now imagine stretching the period: let \(\ell \to \infty\). The function no longer repeats, the allowed frequencies crowd closer and closer together, and in the limit every frequency \(\lambda \ge 0\) is present. The sum over \(n\) becomes an integral over \(\lambda\) (a Riemann sum with step \(\Delta\lambda\) turning into \(\int d\lambda\)).
That is the Fourier integral: instead of a discrete list of amplitudes \(a_n, b_n\), we get amplitude functions \(a(\lambda), b(\lambda)\) that tell us how much of each frequency the function contains. This is the mathematical idea behind the spectrum of a sound, or the frequency display of an equaliser.
A few comments on the hypotheses:
Notice what happened: a function with sharp corners is built from perfectly smooth waves, but it needs all frequencies to do it, with amplitudes decaying only like \(\frac1\lambda\). Sharp features in \(f\) mean slow decay of the spectrum. Smooth functions have spectra that decay fast.
As with Fourier series, symmetry cuts the work in half. If \(f\) is even, then \(f(t)\sin\lambda t\) is odd and \(b(\lambda) = 0\); if \(f\) is odd, \(a(\lambda) = 0\).
Often \(f\) is only given for \(x > 0\), for instance a signal that starts at time zero, or the temperature along a semi-infinite rod. We can then choose how to extend it to negative \(x\).
Even extension gives \(e^{-|x|}\), which leads back to Example 2:
\[ e^{-x} = \frac2\pi\int_0^\infty \frac{\cos\lambda x}{1 + \lambda^2}\,d\lambda \qquad (x \ge 0). \]Odd extension: with \( \int_0^\infty e^{-t}\sin\lambda t\,dt = \frac{\lambda}{1 + \lambda^2} \),
\[ e^{-x} = \frac2\pi\int_0^\infty \frac{\lambda\sin\lambda x}{1 + \lambda^2}\,d\lambda \qquad (x > 0). \] At \(x = 0\) the sine integral gives \(0\): the odd extension jumps from \(-1\) to \(1\) there, and \(0\) is the average. Which extension to use depends on the problem; in physical problems it is often dictated by the boundary condition at \(x = 0\) (a prescribed value usually calls for the sine form, a prescribed derivative for the cosine form).The real form (1) needs two amplitude functions. Using Euler's formula \( e^{i\theta} = \cos\theta + i\sin\theta \), the cosines and sines combine into one complex exponential, and the two functions \(a, b\) combine into one complex function. The result is the Fourier transform.
Interpretation: \(F(z)\) measures "how much" of the frequency \(z\) is present in \(f\). The transform takes you from the time (or space) domain to the frequency domain; the inverse transform takes you back. The two formulas are almost symmetric: only the sign in the exponent changes.
For even or odd functions, or for functions on a half-line, the complex transform reduces to a real one, exactly as the Fourier integral reduced to (2) and (3).
Note the beautiful symmetry: the transform and its inverse are the same formula. Applying the cosine (or sine) transform twice gives back the original function.
A function given on \((0, \infty)\) can be extended evenly or oddly, depending on whether the cosine or the sine transform is needed.
The inversion formulas say something very practical: if you know the transform, you know the function. This lets us solve equations where the unknown function sits inside an integral.
The left side is \( \sqrt{\frac\pi2}\,F_c(z) \), so \( F_c(z) = \sqrt{\frac2\pi}\,e^{-z} \). Invert:
\[ f(x) = \sqrt{\frac2\pi}\int_0^\infty \sqrt{\frac2\pi}\,e^{-z}\cos(xz)\,dz = \frac2\pi\cdot\frac{1}{1 + x^2}. \] Check (Example 2): \( \int_0^\infty \frac{2}{\pi}\frac{\cos zu}{1 + u^2}\,du = \frac2\pi\cdot\frac\pi2e^{-z} = e^{-z} \). ✓| Case | Representation | Coefficient / transform |
|---|---|---|
| General \(f\) on \(\mathbb R\) | \( \int_0^\infty [a(\lambda)\cos\lambda x + b(\lambda)\sin\lambda x]\,d\lambda \) | \( a, b = \frac1\pi\int_{-\infty}^\infty f(t)\cos\lambda t,\ \sin\lambda t\,dt \) |
| Even \(f\) | \( \int_0^\infty a(\lambda)\cos\lambda x\,d\lambda \) | \( a = \frac2\pi\int_0^\infty f(t)\cos\lambda t\,dt \) |
| Odd \(f\) | \( \int_0^\infty b(\lambda)\sin\lambda x\,d\lambda \) | \( b = \frac2\pi\int_0^\infty f(t)\sin\lambda t\,dt \) |
| Complex form | \( f(x) = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^\infty F(z)e^{-ixz}dz \) | \( F(z) = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^\infty f(u)e^{izu}du \) |
| Cosine transform | \( f = \sqrt{\frac2\pi}\int_0^\infty F_c\cos(xz)\,dz \) | \( F_c = \sqrt{\frac2\pi}\int_0^\infty f\cos(zu)\,du \) |
| Sine transform | \( f = \sqrt{\frac2\pi}\int_0^\infty F_s\sin(xz)\,dz \) | \( F_s = \sqrt{\frac2\pi}\int_0^\infty f\sin(zu)\,du \) |
At points of discontinuity, every representation gives \( \frac12[f(x + 0) + f(x - 0)] \).
Try these before opening the solution. More solved problems are in Definite Integrals and Series.
\(f\) is odd, so \( b(\lambda) = \frac2\pi\int_0^1 \sin\lambda t\,dt = \frac{2(1 - \cos\lambda)}{\pi\lambda} \), and \[ f(x) = \frac2\pi\int_0^\infty \frac{1 - \cos\lambda}{\lambda}\sin\lambda x\,d\lambda. \] At \(x = 0\) and \(x = \pm1\) the integral gives the averages \(0\) and \(\pm\frac12\).
Using \( \int_0^\infty e^{-au}\cos zu\,du = \frac{a}{a^2 + z^2} \) and \( \int_0^\infty e^{-au}\sin zu\,du = \frac{z}{a^2 + z^2} \): \[ F_c(z) = \sqrt{\frac2\pi}\,\frac{a}{a^2 + z^2}, \qquad F_s(z) = \sqrt{\frac2\pi}\,\frac{z}{a^2 + z^2}. \]
Multiply the result of Example 1 by \(\frac\pi2\): the integral equals \(\frac\pi2\) for \(|x| < 1\), \(\frac\pi4\) for \(|x| = 1\), and \(0\) for \(|x| > 1\).
\( F_s(z) = \sqrt{\frac2\pi}\,e^{-z} \), so \[ f(x) = \frac2\pi\int_0^\infty e^{-z}\sin(xz)\,dz = \frac2\pi\cdot\frac{x}{1 + x^2}. \]
\(f\) is even, so \( F(z) = \frac{1}{\sqrt{2\pi}}\cdot 2\int_0^\infty e^{-u}\cos(zu)\,du = \sqrt{\frac2\pi}\,\frac{1}{1 + z^2} \).
It is not absolutely integrable on \(\mathbb R\): \( \int_{-\infty}^\infty |\cos x|\,dx = \infty \), and the coefficient integrals \( \int_{-\infty}^\infty \cos t\cos\lambda t\,dt \) do not converge. A pure wave contains only one frequency, so it belongs to the world of Fourier series, not integrals. (In more advanced courses it is handled with generalized functions, such as the Dirac delta.)
The Fourier integral completes the picture of Fourier analysis: periodic functions are sums of discrete frequencies, non-periodic functions are integrals over a continuum of frequencies. Behind the formulas sits one idea, decompose a function into waves, work with the waves, and put the function back together. That idea powers signal processing, image compression, quantum mechanics and the solution of differential equations, and the tools you've learned in this series (improper integrals, uniform convergence, integrals with a parameter) are exactly what make it rigorous.
This post concludes the series on functions defined by integrals.