Asymptotic Error Analysis

Similar documents
Math 225 Scientific Computing II Outline of Lectures

APPM/MATH Problem Set 4 Solutions

8 Piecewise Polynomial Interpolation

Finite difference methods

APPROXIMATING PDE s IN L 1

Deficient Quartic Spline Interpolation

Convergence of C 2 Deficient Quartic Spline Interpolation

= f (a, b) + (hf x + kf y ) (a,b) +

Fully discrete Finite Element Approximations of Semilinear Parabolic Equations in a Nonconvex Polygon

What is Multigrid? They have been extended to solve a wide variety of other problems, linear and nonlinear.

4.7 Approximate Integration

Lecture VIII. Global Approximation Methods: I

Index. C m (Ω), 141 L 2 (Ω) space, 143 p-th order, 17

February 2017 (1/20) 2 Piecewise Polynomial Interpolation 2.2 (Natural) Cubic Splines. MA378/531 Numerical Analysis II ( NA2 )

Computational Physics PHYS 420

Module 2: Single Step Methods Lecture 4: The Euler Method. The Lecture Contains: The Euler Method. Euler's Method (Analytical Interpretations)

Mar. 20 Math 2335 sec 001 Spring 2014

Piecewise polynomial interpolation

Discrete Cubic Interpolatory Splines

Chapter 6. Semi-Lagrangian Methods

Euler s Methods (a family of Runge- Ku9a methods)

MATH 122 FINAL EXAM WINTER March 15, 2011

CS 450 Numerical Analysis. Chapter 7: Interpolation

A C 2 Four-Point Subdivision Scheme with Fourth Order Accuracy and its Extensions

ADAPTIVE FINITE ELEMENT

Cubic Spline Interpolation with New Conditions on M 0 and M n

REVIEW I MATH 254 Calculus IV. Exam I (Friday, April 29) will cover sections

An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001)

Math 226A Homework 4 Due Monday, December 11th

Exercises for a Numerical Methods Course

A C 2 Four-Point Subdivision Scheme with Fourth Order Accuracy and its Extensions

ODE IVP. An Ordinary Differential Equation (ODE) is an equation that contains a function having one independent variable:

Volumes of Solids of Revolution

f xx + f yy = F (x, y)

Lacunary Interpolation Using Quartic B-Spline

There are also formulas of higher order for this situation, but we will refrain from giving them.

Parameterization of triangular meshes

Scientific Computing: Interpolation

ODEs occur quite often in physics and astrophysics: Wave Equation in 1-D stellar structure equations hydrostatic equation in atmospheres orbits

Mathematics for chemical engineers

Multi-Mesh CFD. Chris Roy Chip Jackson (1 st year PhD student) Aerospace and Ocean Engineering Department Virginia Tech

Spline Solution Of Some Linear Boundary Value Problems

MATH 2400, Analytic Geometry and Calculus 3

Study Guide for Test 2

The WENO Method in the Context of Earlier Methods To approximate, in a physically correct way, [3] the solution to a conservation law of the form u t

An ε-uniform Initial Value Technique For Convection-Diffusion Singularly Perturbed Problems

1\C 1 I)J1mptMIll 'betl~flbejlli

CS205b/CME306. Lecture 9

Linear Interpolating Splines

Interpolation - 2D mapping Tutorial 1: triangulation

Finite Difference Calculus

An Adaptive Stencil Linear Deviation Method for Wave Equations

and F is an antiderivative of f

Review Initial Value Problems Euler s Method Summary

Advective and conservative semi-lagrangian schemes on uniform and non-uniform grids

Lecture 8. Divided Differences,Least-Squares Approximations. Ceng375 Numerical Computations at December 9, 2010

Solve Non-Linear Parabolic Partial Differential Equation by Spline Collocation Method

AP Calculus AB. a.) Midpoint rule with 4 subintervals b.) Trapezoid rule with 4 subintervals

Integration by parts, sometimes multiple times in the same problem. a. Show your choices. b. Evaluate the integral. a.

Interpolation & Polynomial Approximation. Cubic Spline Interpolation II

New Basis Functions and Their Applications to PDEs

High Order Fixed-Point Sweeping WENO Methods for Steady State of Hyperbolic Conservation Laws and Its Convergence Study

A new 8-node quadrilateral spline finite element

arxiv: v1 [math.na] 20 Sep 2016

Collocation and optimization initialization

Numerical Methods for (Time-Dependent) HJ PDEs

A Quintic Spline method for fourth order singularly perturbed Boundary Value Problem of Reaction-Diffusion type

