CHAPTER 8. Approximation Theory

Similar documents
Approximation theory

MATH 2413 TEST ON CHAPTER 4 ANSWER ALL QUESTIONS. TIME 1.5 HRS.

Vectors in Function Spaces

8.2 Discrete Least Squares Approximation

Physics 250 Green s functions for ordinary differential equations

INTERPOLATION. and y i = cos x i, i = 0, 1, 2 This gives us the three points. Now find a quadratic polynomial. p(x) = a 0 + a 1 x + a 2 x 2.

David M. Bressoud Macalester College, St. Paul, Minnesota Given at Allegheny College, Oct. 23, 2003

10/22/16. 1 Math HL - Santowski SKILLS REVIEW. Lesson 15 Graphs of Rational Functions. Lesson Objectives. (A) Rational Functions

Sec 4.1 Limits, Informally. When we calculated f (x), we first started with the difference quotient. f(x + h) f(x) h

Midterm Preparation Problems

i x i y i

The Gram-Schmidt Process 1

Convergence for periodic Fourier series

A Library of Functions

Section 5.8. Taylor Series

Course Notes for Calculus , Spring 2015

Georgia Department of Education Common Core Georgia Performance Standards Framework CCGPS Advanced Algebra Unit 2

Polynomial Review Problems

1 The Well Ordering Principle, Induction, and Equivalence Relations

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

Analysis II: Basic knowledge of real analysis: Part V, Power Series, Differentiation, and Taylor Series

Chapter 4: Interpolation and Approximation. October 28, 2005

Lecture 1: Interpolation and approximation

3 Orthogonality and Fourier series

Numerical Methods. King Saud University

Review of Power Series

FFTs in Graphics and Vision. Homogenous Polynomials and Irreducible Representations

Scientific Computing

3 hours UNIVERSITY OF MANCHESTER. 22nd May and. Electronic calculators may be used, provided that they cannot store text.

Hermite Interpolation

Ma 530 Power Series II

Functions, Graphs, Equations and Inequalities

MATH 5640: Fourier Series

Mathematical Economics: Lecture 2

Completion Date: Monday February 11, 2008

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

Section Taylor and Maclaurin Series

q-series Michael Gri for the partition function, he developed the basic idea of the q-exponential. From

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

A Nonstandard Fourier Inequality

80 Wyner PreCalculus Spring 2017

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

Arkansas Tech University MATH 2924: Calculus II Dr. Marcel B. Finan. Solutions to Assignment 7.6. sin. sin

Name Class. (a) (b) (c) 4 t4 3 C

Functions: Polynomial, Rational, Exponential

Lectures 9-10: Polynomial and piecewise polynomial interpolation

Polynomial Functions. Linear Graphs and Linear Functions 1.3

INTRODUCTION TO THE DFS AND THE DFT

Function Terminology and Types of Functions

Math 113 (Calculus 2) Exam 4

Two special equations: Bessel s and Legendre s equations. p Fourier-Bessel and Fourier-Legendre series. p

THE LIMIT PROCESS (AN INTUITIVE INTRODUCTION)

Section 8.2: Integration by Parts When you finish your homework, you should be able to

Lecture IX. Definition 1 A non-singular Sturm 1 -Liouville 2 problem consists of a second order linear differential equation of the form.

Taylor and Maclaurin Series. Copyright Cengage Learning. All rights reserved.

5 Numerical Integration & Dierentiation

Summer Jump-Start Program for Analysis, 2012 Song-Ying Li. 1 Lecture 7: Equicontinuity and Series of functions

Lecture 32: Taylor Series and McLaurin series We saw last day that some functions are equal to a power series on part of their domain.

Math Computer Lab 4 : Fourier Series

Integration. 5.1 Antiderivatives and Indefinite Integration. Suppose that f(x) = 5x 4. Can we find a function F (x) whose derivative is f(x)?

1 Question related to polynomials

Revision Materials. Functions, Quadratics & Polynomials Skills Builder

MATH1231 CALCULUS. Session II Dr John Roberts (based on notes of A./Prof. Bruce Henry) Red Center Room 3065

Section 0.2 & 0.3 Worksheet. Types of Functions

Analysis II: Fourier Series

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

1 Solving Algebraic Equations

MATH 115 SECOND MIDTERM EXAM

INTRODUCTION TO REAL ANALYSIS II MATH 4332 BLECHER NOTES

Ordinary Differential Equations (ODEs)

March 5, 2009 Name The problems count as marked. The total number of points available is 131. Throughout this test, show your work.

Math 651 Introduction to Numerical Analysis I Fall SOLUTIONS: Homework Set 1

Math Numerical Analysis

Advanced Calculus Math 127B, Winter 2005 Solutions: Final. nx2 1 + n 2 x, g n(x) = n2 x

Chapter 7: Techniques of Integration

dy = f( x) dx = F ( x)+c = f ( x) dy = f( x) dx

3. Use absolute value notation to write an inequality that represents the statement: x is within 3 units of 2 on the real line.

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

We consider the problem of finding a polynomial that interpolates a given set of values:

Chapter 4 Integration

