660 likes | 1.31k Views
(Re)Introduction to Integral Transforms: Fourier and Laplace. COMP417 Instructor: Philippe Giguère. Outline. Transforms in context of problem solving Convolution Dirac delta function d (t) Fourier Transform Sampling Laplace Transform. Why use Transforms ?.
E N D
(Re)Introduction to Integral Transforms:Fourier and Laplace COMP417 Instructor: Philippe Giguère
Outline • Transforms in context of problem solving • Convolution • Dirac delta function d(t) • Fourier Transform • Sampling • Laplace Transform
Why use Transforms? • Transforms are not simply math curiosity sketched at the corner of a woodstove by ol’ Frenchmen. • Way to reframe a problem in a way that makes it easier to understand, analyze and solve.
General Scheme using Transforms Problem Solution of the equation Result Equation of the problem Transformation Inverse transformation = EASY Transformed equation Solution of the transformed equation = HARD
Typical Problem • Given an input signal x(t), what is the output signal y(t) after going through the system? • To solve it in the time domain(t) is cumbersome!
Integrating Differential Equation? • Let’s have a simple first order low-pass filter with resistor R and capacitor C: • The system is described by diff. eq.: • To find a solution, we can integrate. Ugh!
Convolution • Math operator (symbol *) that takes two input functions (x(t) and h(t)) and produces a third (y(t)) • Expresses the amount of overlap of one function x(t) as it is shifted over another function h(t). • Way of « blending » one function with another.
“Frame-by-frame” convolution • Can be visualized as flipping one function (x), sliding it, and doing the dot product. movie
More convolution examples Smoothing
Convolution is heavily used in image processing (Gaussian Blur in 2D) = *
Convolution with Dirac delta d(t) • Convolving a signal with Dirac delta d(t) simply yields the same signal. movie
Delay operator as convolutionwith d(t-t) • Convolving with a shifted delta d(t-t) shifts the original signal: delay. movie
Convolution Properties • Convolution is a linear operation and therefore has the typical linear properties: • Commutativity • Associativity • Distributivity • Scalar multiplication
Using Convolution to Solve • Again same first order low-pass filter: • The system is described by its impulse response: • Solution is convolution impulse resp. with x(t)
Use a Convolution to Solve • Convolution is expensive to compute. • Little intuition about output signal y(t).
Fourier Transform • Jean-Baptiste Fourier had crazy idea (1807): • Any periodic function can be rewritten as a weighted sum of sines and cosines of different frequencies. • Called Fourier Series
FT expands this idea • Take any signal (periodic and non-periodic) in time domain and decompose it in sines + cosines to have a representation in the frequency domain.
FT: Formal Definition • Convention: Upper-case to describe transformed variables: • Transform: F{ x(t) } = X(w) or X(f) (w=2pf) • Inverse: F-1{Y(w) orY(f)}= y(t)
FT gives complex numbers • You get complex numbers • Cosine coefficients are real • Sine coefficients are imaginary
Complex plane • Complex number can be represented: • Combination of real + imaginary value: x +iy • Amplitude + Phase A and j
Alternative representation of FT • Complex numbers can be represented also as amplitude + phase.
Example Fourier Transform Fast moving vs slow moving signals
Example Fourier Transform Time Domain t Frequency Domain w Real Real Real
Example Fourier Transform Note: FT is imaginary for sine
Example Fourier Transform Time Domain t Frequency Domain w Real Real « DC component »
FT of Delay d(t-t) • Amplitude + phase is easier to understand: (click movie) • Amplitude: • Gives you information about frequencies/tones in a signal. • Phase: • More about when it happens in time.
Important FT Properties • Addition • Scalar Multiplication • Convolution in time t • Convolution in frequency w
FT: Reframing the problem in Frequency Domain * Problem Solution of the equation Result x(t),h(t) Fourier Transform Inverse Fourier Transform = EASY X(w), H(w) X(w)H(w) x = HARD Completely sidesteps the convolution!
FT: Another Example What is the amplitude spectrum |Y(f)| of a voice signal (bandlimited to 5 kHz) when multiplied by a cosine f=15 kHz? (Note: this is Amplitude Modulation AM radio)
FT: Solution (Look Ma! No Algebra!)
FT Gaussian Blur = * Space Frequency
Sampling Theorem • In order to be used within a digital system, a continuous signal must be converted into a stream of values. • Done by sampling the continuous signal at regular intervals. • But at which interval?
Sampling Theorem • Sampling can be thought of multiplying a signal by a d pulse train:
Aliasing • If sampling rate is too small compared with frequency of signal, aliasing WILL occur:
Fourier Analysis of Sampling • The FT of a pulse train with frequency fs is another pulse train with interval 1/fs:
Fourier Analysis of Sampling • Aliasing will happen if fs <2 fmax • Nyquist frequency = fs/2
A few sampling frequencies • Telephone systems: 8 kHz • CD music: 44.1 kHz • DVD-audio: 96 or 192 kHz • Aqua robot: 1 kHz • Digital Thermostat (HMTD84) : 0.2 Hz
Laplace Transform • Formal definition: • Compare this to FT: • Small differences: • Integral from 0 to ¥to for Laplace • f(t) for t<0 is not taken into account • -s instead of -iw
Common Laplace Transfom Name f(t) F(s) Impulse d 1 Step Ramp Exponential Sine Damped Sine
Laplace Transform Properties • Similar to Fourier transform: • Addition/Scaling • Convolution • Derivation
Transfer Function H(s) • Definition • H(s) = Y(s) / X(s) • Relates the output of a linear system (or component) to its input. • Describes how a linear system responds to an impulse. • All linear operations allowed • Scaling, addition, multiplication. H(s) X(s) Y(s)