What is the Runge-Kutta method?
The Runge-Kutta method
The Runge-Kutta (R-K) technique is an efficient and commonly used approach for solving initial-value problems of differential equations.
It's used to generate high-order accurate numerical methods without the necessity for high-order derivatives of functions. The Runge-Kutta method addresses Euler's method challenge in selecting a sufficiently short step size to provide satisfactory accuracy in problem resolution.
Note: Want to read more about ODEs? Refer here.
Formula
Consider an ordinary differential equation
The formulae for Runge-Kutta methods are defined as follows.
order R-K method
The formula is defined as follows:
This equation is equivalent to Euler's method.
order R-K method
The following series of formulae are involved in calculating
Here,
order R-K method
This level of R-K method comprises the following:
Here,
order R-K method
The R-K4 method is the most frequently used R-K method for solving differential equations.
The Runge-Kutta method estimates
Equations for calculating
Here,
is the interval size is the slope at the beginning using is the midpoint slop using and is again the midpoint slope using and is the slope at the end of the interval using and
Example
Find
Solution
Given the function
Step 1: Find
Step 2: Now put the values in
Continue the iterations till the optimized desired outcome is obtained.
Find for , , with step length using R-K2 method.
0.0999875
0.19965
0.674533
Applications
The R-K methods are widely employed in numerous disciplines, primarily in fluid dynamics and mechanics, to optimize fluid solutions. Simulation and games are two further real-world applications of this method.
Free Resources