Download Test 1 Fall 2002 - Numerical Analysis | MAD 3401 and more Exams Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!
MAD 3401 (Numerical Analysis) Test 1, Wednesday, October 02, 2002
Name: SSN:
Remember that no documents are allowed during the test. Be as precise as possible in your work; you shall show all your work to deserve the full mark assigned to any question. Do not cheat, otherwise I will be forced to give you a zero and report your act of cheating to the University administration. Good luck.
- [20] Let f (x) = x^2 sin x + 1, x ∈ [0, 1], x 0 = 0. a) Find the first five derivatives of f. b) Find the third Taylor polynomial P 3 (x), and use it to approximate f (0.2). c) Use the error formula in Taylor’s Theorem to find an upper bound for the error |f (0.2) − P 3 (0.2)|. Compute the actual error. d) Find the fourth Taylor polynomial P 4 (x), and use it to approximate f (0.2). Compute the actual error |f (0.2) − P 4 (0.2)| and compare it with |f (0.2) − P 3 (0.2)|. Which of P 4 (0.2) and P 3 (0.2) is closer to f (0.2)?
- [10] Let g(x) = x
(^3) + 4 ,^ x^ ∈^ [0,^ 1]. a) Show that g has a unique fixed point α in (0, 1). b) If we want to use the fixed point iteration method to approximate α, compute x 1 and x 2 given that x 0 = 0.
- [10] Find the rate of convergence of the sequence (xn) given by xn = sin( (^4) nπn+3 ), n = 0, 1 , 2 , ...
- [20] Let f (x) = x − 2 −x, x ∈ [0, 1]. a) Show that there exists α in (0, 1) with f (α) = 0. b) If we want to use the Newton’s Method to find α accurate to within 10−^5 , how many iterations should we use? c) If x 0 = 0, compute x 1 and x 2.
Test 2, Wednesday, November 06, 2002
Name: SSN:
Remember that no documents are allowed during the test. Be as precise as possible in your work; you shall show all your work to deserve the full mark assigned to any question. Do not cheat, otherwise I will be forced to give you a zero and report your act of cheating to the University administration. Good luck.
- [15] Let f (x) = e−^4 x. Use the centered three-point formula with h = 0.0001 to approximate f ′(0.25). Find the actual error. Use the error formula to find a bound on the error.
- [15] The clamped cubic spline that interpolates a function g(x) at x 0 = −1, x 1 = 0 and x 2 = 1 is defined by
S(x) =
s 0 (x) = 1 + 2(x + 1) + 3(x + 1)^2 + 4(x + 1)^3 , if − 1 ≤ x < 0 s 1 (x) = a + bx − cx^2 + dx^3 , if 0 ≤ x ≤ 1.
Given that g′(−1) = g′(1), find the values of the constants a, b, c, and d.
- [10] An unknown value M has the expansion M = N (h) + 14 h^4 − 18 h^8 + 121 h^12 − .... Find an O(h^8 ) approximation of M , and give the new expansion of M.
- [10] Suppose that xj = j, j = 0, 1 , 2 , 3 and P 01 (x) = 2x − 1, P 12 (x) = x + 2, P 123 (1.8) = 4. Find P 0123 (1.8).
- [10] The quadrature formula
− 1 f^ (x)dx^ =^ af^ (−1) +^ bf^ (0) +^ cf^ (1) is exact for all polynomials of degree less than or equal to 2. Find a, b, and c.
MAD 3401 (Numerical Analysis) Section 02 Test 1, Thursday, February 06, 2003
Name: SSN:
Remember that no documents are allowed during the test. Be as precise as possible in your work; you shall show all your work to deserve the full mark assigned to any question. Do not cheat, otherwise I will be forced to give you a zero and report your act of cheating to the University administration. Good luck.
- [20] Let f (x) = ex^ sin x, x ∈ [0, 1], x 0 = 0. a) Find the third Taylor polynomial P 3 (x), and use it to approximate f (0.3). b) Use the error formula in Taylor’s Theorem to find an upper bound for the error |f (0.3) − P 3 (0.3)|. Compute the actual error.
c) Approximate
0 f^ (x)dx^ using^
0 P^3 (x)dx. d) Find an upperbound for the error in c) using
0 |R^3 (x)|dx
- [10] Let g(x) = (x + 1)
(^15) , x ∈ [1, 2]. a) Show that g has a unique fixed point α in (1, 2). b) If we want to use the fixed point iteration method to approximate α, compute x 1 and x 2 given that x 0 = 1.
- [10] a) Let f (x) = x − (ln x)x, x ∈ [4, 5]. Show that the equation f (x) = 0 has at least one solution in (4, 5). b) Let h(x) = 1 − ex^ − (1 − e) sin( π 2 x). Show that h′(x) is 0 at least once in [0, 1].
- [20] Let f (x) = x − cos x, x ∈ [0, 1]. a) Show that there exists α in (0, 1) with f (α) = 0. b) If we want to use the Newton’s Method to find α accurate to within 10−^5 , how many iterations should we use? c) If x 0 = 0, compute x 1 and x 2.
Test 2, Thursday, March 27, 2003
Name: SSN:
Remember that no documents are allowed during the test. Be as precise as possible in your work; you shall show all your work to deserve the full mark assigned to any question. Do not cheat, otherwise I will be forced to give you a zero and report your act of cheating to the University administration. Good luck.
- [15] Let f (x) = e−^3 x. Use the centered three-point formula with h = 0.001 to approximate f ′(0.2). Find the actual error. Use the error formula to find a bound on the error.
- [15] The clamped cubic spline that interpolates a function g(x) at x 0 = −2, x 1 = −1 and x 2 = 0 is defined by
S(x) =
s 0 (x) = 1 + (x + 2) − 2(x + 2)^2 + 3(x + 2)^3 , if − 2 ≤ x ≤ − 1 s 1 (x) = a + b(x + 1) + c(x + 1)^2 + d(x + 1)^3 , if − 1 ≤ x ≤ 0.
Given that g′(−2) = g′(0) + 2, find the values of the constants a, b, c, and d.
- [10] An unknown value M has the expansion M = N (h) + 13 h^3 − 16 h^6 + 19 h^9 − .... Find an O(h^6 ) approximation of M , and give the new expansion of M.
- [10] Suppose that xj = j, j = 0, 1 , 2 , 3 and P 01 (x) = x + 3, P 12 (x) = 3x + 1, P 123 (1.6) = 0.76. Find P 0123 (1.6).
- [10] The quadrature formula
0 f^ (x)dx^ =^ af^ (0) +^ bf^ (1) +^ cf^ (1.5) is exact for all polynomials of degree less than or equal to 2. Find a, b, and c.
MAD 3401 (Numerical Analysis) Section 01 Test 1, Wednesday, October 08, 2003
Name: SSN:
Remember that no documents are allowed during the test. Be as precise as possible in your work; you shall show all your work to deserve the full mark assigned to any question. Do not cheat, otherwise I will be forced to give you a zero and report your act of cheating to the University Administration. Good luck.
- [20] Let f (x) = ex^ + e−x^ − 1, x ∈ [0, 1], x 0 = 0. a) Find the second Taylor polynomial P 2 (x), and use it to approximate f (0.5). b) Use the error formula in Taylor’s Theorem to find an upper bound for the error |f (0.5) − P 2 (0.5)|. Compute the actual error.
c) Approximate
0 f^ (x)dx^ using^
0 P^2 (x)dx. d) Find an upper bound for the error in c) using
0 |R^2 (x)|dx.
- [14] Let g(x) = ln(x + 1.5), x ∈ [0, 1]. a) Show that g has a unique fixed point p in (0, 1). b) Use Algorithm 2.2 from textbook to approximate the fixed point p to within 10−^2 given p 0 = 1.
- [10] Let f (x) = x^6 − 3 x + 1, x ∈ [0, 1]. a) Use the bisection method to find p 3. b) Use the secant method to find p 3 given that p 0 = 0, and p 1 = 0.5.
- [16] Let f (x) = x − 2 sin x, x ∈ [1, 2]. a) Show that there exists p in (1, 2) with f (p) = 0. b) If we want to use the Newton’s Method to find p accurate to within 10−^4 , how many iterations should we use? c) If p 0 = 2, compute p 1 and p 2.
Test 2, Wednesday, November 19, 2003
Name: SSN:
Remember that no documents are allowed during the test. Be as precise as possible in your work; you shall show all your work to deserve the full mark assigned to any question. Do not cheat, otherwise I will be forced to give you a zero and report your act of cheating to the University Administration. Good luck.
- [15] Let f (x) = xe−x. Use the centered three-point formula with h = 0.03 to approximate f ′(0.2). Find the actual error. Use the error formula to find a bound on the error.
- [15] The clamped cubic spline that interpolates a function g(x) at x 0 = −2, x 1 = 0 and x 2 = 2 is defined by
S(x) =
s 0 (x) = a + b(x + 2) + (x + 2)^2 − 2(x + 2)^3 , if − 2 ≤ x ≤ 0 s 1 (x) = −1 + cx^2 + dx^3 , if 0 ≤ x ≤ 2.
Given that g′(2) = g′(−2) + 8, find the values of the constants a, b, c, and d.
- [10] An unknown value M has the expansion M = N (h) − 12 h^4 + 14 h^8 − 18 h^12 + .... Find an O(h^8 ) approximation to M , and give the new expansion of M.
- [10] Suppose that xj = j, j = 0, 1 , 2 , 3 and P 01 (x) = −x + 2, P 02 (x) = x − 1, P 123 (0.6) = 1.52. Find P 0123 (0.6).
- [10] The quadrature formula
0 f^ (x)dx^ =^ af^ (0) +^ bf^ (1) +^ cf^ (1.8) is exact for all polynomials of degree less than or equal to 2. Find a, b, and c.