Math 45, Linear Algebra 1/58. Fourier Series. The Professor and The Sauceman. College of the Redwoods

Similar documents
Math Computer Lab 4 : Fourier Series

Ma 221 Eigenvalues and Fourier Series

Math 3150 HW 3 Solutions

Fourier Series and the Discrete Fourier Expansion

Exercise 11. Isao Sasano

22. Periodic Functions and Fourier Series

MATH 5640: Fourier Series

MATH 124B: HOMEWORK 2

Periodic functions: simple harmonic oscillator

14 Fourier analysis. Read: Boas Ch. 7.

Tutorial 6 - MUB and Complex Inner Product

Analysis II: Fourier Series

Convergence of Fourier Series

Math 489AB A Very Brief Intro to Fourier Series Fall 2008

Math 115 ( ) Yum-Tong Siu 1. Derivation of the Poisson Kernel by Fourier Series and Convolution

Weighted SS(E) = w 2 1( y 1 y1) y n. w n. Wy W y 2 = Wy WAx 2. WAx = Wy. (WA) T WAx = (WA) T b

Inner products. Theorem (basic properties): Given vectors u, v, w in an inner product space V, and a scalar k, the following properties hold:

Functional Analysis Exercise Class

Fourier Series. 1. Review of Linear Algebra

Math 261 Lecture Notes: Sections 6.1, 6.2, 6.3 and 6.4 Orthogonal Sets and Projections

Vectors in Function Spaces

10.2-3: Fourier Series.

Lecture 1.4: Inner products and orthogonality

f xx g dx, (5) The point (i) is straightforward. Let us check the point (ii). Doing the integral by parts, we get 1 f g xx dx = f g x 1 0 f xg x dx =

University of Leeds, School of Mathematics MATH 3181 Inner product and metric spaces, Solutions 1

Fourier Series. Department of Mathematical and Statistical Sciences University of Alberta

multiply both sides of eq. by a and projection overlap

Topics in Fourier analysis - Lecture 2.

Fourier Analysis PSY 310 Greg Francis. Lecture 08. Representation of information

2.12: Derivatives of Exp/Log (cont d) and 2.15: Antiderivatives and Initial Value Problems

Maths 381 The First Midterm Solutions

Computer Problems for Fourier Series and Transforms

Overview of Fourier Series (Sect. 6.2). Origins of the Fourier Series.

General Inner Product and The Fourier Series

Linear Algebra. Paul Yiu. Department of Mathematics Florida Atlantic University. Fall A: Inner products

Further Mathematical Methods (Linear Algebra) 2002

This is a closed everything exam, except for a 3x5 card with notes. Please put away all books, calculators and other portable electronic devices.

Fourier series

which arises when we compute the orthogonal projection of a vector y in a subspace with an orthogonal basis. Hence assume that P y = A ij = x j, x i

Lecture 10: Vector Algebra: Orthogonal Basis

Week 6 Lectures, Math 6451, Tanveer

Physics 342 Lecture 2. Linear Algebra I. Lecture 2. Physics 342 Quantum Mechanics I

Fourier and Partial Differential Equations

APPLIED MATHEMATICS Part 4: Fourier Analysis

Physics 342 Lecture 2. Linear Algebra I. Lecture 2. Physics 342 Quantum Mechanics I

Worksheet 7, Math 10560

Name: ANSWER KEY Math 155B Test 3, Thurs 3 Nov 2011, 4 pages, 50 points, 75 minutes.

This is a closed book exam. No notes or calculators are permitted. We will drop your lowest scoring question for you.

Math 121A: Homework 6 solutions

i x i y i

Advanced Computational Fluid Dynamics AA215A Lecture 2 Approximation Theory. Antony Jameson

Lecture 1: Interpolation and approximation

Ma 221 Final Exam Solutions 5/14/13

Coordinate Systems. Recall that a basis for a vector space, V, is a set of vectors in V that is linearly independent and spans V.

Physics 250 Green s functions for ordinary differential equations

Lecture 16: Bessel s Inequality, Parseval s Theorem, Energy convergence

Analytic Trigonometry. Copyright Cengage Learning. All rights reserved.

Introduction Derivation General formula Example 1 List of series Convergence Applications Test SERIES 4 INU0114/514 (MATHS 1)

Methods of Mathematical Physics X1 Homework 3 Solutions

MET 4301 LECTURE SEP17

Applied Calculus. Review Problems for the Final Exam

Completeness, Eigenvalues, and the Calculus of Variations

