Function approximation: Fourier, Chebyshev, Lagrange

Slides:



Advertisements
Similar presentations
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Response to a Sinusoidal Input Frequency Analysis of an RC Circuit.
Advertisements

Engineering Mathematics Class #15 Fourier Series, Integrals, and Transforms (Part 3) Sheng-Fang Huang.
Signal Spaces.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
Finite element method – basis functions 1 Finite Elements: Basis functions 1-D elements  coordinate transformation  1-D elements  linear basis functions.
Properties of continuous Fourier Transforms
EE-2027 SaS 06-07, L11 1/12 Lecture 11: Fourier Transform Properties and Examples 3. Basis functions (3 lectures): Concept of basis function. Fourier series.
MSP15 The Fourier Transform (cont’) Lim, MSP16 The Fourier Series Expansion Suppose g(t) is a transient function that is zero outside the interval.
Image Enhancement in the Frequency Domain Part I Image Enhancement in the Frequency Domain Part I Dr. Samir H. Abdul-Jauwad Electrical Engineering Department.
Curve-Fitting Polynomial Interpolation
Lecture 8: Fourier Series and Fourier Transform
Basic Concepts and Definitions Vector and Function Space. A finite or an infinite dimensional linear vector/function space described with set of non-unique.
Some Properties of the 2-D Fourier Transform Translation Distributivity and Scaling Rotation Periodicity and Conjugate Symmetry Separability Convolution.
Lecture 9: Fourier Transform Properties and Examples
6 6.3 © 2012 Pearson Education, Inc. Orthogonality and Least Squares ORTHOGONAL PROJECTIONS.
Chapter 4 The Fourier Series and Fourier Transform
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
Boyce/DiPrima 10th ed, Ch 10.2: Fourier Series Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and Richard.
Chapter 4 The Fourier Series and Fourier Transform.
Spectral analysis: Foundations
Quantum One: Lecture 8. Continuously Indexed Basis Sets.
Finite element method 1 Finite Elements  Basic formulation  Basis functions  Stiffness matrix  Poisson‘s equation  Regular grid  Boundary conditions.
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 10: Boundary Value Problems and Sturm– Liouville.
Pseudospectral Methods
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
Computational Methods in Physics PHYS 3437 Dr Rob Thacker Dept of Astronomy & Physics (MM-301C)
Orthogonal Functions Numerical Methods in Geophysics Function Approximation The Problem we are trying to approximate a function f(x) by another function.
1 Review of Fourier series Let S P be the space of all continuous periodic functions of a period P. We’ll also define an inner (scalar) product by where.
difficult if we consider Didn’t you say it’s a very
Chapter 7: The Fourier Transform 7.1 Introduction
Fourier Series. Introduction Decompose a periodic input signal into primitive periodic components. A periodic sequence T2T3T t f(t)f(t)
Fourier TheoryModern Seismology – Data processing and inversion 1 Fourier Series and Transforms Orthogonal functions Fourier Series Discrete Fourier Series.
1. Interpolating polynomials Polynomial of degree n,, is a linear combination of Definitions: (interval, continuous function, abscissas, and polynomial)
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
Fundamentals of Electric Circuits Chapter 18 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Spatial Frequencies Spatial Frequencies. Why are Spatial Frequencies important? Efficient data representation Provides a means for modeling and removing.
Fourier Analysis of Discrete Time Signals
Orthogonal Functions and Fourier Series
Astronomical Data Analysis I
5.0 Discrete-time Fourier Transform 5.1 Discrete-time Fourier Transform Representation for discrete-time signals Chapters 3, 4, 5 Chap 3 Periodic Fourier.
7- 1 Chapter 7: Fourier Analysis Fourier analysis = Series + Transform ◎ Fourier Series -- A periodic (T) function f(x) can be written as the sum of sines.
Fourier series, Discrete Time Fourier Transform and Characteristic functions.
Fourier Transform.
11 Lecture 2 Signals and Systems (II) Principles of Communications Fall 2008 NCTU EE Tzu-Hsien Sang.
 Introduction to reciprocal space
