Docsity

Math 661 Homework 6: Approximation Theory - Prof. Jingfang Huang, Assignments of Mathematics

Toggle sidebar
bg1
Math 661: Homework 6
Due: Oct. 10
Required Reading: Class Notes on Approximation Theory.
Recommended Reading: Textbook, Chapter 4.
Chebyshev Approximation:
(1). Given T0(x) = 1, T1(x) = x, construct T2(x), T3(x), T4(x) and T5(x) using the Triple
Recursion Formula (4.4.13).
(2). Write out the Chebyshev expansion for x4and x5for −1≤x≤1. (Similar to the
following formulas 1 = T0,x=T1,x2=1
2(T0+T2), x3=1
4(3T1+T3)).
(3). For −1≤x≤1, f(x) is defined by
f(x) = 1 −1
2x−1
8x2−3
24x3−15
384x4−165
3840x5
Try to approximate f(x) by its 4 terms Chebyshev expansion
p(x) = c0T0(x) + c1T1(x) + c2T2(x) + c3T3(x).
Find the coefficients {c0, c1, c2, c3}by using the results from (2), and plot the approximation
error f(x)−p(x).
(4). Above process can be used to “accelerate the convergence rate of Taylor expansion”.
Try to approximate f(x) = sin(x) for −1≤x≤1 with an error bound of 0.005 by
(a). Write out the Taylor Expansion of f(x). Truncate so that the error is less than 0.001.
What is the degree of this polynomial approximation?
(b). Using results from (2), write out the Chebyshev expansion of (4)(a), and truncate again
so that the error is less than 0.004. What is the degree this time?
Least Squares Approximation:
(5). Use matlab, and find the best least squares fit to the following data:
(xi, yi) = (−1,−1),(−1/2,0),(0,1),(1/2,2),(1,1),
assuming a model of the form
y(x) = asin(πx) + bcos(πx).
Please give (a, b) and the plot of the error. Here, least squares means we want to minimize
5
X
i=1
(yi−y(xi))2.

Partial preview of the text

Download Math 661 Homework 6: Approximation Theory - Prof. Jingfang Huang and more Assignments Mathematics in PDF only on Docsity!

Math 661: Homework 6 Due: Oct. 10

Required Reading: Class Notes on Approximation Theory. Recommended Reading: Textbook, Chapter 4.

Chebyshev Approximation:

(1). Given T 0 (x) = 1, T 1 (x) = x, construct T 2 (x), T 3 (x), T 4 (x) and T 5 (x) using the Triple Recursion Formula (4.4.13).

(2). Write out the Chebyshev expansion for x^4 and x^5 for − 1 ≤ x ≤ 1. (Similar to the following formulas 1 = T 0 , x = T 1 , x^2 = 12 (T 0 + T 2 ), x^3 = 14 (3T 1 + T 3 )).

(3). For − 1 ≤ x ≤ 1, f (x) is defined by

f (x) = 1 −

x −

x^2 −

x^3 −

x^4 −

x^5

Try to approximate f (x) by its 4 terms Chebyshev expansion

p(x) = c 0 T 0 (x) + c 1 T 1 (x) + c 2 T 2 (x) + c 3 T 3 (x).

Find the coefficients {c 0 , c 1 , c 2 , c 3 } by using the results from (2), and plot the approximation error f (x) − p(x).

(4). Above process can be used to “accelerate the convergence rate of Taylor expansion”. Try to approximate f (x) = sin(x) for − 1 ≤ x ≤ 1 with an error bound of 0.005 by (a). Write out the Taylor Expansion of f (x). Truncate so that the error is less than 0.001. What is the degree of this polynomial approximation? (b). Using results from (2), write out the Chebyshev expansion of (4)(a), and truncate again so that the error is less than 0.004. What is the degree this time?

Least Squares Approximation:

(5). Use matlab, and find the best least squares fit to the following data:

(xi, yi) = (− 1 , −1), (− 1 / 2 , 0), (0, 1), (1/ 2 , 2), (1, 1),

assuming a model of the form

y(x) = a sin(πx) + b cos(πx).

Please give (a, b) and the plot of the error. Here, least squares means we want to minimize

∑^5

i=

(yi − y(xi))^2.