Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Orthogonal Polynomials and Least Squares Approximation | MATH 640, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Material Type: Notes; Professor: McNelis; Class: Numerical Analysis; Subject: Mathematics; University: Western Carolina University; Term: Unknown 1989;

Typology: Study notes

Pre 2010

Uploaded on 08/18/2009

koofers-user-o4t-1
koofers-user-o4t-1 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
MATH 640 Numerical Analysis
Section 8.2: Orthogonal Polynomials and Least Squares Approximation
Let f(x)C[a, b]. We are trying to find the nth order least squares approximating polynomial Pn(x) =
anxn+an1xn1+···+a1x+a0. In other words we are tying to determine the coefficients a0, a1,· · · , an
that minimize the new error
E(a0, a1,· · · , an) = Zb
a
[f(x)Pn(x)]2dx
NOTE: this is a bit different than our work in Section 8.1, where we were given specific data point,
and not the original function f(x).
Normal Equations Associated with E(a0, a1,·, an=Zb
a
[f(x)Pn(x)]2dx
n
X
k=0
akZb
a
xk+jdx =Zb
a
f(x)xjdx
or expanded to be
a0Rb
ax0dx +a1Rb
ax1dx +··· +anRb
axndx =Rb
af(x)x0dx
a0Rb
ax1dx +a1Rb
ax2dx +··· +anRb
axn+1 dx =Rb
af(x)x1dx
.
.
..
.
..
.
..
.
.
a0Rb
axndx +a1Rb
axn+1 dx +··· +anRb
ax2ndx =Rb
af(x)xndx
Definition 1 (Linearly Independent Functions)
A set of functions {φ0, φ1,· · · , φn}is linearly independent on [a, b]if whenever
c0φ0(x) + c1φx(x) + · · · +cnφn(x) = 0 for all x[a, b]
it must be that c0=c1=· · · =cn= 0. Otherwise the set is linearly dependent.
Theorem 1
If φj(x)is a polynomial of degree j, for each j= 0,1,· · · , n then {φ0, φ1,· · · , φn}is linearly independent
on any interval [a, b].
Definition 2 (Πn)
The set of all polynomials of degree at most n, is denoted by Πn.
Theorem 2
If {φ0, φ1,· · · , φn}is a collection of linearly independent polynomials in Πn, then any polynomial in Πn
can be written uniquely as a linear combination of φ0, φ1,· · · , φn.
Definition 3 (Weight Function)
An integrable function wis called a weight function on the interval Iif w(x)0for all xin Ibut
w(x)6≡ 0on any subinterval of I.
Definition 4 (Another Error Function, E, and Normal Equations)
E=Zb
a
w(x)[f(x)Pn(x)]2dx
pf3

Partial preview of the text

Download Orthogonal Polynomials and Least Squares Approximation | MATH 640 and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

MATH 640 – Numerical Analysis

Section 8.2: Orthogonal Polynomials and Least Squares Approximation

Let f (x) ∈ C[a, b]. We are trying to find the n

th order least squares approximating polynomial Pn(x) =

a n x

n +a n− 1 x

n− 1 +· · ·+a 1 x+a 0

. In other words we are tying to determine the coefficients a 0 , a 1 , · · · , a n

that minimize the new error

E(a 0 , a 1 , · · · , a n

b

a

[f (x) − P n (x)]

2 dx

NOTE: this is a bit different than our work in Section 8.1, where we were given specific data point,

and not the original function f (x).

Normal Equations Associated with E(a 0 , a 1 , ·, a n

b

a

[f (x) − P n (x)]

2 dx

n ∑

k=

ak

b

a

x

k+j dx =

b

a

f (x)x

j dx

or expanded to be

a 0

b

a

x

0 dx + a 1

b

a

x

1 dx + · · · + an

b

a

x

n dx =

b

a

f (x)x

0 dx

a 0

b

a

x

1 dx + a 1

b

a

x

2 dx + · · · + a n

b

a

x

n+ dx =

b

a

f (x)x

1 dx

a 0

b

a

x

n dx + a 1

b

a

x

n+ dx + · · · + a n

b

a

x

2 n dx =

b

a

f (x)x

n dx

Definition 1 (Linearly Independent Functions)

A set of functions {φ 0 , φ 1 , · · · , φn} is linearly independent on [a, b] if whenever

c 0 φ 0 (x) + c 1 φx(x) + · · · + cnφn(x) = 0 for all x ∈ [a, b]

it must be that c 0 = c 1 = · · · = cn = 0. Otherwise the set is linearly dependent.

Theorem 1

If φj (x) is a polynomial of degree j, for each j = 0, 1 , · · · , n then {φ 0 , φ 1 , · · · , φn} is linearly independent

on any interval [a, b].

Definition 2 (Π n

The set of all polynomials of degree at most n, is denoted by Π n

Theorem 2

If {φ 0 , φ 1 , · · · , φn} is a collection of linearly independent polynomials in Πn, then any polynomial in Πn

can be written uniquely as a linear combination of φ 0 , φ 1 , · · · , φ n

Definition 3 (Weight Function)

An integrable function w is called a weight function on the interval I if w(x) ≥ 0 for all x in I but

w(x) 6 ≡ 0 on any subinterval of I.

Definition 4 (Another Error Function, E, and Normal Equations)

E =

b

a

w(x)[f (x) − P n (x)]

2 dx

where

P

n (x) =

n ∑

k=

a k φ k (x)

and {φ 0 , φ 1 , · · · , φ n } are linearly independent and w(x) is a weight function on [a, b].

It has associated normal equations:

n ∑

k=

a k

b

a

w(x)φ k (x)φ j (x) dx =

b

a

w(x)f (x)φ j (x) dx for j = 0, 1 , · · · n

Definition 5 (Orthogonal and Orthonormal Functions)

{φ 0 , φ 1 , · · · , φ n } is an orthogonal set of functions for the interval [a, b] with respect to the weight

function w(x) if

b

a

w(x)φ j (x)φ k (x) dx =

0 for j 6 = k

α k for j = k

If α k = 1 for k = 0, 1 , · · · , n the set is called orthonormal.

Theorem 3

If {φ 0 , φ 1 , · · · , φ n } is an orthogonal set of functions on [a, b] with respect to the weight function w(x),

the least squares approximation to f on [a, b] is

P

n (x) =

n ∑

k=

a k φ k (x)

where, for each k = 0, 1 , · · · , n

ak =

b

a

w(x)φk(x)f (x) dx

b

a

w(x)(φk(x))

2 dx

α k

b

a

w(x)φk(x)f (x) dx

Theorem 4 (Gram-Schmidt Process)

The set of polynomial functions {φ 0 , φ 1 , · · · , φ n } defined in the following way is orthogonal on [a, b] with

respect to the weight function w:

φ 0 (x) ≡ 1 , φ 1 (x) = x − B 1 , for each x in [a, b]

where

B

1

b

a

xw(x)(φ 0 (x))

2 dx

b

a

w(x)(φ 0 (x))

2 dx

and when k ≥ 2

φk(x) = (x − Bk)φk− 1 (x) − Ckφk− 2 (x), for each x in [a, b]

where

B

k

b

a

xw(x)(φ k− 1 (x))

2 dx

b

a

w(x)(φ k− 1 (x))

2 dx

and

C

k

b

a

xw(x)φ k− 1 (x)φ k− 2 (x) dx

b

a

w(x)(φ k− 2 (x))

2 dx