Fourier Approximation Related Matters Concerning Fourier Series.
1 Roadmap SignalSystem Input Signal Output Signal characteristics Given input and system information, solve for the response Solving differential equation.
Frequency domain analysis and Fourier Transform
Runge Kutta schemes Taylor series method Numeric solutions of ordinary differential equations.
Ch # 11 Fourier Series, Integrals, and Transform 1.
بسم الله الرحمن الرحيم University of Khartoum Department of Electrical and Electronic Engineering Third Year – 2015 Dr. Iman AbuelMaaly Abdelrahman
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
Math for CS Fourier Transforms
Math for CS Fourier Transform
Convergence of Fourier series It is known that a periodic signal x(t) has a Fourier series representation if it satisfies the following Dirichlet conditions:
Continuous-time Fourier Series Prof. Siripong Potisuk.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Boyce/DiPrima 10th ed, Ch 10.4: Even and Odd Functions Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce.
Ch 10.4: Even and Odd Functions
Week 5 The Fourier series and transformation
Lecture 1.26 Spectral analysis of periodic and non-periodic signals.
UNIT II Analysis of Continuous Time signal
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
Chapter 8 The Discrete Fourier Transform
Notes Assignments Tutorial problems
Fundamentals of Electric Circuits Chapter 18
Signals & Systems (CNET - 221) Chapter-5 Fourier Transform
Chapter 8 The Discrete Fourier Transform
Approximation of Functions
Presentation transcript:

Function approximation: Fourier, Chebyshev, Lagrange Orthogonal functions Fourier Series Discrete Fourier Series Fourier Transform: properties Chebyshev polynomials Convolution DFT and FFT Scope: Understanding where the Fourier Transform comes from. Moving from the continuous to the discrete world. The concepts are the basis for pseudospectral methods and the spectral element approach.

Fourier Series: one way to derive them The Problem we are trying to approximate a function f(x) by another function gn(x) which consists of a sum over N orthogonal functions F(x) weighted by some coefficients an.

The Problem ... and we are looking for optimal functions in a least squares (l2) sense ... ... a good choice for the basis functions F(x) are orthogonal functions. What are orthogonal functions? Two functions f and g are said to be orthogonal in the interval [a,b] if How is this related to the more conceivable concept of orthogonal vectors? Let us look at the original definition of integrals:

... where x0=a and xN=b, and xi-xi-1=x ... Orthogonal Functions ... where x0=a and xN=b, and xi-xi-1=x ... If we interpret f(xi) and g(xi) as the ith components of an N component vector, then this sum corresponds directly to a scalar product of vectors. The vanishing of the scalar product is the condition for orthogonality of vectors (or functions). gi fi

Let us assume we have a piecewise continuous function of the form Periodic functions Let us assume we have a piecewise continuous function of the form ... we want to approximate this function with a linear combination of 2 periodic functions:

Orthogonality ... are these functions orthogonal ? ... YES, and these relations are valid for any interval of length 2. Now we know that this is an orthogonal basis, but how can we obtain the coefficients for the basis functions? from minimising f(x)-g(x)

Fourier coefficients optimal functions g(x) are given if ... with the definition of g(x) we get ... leading to

Fourier approximation of |x| ... Example ... leads to the Fourier Serie .. and for n<4 g(x) looks like

Fourier approximation of x2 ... another Example ... leads to the Fourier Serie .. and for N<11, g(x) looks like

Fourier - discrete functions ... what happens if we know our function f(x) only at the points it turns out that in this particular case the coefficients are given by .. the so-defined Fourier polynomial is the unique interpolating function to the function f(xj) with N=2m

Fourier - collocation points ... with the important property that ... ... in our previous examples ... f(x)=|x| => f(x) - blue ; g(x) - red; xi - ‘+’

Fourier series - convergence f(x)=x2 => f(x) - blue ; g(x) - red; xi - ‘+’

Fourier series - convergence f(x)=x2 => f(x) - blue ; g(x) - red; xi - ‘+’

f(x)=x2 => f(x) - blue ; g(x) - red; xi - ‘+’ Gibb’s phenomenon f(x)=x2 => f(x) - blue ; g(x) - red; xi - ‘+’ The overshoot for equi-spaced Fourier interpolations is 14% of the step height.