Linear Algebra, Summer 2011, pt. 3

Lecture 10. (2) Functions of two variables. Partial derivatives. Dan Nichols February 27, 2018

Recall: Dot product on R 2 : u v = (u 1, u 2 ) (v 1, v 2 ) = u 1 v 1 + u 2 v 2, u u = u u 2 2 = u 2. Geometric Meaning:

General Inner Product & Fourier Series

Friday 09/15/2017 Midterm I 50 minutes

A glimpse of Fourier analysis

Unit S Student Success Sheet (SSS) Trigonometric Identities Part 3 (section 5.5)

Fourier series A periodic function f(x) with period T = 2π can be represented by a Fourier series: sinnx dx = sinnxsinmx dx =

0 3 x < x < 5. By continuing in this fashion, and drawing a graph, it can be seen that T = 2.

MATH 1231 S2 2010: Calculus. Section 2: Techniques of integration.

PSY 310: Sensory and Perceptual Processes 1

Course 2BA1, Section 11: Periodic Functions and Fourier Series

where the bar indicates complex conjugation. Note that this implies that, from Property 2, x,αy = α x,y, x,y X, α C.

Revision Materials. Functions, Quadratics & Polynomials Skills Builder

d 1 µ 2 Θ = 0. (4.1) consider first the case of m = 0 where there is no azimuthal dependence on the angle φ.

PHYS 502 Lecture 3: Fourier Series

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

Quantitative Understanding in Biology Fourier Analysis and Signal Processing

Introduction Derivation General formula List of series Convergence Applications Test SERIES 4 INU0114/514 (MATHS 1)

Recall that any inner product space V has an associated norm defined by

Math (P)Review Part I:

Review Sol. of More Long Answer Questions

Math Lecture 36

Last Update: April 4, 2011

MATH 304 Linear Algebra Lecture 20: The Gram-Schmidt process (continued). Eigenvalues and eigenvectors.

SESSION 6 Trig. Equations and Identities. Math 30-1 R 3. (Revisit, Review and Revive)

MTH 2310, FALL Introduction

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

Fourier Analysis. David-Alexander Robinson ; Daniel Tanner; Jack Denning th October Abstract 2. 2 Introduction & Theory 2

First Order Differential Equations and Applications

Practice Exercises on Differential Equations

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

Math 54: Mock Final. December 11, y y 2y = cos(x) sin(2x). The auxiliary equation for the corresponding homogeneous problem is

Honors Advanced Algebra Unit 3: Polynomial Functions November 9, 2016 Task 11: Characteristics of Polynomial Functions

MAT137 Calculus! Lecture 6

MATH 167: APPLIED LINEAR ALGEBRA Chapter 3

The Gram-Schmidt Process 1

HOMEWORK PROBLEMS FROM STRANG S LINEAR ALGEBRA AND ITS APPLICATIONS (4TH EDITION)

Transcription:

Math 45, Linear Algebra /58 Fourier Series The Professor and The Sauceman College of the Redwoods e-mail: thejigman@yahoo.com

Objectives To show that the vector space containing all continuous functions is an innerproduct space. 2/58

Objectives To show that the vector space containing all continuous functions is an innerproduct space. Show that the set 3/58 {, sin x, cos x, sin 2x, cos 2x,, sin nx, cos nx, } are mutually orthogonal on the vector space C[0, 2π].

Objectives To show that the vector space containing all continuous functions is an innerproduct space. Show that the set 4/58 {, sin x, cos x, sin 2x, cos 2x,, sin nx, cos nx, } are mutually orthogonal on the vector space C[0, 2π]. Create an orthonormal set by dividing each element by its magnitude.

Objectives To show that the vector space containing all continuous functions is an innerproduct space. Show that the set 5/58 {, sin x, cos x, sin 2x, cos 2x,, sin nx, cos nx, } are mutually orthogonal on the vector space C[0, 2π]. Create an orthonormal set by dividing each element by its magnitude. To mathematically derive the Fourier Series as a projection.

Objectives To show that the vector space containing all continuous functions is an innerproduct space. Show that the set 6/58 {, sin x, cos x, sin 2x, cos 2x,, sin nx, cos nx, } are mutually orthogonal on the vector space C[0, 2π]. Create an orthonormal set by dividing each element by its magnitude. To mathematically derive the Fourier Series as a projection. An Example: Project a function onto the space spanned by our orthonormal set.

