Fourier Series Example

Similar documents
Lecture 34. Fourier Transforms

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

Today s lecture. The Fourier transform. Sampling, aliasing, interpolation The Fast Fourier Transform (FFT) algorithm

Quality Improves with More Rays

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case.

IB Paper 6: Signal and Data Analysis

Fourier Series. Fourier Transform

G52IVG, School of Computer Science, University of Nottingham

Lecture 4: Fourier Transforms.

Fourier transform representation of CT aperiodic signals Section 4.1

f(x) cos dx L L f(x) sin L + b n sin a n cos

MEDE2500 Tutorial Nov-7

University of Connecticut Lecture Notes for ME5507 Fall 2014 Engineering Analysis I Part III: Fourier Analysis

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series

Fourier transform. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Review: Continuous Fourier Transform

FOURIER TRANSFORMS. At, is sometimes taken as 0.5 or it may not have any specific value. Shifting at

CS711008Z Algorithm Design and Analysis

Wave Phenomena Physics 15c. Lecture 11 Dispersion

Sampling. Alejandro Ribeiro. February 8, 2018

Fourier transforms. R. C. Daileda. Partial Differential Equations April 17, Trinity University

2A1H Time-Frequency Analysis II

Module 3 : Sampling and Reconstruction Lecture 22 : Sampling and Reconstruction of Band-Limited Signals

Mathematical Foundations of Signal Processing

Series FOURIER SERIES. Graham S McDonald. A self-contained Tutorial Module for learning the technique of Fourier series analysis

Fourier series. Complex Fourier series. Positive and negative frequencies. Fourier series demonstration. Notes. Notes. Notes.

PS403 - Digital Signal processing

Lecture 28 Continuous-Time Fourier Transform 2

Lecture 6 January 21, 2016

e iωt dt and explained why δ(ω) = 0 for ω 0 but δ(0) =. A crucial property of the delta function, however, is that

Fourier Transform for Continuous Functions

How many initial conditions are required to fully determine the general solution to a 2nd order linear differential equation?

ECE-700 Review. Phil Schniter. January 5, x c (t)e jωt dt, x[n]z n, Denoting a transform pair by x[n] X(z), some useful properties are

Signals & Systems. Lecture 5 Continuous-Time Fourier Transform. Alp Ertürk

λ n = L φ n = π L eınπx/l, for n Z

GBS765 Electron microscopy

ECE 301 Division 1 Final Exam Solutions, 12/12/2011, 3:20-5:20pm in PHYS 114.

a k cos kω 0 t + b k sin kω 0 t (1) k=1

Homework 4. May An LTI system has an input, x(t) and output y(t) related through the equation y(t) = t e (t t ) x(t 2)dt

EE Homework 13 - Solutions

2 Fourier Transforms and Sampling

EE 224 Signals and Systems I Review 1/10

2A1H Time-Frequency Analysis II Bugs/queries to HT 2011 For hints and answers visit dwm/courses/2tf

EE 3054: Signals, Systems, and Transforms Summer It is observed of some continuous-time LTI system that the input signal.

Signal and systems. Linear Systems. Luigi Palopoli. Signal and systems p. 1/5

10.2-3: Fourier Series.

Notes on Fourier Series and Integrals Fourier Series

Fourier and Partial Differential Equations

DISCRETE FOURIER TRANSFORM

Ver 3808 E1.10 Fourier Series and Transforms (2014) E1.10 Fourier Series and Transforms. Problem Sheet 1 (Lecture 1)

Contents. Signals as functions (1D, 2D)

14 Fourier analysis. Read: Boas Ch. 7.

1.5 Inverse Trigonometric Functions

Problem Sheet 1 Examples of Random Processes

L6: Short-time Fourier analysis and synthesis

ENGIN 211, Engineering Math. Fourier Series and Transform

Lecture 27 Frequency Response 2

E2.5 Signals & Linear Systems. Tutorial Sheet 1 Introduction to Signals & Systems (Lectures 1 & 2)

Line Spectra and their Applications

Discrete Fourier Transform

Fourier Transform Chapter 10 Sampling and Series

Chap 4. Sampling of Continuous-Time Signals

e iωt dt and explained why δ(ω) = 0 for ω 0 but δ(0) =. A crucial property of the delta function, however, is that

Image Analysis. 3. Fourier Transform

