RUNGE-KUTTA 2nd ORDER METHOD
INTERACTIVE E-BOOK
|
Ordinary Differential Equations
|
MAJOR
GENERAL
|
On non Internet
Explorer browsers, the equations may not show up.
As an alternative or if you
prefer,
you can see the pdf version of the ebook instead
Title
|
An interactive e-book for illustrating Runge-Kutta 2nd Order Method of solving ordinary differential equations |
|
Creator |
Autar K Kaw |
|
Subject and Keywords |
Runge-Kutta 2nd Order Method, Ordinary Differential Equations, Mathcad, Maple, Mathematica, Matlab, Simulations. |
|
Description |
This is an interactive E-book for illustrating Runge-Kutta 2nd Order Method for solving ordinary differential equations. It includes links to examples, simulations in Mathcad, Maple, Mathematica, and Matlab for the algorithm, convergence, and a PowerPoint presentation. |
|
Publisher |
Holistic Numerical Methods Institute, |
|
Contributors |
Autar Kaw |
|
Format |
Text/HTML |
|
Last Revised |
May 4, 2006 |
|
Identifier |
http://numericalmethods.eng.usf.edu/ebooks/runge2nd_08ode_ebook.pdf |
|
Language |
English |
|
Rights |
|
What
are ordinary differential equations? A Primer on Ordinary Differential Equations Runge-Kutta 2nd Order Method for Ordinary Differential Equations Examples Example 1: First order differential equation rewritten in dy/dx=f(x,y) form Example 2: First order differential equation rewritten in dy/dx=f(x,y) form Example 3: Heat Transfer Problem Solved Using Runge-Kutta 2nd Order Method Methods Simulation of Runge-Kutta 2nd Order Method [MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB] Convergence of Runge-Kutta 2nd Order Method [MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB] |
|||||
|
Background This is an example of how an instructor of a Numerical Methods course can develop an E-book on a single topic by using resources that are only available at the Holistic Numerical Methods Institute (HNMI) Website. Although one of the primary advantages of a web-based resource is that one can use documents outside of its own domain, we are particularly using this example as a way to illustrate the holistic nature of the resources available at HNMI. You are welcome to modify and edit this e-book to suit your purpose. Using the textbook
document written in MS Word 2000 as a foundation Runge-Kutta 2nd Order
Method for Ordinary Differential Equations Runge-Kutta 2nd order method is a numerical technique to solve ordinary differential equation of the form Only first order ordinary differential equations can be solved by using Runge-Kutta 2nd order method. In other sections, we have discussed how Euler and Runge-Kutta methods are used to solve higher order ordinary differential equations or coupled (simultaneous) differential equations. How does one write a first order differential equation in the above form? is rewritten as In this case Another example is given as follows: is rewritten as In this case Euler’s method is given by where To
understand Runge-Kutta 2nd order method, we need to derive Euler’s
method from As
you can see the first two terms of the are the Euler’s method and hence can be considered to be Runge-Kutta 1st order method. The true error in the approximation is given by So
how would a 2nd order method formula look like. It would include one more term of the Let us take a generic example of a first ordinary differential equation Now since y is a function of x, The 2nd order formula for the above example would be However,
we already see the difficulty of having to find where This
form allows one to take advantage of the 2nd order method without
having to calculate So how do we find the unknowns Since
we have 3 equations and 4 unknowns, we can assume the value of one of the
unknowns. The other three will then be
determined from the three equations.
Generally the value of Here
resulting in where This method is graphically explained in Figure 1.
Here
resulting in where Here
resulting in where Simulation of Runge-Kutta 2nd Order Method [MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB] Convergence
of Runge-Kutta 2nd Order Method [MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB] Example 3 A ball at 1200K is allowed to cool down in air at an ambient temperature of 300K. Assuming heat is lost only due to radiation, the differential equation for the temperature of the ball is given by Find
the temperature at Solution Per Heun’s method given by Equations (8) and (9) The results from Heun’s method are compared with exact results in Figure 2. The exact solution of the ordinary differential equation is given by the solution of a non-linear equation as The solution to this nonlinear equation at t=480 is
Using smaller step size would increases the accuracy of the result as given in Table 1 and Figure 3 below. Table 1. Effect of step size for Heun’s method
|