

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Numerical Analysis I Homework 1 Solutions CMSC 666 / AMSC 666 Fall 2008
V (n)(x 0 , x 1 ,... , xn− 1 , t) ≡ det
1 x 0 x^20 · · · xn 0 1 x 1 x^21 · · · xn 1 .. .
1 xn− 1 x^2 n− 1 · · · xnn− 1 1 t t^2 · · · tn
the determinant of the matrix obtained by replacing xn with a variable parameter t in the Van der Monde matrix. Observe that V (n)(x 0 , x 1 ,... , xn− 1 , t) is a polynomial of degree n in t. By expanding this determinant by minors in the last row, we can see that the leading coefficient of the polyomial is V (n−1)(x 0 , x 1 ,... , xn− 1 ). Moreover, if t is set to any of x 0 , x 1 ,... , xn− 1 , then the matrix has two identical rows, so that its determinant is zero. This means that the roots of the polynomial are {xj }n j=0−^1 , i.e.,
V (n)(x 0 , x 1 ,... , xn− 1 , t) = [V (n−1)(x 0 , x 1 ,... , xn− 1 )] (t − x 0 )(t − x 1 ) · · · (t − xn− 1 )
and V (n)(x 0 , x 1 ,... , xn− 1 , xn) = [V (n−1)(x 0 , x 1 ,... , xn− 1 )]
j<n
(xn − xj ).
The assertion then follows by induction.
x 0 + 32 h
, which gives
ψ 3 (x) = ψˆ 3 (t) =
t +
3 h 2
t +
h 2
t −
h 2
t −
3 h 2
t^2 −
9 h^2 4
t^2 −
h^2 4
This expression is symmetric with respect to t which means that 0 is one critical point, with ψˆ 3 (0) = 9 h 4
± h 2
= 0, the maximal value on [x 1 , x 2 ] is 9 h 4
( ξ −
9 h^2 4
ξ −
h^2 4
This is ξ = 5 h
2 4 and^ t^ =^ ±
ξ, giving the extremal value h^4 on the whole interval.
4a. Conditions on the functions αi and βi are
αi(xj ) =
1 for j = i 0 otherwise βi(xj ) = 0 for all j
together with
β′ i(xj ) =
1 for j = i 0 otherwise α′ i(xj ) = 0 for all j
4b. There are 2(n + 1) interpolation conditions, which suggests that we should look for polynomials of degree 2n + 1. The fact that derivatives must be zero at many of the interpolation points suggest that we explore `i(x)^2. This has degree 2n which suggests scaling this by an extra linear term. The choice
βi(x) = (x − xi)`i(x)^2
meets the requirements for βi. If we seek αi of the form
αi(x) = [1 + c(x − xi)]`i(x)^2 ,
then the conditions on the values of αi are satisfied. The conditions on the derivative α′ i can be enforced by choosing c = − 2 `′ i(xi). This gives
αi(x) = [1 − 2 ′ i(xi)(x − xi)]i(x)^2.
5a. The requirement a + bxi 1 + cxi = yi, i = 1, 2 , 3
leads to the linear system of equations
1 x 1 −x 1 y 1 1 x 2 −x 2 y 2 1 x 3 −x 3 y 3
a b c
y 1 y 2 y 3
Suppose x 1 = 0, x 2 = 1, x 3 = 2. Then the resulting coefficient matrix is
1 1 −y 2 1 2 − 2 y 3
The determinant of this matrix is 2y 2 − 2 y 3 , which is zero if y 2 = y 3. Thus in this case the matrix is singular, which suggests there may not be a solution for these values of x. To confirm this, take y 1 = 0 and y = y 2 = y 3 6 = 0. The interpolation problem reduces to
b − cy = y 2(b − cy) = y
which is impossible. So the interpolation problem is not guaranteed to have a solution.
b. Suppose there are two solutions
a 1 + b 1 x 1 + c 1 x
and a 2 + b 2 x 1 + c 2 x
that satisfy the interpolation requirements. It follows that the quadratic function
(a 1 +b 1 x)(1+c 2 x)−(a 2 +b 2 x)(1+c 1 x) = (a 1 −a 2 )+(b 1 +a 1 c 2 −b 2 −a 2 c 1 )x+(b 1 c 2 −b 2 c 1 )x^2
has three roots x 1 , x 2 and x 3. But this means that this function must be identically zero, i.e., the coefficients of x^0 , x and x^2 are zero. A bit of algebra then leads to the conclusion that a 1 = a 2 , b 1 = b 2 and c 1 = c 2 , so that the rational solution is unique.
6a. A program fragment showing how to compute this representation can be found in Chapter 2 of the text by Stoer and Bulirsch.