The Vector Spaces A 3 dimensional vector lives in the vector space R 3. Usually this is what we deal with in linear algebra, that or R 4, R n, etc. z 7/58 R 3 v y x

All continuous functions also live in a vector space. On the interval from a to b, that space is notated as C[a,b]. y f 8/58 g a C[a, b] b x It would be easy to show that the ten properties of a vector space are satisfied by this space. For any vectors f and g in C[a,b], the inner product is notated as < f, g > and is defined to be b a f(x)g(x)dx.

For C[a,b] to to be an inner product space, in addition to satisfying the ten properties of a vector space, < f, g > must satisfy the following conditions of inner products:. < f, f > 0 2. < f, f > = 0 if and only if f = 0 3. < f, g > = < g, f > 4. < αf, g > = < f, αg >= α < f, g > 5. < f, g + h > = < f, g > + < f, h > By using the definition of an inner product, < f, g > = b a f(x)g(x)dx, each of these can be easily shown. 9/58

Orthogonal is Good {, cos x, sin x, cos 2x, sin 2x, cos 3x, sin 3x, } 0/58 For this set to be orthogonal in C[0,2π], every single term must be orthogonal to every other one in that space. They certainly don t look orthogonal, or at least not orthogonal as we are used to.

The Orthogonal Set y axis 0.8 0.6 0.4 0.2 0 0.2 0.4 0.6 0.8 f(x)= f(x)=cos(x) f(x)=sin(x) f(x)=cos(2x) f(x)=sin(2x) f(x)=cos(3x) f(x)=sin(3x) 0 2 3 4 5 6 x axis /58 However, if the inner product of any two of the functions is zero, the set is indeed orthogonal.

By evaluating the following three inner products, we can prove that it is an orthogonal set.. < sin nx, sin mx >= 0, for n m 2. < sin nx, cos mx >= 0 3. < cos nx, cos mx >= 0, for n m 2/58 Note that by choosing the appropriate values for n and m, the inner product of any two terms in our set can be given by inner product, 2, or 3.

Working out these inner products is quite involved, involving integrals with nasty trigonometric identities. Here is the middle one worked out: < sin nx, cos mx >= = = 2 = 2 2π = 2 0 2π 0 2π 0 sin nx cos mx dx [sin(nx mx) + sin(nx + mx)]dx 2 sin((n m)x)dx + 2 [ n m + [ 2 n + m ( ) cos((n m)x)dx 2π 0 ] 2π cos((n + m)x)dx 0 sin((n + m)x)dx ] 2π [cos((n m)2π) cos((n m)0)] n m ( ) [cos((n + m)2π) cos((n + m)0)] 2 n + m 0 3/58

< sin nx, cos mx > = 2 = 0. ( ) [ ] ( ) [ ] n m 2 n + m 4/58 It turns out that no matter what the values of n and m, the inner product is zero, so the vectors are orthogonal. The other two inner products are evaluated similarly.

Orthonormal is Better 5/58

Orthonormal is Better To make the set orthonormal, calculate the magnitude of each vector in the set, and then divide by it. 6/58

Orthonormal is Better To make the set orthonormal, calculate the magnitude of each vector in the set, and then divide by it. First calculate the squared magnitude of each term by taking the inner product of each vector with itself. 7/58

Orthonormal is Better To make the set orthonormal, calculate the magnitude of each vector in the set, and then divide by it. First calculate the squared magnitude of each term by taking the inner product of each vector with itself. The magnitudes squared of all sine vectors can be calculated in one inner product, sin nx 2 =< sin nx, sin nx > = = π 2π 0 (sin nx) 2 dx 8/58

The square of the magnitude of the cosine functions can also be calculated with a single inner product, giving the same result as that of the sines: cos nx 2 =< cos nx, cos nx > = = π 2π 0 (cos nx) 2 dx 9/58

The square of the magnitude of the cosine functions can also be calculated with a single inner product, giving the same result as that of the sines: cos nx 2 =< cos nx, cos nx > = = π 2π 0 (cos nx) 2 dx The square of the magnitude of the vector, which is the first vector in the set, is different than the rest: 2 =<, > = 2π 0 = 2π 2 dx 20/58

Take the square roots of these values to get the magnitudes: Magnitude of sine terms: π Magnitude of cosine terms: π Magnitude of : 2π Now divide everything in {, cos x, sin x, cos 2x, sin 2x, cos 3x, } by its magnitude, and an orthonormal set results: { }, cos x, sin x, cos 2x, sin 2x,. 2π π π π π 2/58

