Docsity

Numerical Methods - Assignment 2 - Fall 2004 | EAD 210B, Assignments of Engineering

Toggle sidebar
bg1
EAD210A- Numerical Methods _ Rao Vemuri
Homework Assignment 2. (Due 14 October 2004)
Programming assignment (35 points)
1. (20 pts) Consider the functions ex and |x|.
a. Plot on [-1. +1] the Lagrange interpolation polynomials of degree N for
N = 2, 4, 6, 8, 10 of these functions with Ni
N
i
xi,...,1,0,
2
1=+−= (overlay
your plots)
b. Plot on [-1. +1] the Hermite interpolation polynomials of degree N for
N = 3, 5 of these functions with Ni
N
i
xi,...,1,0,
2
1=+−=
2. (15 pts) Show that the interpolation polynomials of x
xf +
=1
1
)( on [0,1] at the
points Nixi/=, i = 0,1,…,N converges to f by plotting the interpolation
polynomials for N = 10, 20.
Paper and Pencil assignment (65 points)
3. (15 pts) Interpolation on product spaces: Suppose every linear interpolation
problem stated in terms of functions N
ϕ
ϕ
ϕ
,...,, 21 has a unique solution
)()(
0
xx i
N
ii
ϕα
∑
=
=Φ
with Nkfx kk ,...,2,1,0,)( ==Φ for prescribed support arguments N
xxx ,...,, 10
with jixx ji ≠≠ , . Show the following. If M
ψ
ψ
ψ
,...,, 10 is also a set of functions
for which every linear interpolation problem has a unique solution, then for every
choice of abscissas
jixxxxx jiN
≠
≠
,;,...,, 10
jiyyyyy jiM
≠
≠
,;,...,, 10
and support ordinates
MkNifik ,...,1,0;,...,1,0,
=
=
there exists a unique function of the form
)()(),(
00
yxyx MN
µν
µ
νµ
ν
ψϕα
∑∑ ==
=Φ
with MkNifyx ikki ,...,1,0;,...,2,1,0,),(
=
==Φ .
pf3

Partial preview of the text

Download Numerical Methods - Assignment 2 - Fall 2004 | EAD 210B and more Assignments Engineering in PDF only on Docsity!

EAD210A- Numerical Methods _ Rao Vemuri

Homework Assignment 2. (Due 14 October 2004)

Programming assignment (35 points)

  1. (20 pts) Consider the functions e x^ and |x|. a. Plot on [-1. +1] the Lagrange interpolation polynomials of degree N for

N = 2, 4, 6, 8, 10 of these functions with i N N

i x (^) i , 0 , 1 ,...,

= − 1 + = (overlay

your plots) b. Plot on [-1. +1] the Hermite interpolation polynomials of degree N for

N = 3, 5 of these functions with i N

N

i

x i , 0 , 1 ,...,

  1. (15 pts) Show that the interpolation polynomials of x

f x

( ) on [0,1] at the

points xi = i / N , i = 0,1,…,N converges to f by plotting the interpolation polynomials for N = 10, 20.

Paper and Pencil assignment (65 points)

  1. (15 pts) Interpolation on product spaces : Suppose every linear interpolation

problem stated in terms of functions ϕ 1 , ϕ 2 ,..., ϕ N has a unique solution

0

x (^) i x

N

i

∑α i^ ϕ

=

with Φ ( x (^) k )= fk , k = 0 , 1 , 2 ,..., N for prescribed support arguments x (^) 0 , x 1 ,..., xN

with x i ≠ xj , i ≠ j. Show the following. If ψ 0 , ψ 1 ,..., ψ M is also a set of functions

for which every linear interpolation problem has a unique solution, then for every choice of abscissas x (^) 0 , x 1 ,..., xN ; xi ≠ xj , i ≠ j y (^) 0 , y 1 ,..., yM ; yi ≠ yj , i ≠ j and support ordinates f (^) ik , i = 0 , 1 ,..., N ; k = 0 , 1 ,..., M there exists a unique function of the form

0 0

x y x y

N M ν μ μ

νμ ν

= =

with Φ ( x (^) i , yk )= fik , i = 0 , 1 , 2 ,..., N ; k = 0 , 1 ,..., M.

  1. (15 pts) Continuation of Hw#1, Problem #10 (Bessel function problem). Compare the result obtained in (10b) of HW#1, with the behavior of the error

max | ( ) 0 ( )| 0 1

S (^) N x J x x

∆^ −

≤≤

as N →∞, where S ∆ (^) N is the interpolating spline function with the knot set ∆ (^) N ={ xiN }and S (^) ∆'^ N ( x )= J 0 '( x ), for x = 0, 1.

  1. (15 pts) On page 68 of the text, carry out the missing steps leading to Eq (1.6-2) and Eq. (1.6-3).
  2. (20 points) Define the spline function Sj for equidistant knots xi = a + ih , h > 0 , i = 0 , 1 ,..., N by

S j ( x k )=δ jk ; j , k = 0 , 1 ,..., N and S ' j '^ ( x 0 )= S ' j '( xN )= 0

Verify that the moments m 1 (^) , m 2 ,..., mN − 1 of Sj are:

m = − mi + 1 i = j − i

i ρ

−

m mi i j N Ni

i ρ

6 2 (^1 / ) (^1 / )

1 1

1 1 2 − − −

− −− − −

j N j

j N j j h

m

, j ≠ 0 , 1 , N − 1 , N

1

1 j j

m (^) j = − h − m − −

−

, j ≠ 0 , 1 , N − 1 , N

1

1 j N j

m (^) j = − h − m − −−

+ ρ ,^ j^ ≠^0 ,^1 , N −^1 , N

where the numbers ρ j are recursively defined by

1

1

= − =

−

i i

ρ i ρ

Hint: To get you started, you may wish to consult the text book. At the beginning of the derivation, the book noted that the second derivative of the spline function