1 of 46

Fourier Analysis

Ajit Rajwade

1

2 of 46

Fourier Analysis

  • Discovery of the French Mathematician Joseph Fourier.

  • Motivated initially from thermodynamics (heat equation).

  • Fundamental to modern signal and image processing (particularly in image or signal filtering).

  • Also very widely used in optics, probability theory, solutions of partial differential equations and many other areas of mathematics.

2

3 of 46

Fourier Series

  • Any periodic function can be represented accurately as the linear combination of sine and cosine signals of different frequencies.

  • This is called the Fourier series

  • The sinusoidal signals are given as:

3

4 of 46

Fourier Series

  • The Fourier series for a signal f(t) with period T is given as follows:

  • How do you justify the formula for cn?

4

5 of 46

5

6 of 46

Fourier Series

  • It follows from the following trigonometric identity:

6

7 of 46

Fourier Series

  • Given a signal f(t), how do we obtain its Fourier series coefficients?

  • To find the coefficient at frequency 2πn/T, we compute the following integral:

7

8 of 46

Fourier Series

  • Consider integral of the following form:

  • The inner product between two periodic complex valued functions f and g is given as:

8

9 of 46

Fourier Series

  • In computing Fourier series coefficients, we are considering inner products of complex sinusoidal signals of different frequencies.

  • When the frequencies are different, the inner product is 0.

  • When the frequencies are the same, the inner product is T.

  • Any signal can be represented using these sinusoidal signals – giving rise to an orthogonal basis.

9

10 of 46

10

Function  s(t) (in red) is a sum of six sine functions of different amplitudes

and harmonically related frequencies. Their summation is called a Fourier series.

11 of 46

Why complex exponentials?

  • We need complex exponentials as they consist of both sines and cosines.

  • Only sine signals cannot represent shifted sine waves or cosine waves completely.

11

12 of 46

Fourier transform

  • Extension of Fourier series to non-periodic but absolutely integrable or square integrable signals.
  • Mathematically given as follows:

  • We also have:

  • These formulae are consistent, due to the orthogonality of the sinusoidal functions.

12

13 of 46

Fourier Transform

  • F(µ) is the Fourier coefficient at frequency µ, computed by integrating out the time variable t.

  • The original signal can be reconstructed accurately (without loss of information) from its Fourier coefficients by integrating out the frequency variable.

  • Thus a signal and its Fourier transform (the set of all its Fourier coefficients) form a unique “Fourier pair”.

  • Convention: Time-domain signals are denoted in lower case (eg: f(t)), whereas their Fourier transforms are denoted in upper case (F(µ)).

  • The Fourier operator is denoted by F (bold font) to distinguish it from the Fourier transform of f.

13

14 of 46

Example 1: Rect and sinc

14

15 of 46

Example 1: Rect and sinc

15

It also turns out that the Fourier transform of a sinc in the time domain is a rect in the frequency domain. This has a much more complicated proof.

16 of 46

Example 2: Delta Functions

  • The Dirac Delta or the unit impulse signal with continuous variable t is defined as follows:

  • Sifting property:

16

17 of 46

Example 2: Delta Functions

  • Sifting property:

  • Note the Dirac delta function is defined when the time variable t is continuous.

  • This is different from the Kronecker delta function defined on discrete time:

17

18 of 46

Example 2: Delta Functions

  • There is a sifting property for Kronecker delta functions too:

18

19 of 46

Example 2: Delta Functions

  • Fourier transform of the Dirac Delta Function:

19

20 of 46

Example 3

20