Projecting a Function Onto the Space Spanned by the Orthonormal set When a vector lives outside a vector space, what vector within the space is closest to the outside vector? The answer to this is the projection of that vector onto the space. Using the vectors from our orthonormal set as the basis, we can form a space to project other functions onto. 22/58

This is a little abstract, so first consider what it would mean to project a 3 dimensional vector onto a space. b 23/58 p The projection of a function onto a space spanned by functions is the same idea, but graphically, it s quite different. First we ll show mathematically how to do it, then we ll give a graphical example.

The Math First form a matrix Q with orthonormal columns. Using the idea of least squares approximation, we will find that the projection of b onto the space spanned by Q gives the vector in the space closest to b. The formula for the projection onto the column space of Q is 24/58 p = Q(Q T Q) Q T b. Since Q is an orthogonal matrix, (Q T Q) = I. Thus, Continuing with our projection. p = QI Q T b = QQ T b.

p = [ ] q q 2 q 3 q n q T q T 2 q T 3. b. 25/58 q T n

p = [ ] q q 2 q 3 q 2n q T q T 2 q T 3. b. 26/58 q T n = (q q T + q 2 q T 2 + q 3 q T 3 + + q n q T n)b

p = [ ] q q 2 q 3 q n q T q T 2 q T 3. b. 27/58 q T n = (q q T + q 2 q T 2 + q 3 q T 3 + + q n q T n)b = q q T b + q n q T nb + q 3 q T 3 b + + q n q T nb

p = [ ] q q 2 q 3 q n q T q T 2 q T 3. b. 28/58 q T n = (q q T + q 2 q T 2 + q 3 q T 3 + + q n q T n)b = q q T b + q n q T nb + q 3 q T 3 b + + q n q T nb = q (q T b) + q 2 (q T 2 b) + q 3 (q T 3 b) + + q n (q T nb)

p = [ ] q q 2 q 3 q n q T q T 2 q T 3. q T n b. = (q q T + q 2 q T 2 + q 3 q T 3 + + q n q T n)b = q q T b + q n q T nb + q 3 q T 3 b + + q n q T nb = q (q T b) + q 2 (q T 2 b) + q 3 (q T 3 b) + + q n (q T nb) =< b, q > q + < b, q 2 > q 2 + < b, q 3 > q 3 + + < b, q n > q n Where < b, q k >= q T k b. 29/58

Similarly, because V = C[0, 2π] is an innerproduct space, the projection of f onto the space spanned by our orthonormal set is p =< f, > 2π 2π + < f, cos x > cos x+ < f, π π sin x > sin x π π 30/58 + + < f, π cos nx > π cos nx+ < f, π sin nx > π sin nx.

Similarly, because V = C[0, 2π] is an innerproduct space, the projection of f onto the space spanned by our orthonormal set is p =< f, > 2π 2π + < f, cos x > cos x+ < f, π π sin x > sin x π π 3/58 + + < f, π cos nx > π cos nx+ < f, π sin nx > π sin nx. Since all of the inner products produce constants, we label each innerproduct with an a k and a b k. p = a 0 + a cos x + b sin x + + a n cos nx + b n sin nx

The constants a 0, a, b,, a n, b n are the Fourier coefficients of f, and are given by a 0 =< f, a k =< f, b k =< f, 2π > = 2π 2π 2π 0 cos kx > = π π π sin kx > = π π π f(x)dx 2π 0 2π 0 f(x) cos kxdx f(x) sin kxdx. 32/58

The constants a 0, a, b,, a n, b n are the Fourier coefficients of f, and are given by a 0 =< f, a k =< f, b k =< f, 2π > = 2π 2π 2π 0 cos kx > = π π π sin kx > = π π π f(x)dx 2π 0 2π This projection of f onto the space spanned by {, 2π π cos x, π sin x,, is its Fourier series approximation. 0 π cos nx, f(x) cos kxdx f(x) sin kxdx. } sin nx π 33/58

The constants a 0, a, b,, a n, b n are the Fourier coefficients of f, and are given by a 0 =< f, a k =< f, b k =< f, 2π > = 2π 2π 2π 0 cos kx > = π π π sin kx > = π π π f(x)dx 2π 0 2π This projection of f onto the space spanned by {, cos x, sin x,, cos nx, 2π π π π is its Fourier series approximation. 0 f(x) cos kxdx f(x) sin kxdx. } sin nx π p = a 0 + a cos x + b sin x + a 2 cos 2x + b 2 sin 2x + + a n cos nx + b n sin nx. 34/58