CONSERVATIVE AND NON-CONSERVATIVE METHODS BASED ON HERMITE WEIGHTED ESSENTIALLY-NON-OSCILLATORY RECONSTRUCTION FOR VLASOV EQUATIONS

Notice that the height of each rectangle is and the width of each rectangle is.

Computational QC Geometry: A tool for Medical Morphometry, Computer Graphics & Vision

Smoothers. < interactive example > Partial Differential Equations Numerical Methods for PDEs Sparse Linear Systems

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

Chapter 8: Applications of Definite Integrals

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

x n x n stepnumber k order r error constant C r+1 1/2 5/12 3/8 251/720 abs. stab. interval (α,0) /11-3/10

Higher-Order Accurate Schemes for a Constant Coefficient Singularly Perturbed Reaction-Diffusion Problem of Boundary Layer Type

Engineering Analysis ENG 3420 Fall Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

The use of the Spectral Properties of the Basis Splines in Problems of Signal Processing

An Interface-fitted Mesh Generator and Polytopal Element Methods for Elliptic Interface Problems

τ-extrapolation on 3D semi-structured finite element meshes

On the high order FV schemes for compressible flows

Numerical Methods in Physics Lecture 2 Interpolation

The Immersed Interface Method

Introduction to Multigrid and its Parallelization

Normals of subdivision surfaces and their control polyhedra

Problem #3 Daily Lessons and Assessments for AP* Calculus AB, A Complete Course Page Mark Sparks 2012

Space Filling Curves and Hierarchical Basis. Klaus Speer

Chapter 6 Some Applications of the Integral

Contents. I The Basic Framework for Stationary Problems 1

Chapter 3. Numerical Differentiation, Interpolation, and Integration. Instructor: Dr. Ming Ye

Polynomials tend to oscillate (wiggle) a lot, even when our true function does not.

Multigrid Pattern. I. Problem. II. Driving Forces. III. Solution

Adaptive techniques for spline collocation

Adaptive osculatory rational interpolation for image processing

An introduction to interpolation and splines

Functions of Two variables.

Generalised Mean Averaging Interpolation by Discrete Cubic Splines

4.2 and 4.6 filled in notes.notebook. December 08, Integration. Copyright Cengage Learning. All rights reserved.

Maximizing an interpolating quadratic

Transcription:

Asymptotic Error Analysis Brian Wetton Mathematics Department, UBC www.math.ubc.ca/ wetton PIMS YRC, June 3, 2014

Outline Overview Some History Romberg Integration Cubic Splines - Periodic Case More History: Strang s Trick PDE Problem and Discretization Piecewise Regular Grids Example Scheme Analysis Summary

Overview of the Talk Errors from computational methods using regular grids to compute smooth solutions have additional structure. This structure can allow Richardson Extrapolation lead to super-convergence help in the analysis of methods for non-linear problems Numerical artifacts (non-standard errors) can be present The process of finding the structure and order of errors can be called Asymptotic Error Analysis. Needs smooth solutions and regular grids. Historical examples: Romberg Integration, Cubic Splines, Strang s Trick. New result: a numerical artifact from an idealized adaptive grid with hanging nodes.

Trapezoidal Rule Trapezoidal Rule T h approximation to b a f (x)dx is the sum of areas of red trapezoids. Widths h = (b a)/n where N is the number of sub-intervals. Error bound b f (x)dx T h a where K = max f Second order convergence. (b a) Kh 2 12

Proof of Error Bound-I Consider a subinterval x [0, h]. Let L(x) be linear interpolation on this subinterval and g(x) = f (x) L(x), so g(0) = g(h) = 0. The error E of trapezoidal rule on this subinterval is Integrate by parts twice E = = 1 2 h 0 h 0 E = h 0 (x h/2)g (x)dx g(x)dx (x 2 xh)g (x)dx = 1 2 h 0 (x 2 xh)f (x)dx

Proof of Error Bound-II Subinterval E = 1 2 h 0 (x 2 xh)f (x)dx E K 2 h 0 (xh x 2 )dx = Kh3 12. Summing over N = (b a)/h subintervals gives the result I T h (b a) Kh 2 12

Trapezoidal Rule Applied Trapezoidal Rule applied to the integral I = 1 0 h I T h 1/2 0.0096 1/4 0.0024 1/8 0.00060 1/16 0.00015 1/32 0.00004 Not only is but I T h I T h lim h 0 h 2 (b a) Kh 2 12 sin xdx exists. There is regularity in the error that can be exploited.

