Docsity

UCLA MATH 151A: Final Exam - Winter 2000, Exams of Mathematics

Toggle sidebar
bg1
UCLA MATH 151A, WINTER 2000, FINAL EXAM, MONDAY, MARCH 19
NAME STUDENT ID #
This is a closed-book and closed-note examination. No calculators are allowed. Please show
all your work. Partial credit will be given to partial answers. There are 9 problems of total
100 points.
PROBLEM 1 2 3 4 5 6 7 8 9 TOTAL
SCORE
Problem 1 : Let [a, b] be an interval of R,x0,x1, ..., xnbe n+ 1 points in [a, b] and f∈Cn+1 (R).
1-a Give the form of the Lagrange polynomial of degree at most nsuch that
f(xk) = P(xk),for each k= 0,1, ..., n.
In the sequel, we will note this polynomial Px0,x1,...,xn.
1-b Does another polynomial Q, of degree at most n, exist such that
f(xk) = Q(xk),for each k= 0,1, ..., n.
1-c Deduce from the preceding question that any polynomial of degree at most nis exactly interpolated
by a Lagrange polynomial.
1-d State the formula which, for x∈[a, b], expresses f(x) in terms of Px0,x1,...,xn(x) (the Lagrange polyno-
mial defined in question 1-a) and a remainder term.
1-e Deduce from the preceding question that any polynomial of degree at most nis exactly interpolated
by a Lagrange polynomial.
1-f Let (i, j)∈ {0,1, ..., n}2be two distinct integers. Taking the notation defined in question 1-a, express
Px0,x1,...,xnin terms of Px0,x1,...,xi−1,xi+1,...,xnand Px0,x1,...,xj−1,xj+1 ,...,xn.
1-g We can write the Lagrange polynomial Px0,x1,...,xnunder the form
Px0,x1,...,xn(x) = a0+a1(x−x0) + a2(x−x0)(x−x1) + ···+an(x−x0)(x−x1)...(x−xn−1).
Give the formula which permits to compute the numbers ai, for i= 0,1, ...n.
1-h Give the three point formula used to approximate f′(x0) and which involves f(x0−h) and f(x0+h).
1-i Deduce from the preceding question that f′(x0) is exactly estimated by
1
2h[f(x0+h)−f(x0−h)]
when fis a polynomial of degree 2.
1-j State the Trapezoidal rule for Rb
af(x)dx.
1-k State the composite Simpson’s rule for Rb
af(x)dx.
pf3
pf4

Partial preview of the text

Download UCLA MATH 151A: Final Exam - Winter 2000 and more Exams Mathematics in PDF only on Docsity!

UCLA MATH 151A, WINTER 2000, FINAL EXAM, MONDAY, MARCH 19

NAME STUDENT ID

This is a closed-book and closed-note examination. No calculators are allowed. Please show all your work. Partial credit will be given to partial answers. There are 9 problems of total 100 points. PROBLEM 1 2 3 4 5 6 7 8 9 TOTAL SCORE

Problem 1 : Let [a, b] be an interval of R, x 0 , x 1 , ..., xn be n + 1 points in [a, b] and f ∈ Cn+1(R).

1-a Give the form of the Lagrange polynomial of degree at most n such that f (xk) = P (xk), for each k = 0, 1 , ..., n. In the sequel, we will note this polynomial Px 0 ,x 1 ,...,xn. 1-b Does another polynomial Q, of degree at most n, exist such that f (xk) = Q(xk), for each k = 0, 1 , ..., n. 1-c Deduce from the preceding question that any polynomial of degree at most n is exactly interpolated by a Lagrange polynomial. 1-d State the formula which, for x ∈ [a, b], expresses f (x) in terms of Px 0 ,x 1 ,...,xn (x) (the Lagrange polyno- mial defined in question 1-a) and a remainder term. 1-e Deduce from the preceding question that any polynomial of degree at most n is exactly interpolated by a Lagrange polynomial. 1-f Let (i, j) ∈ { 0 , 1 , ..., n}^2 be two distinct integers. Taking the notation defined in question 1-a, express Px 0 ,x 1 ,...,xn in terms of Px 0 ,x 1 ,...,xi− 1 ,xi+1,...,xn and Px 0 ,x 1 ,...,xj− 1 ,xj+1,...,xn. 1-g We can write the Lagrange polynomial Px 0 ,x 1 ,...,xn under the form Px 0 ,x 1 ,...,xn (x) = a 0 + a 1 (x − x 0 ) + a 2 (x − x 0 )(x − x 1 ) + · · · + an (x − x 0 )(x − x 1 )...(x − xn− 1 ). Give the formula which permits to compute the numbers ai, for i = 0, 1 , ...n. 1-h Give the three point formula used to approximate f ′(x 0 ) and which involves f (x 0 − h) and f (x 0 + h). 1-i Deduce from the preceding question that f ′(x 0 ) is exactly estimated by 1 2 h[f^ (x^0 +^ h)^ −^ f^ (x^0 −^ h)] when f is a polynomial of degree 2. 1-j State the Trapezoidal rule for ∫^ ab f (x)dx.