ENGI 9420 Lecture Notes 8 - PDEs Page 8.01

Contents. Signals as functions (1D, 2D)

Examination paper for TMA4125 Matematikk 4N

Contents. Signals as functions (1D, 2D)

Chapter 4 The Fourier Series and Fourier Transform

Last Update: April 7, 201 0

Wave Phenomena Physics 15c. Lecture 10 Fourier Transform

Fourier Series & The Fourier Transform

Image Processing /6.865 Frédo Durand A bunch of slides by Bill Freeman (MIT) & Alyosha Efros (CMU)

Topic 2 Limits and Continuity c and d) Continuity Handout Notes Assigned Problems: Intro book pg 73, 1-3 and 6-8

Figure 3.1 Effect on frequency spectrum of increasing period T 0. Consider the amplitude spectrum of a periodic waveform as shown in Figure 3.2.

Signals and Systems. Lecture 14 DR TANIA STATHAKI READER (ASSOCIATE PROFESSOR) IN SIGNAL PROCESSING IMPERIAL COLLEGE LONDON

SIGNALS AND SYSTEMS: PAPER 3C1 HANDOUT 6a. Dr David Corrigan 1. Electronic and Electrical Engineering Dept.

3. Lecture. Fourier Transformation Sampling

EE 261 The Fourier Transform and its Applications Fall 2006 Midterm Exam Solutions

Chapter 6 THE SAMPLING PROCESS 6.1 Introduction 6.2 Fourier Transform Revisited

Examination paper for TMA4130 Matematikk 4N

The Discrete-Time Fourier

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

