Docsity

Numerical Methods for Math Functions & Differential Equations: MATH 128A Study Guide, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
MATH 128A (S101/102 SP2009) MT2 STUDY GUIDE
Algorithm §Problem Matlab Use Case
Natural Cubic Spline 3.4 Interpolation ncspline Non-poly. f, many sample points
Clamped Cubic Spline 3.4 Interpolation ccspline If f0is known at endpoints
(Spline Evaluation) 3.4 Interpolation splineeval
(n+1)-point rule 4.1 Differentiation (Often) with n= 2,4 and xi=x0+ih
Richardson Extrap. 4.2 Conv. Accel rich_demo Improving low-order, easily refined methods
Newton-Cotes 4.3 Integration Naive method; includes trapezoidal, Simpson’s
Composite Integration 4.4 Integration Naive method
Romberg Integration 4.5 Integration romberg Certain functions
Adaptive (Simpson’s) 4.6 Integration quad Reaching a required tolerance
Gaussian Quadrature 4.7 Integration gaussquad Smooth functions
Euler’s Method 5.2 IVP Naive method
Taylor Methods 5.3 IVP If derivatives of fare known
Runge-Kutta Methods 5.4 IVP rk4 If they aren’t; 4th-order typically most useful.
•Interpolating polynomials and osculating polynomials (inclusing Taylor polynomials) are crucial to
the theory of numerical methods.
•Numerical differentiaton is unstable: (n+ 1)-point methods incur error āˆhnf(n+1)(ξ)and ā‰ˆī˜/h
from round-off.
•The Richardson extrapolation process changes if (e.g.) all error terms are of even order.
•For multiple integrals, use iterated integration.
•For improper integrals, use substitutions and power series around vertical asymptotes.
•An integrator’s degree of precision is the degree of polynomial it will always integrate exactly. Gauss-
ian quadrature optimizes it.
•IVP is of the form y0(t) = f(t, y), a≤t≤b,f(t0) = y0. A Lipschitz constant is usually a bound on



āˆ‚f
āˆ‚y


for tin the domain and yin ā€œthe rangeā€ of f. Details are in 5.1. If fis continuous and a Lips-
chitz constant exists, IVP is well-posed: solving a small perturbation of the IVP causes a small error.
•An IVP-solver’s local truncation error (at each node ti) is yactual
i+1 āˆ’yactual
i
hiāˆ’Ļ†(ti, yactual
i, hi). Here
hi=ti+1 āˆ’tiand a step of the IVP solver is represented as yi+1 =yi+hiφ(ti, yi, hi). Higher-order
Taylor methods and Runge-Kutta methods optimize it (given different information).
1

Partial preview of the text

Download Numerical Methods for Math Functions & Differential Equations: MATH 128A Study Guide and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

MATH 128A (S101/102 SP2009) MT2 STUDY GUIDE

Algorithm § Problem Matlab Use Case Natural Cubic Spline 3.4 Interpolation ncspline Non-poly. f , many sample points Clamped Cubic Spline 3.4 Interpolation ccspline If f ′^ is known at endpoints (Spline Evaluation) 3.4 Interpolation splineeval (n+1)-point rule 4.1 Differentiation (Often) with n = 2, 4 and xi = x 0 + ih Richardson Extrap. 4.2 Conv. Accel rich_demo Improving low-order, easily refined methods Newton-Cotes 4.3 Integration Naive method; includes trapezoidal, Simpson’s Composite Integration 4.4 Integration Naive method Romberg Integration 4.5 Integration romberg Certain functions Adaptive (Simpson’s) 4.6 Integration quad Reaching a required tolerance Gaussian Quadrature 4.7 Integration gaussquad Smooth functions Euler’s Method 5.2 IVP Naive method Taylor Methods 5.3 IVP If derivatives of f are known Runge-Kutta Methods 5.4 IVP rk4 If they aren’t; 4th-order typically most useful.

  • Interpolating polynomials and osculating polynomials (inclusing Taylor polynomials) are crucial to the theory of numerical methods.
  • Numerical differentiaton is unstable: (n + 1)-point methods incur error āˆ hnf (n+1)(ξ) and ā‰ˆ /h from round-off.
  • The Richardson extrapolation process changes if (e.g.) all error terms are of even order.
  • For multiple integrals, use iterated integration.
  • For improper integrals, use substitutions and power series around vertical asymptotes.
  • An integrator’s degree of precision is the degree of polynomial it will always integrate exactly. Gauss- ian quadrature optimizes it.
  • IVP is of the form∣ y′(t) = f (t, y), a ≤ t ≤ b, f (t 0 ) = y 0. A Lipschitz constant is usually a bound on ∣ ∣ āˆ‚fāˆ‚y

∣ for t in the domain and y in ā€œthe rangeā€ of f. Details are in 5.1. If f is continuous and a Lips- chitz constant exists, IVP is well-posed: solving a small perturbation of the IVP causes a small error.

  • An IVP-solver’s local truncation error (at each node ti) is y

actual i+1 āˆ’y iactual hi āˆ’^ φ(ti, y

actual i , hi).^ Here hi = ti+1 āˆ’ ti and a step of the IVP solver is represented as yi+1 = yi + hiφ(ti, yi, hi). Higher-order Taylor methods and Runge-Kutta methods optimize it (given different information).

1