

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A set of mathematical problems for a university course in math 575a. The problems cover topics such as properties of natural cubic splines, derivatives, and finite difference approximations. Students are asked to prove properties of functions, find interpolating polynomials, and derive numerical differentiation formulas. The practical part of the homework involves writing code to approximate derivatives using finite differences.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Part I: This part is the analytical part.
f (x) =
{ (x + 1) + (x + 1)^3 x ∈ [− 1 , 0] 4 + (x − 1) + (x − 1)^3 x ∈ (0, 1]
1 + cos x.
(a) Prove f is a periodic function with periodicity of 2π; (b) Find the trigonometric polynomial that interpolates f at x 0 = 0 , x 1 = π.
(a) f ′′′(x) ≈ (^) h^13 (f (x + 3h) − 3 f (x + 2h) + 3f (x + h) − f (x)); (b) f ′′′(x) ≈ (^21) h 3 (f (x + 2h) − 2 f (x + h) + 2f (x − h) − f (x − 2 h)).
f ′(x) =
2 h [f (x + h) − f (x − h)] −
h^2 6 f ′′′(x) −
h^4 120 f (5)(x) − · · ·
Part II: This part is practical
(−f (x + 2h) + 8f (x + h) − 8 f (x − h) + f (x − 2 h))
to approximate f ′(x), where f (x) = tan−^1 x and x =
% hw7.m % Implemention of the Richardson extrapolation algorithm % on Page 510 of Kincaid&Cheney.
x = 3; h = 1; M = 6; D = zeros(M,M); % Set D to be an M by M matrix with % all zero entries for n = 1 : M % In MATLAB, index has to start from 1 hn = h/2^(n-1); % Adapt the index in subsequent places D(n,1) = ( log(x+hn) - log(x-hn) ) / (2*hn); end for k = 2 : M for n = k : M D(n,k) = D(n,k-1) + ( D(n,k-1) - D(n-1,k-1) ) / (4^(k-1) - 1 ); end end
format long; disp(D);
(^1) on some editions of the book this is on page 436