Project overview
ABSTRACT
In this research, the classical fourth-order Runge-Kutta method is presented for solving the first-order ordinary differential equation. First, the given solution domain is discretized by using a uniform discretization grid point. Next by applying the forward difference method, we discretized the given ordinary differential equation and formulated a difference equation. Then using this difference equation, the given first-order ordinary differential equation is solved by using the classical fourth-order Runge-Kutta method at each specified grid point. To validate the applicability of the proposed method, two model examples were considered and solved at each specific grid point on its solution domain. The stability and convergent analysis of the present method were investigated; and the resultssupport the theoretical and mathematical statements and the accuracy of the solutions as obtained. Numerical and exact solutions have been presented in tables and graphs and the corresponding maximum absolute error was also presented in tables and graphs. The present method approximates the exact solution very well and it is quite efficient and practically well suited for solving first-order ordinary differential equations. The numerical result presented in tables and graphs indicates that the approximate solution is in good agreement with the exact solution. Hence the proposed method is accruable to solve ordinary differential equations.
CHAPTER ONE
1.0 INTRODUCTION
This chapter covers the introduction of the study, background, statement of the problem, aim and objectives, significance, scope and definition of important terms.
1.1 Background of the Study
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.
The reason behind numerical solution is to substitute a differential equation by a different formula. Differentiation is a continuous process while differencing is a discrete process. Numerical solution of differential equation gives accurate approximation to initial value problems. In the study of numerical methods, analytical techniques only help in finding an exact expression for the solution. Kedir(2021) said the numerical methods usually emphasize the implementation of 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.Ray, S. (2018) talked about the process of solving problems using high precision digital computers that generally involves starting from initial data; the concerned appropriate algorithms are then executed to yield the required results.
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 algebraic equations, transcendental equations, ordinary differential equations, and partial differential equations. The ordinary differential equation is a mathematical equation that is significant in physical phenomena that occur in nature. The majority of ordinary differential equations are difficult to approximate by analytical methods. Its, therefore, important to be able to obtain an accurate solution numerically. A more robust and intricate numerical technique is the Runge Kutta method. This is because it gives reliable starting values and is particularly suitable when the computation of higher derivatives is complicated.Numerical methods for the solution of ordinary differential equations may be put in two categories-numerical integration (e.g, predictor-corrector) methods and Runge-Kutta methods. The advantages of the latter are that they are self-starting and easy to program for digital computers but neither of these reasons is very compelling when library subroutines can be written to handle systems of ordinary differential equations. Hull, T. E.et al.(1972) said the greater accuracy and the error-estimating ability of predictor-corrector methods make them desirable for systems of any complexity. However, when predictor-corrector methods are used, Runge-Kutta methods still find application in starting the computation and in changing the interval of integration. One of this method Runge-Kutta 4th order method is a numerical technique used to solve ordinary differential equations. Runge-Kutta methods are considered in the context of using them for starting and for changing the interval, matters such as stability and minimization of round off errors are not significant.Basically, methods such as the Taylor series method, Euler method, Runge- Kutta second & third order methods, and finite difference method, have been used to approximate first-order ordinary differential equation. Despite their great success in solving mathematics problems, these methodsconsume a whole lot of time in order to solve ordinary differential equations, the costs and difficulties in creating quality solutions, other complications includes a slow rate of convergence, instability and 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 errors that the local behavior of the solution is captured exactly.
1.2 Statement of the Problem
Most initial value problems are solved using numerical methods. Numerical methods in practice do not give exact solutions but are rather used to obtain very accurate results. The fourth order Runge-Kutta method is very accurate numerical technique for solving initial value problems.
In this study, we shall use the fourth order Runge-Kutta method to solve first order initial value problems.
1.3 Aim and Objectives of the Study
The aim of this study is to develop a classical fourth-order Runge-Kutta method for solving the first-order ordinary differential equation. While the objectives are:
i to formulate the numerical method for solving first order ordinary differential equation;
- to test the extent to which the proposed method approximates the exact solution;
iii.to describe the advantage of the present method over another method.
1.4 Significance of the Study
Numerical methods are used in obtaining approximate solution to diverse problems in different fields especially in science and engineering. The Runge-Kutta method is important because of the accurate results it produces and its vast ability to provide low and high order solution of differential equations.
Runge-Kutta methods are also used in many researches for better solutions of the fluids.
1.5 Justification of the Study
Numerical methods are used in obtaining approximation solution to diverse problems in different fields especially in science and engineering, the Runge-Kutta method is important because of the accurate results it produces and its vast ability to provide low and high order solution of differential equations. Since many differential equations cannot be solved analytically, this method will provide a good approximations to initial value problems.
1.6 Scope of the Study
This study is delimited to the fourth-order Runge-Kutta method for solving first order ordinary differential equation given in the form of: a ≤ x ≤b
1.7 Definition of Terms
Definition 1.7.1(Habtamuet al. 2017)
A differential equation is an equation that contains at least one derivative of an unknown function, either an ordinary derivative or a partial derivative. For example
1.7.2 Types of differential Equations
Definition 1.7.3
Ordinary differential equation (ODE):This refers to an equation which involves one or more functions of one independent variable along with their derivatives.
Example
Definition 1.7.4
Partial differential equations (PDE): This is an equation containing an unknown function of two or more variables and its partial derivatives with respect to these variables.
Example
(i)
(ii)
Definition 1.7.5
Initial value problem (IVP)
In practice, interest is placed on solving a first order differential equation of the form:
:Where x is an independent variable and
Order of differentiation equation: The order of the differential equation is the highest order present in the equation.
Examples
(i) The order of the equation is 1
(ii) The order is 2
Definition 1.7.6
Boundary Value Problem (BV)
Many problems in applied mathematics require solutions of differential equations specified by conditions at more than one point of the independent variable. These are called boundary value problems; they are considerably more difficult to deal with than initial value problems, largely because of their global nature. Unlike (local) existence and uniqueness theorems known for initial value problems and there are no comparably general theorems for boundary value problems. Neither existence nor uniqueness is, in general, guaranteed. The finite difference method is used to solve ordinary differential equations that have conditions imposed on the boundary rather than at the initial point. These problems are called boundary-value problems. We concentrate here on two-point boundary value problems, in which the system of differential equations for x is an independent variable and and are boundary conditions given at boundary points of specific domains respectively a and b.
Example
with and
1.7.7 Runge-kutta methods
The Runge-Kutta methods can be classified into the following categories:
- Explicit
- Semi-implicit
- Implicit
Numerical methods for the solution of ordinary differential equations may be put in two categories-numerical integration (e.g., predictor-corrector) methods and Runge-Kutta methods. The advantages of the latter are that they are self-starting and easy to program for digital computers but neither of these reasons is very compelling when library subroutines can be written to handle systems of ordinary differential equations. Thus, the greater accuracy and the error-estimating ability of predictor-corrector methods make them desirable for systems of any complexity. However, when predictor corrector methods are used, Runge-Kutta methods still find application in starting the computation and in changing the interval of integration. Single-step methods for IV problems are Euler, Heun, and Midpoint/Improved Polygon and general Rung-Kutta methods. Multi-step methods for IV problems are Newton-cotes Adams methods. To solve the initial value problem is given in the form , , , key to the various one-step methods is how the slope is obtained. This slope represents a weighted average of the slope over the entire interval and may not be the tangent at (). Hence in this work we use Runge-Kutta methods. Employing single-step
Increment function or slope, is a weighted average: order method) where:= weighting factors (that sum to unity)
Now from this general n stage Runge-Kutta Methods, the classical fourth-order Runge-Kutta method employing single-step given as:
= [
Where
Global truncation error, 0(). 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.