1-k State the composite Simpson’s rule for ∫^ ab f (x)dx.

Problem 2 : Let f (x) = cos(πx 2 ) and P be the Lagrange polynomial of degree at most 3 which

agrees with f at x 0 = −1, x 1 = 0, x 2 = 1, x 3 = 2. 2-a Compute P (0.5) using Neville’s method. 2-b Express P (x) using Newton’s divided difference formula. Use this result to compute P (0.5). 2-c Give a bound for the absolute error |f (0.5) − P (0.5)|.

Problem 3 : Let t > 0 and f (x) = etx. We call Pn the Lagrange polynomial, of degree at most

n − 1, which agrees with f at the points 1, 2, ...,n. 3-a Check that, for any positive integer n and any x ∈ R, f (n)(x) = tnetx^.

3-b Give the absolute error |f (0) − Pn(0)| and prove that

tn^ ≤ |f (0) − Pn(0)| ≤ tnetn^. 3-c Discuss, in each of the following cases, whether we gain in using large values for n or not when approximating f (0) by Pn(0) :

  • t = 2 :
  • t = 0.1 : (Hint : ln(0.1) ≈ − 2 .3) 3-d What do you conclude?

Problem 4 : A natural cubic spline S on [0, 2] is defined by

S(x) =

{ (^) S 0 (x) = 2 − x − x (^2) + 3x (^3) , if 0 ≤ x < 1 S 1 (x) = a + b(x − 1) + c(x − 1)^2 + d(x − 1)^3 , if 1 ≤ x < 2 Find a,b,c,d.

Problem 5 : Let f (x) = x^3. You can use the following table to answer the questions

x 0. 6 0. 7 0. 8 0. 9 1 1. 1 1. 2 1. 3 1. 4 f (x) 0. 216 0. 343 0. 512 0. 729 1 1. 331 1. 728 2. 197 2. 744 f^ ˜ (x) 0. 2 0. 3 0. 5 0. 7 1 1 2 2 3

5-a Use a three points formula, with h = 0.1, to compute f ′(1). 5-b For this question, you may use the results of the operations listed below.

  1. 512 − 1 .728 = − 1 .216; 1. 331 − 0 .729 = 0.602; 8 ∗ 0 .602 = 4. 816. Use a five points formula, with h = 0.1, to compute f ′(1), and compare your result to the actual value of f ′(1). Explain this result.

9-b Prove that, in general, given [a, b] an interval and g ∈ C^1 [a, b] such that g has a unique fixed point p in [a, b] and such that, there exists 0 < k < 1, with |g′(x)| ≤ k, for all x ∈ (a, b), we have |pn − p| ≤ kn^ max{|p 0 − a|, |p 0 − b|}. (Hint: Prove first that |pn − p| ≤ k|pn− 1 − p|.) 9-c Find an interval (a, b), an initial point p 0 ∈ (a, b) and a condition on the number of iteration n ∈ N such that the fixed point algorithm applied to the function of question 9-a approximates √3 with the accuracy 10−^3. Hint :√ 3 ∈ [^32 , 2]. 9-d Write Newton’s algorithm for the function and the initial point you determined previously, for n iterations.