G. NADIBAIDZE. a n. n=1. n = 1 k=1

Topics in Fourier analysis - Lecture 2.

Power series solutions for 2nd order linear ODE s (not necessarily with constant coefficients) a n z n. n=0

Chapter 1. Functions 1.1. Functions and Their Graphs

MATH 1372, SECTION 33, MIDTERM 3 REVIEW ANSWERS

Welcome to Math 257/316 - Partial Differential Equations

ERROR IN LINEAR INTERPOLATION

Tangent Lines and Derivatives

AP Calculus (BC) Chapter 9 Test No Calculator Section Name: Date: Period:

INFINITE SEQUENCES AND SERIES

Periodic functions: simple harmonic oscillator

Quarter 2 400, , , , , , ,000 50,000

MAT137 Calculus! Lecture 6

systems of linear di erential If the homogeneous linear di erential system is diagonalizable,

01 Harmonic Oscillations

Finite-dimensional spaces. C n is the space of n-tuples x = (x 1,..., x n ) of complex numbers. It is a Hilbert space with the inner product

Practice Final Exam Solutions

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

Additional Practice Lessons 2.02 and 2.03

x n cos 2x dx. dx = nx n 1 and v = 1 2 sin(2x). Andreas Fring (City University London) AS1051 Lecture Autumn / 36

Transcription:

CHAPTER 8 Approximation Theory 1. Introduction We consider two types of problems in this chapter: (1) Representing a function by a simpler function that is easier to evaluate. () Fitting functions to given data and finding the best function in a certain class that can be used to represernt the data. Given a set of data points class of functions such that. Discrete Least Squares Approximation (x i, y i ) m, we look for the best function f of some m yi f(x i ) is minimized. 174

. DISCRETE LEAST SQUARES APPROIMATION 175 In the figure on the previous page, we see the quadratic polynomial that best approximates our data points in the sense of least squares. Notice, as opposed to interpolation, there is no requirement that any of the data points actually lie on the graph of the approximating function. Instead, we choose the quadratic the sum of the squares of the vertical distances from the points to the curve is minimized. This choice is made using the theory of max-min problems from calculus. Linear Least Squares This is illustrative and the easiest to work with. Suppose we have m data points (x i, y i ) m that appear to be somewhat linear, so we want to find the line y = a 1 x + a 0 that best approximates the data points in the sense of least squares, i.e., we want to minimize the function m E(a 0, a 1 ) = yi (a 1 x 1 + a 0 ). Set @E @a 0 = @E @a 1 = m (y i a 1 x i a 0 )( 1) = 0 m (y i a 1 x i a 0 )( x i ) = 0 We get the system of linear equations in a 0 and a 1 : m m a 0 m + a 1 x i = a 0 m We solve for a 0 and a 1 to get x i + a 1 m x i = y i m x i y i

