Docsity

Numerical Methods for ODEs: Initial & Boundary Value Problems, Study notes of Mathematics

Partial preview of the text

Download Numerical Methods for ODEs: Initial & Boundary Value Problems and more Study notes Mathematics in PDF only on Docsity!

Numerical Methods for ODE

“Mathematics is an experimental science, and definitions do not come first, but later on,” Oliver Heaviside

Initial Versus Boundary Value Problems

Initial Value Problems (IVP): Boundary Value Problems (BVP):

Euler and Implicit Euler Methods

Note: Euler’s Method: Left Endpoint Implicit Euler: Right Endpoint Stability: Apply method to (^) Forward Euler Implicit Euler

Runge-Kutta-Feylberg Methods

4th Order Runge-Kutta: Accuracy: Local Truncation error is 4th-order if u(t) has five continuous derivatives. Runge-Kutta-Feylberg: Use R-K method with 5th order truncation error to estimate local error in 4th order R-K method to choose appropriate stepsize.

MATLAB ODE Routines: From the Documentation

If using crude error tolerances to solve stiff systems. ode23tb Stiff Low For moderately stiff problems if you need a solution without numerical damping. ode23t Moderately Stiff Low If using crude error tolerances to solve stiff systems and the mass matrix is constant. ode23s Stiff Low If ode45 is slow because the problem is stiff Low to Medium ode15s Stiff For problems with stringent error tolerances or for solving computationally intensive problems. ode113 Nonstiff Low to High For problems with crude error tolerances or for solving moderately stiff problems. ode23 Nonstiff Low Most of the time. This should be the first solver you try. ode45 Nonstiff Medium Order of When to Use Accuracy Solver Problem Type

Example 1

Problem: Analytic Solution: Euler’s Method: 4th Order R-K: Similarly, What is going on?

Example 3

Feedback Control Design: State Estimator: Feedback Control: Implementation: (Nature) Issues:

  • Estimator must be integrated in real time!
  • Observations are available only at discrete times

Numerical Methods for BVP: Finite Differences

Problem: Grid: Centered Difference Formulas: (From Taylor expansions) System: Note: N interior grid points

Galerkin Methods

Boris Galerkin: 1871-1945; Mathematician and Engineer Consider on inner product space (^) For finite dimensional spaces, span (^) and span (^) find that satisfies Employ which yields for Terminology:

  • weight or test functions
  • basis, trial or shape functions

Galerkin Methods

Rayleigh-Ritz: Take so When A is symmetric and positive definite, this is the R-R method and solution is equivalent to that obtained by minimizing with respect to Finite Element: Employ piecewise polynomials for the test and trial functions. Operator A does not have to be symmetric. Least Squares: Take so Collocation: Take

Finite Element Method for BVP

Approximate Solution: System: Matrix System: Integrals: Gaussian quadrature; e.g., 2 pt Reference: Smith, Chapter 8

Error Estimates

Linear Splines: Cubic Splines: