

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Notes; Professor: McNelis; Class: Numerical Analysis; Subject: Mathematics; University: Western Carolina University; Term: Unknown 1989;
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!
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)
b
a
w(x)[f (x) − P n (x)]
2 dx
where
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
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
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
k
b
a
xw(x)(φ k− 1 (x))
2 dx
b
a
w(x)(φ k− 1 (x))
2 dx
and
k
b
a
xw(x)φ k− 1 (x)φ k− 2 (x) dx
b
a
w(x)(φ k− 2 (x))
2 dx