MATH661 HW08 - Linear operator approximation

Posted: 10/25/23

Due: 11/06/23, 11:59PM

The basic idea in linear operator approximation is to apply the exact operator to an approximation of the input. These exercises explore and reinforce this concept.

1Track 1

  1. Use Taylor series expansions to verify the approximations

    f'(t)112h[-f(t+2h)+8f(t+h)-8f(t-h)+f(t-2h)],
    f'(t)12h[-3f(t)+4f(t+h)-f(t+2h)].

    Determine the error term. Construct the polynomial approximant pn(t)f(t) whose derivative leads to the above formula. Conduct a convergence study as h0 for f(t){sin(πt/4),e10t,e-10t} at t0=1, and compare the observed order of convergence with the theoretical estimate.

  2. As above for

    f''(t)112h2[-f(t+2h)+16f(t+h)-30f(t)+16f(t-h)-f(t-2h)],
    f'''(t)1h3[f(t+3h)-3f(t+2h)+3f(t+h)-f(t)].
  3. Construct a recursive function RecInt(a,b,err,f,Q) that has arguments scalars a,b,err and functions f,Q and approximates

    I(f)=abf(t)dt

    through repeated application of quadrature rule Q(f,a,b) according to the algorithm

    Algorithm

    Recursive quadrature

    RecInt(a,b,err,f,Q)

    c=a+(b-a)/2

    Qab=Q(f,a,b);Qac=Q(f,a,c);Qcb=Q(f,c,b)

    e=|Qac+Qcb-Qab|/|Qac+Qcb|

    if e<err

    return Qac+Qcb

    else

    return RecInt(a,c,err,f,Q)+RecInt(c,b,err,f,Q)

    Test the recursive integration procedure with trapezoid, Simpson, and Gauss-Legendre rules of orders 2,3 on the integral

    -11cos(1t).

    For each case, present plots of the integrand and the evaluation points used in the recursive quadrature algorithm. Construct convergence plots by executing the algorithm for various error thresholds εk and recording the number of evaluation points nk. Plot (lognk,logεk) and comment on whether the observed order of convergence is that predicted by theoretical quadrature error estimates.

2Track 2

  1. Use the finite difference expressions of the derivative

    ddt=1h(Δ-12Δ2+)=1h(+122+)=1h(δ-δ324+)

    to obtain the approximations.

    f'(t)112h[-f(t+2h)+8f(t+h)-8f(t-h)+f(t-2h)],
    f'(t)12h[-3f(t)+4f(t+h)-f(t+2h)].

    Conduct a convergence study as h0 for f(t){sin(πt/4),e10t,e-10t} at t0=1, and compare the observed order of convergence with theoretical estimates. How do the three functions differ, and what effect does this have on derivative approximation?

  2. As above for

    f''(t)112h2[-f(t+2h)+16f(t+h)-30f(t)+16f(t-h)-f(t-2h)],
    f'''(t)1h3[f(t+3h)-3f(t+2h)+3f(t+h)-f(t)].

    Use the series products

    d2dt2=ddtddt=1h2(Δ-12Δ2+)(Δ-12Δ2+).
  3. Romberg integration is a combination of trapezoid quadrature over decreasing subintervals and Aitken extrapolation. Implement Romberg integration and test on

    01etcos(πt)dt.

    Present a convergence sutdy. What is the observed order of convergence?