Chebyshev polynomials We have seen that Fourier series are excellent for interpolating (and differentiating) periodic functions defined on a regularly spaced grid. In many circumstances physical phenomena which are not periodic (in space) and occur in a limited area. This quest leads to the use of Chebyshev polynomials. We depart by observing that cos(n) can be expressed by a polynomial in cos(): ... which leads us to the definition:

Chebyshev polynomials - definition ... for the Chebyshev polynomials Tn(x). Note that because of x=cos() they are defined in the interval [-1,1] (which - however - can be extended to ). The first polynomials are

Chebyshev polynomials - Graphical The first ten polynomials look like [0, -1] The n-th polynomial has extrema with values 1 or -1 at

Chebyshev collocation points These extrema are not equidistant (like the Fourier extrema) k x(k)

Chebyshev polynomials - orthogonality ... are the Chebyshev polynomials orthogonal? Chebyshev polynomials are an orthogonal set of functions in the interval [-1,1] with respect to the weight function such that ... this can be easily verified noting that

Chebyshev polynomials - interpolation ... we are now faced with the same problem as with the Fourier series. We want to approximate a function f(x), this time not a periodical function but a function which is defined between [-1,1]. We are looking for gn(x) ... and we are faced with the problem, how we can determine the coefficients ck. Again we obtain this by finding the extremum (minimum)

Chebyshev polynomials - interpolation ... to obtain ... ... surprisingly these coefficients can be calculated with FFT techniques, noting that ... and the fact that f(cos) is a 2-periodic function ... ... which means that the coefficients ck are the Fourier coefficients ak of the periodic function F()=f(cos )!

Chebyshev - discrete functions ... what happens if we know our function f(x) only at the points in this particular case the coefficients are given by ... leading to the polynomial ... ... with the property

Chebyshev - collocation points - |x| f(x)=|x| => f(x) - blue ; gn(x) - red; xi - ‘+’ 8 points 16 points

Chebyshev - collocation points - |x| f(x)=|x| => f(x) - blue ; gn(x) - red; xi - ‘+’ 32 points 128 points

Chebyshev - collocation points - x2 f(x)=x2 => f(x) - blue ; gn(x) - red; xi - ‘+’ 8 points The interpolating function gn(x) was shifted by a small amount to be visible at all! 64 points

Chebyshev vs. Fourier - numerical f(x)=x2 => f(x) - blue ; gN(x) - red; xi - ‘+’ This graph speaks for itself ! Gibb’s phenomenon with Chebyshev?

Chebyshev vs. Fourier - Gibb’s f(x)=sign(x-) => f(x) - blue ; gN(x) - red; xi - ‘+’ Gibb’s phenomenon with Chebyshev? YES!

Chebyshev vs. Fourier - Gibb’s f(x)=sign(x-) => f(x) - blue ; gN(x) - red; xi - ‘+’

interpolating function Fourier vs. Chebyshev Fourier Chebyshev collocation points periodic functions limited area [-1,1] domain basis functions interpolating function

Fourier vs. Chebyshev (cont’d) coefficients Gibb’s phenomenon for discontinuous functions Efficient calculation via FFT infinite domain through periodicity limited area calculations grid densification at boundaries coefficients via FFT excellent convergence at boundaries Gibb’s phenomenon some properties

The Fourier Transform Pair Forward transform Inverse transform Note the conventions concerning the sign of the exponents and the factor.

Some properties of the Fourier Transform Defining as the FT: Linearity Symmetry Time shifting Time differentiation

Differentiation theorem Time differentiation

Convolution The convolution operation is at the heart of linear systems. Definition: Properties: H(t) is the Heaviside function:

The convolution theorem A convolution in the time domain corresponds to a multiplication in the frequency domain. … and vice versa … a convolution in the frequency domain corresponds to a multiplication in the time domain The first relation is of tremendous practical implication!

Summary The Fourier Transform can be derived from the problem of approximating an arbitrary function. A regular set of points allows exact interpolation (or derivation) of arbitrary functions There are other basis functions (e.g., Chebyshev polynomials, Legendre polynomials) with similar properties These properties are the basis for the success of the spectral element method