Title: Adaptive Runge-Kutta
1- Adaptive Runge-Kutta
- addresses the problem of functions that change
rapidly at a point
2- Would like to use small size steps in the area of
rapid change - normal size steps in area of
normal change - Two approaches behind adaptive step size
- look at difference between predictions with
different step sizes but same order RK - look at difference between predictions with
different order RK
3Step-halving or adpartive Runge-Kutta let y1 be
single-step prediction let y2 be prediction using
two half steps
The correction is
fifth order accurate
4Example
5Integrate y from x0 to 2 using h2, and improve
using adaptive RK
Complete step results are
Half step results are
6The correction is
The corrected value is
Compare to true value y(2)2.524369
7Runge-Kutta-Fehlberg Uses two different RK
predictions of different order Special choice of
methods lets you use results from 4th order in
5th order RK - then combine them
8Fourth order RK
Fifth order RK
9Formula for ks
10Example
Use h2, and the RKF method
11The results are RK42.542811 RK52.554121 and
EaRK5-RK42.554121-2.5428110.01131 Now adjust
stepsize
12If Ea is too small, increase step size If Ea is
too large, decrease step size
13Stiffness stiff equation involves rapidly
changing parts and slowly changing parts
Solution is
14(No Transcript)
15Look at homogeneous part of equation
In general
Explicit Eulers method
16Look at what happens to y over long time -
stability
If then y goes to infinity So for explicit
method to work - small h
17Need to use implicit methods, rather than
explicit Implicit form of the Euler method
18Implicit Euler is always stable - as i
increases y goes to 0
19Example
Explict solution since a is 2000, let h0.0001
20Stability limit is h0.0005 Try h0.0007
21Try h0.001
22h0.002
23Implicit approach
24h0.002