Kedir Runge_kutta_ODE
Kedir Runge_kutta_ODE
Method
Key Words:Ordinary differential equation, Runge-kutta method, Initial value problem, boundary
value problem.
1. INTRODUCTION:
Numerical analysis is a subject that involves computational methods for studying and solving
mathematical problems. It is a branch of mathematics and computer science that creates,
analyzes, and implements algorithms for solving mathematical problems numerically.
Numerical methods usually emphasize the implementation of the numerical algorithms. The aim
of these numerical methods is, therefore, to provide systematic techniques for solving
mathematical problems numerically. Numerical methods are well suited for solving
mathematical problems by using modern digital computers, which are very fast and efficient in
performing arithmetic operations. The process of solving problems using high precision digital
computers generally involves starting from initial data; the concerned appropriate algorithms are
then executed to yield the required results [1].
The ultimate aim of the field of numerical analysis is to provide convenient methods for
obtaining the solutions to mathematical problems and for extracting useful information from
available solutions that are not expressed intractable forms. Such problems may be formulated in
terms of an algebraic equations, transcendental equations, ordinary differential equations, and
partial differential equations [2] and [3].
The ordinary differential equation is a mathematical equation that is significant in physical
phenomena that occur in nature. The majority of ordinary differential equations difficult to
approximate by analytical methods. Its, therefore, important to be able to obtain an accurate
solution numerically.
Traditionally, methods such as the Taylor series method, Euler method, and Runge-Kutta method
of the second and third-order, have been used to approximate first-order ordinary differential
equation. Despite their great success in the past decades in mathematics problems, these methods
require time to consume to solve ordinary differential equations. The costs and difficulties in
creating the quality solutions, however, constitute one of the major bottlenecks in these methods.
However, the complications of these methods include a slow rate of convergence, instability, low
accuracy. To this end this Project aims to develop a fourth-order Runge-Kutta method, that is
capable of producing an accurate solution of first-order ordinary differential equations on a
specific given domain.
In this work, we propose a numerical method for solving the first-order ordinary differential
equation and the convergence has been shown in the sense of absolute error so that the local
behavior of the solution is captured exactly.
y i+ 1= y j +hφ (xi , y j , h)
Increment function or slope, φ (x i , y j , h) is a weighted average:
φ=a 1 k 1 i +a 2 k 2 j+ …+a j k ji +…+ an k ¿ ( nth order methods) where: a j= weighting factors (that
sum to unity)
k 1i=hf (x i , y j)
k 2i=h f ¿,
k 2i=hf ¿
………
k 2i=hf ¿
Now forms this general n stage Runge-Kutta Methods, the classical fourth-order Runge-Kutta
method employing single-step given as:
1
y i+ 1= [ k +2 k 2 +2 k 3 + k 4 ]
6 1
where k 1=hf (x i , y j) ,k 2=hf ¿,k 3=hf ¿,k 2=f ¿. Global truncation error, O(h 4 ). For our
discussion, we shall consider This explicit Runge-Kutta method only. However, Runge-Kutta
methods must compare with the Taylor series method when they are expanded about the point x
= xi.
the maximum number of step, y ( x n ) is exact and y n approximation solution of IVP in Eq.(1) at the grid
point x n.
Numerical results and errors are computed and the outcomes are represented tabular and
dy x
graphically. Example (1): solve IVP given by = , y ( 0 )=1 , and its exact solution is
dx y
y= √ x 2 +1 for 0 ≤ x ≤ 1.
dy
Example (2): Consider the initial value problem =x ( 1+ y ) , y ( 0 )=1. Compute y ( 0.8 ) with
dx
2
x
h=0.1. The exact solution is ¿−1+2 e 2 .
Table 1: Computations numerical and exact solution for the first order initial value problem
given in example 1 and listing their corresponding maximum absolute errors.
Table 2: Computations numerical and exact solution for the first order initial value problem given in
example 2 and listing their corresponding maximum absolute errors.