Docsity

Applied Numerical Methods - Homework 8 Solutions | MATH 151A, Assignments of Mathematics

Toggle sidebar
bg1
Math 151B Homework #8 – Due Friday 3/13
1. Hermite polynomials
The Hermite polynomials are defined by
Hn(x) = (−1)nex2dn
dxne−x2
Show that H0,H1and H2are orthogonal with respect to the weighting function w(x) = e−x2
on (−∞,∞).
[Hint: Think before you integrate.]
2. Dirac delta
The Dirac delta function δ(x) is defined by
Zb
a
δ(x)dx =1a < 0< b
0otherwise
and has the property that
Zb
a
δ(x)f(x)dx =f(0) a < 0< b
0otherwise
a. Compute the sixth degree least squares Legendre polynomial approximation to the
dirac delta function on [−1,1].
b. Use the functions φk(x) = cos(kx) to compute the least squares approximation to the
dirac delta function up to k= 6.
c. Compare your results graphically.

Partial preview of the text

Download Applied Numerical Methods - Homework 8 Solutions | MATH 151A and more Assignments Mathematics in PDF only on Docsity!

Math 151B Homework #8 – Due Friday 3/

  1. Hermite polynomials

The Hermite polynomials are defined by

Hn(x) = (−1)nex

2 dn dxn^

e−x

2

Show that H 0 , H 1 and H 2 are orthogonal with respect to the weighting function w(x) = e−x^2 on (−∞, ∞).

[Hint: Think before you integrate.]

  1. Dirac delta

The Dirac delta function δ(x) is defined by

∫ (^) b

a

δ(x)dx =

1 a < 0 < b 0 otherwise

and has the property that

∫ (^) b

a

δ(x)f (x)dx =

f (0) a < 0 < b 0 otherwise

a. Compute the sixth degree least squares Legendre polynomial approximation to the dirac delta function on [− 1 , 1]. b. Use the functions φk(x) = cos(kx) to compute the least squares approximation to the dirac delta function up to k = 6.

c. Compare your results graphically.