Fourier transform I - Pushing Fourier series to the limit

We are about to discover the Fourier transform as the natural answer to the following:

Question

Can we extend the machinery of the Fourier series to non-periodic function?

Recap of the periodic situation


As a quick recap, we started by attempting to represent functions f(t) that were periodic with period 1 by complex Fourier series, i.e., series of the form

βˆ‘n=βˆ’βˆžβˆžcne2Ο€int.

We quickly saw that if f(t) could be represented by such a series, then the coefficients in that series satisfied the integral formula

cn=∫01f(t)eβˆ’2Ο€intdt.

We then introduced the "hat" notation f^(n) for the value of the above integral.

Eventually we used ideas from linear algebra to clarify the situation, introducing an analogue of the dot product for periodic functions, namely the inner product for functions f,g:[0,1]β†’C defined by

(f,g)=∫01f(t)g(t)―dt.

This inner product shares nearly all of the familiar properties of the dot product on Rn and allowed us to define both the notion of length (using |f|2=(f,f)) and orthogonality (by declaring f and g orthogonal whenever (f,g)=0). In particular, if we let en(t)=e2Ο€int, then the set of functions {en(t)∣n∈Z} is an orthonormal set, i.e., is a set of functions that are unit length and mutually orthogonal.

With this new linear algebra language, our work above became a standard result about orthonormal sets, namely that if f can be written as a linear combination of the en, then that combination must be exactly

f=βˆ‘n=βˆ’βˆžβˆž(f,en)β‹…en,

where by definition

(f,en)=∫01f(t)en(t)―dt=∫01f(t)eβˆ’2Ο€intdt=f^(n).

The more general situation

We can easily extend the above results to the case of functions that are periodic with arbitrary period T>0. In this case, an inner product for functions f,g:[0,T]β†’C is given by

(f,g)=∫0Tf(t)g(t)―dt,

and our corresponding orthonormal set of "elementary" periodic functions (with period T) is {en(t)∣n∈Z}, where en(t)=1Te2Ο€intT.

Just as above, we have that for every function f that's periodic function with period T, if f can be written as a linear combination of the orthonormal functions above, then that combination must be

f=βˆ‘n=βˆ’βˆžβˆž(f,en)β‹…en,

where

(f,en)=∫0Tf(t)β‹…1Teβˆ’2Ο€intTdt=1T∫0Tf(t)eβˆ’2Ο€intTdt.

If, for some reason, we wish to express f as a linear combination of the functions e2Ο€intT (which are no longer unit length but are still mutually orthogonal), we can equivalently write

f(t)=βˆ‘n=βˆ’βˆžβˆžcne2Ο€intT,

where cn satisfy the integral equation

cn=1T∫0Tf(t)eβˆ’2Ο€intTdt.

We can now ask the question:

Can we let Tβ†’βˆž?

In other words, what happens if f is not periodic? Can we make sense of some type of limit of the above situation?

Let's try answering this question in a particular (hopefully insightful) example.

Extended example: The rectangle function


Thinking like physicists for the moment, suppose we consider the simple situation of a "signal" that's "on" for one unit of time (say, 1 second) and then "off" at all other times. We can model such a signal with a function that takes the value 1 over an interval of length 1, and then value 0 everywhere else. It will turn out to make things slightly nicer numerically if we use the function that is 1 on the interval [βˆ’12,12] and 0 everywhere else. The graph of this function is

rectFunctionGraph1.png|600

We can make this graph more visualizing appealing (and look more like an idealization of an actual, continuous signal) if we add dotted lines connecting the "jump" points:

rectFunctionGraph2.png|600

We will follow the common convention and denote this function Ξ (t), so that algebraically

