LECTURE 16: ORDINARY DIFFERENTIAL EQUATIONS • ODE: higher order differential equations can always be rewritten as a series of 1st order:

• We also need to specify boundary conditions. Typical case is initial value problem: we specify at initial time. For example, specify initial position and velocity of a particle and then use Newton’s law to solve for its time evolution

Euler method, 2nd order midpoint… • We start with the simplest method, 1st order Euler: • • 2nd order extension (midpoint, or 2nd order Runge-Kutta)

th 4

order Runge-Kutta

Historically often the method of choice

Add adaptive stepsize control, doubling the step Richardson extrapolation adds one more order

Bulirsch-Stoer method

• Uses Richardson’s extrapolation again (we used it for Romberg integration): we estimate the error as a function of interval size h, then we try to extrapolate it to h=0 • As in Romberg we need to have the error to be in terms of h2 instead of h • Can use polynomial or rational function extrapolation: we discussed both for interpolations

2nd order conservative equations • Stormer-Verlet with two step formulation: we are interpolating parabola through 3 points • Gains a factor of 2

One step formulation: leap-frog • We introduce momentum

Generalization: symplectic integrators • Symplectic integrators preserve phase space (p,q) volume: p,q must be canonical variables • Symplectic transformation preserves phase space area (p,q) (Lioville’s theorem)

• Hamiltonian is not conserved, but one does not accumulate amplitude error, only phase error • Useful if one needs to integrate a system for a long time (e.g. planet orbits etc)

Leapfrog is symplectic • w

Euler can be made symplectic

Phase space flow

Stiff equations

• Explicit (forward) Euler: • Unstable if h>2/c, since y goes to infinity • Example:

• But the system is unstable if h>1/1000 • Solution: implicit (backward Euler)

General approach • If we are solving a linear system

• Exact solution • Explicit scheme • Stability condition • Implicit scheme • Always stable

Stiff nonlinear equations • In general • Implicit scheme hard to solve • Linearize f (Newton’s method) • Invert Jacobian • This is semi-implicit Euler method • There are also stiff versions of higher order ODE

Partial differential equations • This is a vast subject, and we will only mention its existence • Hyperbolic, e.g. wave equation: • Parabolic, e.g. diffusion equation • Both of these are initial value (Cauchy) problems • Boundary value problem: elliptic, Elliptic, e.g. Poisson equation • If source r=0 this is Laplace equation

Finite difference methods • Discretize on a grid…

Summary • ODEs and PDEs are central to numerical analysis in physical sciences, engineering… • ODEs have a relatively stable methods • PDEs have a vast array of approaches: relaxation, finite differences, finite elements, spectral methods, matrix methods, multi-grid, Monte Carlo, variational…

Literature • NR, Press etal. 17-20

lecture 16: ordinary differential equations - GitHub

Bulirsch-Stoer method. • Uses Richardson's extrapolation again (we used it for. Romberg integration): we estimate the error as a function of interval size h, then we try to extrapolate it to h=0. • As in Romberg we need to have the error to be in terms of h2 instead of h. • Can use polynomial or rational function extrapolation: we ...

2MB Sizes 0 Downloads 268 Views

Recommend Documents

Ordinary Differential Equations Autumn 2016 - GitHub
Mar 29, 2017 - A useful table of Laplace transforms: http://tutorial.math.lamar.edu/pdf/Laplace Table.pdf. Comment. Here you finally get the opportunity to practise solving ODE's using the powerful method of Laplace transformations. Please takes note

Concepts of Ordinary Differential Equations Kris Kissel - GitHub
41. Chapter 4. First Order Linear Equations. 53. Chapter 5. Taylor Solutions. 63. Focus on Modeling: Pendulums. 72. Chapter 6. Existence and Uniqueness. 75. Part 2. Second ... by students (in particular, the material on matrices and separation of var

Nonlinear Ordinary Differential Equations - Problems and Solutions ...
Page 3 of 594. Nonlinear Ordinary Differential Equations - Problems and Solutions.pdf. Nonlinear Ordinary Differential Equations - Problems and Solutions.pdf.

unit 4 solution of ordinary differential equations using ...
The Runge-Kutta-Gill method is also used widely. But in this unit, we shall mostly work out problems with the classical R-K method of O(h4). Hence, whenever we refer to R-K method of O(h4) we mean only the classical R-K method of O(h4) given by (32).

numerical methods for ordinary differential equations butcher pdf ...
Page 1 of 1. numerical methods for ordinary differential equations butcher pdf. numerical methods for ordinary differential equations butcher pdf. Open. Extract.

pdf-1458\ordinary-differential-equations-using-matlab2nd-second ...
... apps below to open or edit this item. pdf-1458\ordinary-differential-equations-using-matlab2nd-second-edition-by-david-arnold-john-c-polkinghorne.pdf.

unit 7 numerical solution of ordinary differential equations
In the previous two units, you have seen how a complicated or tabulated function can be replaced by an approximating polynomial so that the fundamental operations of calculus viz., differentiation and integration can be performed more easily. In this

DOWNLOAD in @PDF Ordinary Differential Equations
Ordinary Differential Equations: From Calculus to Dynamical Systems (Maa ... The standard analytic methods for solving first and second-order differential ...

LECTURE 7: NONLINEAR EQUATIONS and 1-d ... - GitHub
solving nonlinear equations and 1-d optimization here. • f(x)=0 (either in 1-d or many ... dimensions. • Requires a gradient: f(x+δ)=f(x)+δf'(x)+… • We want f(x+δ)=0, hence δ=-f(x)/f'(x). • Rate of convergence is quadratic (NR 9.4) εi+

Stochastic Differential Equations
The figure is a computer simulation for the case x = r = 1, α = 0.6. The mean value .... ferential equations at Edinburgh University in the spring 1982. No previous.

Stochastic Differential Equations
I want to thank them all for helping me making the book better. I also want to thank Dina ... view of the amazing development in this field during the last 10–20 years. Moreover, the close contact .... As an illustration we solve a problem about ..

Lecture 1 - GitHub
Jan 9, 2018 - We will put special emphasis on learning to use certain tools common to companies which actually do data ... Class time will consist of a combination of lecture, discussion, questions and answers, and problem solving, .... After this da

Transcriptomics Lecture - GitHub
Jan 17, 2018 - Transcriptomics Lecture Overview. • Overview of RNA-Seq. • Transcript reconstruc囉n methods. • Trinity de novo assembly. • Transcriptome quality assessment. (coffee break). • Expression quan懿a囉n. • Differen鶯l express

Simulating Stochastic Differential Equations and ...
May 9, 2006 - This report serves as an introduction to the related topics of simulating diffusions and option pricing. Specifically, it considers diffusions that can be specified by stochastic diferential equations by dXt = a(Xt, t)dt + σ(Xt, t)dWt,