ECE 301 Fall 2010 Division 2 Homework 10 Solutions. { 1, if 2n t < 2n + 1, for any integer n, x(t) = 0, if 2n 1 t < 2n, for any integer n.

f (t) K(t, u) d t. f (t) K 1 (t, u) d u. Integral Transform Inverse Fourier Transform

Fourier Series. Suppose f : [0, 2π] C and: f(x) = n=0. a n cos nx. How could we find the a n if we know f? Having a look at cos :

Representing a Signal

The Continuous-time Fourier

Poularikas A. D. Fourier Transform The Handbook of Formulas and Tables for Signal Processing. Ed. Alexander D. Poularikas Boca Raton: CRC Press LLC,

ECG782: Multidimensional Digital Signal Processing

TAYLOR AND MACLAURIN SERIES

Chapter 4 The Fourier Series and Fourier Transform

Tutorial Sheet #2 discrete vs. continuous functions, periodicity, sampling

ECE 301 Fall 2011 Division 1 Homework 10 Solutions. { 1, for 0.5 t 0.5 x(t) = 0, for 0.5 < t 1

Jim Lambers ENERGY 281 Spring Quarter Lecture 5 Notes

6 The Fourier transform

ECE 3084 QUIZ 2 SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING GEORGIA INSTITUTE OF TECHNOLOGY APRIL 2, Name:

5. Some theorems on continuous functions

Math 121A: Homework 6 solutions

Sensors. Chapter Signal Conditioning

Transcription:

Fourier Series Example Let us compute the Fourier series for the function on the interval [ π,π]. f(x) = x f is an odd function, so the a n are zero, and thus the Fourier series will be of the form f(x) = Σ n = b n sin nx. Furthermore, the b n can be written in closed form. Using integration by parts, b n = π π 0 x sin nx dx π = π n ( sin nx nxcos nx) 0 = π n ( sin nπ nπcos nπ) = nπ n cos nπ π = n cos nπ. cos nπ = when n is odd and cos nπ = when n is even.

Thus the above expression is equal to / n when n is odd and / n when n is even. Therefore our Fourier series is f(x) = sin x sin x + sin 3x sin 4x + sin 5x.... 3 4 5 3 0-3 - - 3 - - -3 3 0-3 - - 3 - - -3

Approximate Spectrum.5 0.5 0 4 6 8 0 4 6 8 0-0.5 - Magnitude of Spectrum.8.6.4. 0.8 0.6 0.4 0. 4 6 8 0 4 6 8 0 3

Another Example let f be a box function defined on [ π,π] as follows f(x) = 0 if x >. if x. This function contains two discontinuities. We have arranged for this function to be an even function, so that its Fourier series is of the form f(x) = a 0 + Σ n = a n cos nx. Computing the a n is easy to do by hand if we simply observe that f is nonzero only over [,+]. Thus a n = π + f(x) cos nx, n = 0,,,... = π = + cos nx sin nx nπ + = sin n. nπ %

Observe that sin n / n as n 0. Our Fourier series is therefore f(x) = π ( + Σ n = sin n cos nx ). n Four terms:. 0.8 0.6 0.4 0. x 0-3 - - 3 5

0 terms: 0.8 0.6 0.4 0. x 0-3 - - 3 50 terms: 0.8 0.6 0.4 0. x 0-3 - - 3 6

The Fourier Transform The Fourier transform of a function f(x) is defined as F(ω) = + f(x) e iωx dx, and the inverse Fourier transform of F(ω) is where i =. f(x) = π + F(ω) e iωx dω, F is the spectrum of f. When f is even or odd, the Fourier transform reduces to the cosine or sine transform: F c (ω) = + π 0 f(x) cos ωx dx. F s (ω) = + π 0 f(x) sin ωx dx. These latter two functions can be directly related to the a n and b n terms in a Fourier series. 7

Example: a line again Let f(x) be x when x [ π,π] and is zero outside this interval. f odd f. cos is odd, and so F c (ω) = 0. On the other hand, F s (ω) = + π 0 x sin ωx dx = x = π sin xω xωcos xω πω x = 0 = sin πω πωcos πω πω. 8

.5.5 0.5 0-0.5 5 0 w 5 0 - Compare to Fourier series "spectrum"..5 0.5 0 4 6 8 0 4 6 8 0-0.5-9

Yet another example: a box again box(x) =! "# 0 if x >. if x. Then F(ω) = + box(x) e iωx dx = e iωx dx = i e iωx x = $$ $ $ $ $ ω x = = i e iω %&% % % % ω i e iω ' ' ' '. ω Recalling that e iω = cos ω isin ω, the cosine terms cancel out, and since i =, F(ω) = ()( ( ( ( sin ω ω = sinc(ω). 0

So, FT(box) = sinc, and the reverse is true too.. Furthermore, if box k (x) = * +, 0 if x > k. if x k. Then it is easy to see that F(ω) = -- - - - - - - sin (kω). ω 4 *sin(*w)/w 3 *sin(w)/w -5-0 -5 0 5 0 5 w

Important Theorems Suppose F(ω) = FT(f ) and G(ω) = FT(g) are the spectra (i.e., Fourier transforms) of f and g, respectively, assuming they exist. The convolution theorem states that FT(f *g) = F G. In other words, convolution in spatial domain is equivalent to multiplication in frequency domain. The analogous theorem called the modulation theorem expresses the duality of the converse operations: FT(f g) = π... (F*G). We therefore have a duality: multiplication of functions in one domain is equivalent under the Fourier transform to convolution in the other.

A low-pass filter h is one that, under a convolution with any function f, admits only the frequencies of f that fall within a specific bandwidth (i.e., frequency interval) [ ω h, ω h ]. What must the shape of h be in frequency domain? I.e., what is FT(h)? What must the shape of h be in spatial domain? There is only one ideal (family of) low-pass filter for -D signals. How many classes of ideal low-pass filters are there in -D? 3

The only ideal low-pass filter is a sinc in spatial domain or box in frequency domain. sinc signal ω filtered signal The effect, in frequency domain, of spatial filtering using a sinc filter. ω 4

The Sampling Theorem Revisited Let f(t) be a band-limited signal. Specifically, let the spectrum F(ω) of f(t) be such that F(ω) = 0 for ω > ω m, for some maximum frequency ω m > 0. Let t be the spacing at which we take samples of f(t). Furthermore, we define the circular sampling rate ω s as ω s = / / / π. t Then f(t) can be uniquely represented by a sequence of samples f(i t), i Z if ω s > ω m. I.e., our sampling rate must exceed twice the maximum frequency of the function. 5

Important Fact : f(x) *δ(x a) = f(x a). Convolution with δ creates a copy of f shifted by a units. Important Fact : Let δ ε (x) denote a box of half-width ε and of area one centred at position x = 0. Let f(x) be a function that is smooth around [ ε,+ε]. Then f(x) δ ε (x) f(0) δ ε (x). As ε 0, δ ε (x) δ(x), f(x) δ(x) f(0) δ(x). This multiplication, has the effect of sampling f at x = 0. More generally, f(x) δ(x a) f(a) δ(x a), for an arbitrary a R. Thus outside of an integral sign, δ works as a sampling operator. 6

Sampling Train Visualise an infinite sequence of impulses or δ-functions, with one impulse placed at each sampling position i T as in δ ( i t)... t... We can define this sampling train or comb of impulses as s(t) = + Σ i = δ(t i t). The summation can be thought of the glue that holds a sequence of impulses together, and because t > 0, the impulses are spaced so that they do not overlap. 7

Sampling Operation We saw that we could effectively sample a function f at a any desired position a by placing a δ-function at a and multiplying it with f. Therefore, multiplying f with s takes samples of f at our desired positions: f s = f s = + Σ i = f(i t) δ(t i t). This new train of scaled impulses is: f... t... δ ( i t) f 8

Basic Argument Suppose f and s have spectra F and S, respectively. Since f s is a product of two functions f and s, then the modulation theorem states that its Fourier transform is a convolution: FT(f s ) = F s (ω) = π 0 0 0 F(ω) * S(ω). For our purposes f, and therefore F, is an arbitrary function. However, we can compute the spectrum of s. It indeed turns out that the spectrum of a train of impulses of spacing t is another train of impulses in frequency domain with spacing π/ t, which we defined above to be ω s. Formally, FT(s) = S(ω) = π t + Σ k = δ(ω kω s ). We can put this back into our expression for F s : F s = π F(ω) * S(ω) = 3 3 3. 4 4 4 π F(ω) * π t ( + Σ k = δ(ω kω s ) ) = 565 5 t + Σ k = F(ω kω s ). %

The Argument as a Picture F - ω m 0 ω m ω - ωs 0 ω s ω - ω - ω s m 0 ω m ωs - ωs ω m We need to prevent overlap of the spectra, for otherwise we d have no hope of extracting a single spectrum. Therefore, This implies that ω m < ω s ω m. ω s > ω m, which establishes the theorem. 0

How do we get the signal back to the real world? - ω - ω s m 0 ω m ω s We use a box filter in frequency domain to extract one copy of the spectrum of F from F s : F(ω) = F s (ω) B(ω), and by the convolution theorem, we can reconstruct f by convolution: f(t) = f s (t) * sinc B (t), where sinc B (t) is the inverse Fourier transform of B. Exercise: Suppose our box B is to have width ω b and height t. Then show that sinc B (t) = 787 7 7 7 tω b sinc 9:9 9 9 ω b t ( ). π π So a sinc is both an ideal low-pass filter AND an ideal reconstruction function (i.e., interpolant).

; < = Analytic Filtering One possibility: to filter a signal s with a filter f, rather than compute a convolution, we instead: compute Fourier transforms S and F. compute SF. take the inverse Fourier transform. Sometimes this even works! # # Analytic filtering of signal s with filter f in # frequency domain. # filter := proc(s,f,x) local S,F,SF,sf,w; S := evalc(fourier(s,x,w)); F := evalc(fourier(f,x,w)): SF := S*F: # NOTE: regular multiplication sf := evalc(invfourier(sf,w,x)); end:

Analytically Filtering a Polynomial > p; (x-) (x-.5) (x-) (x-.5) x (x+.5) (x+) (x+.5) (x+) > sort(expand(p),x); 9 7 5 3 x - 7.50 x + 7.065 x -.85 x +.500 x We can filter p as in the following Maple session. > Digits := 5: # keep output size manageable > gauss := /(sqrt(*pi)*s)*exp(-xˆ/(*sˆ)): > pg := filter(p,gauss,x): > collect(sort(collect(pg,x),s),pi); # make output more readabl 9 (3.46 x 7 4 5 + (3.0 s - 3.56) x + (53.605 + 87.5 s - 494.80 s ) x 6 4 3 + (536.05 s - 40.5 + 3958.4 s - 474.0 s ) x 6 4 8 + (7.0685-0.76 s - 474.0 s + 804.0 s + 968.8 s ) x)/pi 3

Graphically, varying the standard deviation.5 0.5-0 -0.5 - -.5 4

Summary If we know that a signal is bandlimited (and we know what that limit is), then we have a lower bound for the minimum sampling density. If the signal is not bandlimited, we can prefilter it into one that is. Then we can compute the right sampling rate. But Is It Practical? In a word, mostly no, sometimes yes, and occasionally, maybe. 5