A Graphical Example Now that we ve shown mathematically how to derive the Fourier Series, we ll take the function f(x) = x, and show its Fourier Series graphically. 35/58 Approximating y=x with Fourier 6 5 4 3 2 y=x 0 0 2 3 4 5 6

To begin with, we need to calculate the fourier coefficients for f(x) = x, a 0 = 2π a k = π b k = π 2π 0 2π 0 2π 0 xdx x cos kxdx x sin kxdx 36/58 Evaluating these integrals gives a 0 = π a k = 0 b k = 2 k. Because a k, the Fourier Coefficient associated with cosine, is 0 all of the cosine terms are removed.

Then the projection of f(x) = x onto the space spanned by our complete set becomes p = π 2 sin x sin 2x 2 3 sin 3x 2 sin 4x 2 5 sin 5x 37/58 If we only use the first four vectors in our set as the basis for the space we project onto, { } B =, cos x, sin x, cos 2x, 2π π π π we get the Fourier series with four terms, up through n = 3, p = π 2 sin x sin 2x 2 sin 3x. 3

Approximating y=x with Fourier 6 5 4 38/58 y axis 3 2 y=x Fourier Approximation with n=3 0 0 2 3 4 5 6 x axis Note that we are only dealing with the vector space C[0, 2π]. Outside of that space has nothing to do with the projection.

Now if we use the first 8 terms, up through n = 7, we get a function that looks even more like f. Approximating y=x with Fourier 6 39/58 5 4 y axis 3 2 y=x 0 Fourier Approximation with n=7 0 2 3 4 5 6 x axis

If the space we project onto has all the terms up through n = 50 as the basis, the projection looks almost identical to f. Approximating y=x with Fourier 6 40/58 y axis 5 4 3 2 0 y=x Fourier Approximation with n=50 0 2 3 4 5 6 x axis

As clearly seen from the graphs, the more terms we use for basis for the space we project onto, the more the similarity between f and its projection. In other words, the more terms we include in the fourier approximation, the better the approximation becomes. 4/58

Applications of the Fourier Series There are a wide range of application of Fourier Analysis within pure mathematics. Such subjects are: Finding the sum of a series Isoperimetric problems Differential Equations Statistics The prime number theorem 42/58

There are also applications within the field of physics. Some examples are: Quantum theory Lasers Electron Scattering Diffraction Telescopes Impedance 43/58

Some applications in Chemistry include: Mass spectrometry NMR spectroscopy Infra-red spectroscopy Visible light spectroscopy Crystallography 44/58

There even application in the life sciences. Some of which are: Vision Hearing Speech Analysis Morphogenesis Medical 45/58

The applications of Fourier Analysis extends to many areas of the sciences. Some miscellaneous applications are: Water Waves Turbulence in fluids Meteorology Glacier beds and roughness Seismology Vibration analysis Economics The list goes on and on. 46/58

Conclusion The vector space containing all continuous functions is an innerproduct space. 47/58

Conclusion The vector space containing all continuous functions is an innerproduct space. The set 48/58 {, sin x, cos x, sin 2x, cos 2x,, sin nx, cos nx, } are mutually orthogonal on the vector space C[0, 2π].

Conclusion The vector space containing all continuous functions is an innerproduct space. The set 49/58 {, sin x, cos x, sin 2x, cos 2x,, sin nx, cos nx, } are mutually orthogonal on the vector space C[0, 2π]. An orthonormal set is created by dividing each element by its magnitude.

Conclusion The vector space containing all continuous functions is an innerproduct space. The set 50/58 {, sin x, cos x, sin 2x, cos 2x,, sin nx, cos nx, } are mutually orthogonal on the vector space C[0, 2π]. An orthonormal set is created by dividing each element by its magnitude. The mathematical derivation of the Fourier Series is a projection.

Conclusion The vector space containing all continuous functions is an innerproduct space. The set 5/58 {, sin x, cos x, sin 2x, cos 2x,, sin nx, cos nx, } are mutually orthogonal on the vector space C[0, 2π]. An orthonormal set is created by dividing each element by its magnitude. The mathematical derivation of the Fourier Series is a projection. The graphical example shows that an increased number of terms in the projection decreases the error in the approximation.

References [] Strang, Gilbert. Introduction to Linear Algebra. [2] Arnold, David. Fall 200, Lectures and Insight by the Master. [3] Cartwright, Mark Fourier Methods for Mathematicians, Scientists and Engineers. 52/58