
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!

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.