176 8. APPROIMATION THEORY P m P m a 0 = x i y P m i x P m iy i x i m P m P m x i x i a 1 = m P m x P m iy i x P m i y i m P m P m x i x i Maple. See regression.mw or regression.pdf. 6. Trigonometric Polynomial Approximation Trigonometric functions are used to approximate functions that have periodic behavior, functions with the property that for some constant T, f(x + T ) = f(x) for all x. We can generally also transform the problem so that T = and restrict the approximation to the interval [, ]. Definition (Page 333). An integrable function w is a weight function on the interval I if w(x) 0 for all x I, but w 6 0 (not identically 0) on any subinterval of I. The purpose of a weight function is to assign varying degrees of importance on certain portions of the interval. For example, if w(x) = 1 x on I = [0, 1], more importance is given to the points near 0 than the points near 1. Definition (Page 334). The set of functions { 0, 1,..., n} is said to be orthogonal for the interval [a, b] with respect to the weight function w if for some positive numbers 0, 1,..., n, Z ( b 0, when j 6= k w(x) j (x) k (x) dx = k > 0, when j = k. a If, in addition, k = 1 for each k = 0, 1,..., n, the set is said to be orthonormal.

6. TRIGONOMETRIC POLYNOMIAL APPROIMATION 177 Continuous Least Squares for Orthogonal Functions Theorem (Page 335). If { 0, 1,..., n} is an orthogonal set of functions on an interval [a, b] with respect to the weight function w, then the least squares approximation to f on [a, b] with respect to w is n P (x) = a k k (x), a k = k=0 R b a w(x) k(x)f(x) dx R b a w(x)( k(x)) dx = 1 k Z b a w(x) k (x)f(x) dx. For each positive integer n, the set T n of trigonometric polynomials of degree less than or equal to n is the set of all linear combinations of { 0, 1,..., n 1}, 0(x) = 1, k(x) = cos kx, for each k = 1,,..., n, and n+k(x) = sin kx, for each k = 1,,..., n. The set { 0, 1,..., n 1} is orthogonal on [, ] with respect to the weight function w(x) 1. For f C[ T n is, ], the continuous least squares approximation by functions in a k = 1 Z S n (x) = 1 a 0 + n k=1 a k k (x) f(x) k (x) dx for each k = 0, 1,..., n 1.

178 8. APPROIMATION THEORY Another way to express this is S n (x) = a 0 + a n cos nx + a k = 1 b k = 1 Z Z f(x) cos kx dx n 1 k=1 a k cos kx + b n sin kx for each k = 0, 1,..., n, and f(x) sin kx dx for each k = 1,,..., n 1. lim S n(x) is called the Fourier series of f. Fourier series are used to describe n!1 the solution of various ordinary and partial di erential equations that occur in physical situations. Discrete Least Squares Approximation and Interpolation We now look at a discrete analog to Fourier series that is useful for large amounts of equally spaced points. Suppose we have data points (x j, y j ) 1 with the x j equally partitioning [, ], i.e., j x j = + for each j = 0, 1,..., n 1. m Although not in our set of points, x =. Also, note that x 0 =. Our goal: to determine the trigonometric polynomial in T n that minimizes E(S n ) = n yj S n (x j ),

6. TRIGONOMETRIC POLYNOMIAL APPROIMATION 179 i.e., we need to choose constants a 0, a 1,..., a n, b 1, b,..., b n 1 such that ( n h a0 E(S n ) = y j + a n 1 i ) n cos nx + a k cos kn + b n sin kx is minimized. Finding the constants is simplified by the fact that { 0, 1,..., n 1} is orthogonal with respect to summation over equally spaced points (x j, y j ) 1 in [, ], i.e., Why? for k 6= l, k=1 k(x j ) l (x j ) = 0. Theorem. If r is not a multiple of, r an integer, cos rx j = 0 and if r is not a multiple of m, Proof. (cos rx j ) = m 1 and and 1 sin rx j = 0, (sin rx j ) = m. Recall. : n (1) r i = 1 + r + r + + r n = 1 rn+1 1 r. () i = 1. (3) e iz = cos z + i sin z.

180 8. APPROIMATION THEORY Note. : (1) e irx j = e ir( +j m ) = e ir e irj m. () e ir = cos r + i sin r. (3) sin t 1 cos t = 1 sin(t1 t ) + sin(t 1 + t ). Then cos rx j + i cos rxj + i sin rx j = e ir e ir 1 =) e irj m = {z} {r not a multiple of } cos r + i sin r r not a multiple of m =) Similarly, 1 e ir m cos rx j = 0 (cos rx j ) = 1 " 1 1 + (sin rx j ) = m. 1 and cos rx j # sin rx j = e irx j = e ir 1 = e ir e ir( +j m ) = eir 1 e ir m 1 [1 + 0] 1 e ir m sin rx j = 0. 1 1 + cos rxj = = 1 h i + 0 = m. = = 0

Sample case: " 1 Overall, we have 6. TRIGONOMETRIC POLYNOMIAL APPROIMATION 181 k(x j ) n+l (x j ) = sin(l k)x j + (cos kx j )(sin lx j ) = 1 # sin(l + k)x j = 1 [0 + 0] = 0. Theorem. The constants in the summation S n (x) = a 0 + a n 1 n cos nx + a k cos kx + b k sin kx that minimize the least squares sum are and k=1 E(a 0,..., a n, b 1,..., b n 1 ) = a k = 1 m b k = 1 m Maple. See trigpoly.mw or trigpoly.pdf. yj S n (x j ) y j cos kx j, for each k = 0, 1,..., n, y j sin kx j, for each k = 1,,..., n 1.

18 8. APPROIMATION THEORY 7. Fast Fourier Transforms The interpolatory trigonometric polynomial on the data points (x j, y j ) 1 j with x j = + is the least squares polynomial from T n for this collec- m tion of points. However, if we want the coe cients to have the same form with n = m as the discrete least squares approximation, a modification is needed. Interpolation requires computing (cos mx j ) = instead of for r not a multiple of m. (cos rx j ) = m 1 We then replace a m with a m, giving an interpolating polynomial of the form and S m (x) = a 0 + a n cos mx a k = 1 m b k = 1 m + m 1 k=1 a k cos kx + b k sin kx y j cos kx j, for each k = 0, 1,..., m, y j sin kx j, for each k = 1,,..., m 1. This procedure rquires approximately () multiplications and () additions. In problems with many thousands of data points, round-o error can dominate the approximation.

7. FAST FOURIER TRANSFORMS 183 The fast Fourier transform (FFT) algorithm requires O(m log m) multiplications and O(m log m) additions. Suppose the number of data points is a power of, i.e., m = p. Then, for j x j = + with j = 0, 1,..., 1, we have = m p+1 points (x j, z j ) 1 the z j may be complex (we usually use y j if they are real). The FFT procedure computes the complex coe cients c k in the formula c k = F (x) = 1 m k=0 c k e ikx, y j e ijk/m, for each k = 0, 1,..., 1. Then 1 m c ke i k = a k + ib k. Maple. In Maple, FourierTransform in the Discrete Transforms Package uses c k = p 1 y j e ijk/m, for each k = 0, 1,..., 1, m so See t.mw or t.pdf. a k = ( 1) k r m <(c k) and b k = ( 1) k r m =(c k).