Error Analysis of Trapezoidal Rule-I We had E Kh3 12 I T (b a) h Kh 2 12 but with a bit more work it can be shown that E = f aveh /12 + O(h 5 ) I T h = (b a) Ch 2 + O(h 4 ) 12 where C is average value of f on the subinterval. with more work the error in Trapezoidal Rule can be written as a series of regular terms with even powers of h (Euler-McLaurin Formula).

Error Analysis of Trapezoidal Rule-II T h = I + (b a) Ch 2 + O(h 4 ) 12 This error regularity justifies Richardson extrapolation I = ( 4 3 T h/2 1 3 T h) + O(h 4 ) The O(h 4 ) error above is regular and so can also be eliminated by extrapolation. Repeated application of this idea is the Romberg method.

Interesting Facts Richardson extrapolation of the Trapezoidal Rule is Simpson s Rule Trapezoidal and Midpoint Rules are spectrally accurate for integrals of periodic functions over their period

Cubic Splines Given smooth f (x) on [0,1], spacing h = 1/N, and data a i = f (ih) for i = 0,... N the standard cubic spline fit is a C 1 piecewise cubic interpolation. Cubic interpolation on each sub-interval for given values and second derivative values c i at the end points is fourth order accurate. If the second derivative values are only accurate to second order, the cubic approximation is still fourth order accurate. For C 1 continuity, c i 1 + 4c i + c i+1 = 6 h 2 (a i+1 2a i + a i 1 )

Cubic Splines - Periodic Analysis c i 1 + 4c i + c i+1 = 6 h 2 (a i+1 2a i + a i 1 ) In this case, c has a regular asymptotic error expansion c = f + h 2 ( 1 12 1 6 )f +... (the fact that c i 1 + c i+1 = 2c i + h 2 c +... is used). Since the c s are second order accurate, the cubic spline approximation is fourth order accurate. Notes: The earliest convergence proof for splines is in this equally spaced, periodic setting Ahlberg and Nilson, Convergence properties of the spline fit, J. SIAM, 1963 Lucas, Asymptotic expansions for interpolating periodic splines, SINUM, 1982.

Cubic Splines - Non-Periodic Case c i 1 + 4c i + c i+1 = 6 h 2 (a i+1 2a i + a i 1 ) In the non-periodic case, additional conditions are needed for the end values c 0 and c N : natural: c 0 = 0, O(1) derivative: 2c 0 + c 1 = 6 h 2 (a 1 a 0 ) 3 h f (0), O(h 2 ) not a knot: c 0 2c 1 + c 2 = 0, O(h 2 ) First convergence proof for derivative conditions Birkhoff and DeBoor, Error Bounds for Spline Interpolation, J Math and Mech, 1964.

Cubic Splines - Numerical Boundary Layer c i 1 + 4c i + c i+1 = 6 h 2 (a i+1 2a i + a i 1 ) No regular error can match the natural boundary condition c 0 = 0. However, note that 1 + 4κ + κ 2 = 0 has a root κ 0.268. Error Expansion: c i = f (ih) h 2 1 6 f (ih) f (0)κ i... The new term is a numerical boundary layer. In this case, the spline fit will be second order near the ends of the interval and fourth order in the interior. Reference?

Cubic Splines - Computation

PDE Problem and Discretization Strang, Accurate Partial Differential Methods II. Non-linear Problems, Numerische Mathematik, 1964 Suppose u(x, t), 0 t T, x [0, 1], periodic in x is smooth and solves u t = f (u x ). Divide [0, 1] into N sub-intervals of length h = 1/N. Let U i (t) u(ih, t), i = 1 N. Let D 1 be the second order centred finite approximation of the first derivative D 1 U i = U i+1 U i 1 2h = u x (ih, t) + h2 6 u xxx(ih, t) + O(h 4 ) Semi-discrete scheme (method of lines): du i dt = f (D 1 U)

Analysis of Scheme-I du i dt du i dt = f (D 1 U) Introduce the error E = U u = f (D 1 u) 1 6 f (u x )u xxx h 2 + O(h 4 ) de i dt = f (D 1 u)d 1 E + f (D 1 (u + θe))(d 1 E) 2 + O(h 2 ) Introduce the discrete l 2 norm E 2 = N h Note that i E 2 i E h 1/2 E 2