Ξ (t)={1,ifΒ βˆ’12≀t≀120,else

The choice of the character Ξ  (which is a capital pi) is meant to visually remind us of the graph of the function.

It would be reasonable to call this the square function, as its graph resembles a little unit square sitting on the origin, but for historical reasons it's usually called the unit rectangle function. (This naming will seem more justified when we start stretching and scaling the function, in which case the graph resembles a non-square rectangle.)

No matter what we call it, this function is decidedly not periodic. We can easily create periodic "versions" of this function, i.e., a function that is "on" for 1 second bursts, periodically. For example, we might want a function that agreed with the above function on [βˆ’1,1] but that was periodic with period 2. In other words, suppose we considered the function Ξ 2(t) whose graph looked like

Pi2.png|900

Similarly, if we wanted a function that was "on" for 1-second intervals every 4 seconds, we could consider the function Ξ 4(t) whose graph looked like

Pi4.png|900

In general, for every T>1 let's let Ξ T(t) denote the function that is periodic with period T and takes the value 1 on [βˆ’12,12]. This function takes the value 1 on every interval of the form [kTβˆ’12,kT+12], and is 0 elsewhere.

Observations

  1. The function Ξ T(t) is periodic with period T>0, so it makes sense to consider its corresponding complex Fourier series.
  2. The function Ξ T(t) agrees with the function Ξ (t) on the interval of width Tβˆ’1 centered at the origin. In particular, for each fixed value of t we always have limTβ†’βˆžΞ T(t)=Ξ (t). So it looks like our functions Ξ T(t) are "converging" to the original function Ξ (t).

Computing the Fourier series for Ξ T(t)

For simplicity, let's assume Ξ T(t) agrees with its complex Fourier series and write

Ξ T(t)=βˆ‘n=βˆ’βˆžβˆžcn,Tβ‹…e2Ο€intT.

The Fourier coefficients in this series are then given by

cn,T=1T∫0TΞ T(t)eβˆ’2Ο€intTdt=1Tβˆ«βˆ’T2T2Ξ T(t)eβˆ’2Ο€intTdt=1Tβˆ«βˆ’12121β‹…eβˆ’2Ο€intTdt={1T,Β whenΒ n=01Ο€nsin⁑(Ο€nT),Β whenΒ nβ‰ 0

where we did some simplifications (behind the scenes) after computing the final integral. Substituting this information back into our Fourier series, we see that

Ξ T(t)=1T+βˆ‘nβ‰ 01Ο€nsin⁑(Ο€nT)e2Ο€intT.

We want to analyze what happens in the above expression as Tβ†’βˆž. To that end, we can rewrite that summation (perhaps more suggestively) as

Ξ T(t)=1T+βˆ‘nβ‰ 0sin⁑(Ο€β‹…nT)Ο€β‹…nTe2Ο€itβ‹…nTβ‹…1T.

Why rewrite the sum in this way? We claim that doing so makes the above sum look like a Riemann sum. Indeed, suppose (for some fixed value of t) we were asked to approximate the integral below with a Riemann sum:

βˆ«βˆ’βˆžβˆžsin⁑(Ο€s)Ο€se2Ο€itsds.

Ignoring questions of convergence, the conventional approach would be to subdivide the s-axis into little slices of equal length, say length Ξ”s=1T:

s-axisRiemannSum.excalidraw.png|900

We would then evaluate the integrand at the values s=…,βˆ’2T,βˆ’1T,0,1T,2T,…, i.e., at all points of the form s=nT where n∈Z.

A small but fixable issue

We should note that the integrand is not actually defined exactly at s=0, but we'll see shortly that as s approaches 0 the values of the integrand simply approach 1. In other words, the integrand has a removable discontinuity at s=0, which can be removed by setting the value of the integrand to 1 at s=0.

With the above minor fix in mind, the Riemann sum for the above definite integral is

βˆ«βˆ’βˆžβˆžsin⁑(Ο€s)Ο€se2Ο€itsdsβ‰ˆ1T+βˆ‘nβ‰ 0sin⁑(Ο€β‹…nT)Ο€β‹…nTe2Ο€itβ‹…nTβ‹…1T,

where the first 1T terms comes from the contribution at s=0. The sum on the right is exactly our Fourier series for Ξ T(t)!

The dramatic conclusion

Now, as we let Tβ†’βˆž, our Riemann sum should converge to the exact value of the integral. In other words, we appear to have

Ξ (t)=limTβ†’βˆžΞ T(t)=limTβ†’βˆž(1T+βˆ‘nβ‰ 0sin⁑(Ο€β‹…nT)Ο€β‹…nTe2Ο€itβ‹…nTβ‹…1T)=βˆ«βˆ’βˆžβˆžsin⁑(Ο€s)Ο€se2Ο€itsds.

In other words, the Fourier series for the periodic functions Ξ T(t) seem to converge to an integral representation of the non-periodic function Ξ (t).

An immediate question

The Fourier series for a periodic function seems to have been replaced by some type of Fourier integral for our non-periodic function. During this change, the Fourier coefficients (which were a sequence of complex numbers) were replaced by a single new function, in this case the function sin⁑(Ο€s)Ο€s.

How did this function arise? How is it related to our original function Ξ (t)?

We can answer this question by looking back at how we computed the Fourier coefficients for the periodic function ΠT(t). After our usual computations, we found that (at least for n≠0)

cn,T=1Ο€nsin⁑(Ο€nT).

In our effort to view the Fourier series as a Riemann sum for a definite integral, we introduced the new variable s, and in our sum we had s=nT. So, at each term in the sum we were using the approximation

sin⁑(Ο€s)Ο€sβ‰ˆsin⁑(Ο€β‹…nT)Ο€β‹…nT.

Combining this estimate with the previous equality, we see that when s=nT we have

sin⁑(Ο€s)Ο€sβ‰ˆsin⁑(Ο€β‹…nT)Ο€β‹…nT=Tβ‹…cn,T=βˆ«βˆ’12121β‹…eβˆ’2Ο€intTdt=βˆ«βˆ’βˆžβˆžΞ (t)eβˆ’2Ο€itβ‹…nTdt

where in the last step we simply used the fact that Ξ (t) was 0 outside the interval [βˆ’12,12].

With all this in mind, it looks like (and we can now easily confirm) that

sin⁑(Ο€s)Ο€s=βˆ«βˆ’βˆžβˆžΞ (t)eβˆ’2Ο€itsdt

Indeed, observe that

βˆ«βˆ’βˆžβˆžΞ (t)eβˆ’2Ο€itsdt=βˆ«βˆ’1212eβˆ’2Ο€itsdt=[1βˆ’2Ο€iseβˆ’2Ο€its]t=βˆ’12t=12=1βˆ’2Ο€iseβˆ’Ο€isβˆ’1βˆ’2Ο€iseΟ€is=12Ο€is(eΟ€isβˆ’eβˆ’Ο€is)=12Ο€isβ‹…2isin⁑(Ο€s)=sin⁑(Ο€s)Ο€s.

The takeaway


Here's a quick comparison between the situation for periodic functions and non-periodic functions, at least if the previous example is to be trusted.

When f(t) is a periodic function with period T>0, if we can write

f(t)=βˆ‘n=βˆ’βˆžβˆžcne2Ο€itβ‹…nT,

then we must have

cn=1T∫0Tf(t)eβˆ’2Ο€itβ‹…nTdt.

On the other hand, when f(t) is a non-periodic function, it seems like we might expect/hope to be able to write

f(t)=βˆ«βˆ’βˆžβˆžF(s)e2Ο€itsds,

where

F(s)=βˆ«βˆ’βˆžβˆžf(t)eβˆ’2Ο€itsdt.

Let's make this official in the next note!

Suggested next notes


Fourier transform II - The Fourier transform and inverse transform