The following figures provide a visual illustration how the Fourier transform measures whether a frequency is present in a particular function. The depicted function f (t) = cos(6πte−πt2 oscillates at 3 Hz (if t measures seconds) and tends quickly to 0. (The second factor in this equation is an envelope function that shapes the continuous sinusoid into a short pulse. Its general form is a Gaussian function). This function was specially chosen to have a real Fourier transform that can be easily plotted. The first image contains its graph. In order to calculate   we must integrate e−2πi(3t)f (t). The second image shows the plot of the real and imaginary parts of this function. The real part of the integrand is almost always positive, because when f (t) is negative, the real part of e−2πi(3t) is negative as well. Because they oscillate at the same rate, when f (t) is positive, so is the real part of e−2πi(3t). The result is that when you integrate the real part of the integrand you get a relatively large number (in this case 1/2). On the other hand, when you try to measure a frequency that is not present, as in the case when we look at  , you see that both real and imaginary component of this function vary rapidly between positive and negative values, as plotted in the third image. Therefore, in this case, the integrand oscillates fast enough so that the integral is very small and the value for the Fourier transform for that frequency is nearly zero.

21 of 46

21

22 of 46

Example 4: Cosine and Sine Waves

22

In both cases, these are Dirac delta (and not Kronecker delta) functions.

23 of 46

Fourier Transform

  • In general, the Fourier transform of a real-valued signal yields complex-valued Fourier coefficients.

  • Just like a Fourier series, it allows for complete signal recovery.

  • Unlike a Fourier series, it allows for non-periodic signals and also allows for the frequencies to be non-integer (real-valued).

23

24 of 46

Fourier Transform and Music

  • Audio/music signals are recorded in the time domain.

  • However the different musical notes are represented by fundamental frequencies (eg: the note C#, typical scale of male vocalists, is 138.59 Hz; the scale of a typical female vocalist is 246.94 Hz).

  • Fourier transform allows for identification of the musical notes within the audio signal.

24

25 of 46

Properties of the Fourier Transform

  • Linearity

  • This follows from the definition of the Fourier transform.

  • Is it shift invariant?

25

26 of 46

Properties of the Fourier Transform

  • Is it shift invariant?

26

The Fourier transform of a signal f shifted by time t0 is equal to the Fourier transform of the original signal f but multiplied by a phase factor dependent on t0. This is called the Fourier shift theorem.

27 of 46

Properties of the Fourier Transform

  • A variant of the Fourier shift theorem:

27

28 of 46

Properties of the Fourier Transform: Convolution Theorem

  • Concept of convolution: we have seen the convolution in the discrete setting.

  • Recall:

  • The convolution is defined in the case of continuous signals as follows:

28

29 of 46

Properties of the Fourier Transform: Convolution Theorem

  • The Fourier transform of the convolution is given as follows:

29

30 of 46

Properties of the Fourier Transform: Convolution Theorem

  • Theorem: The Fourier transform (for frequency µ) of the convolution of two signals is given by the product of their Fourier transforms at the same frequency.

  • This is an extremely important theorem in signal processing.

  • It will be very useful in Fourier-based filtering.

30

31 of 46

Variant of the convolution theorem

  • The Fourier transform of the point-wise multiplication of two signals at frequency µ is equal to the convolution of their respective Fourier transforms, evaluated at frequency µ.

31

32 of 46

32

33 of 46

Properties of the Fourier Transform: Parseval’s theorem

33

34 of 46

Properties of the Fourier Transform: Parseval’s theorem

  • Parseval’s theorem has interesting implications in image compression – which we will study later.

34

35 of 46

Properties of the Fourier Transform: Parseval’s theorem (variant)

35

This variant is more general than the earlier one, which assumed f(t) = g(t).

36 of 46

Properties of the Fourier transform: Differentiation theorem

  • For a differentiable function f(t), we have:

36

This assumes that the function is twice differentiable

Using integration by parts

37 of 46

Properties of the Fourier transform: Differentiation theorem

  • Continuing this derivation recursively further for a n-times differentiable function f(t), we have:

37

38 of 46

Time-limited and band-limited signals

  • A signal is said to be time-limited if it is of finite duration.

  • A signal is said to be band-limited if for every frequency |µ| > B (where ∞ > B >= 0), we have F(µ) = 0.

  • Any signal stored in a digital computer will always be time-limited (this will later extend to 2D images which are space-limited as they have a finite extent in the XY space).

38

39 of 46

Time-limited and band-limited signals

  • (1) A non-zero time-limited signal cannot be band-limited.

  • (2) A non-zero band-limited signal cannot be time-limited.

  • To some extent, we have observed this via pairs as the rect and sinc, Dirac impulse and uniform signal. We will now prove it.

39

40 of 46

Time-limited and band-limited signals

  • (1) A non-zero time-limited signal cannot be band-limited.

  • Proof:
  • Let us assume a time-limited signal g(t) which is zero everywhere for |t| > W/2.
  • Then we can write g(t) = g(t).rect(t;W/2).
  • Then taking Fourier transform on both sides, we have G(µ)=G(µ)*Wsinc(Wµ).
  • As the sinc function never completely goes to zero, G cannot have finite support in the frequency domain, so g cannot be band-limited.

40

41 of 46

Time-limited and band-limited signals

  • (2) A non-zero band-limited signal cannot be time-limited.

  • Proof:
  • Let us assume a band-limited signal h(t). Its Fourier transform H(µ) is zero everywhere for |µ| > B/2.
  • Then we can write H(µ) = H(µ).rect(µ;B/2).
  • Then taking inverse Fourier transform on both sides, we have h(t)=h(t)*Bsinc(Bt).
  • As the sinc function never completely goes to zero, h cannot have finite support in the time domain, so h cannot be time-limited.

41

42 of 46

Time-limited and band-limited signals

  • We already know that for any signal h, we must have h(t) = (h*δ)(t) where δ is the Dirac delta function.

  • But the earlier proof tells us that for a band-limited signal h(t), we also have h(t)=h(t)*Bsinc(Bt)!

42

43 of 46

Time-limited and band-limited signals

  • A band-limited signal is infinitely differentiable (converse is not true – eg: Gaussian).

43

44 of 46

Fourier Transforms in 2D

  • Fourier Transforms and its inverse in 2D – spatial coordinates (x,y) and frequency coordinates (µ,ν).

  • In fact, such pairs exist in higher dimensions (3,4,…) as well.

44

45 of 46

Fourier Transforms in 2D

  • All aforementioned theorems hold in higher dimensions too: shift theorem, convolution theorem, Parseval’s theorem, and others.

  • The higher dimensional Fourier transform has the property of separability.

  • That is a 2D Fourier transform is obtained as follows:
  • For every x, compute the 1D Fourier transform of f(x,.) integrating across y to produce a signal F(x,ν).
  • Then compute the 1D Fourier transform of F(.,ν) by integrating across x to get F(µ,ν).

45

46 of 46

46

1D Fourier Transforms

2D Fourier transforms are said to be separable as they are computed by 1D Fourier transforms in each of the coordinates. You may verify that the separability property holds true even for inverse Fourier transforms in 2D.