Analysis of the Scheme-II To handle the nonlinear error, a bootstrap argument is used. Assume E 2 h p for t T and show that the scheme converges with order greater than p to finish the argument. de i dt = f (D 1 u)d 1 E + f (D 1 (u + θe))(d 1 E) 2 + O(h 2 ) Multiplying the equation above by h and taking the inner product with E gives (after summation by parts) d E 2 dt Df (D 1 u) E 2 + f (D 1 (u+θe)) h p 5/2 E 2 +O(h 2 ) Note that the bootstrap argument can t be closed with this estimate.

Asymptotic Error Analysis-I The truncation error is smooth so it is reasonable to expect error regularity U = u + h 2 e + O(h 4 ) with e a smooth function of x and t, independent of h. I ll show how to construct this function e below, but assume it exists: u + h 2 e has truncation error O(h 4 ) in the discrete equations so by using E = U (u + h 2 e) in the analysis above, the bootstrap argument can be closed. The error expression above can be used to show full order convergence in maximum norm and difference approximations to derivatives (super-convergence) D 2 U = u xx + h 2 ( 1 12 u xxxx + e xx ) + O(h 4 ) Error regularity also leads to full order convergence of derivatives of solution functionals with respect to parameters.

Asymptotic Error Analysis-II Want u + h 2 e to satisfy the discrete equations to fourth order. du dt = f (D 1U) Plug in, expand, identify the O(h 2 ) term: e t = f (u x )e x + 1 6 f (u x )u xxx Realize that this problem (linearization about the exact solution forced by terms involving derivatives of the exact solution) has a smooth solution. You don t have to find the solution, just know that it exists.

More History Goodman, Hou and Lowengrub, Convergence of the Point Vortex Method for the 2-D Euler Equations, Comm. Pure Appl. Math, 1990 E and Liu, Projection Method I: Convergence and Numerical Boundary Layers, SINUM, 1995

Piecewise Regular Grids Computations on regular grids have many advantages. To retain some of the advantages but allow adaptivity, refinement in regular blocks is often done. Clinton Groth, University of Toronto

Idealized Piecewise Regular Grid Consider the idealized setting of a coarse grid and fine grid with a straight interface:

Problem and Discretization Consider the problem u = f. The grid spacing is h (coarse) and h/2 (fine). The discrete approximation is cell-centred, denoted by U. Away from the interface, a five point stencil approximation is used. At the interface, ghost points are introduced, related to grid points by linear extrapolation.

Analysis of Piecewise Regular Grid-I I advise not to try to analyze the accuracy of the scheme using the discrete approximation of the PDE near the interface Instead, determine the accuracy at which the interface conditions [u] = 0 and [ u/ n] = 0 are approximated.

Analysis of Piecewise Regular Grid-II The ghost point extrapolation is equivalent to 1 4 (U A + U A + U B + U B ) = 1 2 (U C + U C ) 1 h (U A U A + U B U B ) = 1 h (U C U C ) (U A U B U A + U B ) = 0 The first two conditions are second order approximations of the interface conditions [u] = 0 and [ u/ n] = 0. They contribute to the second order regular errors of the scheme (different on either side of the grid interface).

Analysis of Piecewise Regular Grid-III (U A U B U A + U B ) = 0 This is satisfied to second order by the exact solution, error h 2 u xy /4. Note that this only involves fine grid points. Expect a parity difference between fine grid solutions at the interface. This results in a numerical artifact of the form h 2 A(y)( 1) j κ i where (i, j) is the fine grid index and κ 0.172. This is a numerical boundary layer on the fine grid side that alternates in sign between vertically adjacent points.

Piecewise Regular Grid - Analysis Summary Coarse grid has regular error U coarse = u + h 2 e coarse +... Fine grid has regular error and the artifact U fine = u + h 2 e fine + h 2 u xy(0, y) 8(1 κ) ( 1)j κ i + Second order convergence in U (surprising? the scheme violates the rule of thumb ) Artifact causes loss of convergence in D 2,y U and D 2,x on the fine grid side at the interface.

Additional Discussion h q A(y)( 1) j κ i This artifact is present in all schemes (FE, FD, FV) on the grid, although the q may vary. Determinant condition, satisfied for stable schemes. For variable coefficient elliptic problems, κ(y) smooth.

Summary Asymptotic error analysis can be used to describe regular errors and numerical artifacts in finite difference methods and other schemes on regular meshes. Historical examples of Romberg integration; finite difference approximations of nonlinear, first order equations; and spline interpolation were given. Asymptotic error analysis can be used to help understand the accuracy of different implementations of boundary and interface conditions. A new result describing the errors in methods for elliptic problems on piecewise regular grids with hanging nodes was given.