|
Posted: 10/18/23
Due: 10/25/23, 11:59PM
These exercises focus on midterm examination preparation.
Find the polynomial of least degree that interpolates the data .
Solution. Table of divided differences
leads to .
Find the polynomial of least degree that interpolates the data .
Solution. Table of divided differences with repetitions
leads to .
Find the polynomial of least degree that interpolates the data .
Solution. Table of divided differences with repetitions
leads to .
Find such that
is a natural spline on the interval.
Solution. Continuity of function conditions:
Continuity of function derivative conditions:
Obtain system
with solution .
Apply the Gram-Schmidt algorithm to orthonormalize the function set with respect to the scalar product
Solution. Obtain . Compute , and bring to unit norm
Finally, compute
Normalize to obtain
Let denote the orthonormalized set found above. Find the best -norm approximant of on the interval .
Solution. Since is odd and are even deduce . For compute
As above, find the best -norm approximant of on the interval .
Solution. As above, now , and compute
Find the best approximant of on the interval in the -norm.
Solution. The error has a local extremum at , and an endpoint extremum at . Best approximant obtained when
A numerical procedure can be used to to find , the root of the above equation.
In the limit the divided difference
has limit . Write and establish the validity of the finite difference form of the product rule .
Solution. Let . The divided difference of the product is
The product derivative rule suggests
leading to
and identification , and product rule
or
Repeat the above for second order finite differences and .
Solution. Generalize above result to
A natural cubic spline has zero curvature at the end points. Prove that of all cubic spline interpolations of data , the natural spline curvature two-norm is bounded by the function curvature two-norm
Solution. Consider the Hilbert space of square integrable functions with scalar product, norm
The above statement is rewritten as
Let to obtain
and the requested inequality holds if
With , , integrate over subintervals
(1) |
Integrate by parts
note that is constant, and replace in (1) to obtain
At nodes due to the interpolation condition and terms cancel out giving
For natural end conditions , hence
Note that this leads to
a Pythagorean theorem, stating that the projection of onto space of first-degree splines is orthogonal.
Find such that
is a natural spline on the interval.
Solution. See above.
Present an analysis of the conditioning of quadratic spline interpolation.
Solution. The problem of quadratic spline interpolation is stated as , and from L21 the slope system is
so the problem is linear with a condition number bounded by that of the above bidiagonal matrix
Carry out a numerical experiment.
∴ |
using SparseArrays |
∴ |
function S(m) spdiagm(0 => ones(m), -1 => ones(m-1)) end; |
∴ |
collect(S(8)) |
(2)
∴ |
r=10:10:100; cond.(Matrix.(S.(r))) ./ r |
(3)
∴ |
r=100:25:250; cond.(Matrix.(S.(r))) ./ r |
(4)
∴ |
r=250:250:1000; cond.(Matrix.(S.(r))) ./ r |
(5)
The above suggests has a condition number , , a well-conditioned problem.
Apply the Gram-Schmidt algorithm to orthonormalize the function set with respect to the scalar product
Solution. As above, obtain Chebyshev polynomials.
Find the best approximant of on the interval in the 2-norm and the -norm.
Solution. See Midterm2 solution.
Prove that best inf-norm approximant of , by a quadratic polynomial has form , with . Compute .
Solution. Since is even, is also even, and restrict to . Equioscillation theorem implies that error satisfies