430 likes | 641 Views
Hampiran Nuemik Solusi Persamaan Differensial (Lanjutan) Pertemuan 11. Matakuliah : K0342 / Metode Numerik I Tahun : 2006. PERTEMUAN-11. Hampiran Nuemik Solusi Persamaan Differensial (Lanjutan). Runge Kutta. Runge-Kutta Methods.
E N D
Hampiran Nuemik Solusi Persamaan Differensial (Lanjutan)Pertemuan 11 Matakuliah : K0342 / Metode Numerik I Tahun : 2006
PERTEMUAN-11 Hampiran Nuemik Solusi Persamaan Differensial (Lanjutan) Runge Kutta
Runge-Kutta Methods Runge-Kutta methods are very popular because of their good efficiency; and are used in most computer programs for differential equations. They are single-step methods, as the Euler methods.
Runge-Kutta Methods To convey some idea of how the Runge-Kutta is developed, let’s look at the derivation of the 2nd order. Two estimates
Runge-Kutta Methods The initial conditions are: The Taylor series expansion
Runge-Kutta Methods From the Runge-Kutta The definition of the function Expand the next step
Runge-Kutta Methods From the Runge-Kutta Compare with the Taylor series 4 Unknowns
Runge-Kutta Methods The Taylor series coefficients (3 equations/4 unknowns) If you select “a” as If you select “a” as Note: These coefficient would result in a modified Euler or Midpoint Method
Runge-Kutta Method (2nd Order) Example Consider Exact Solution The initial condition is: The step size is: Use the coefficients
Runge-Kutta Method (2nd Order) Example The values are
Runge-Kutta Method (2nd Order) Example The values are equivalent of Modified Euler
Runge-Kutta Method (2nd Order) Example [b] The values are
Runge-Kutta Method (2nd Order) Example [b] The values are
Runge-Kutta Methods The Runge-Kutta methods are higher order approximation of the basic forward integration. These methods provide solutions which are comparable in accuracy to Taylor series solution in which higher order derivatives are retained. It should be noted that the equations are not need to be linear.
The 4th Order Runge-Kutta The general form of the equations:
The 4th Order Runge-Kutta This is a fourth order function that solves an initial value problems using a four step program to get an estimate of the Taylor series through the fourth order. This will result in a local error of O(Dh5) and a global error of O(Dh4)
4th-orderRunge-Kutta Method f2 f4 f3 f1 xi xi + h/2 xi + h
Runge-Kutta Method (4th Order) Example Consider Exact Solution The initial condition is: The step size is:
The 4th Order Runge-Kutta The example of a single step:
Runge-Kutta Method (4th Order) Example The values for the 4th order Runge-Kutta method
Runge-Kutta Method (4th Order) Example The values are equivalent to those of the exact solution. If we were to go out to x=5. y(5) = -111.4129 (-111.4132) The error is small relative to the exact solution.
Runge-Kutta Method (4th Order) Example A comparison between the 2nd order and the 4th order Runge-Kutta methods show a slight difference.
The 4th Order Runge-Kutta Higher order differential equations can be treated as if they were a set of first-order equations. Runge-Kutta type forward integration solutions can be obtain. A more direct solution can be obtained by repeating the whole process used in first-order cases.
The 4th Order Runge-Kutta The general form of the 2nd order equations:
The step sizes are: The next step would be: