Journal of Computational Engineering

Volume 2013, Article ID 720812, 5 pages

http://dx.doi.org/10.1155/2013/720812

## An Implicit Method for Numerical Solution of Singular and Stiff Initial Value Problems

Department of Mathematics, Rajshahi University of Engineering and Technology, Rajshahi 6204, Bangladesh

Received 29 April 2013; Revised 27 August 2013; Accepted 30 August 2013

Academic Editor: Fu-Yun Zhao

Copyright © 2013 M. Kamrul Hasan et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

An implicit method has been presented for solving singular initial value problems. The method is simple and gives more accurate solution than the implicit Euler method as well as the second order implicit Runge-Kutta (RK2) (i.e., implicit midpoint rule) method for some particular singular problems. Diagonally implicit Runge-Kutta (DIRK) method is suitable for solving stiff problems. But, the derivation as well as utilization of this method is laborious. Sometimes it gives almost similar solution to the two-stage third order diagonally implicit Runge-Kutta (DIRK3) method and the five-stage fifth order diagonally implicit Runge-Kutta (DIRK5) method. The advantage of the present method is that it is used with less computational effort.

#### 1. Introduction

Mathematical models of numerous applications from physics, chemistry, and mechanics take the form of systems of time-dependent partial differential equations subject to initial or boundary conditions. For the investigation of stationary solutions, many of these models can be reduced to singular systems of ordinary differential equations, especially when symmetries problem in the geometry and polar, cylindrical, or spherical coordinates can be used.

The leading-edge model describing the avalanches dynamics [1] has the form of a singular initial value problem for a scalar ordinary differential equation. Koch et al. [2, 3] applied implicit Euler method (backward) to evaluate the approximate solutions of this type of singular initial value problem and finally used an acceleration technique known as the Iterated Defect Correction (IDeC) to improve the approximations. The second order implicit Runge-Kutta (RK2) method (i.e., implicit midpoint rule) is a higher-order solver than the implicit Euler method for solving singular initial value problems. For some singular initial value problems, the present method gives more accurate solutions than those of implicit Euler method as well as second order implicit Runge-Kutta (RK2) method.

Implicit methods are more suitable than explicit methods for solving stiff problems because of their higher-order accuracy. Stiff differential equations arise in a variety of physical applications, such as network analysis and chemical or nuclear kinetics [4]. Stiff differential equations also occur in many kinds of studies, such as biochemistry, biomedical system, weather prediction, mathematical biology, electronics, fluids and heat transfer [5]. For example, the stiffness in heat transfer originates physically in one of two ways: sharp changes in the thermal environment or large differences in the rates at which components of the system can transfer heat. Alexander [6] solved stiff problems by using different stage and different order diagonally implicit Runge-Kutta (DIRK) methods. For these methods, the coefficient matrix has lower triangular structure with equal elements on the diagonal, sometimes referred to as singly equal diagonals. Ababneh and Ahmad [5] derived and applied a three-stage third order diagonally implicit Runge-Kutta (AM-DIRK3) method for solving stiff problems. Then, Ababneh et al. [7] evaluated stiff problems by using five-stage fifth order diagonally implicit Runge-Kutta (DIRK5) method. The diagonal elements of these methods (AM-DIRK3 and DIRK5) are equal. In this paper, we use two-stage third order diagonally implicit Runge-Kutta (DIRK3) method whose diagonal elements are not equal. But, the derivation as well as the utilization of the previous diagonally implicit Runge-Kutta (DIRK) methods is laborious. The aim of this paper is to derive a simple implicit method specially for solving singular and stiff initial value problems.

#### 2. Derivation of the Formula

Recently, an implicit formula [8, 9] has been derived for solving singular initial value problems having an initial singular point in the form aswhere, .

In [9], (2a) and (2b) were solved numerically for unequal interval as . In this regard, step size as well as error gradually increased. To overcome this difficulty, the methods (2a) and (2b) is modified as where

This method is useful for solving initial value problems having an initial singular point. Another method [8] can be derived for solving initial value problem (1) having an terminal singular point as Earlier, a two-stage third order diagonally implicit Runge-Kutta (DIRK3) method was used for solving various initial value problems. The formula is given as follow: where and .

The disadvantage of this method is that it is calculated in two stages. On the contrary, (3) is calculated in a single stage. The order of truncation error of the formulae (3), (4), and (5) is .

#### 3. Examples

In Section 1, it has already been mentioned that the first order singular initial value problem of the form (9) is used to represent the leading-edge model describing the avalanche dynamic [1]. This model is used in the computation of the run-out length of dry-flowing avalanches. Moreover, the amplitude and phase equations appear in the first order nonlinear equations when Krylov-Bogoliubov-Mitropolski (KBM) method [10] is applied to solve the second order nonlinear differential equation . Recently, , (well known as Lane-Emden equation) is solved by the KBM method. In this case, amplitude and phase equations [11] become first order singular differential equations of the form (9). The method is illustrated by following the first order singular and stiff initial value problems.

*Example 1. *Consider a first order initial value problem in the form
Equation (6) can be written as
Integrating (7) and applying initial condition, we get the exact solution of (6) which is
To compare the present method to other existing methods we have derived the absolute error and plotted it in the figures. First, the absolute error of solution of (6) by the present method (i.e., (3)), the implicit Euler method, the second order implicit Runge-Kutta method, and the two-stage third order diagonally implicit Runge-Kutta (DIRK3) method are plotted in Figure 1 with step size when , , and .

*Example 2. *Consider another form of the first order singular initial value problem which is
The exact solution of (9) is
Since the solution of (9) is singular at for , so we choose at as the initial condition. The absolute errors of the solution of (9) by the four methods are plotted in Figure 2 with step size when and .

*Example 3. *Consider another first order initial value problem in the form as
Clearly, (11) is singular at . The exact solution of (11) with , , and is . The absolute error of the solution of (11) by the present methods (i.e., (3) and (4)), the second order implicit Runge-Kutta method, and the two-stage third order diagonally implicit Runge-Kutta (DIRK3) method are plotted in Figure 3 in the range , and also the present method (i.e., (4)) and the second order implicit Runge-Kutta method are shown in Figure 4 in the range with step size when , , and .

*Example 4. *Consider the stiff initial value problem [7]
with the exact solution , which is considered over the range , using step size . The absolute error of the solution of (12) by the implicit Euler method, the second order implicit Runge-Kutta method, and the present method (i.e., (3)) are shown in Figure 5, and also the present (i.e., (3)), the DIRK3, and the DIRK5 methods are shown in Figure 6.

*Example 5. *Consider the highly stiff initial value problem [7]
with the exact solution , which is considered over the rang , using step size . The absolute error of the solution of (13) by the implicit Euler method, the second order implicit Runge-Kutta method, and the present method (i.e., (3)) are shown in Figure 7, and also the present (i.e., (3)), the DIRK3, and the DIRK5 methods are shown in Figure 8.

#### 4. Results and Discussion

A simple method has been presented to solve initial singular value and stiff problems. From the Figures 1, 2, 3, 5, and 7 it is observed that the present method (i.e., (3)) gives better results than those of implicit Euler and the RK2 methods and almost similar results to DIRK3 and DIRK5 methods (Figures 1, 2, 3, 6, and 8). But, the DIRK3 and DIRK5 methods take more computational time than the present method.

From Figure 3 it is also observed that the method (i.e., (4)) gives more accurate solutions than those of (3) near the terminal singular point. The solution (3) as well as Euler’s solution and DIRK3 solution is useless when singularity arises at terminal point (i.e*.*, (4)) (see Figure 4). Even if these solutions are used near the singular point, the errors become significant. In this regard, solution (3) has been modified to (4).

Seeing all the above figures, we conclude that the present method (i.e., solution (3) or solution (4)) is more suitable than the implicit Euler and the second order implicit Runge-Kutta methods. However, the present method gives almost similar results to those obtained by DIRK3 and DIRK5 methods. The disadvantage of DIRK3 and DIRK5 methods is that they are laborious.

#### Acknowledgments

The authors are grateful to the honorable reviewers for their constructive suggestions to improve the quality of this paper. The authors are also grateful to Mr. B. M. Ikramul Haque, Assistant Professor, Department of Mathematics, Khulna University of Engineering and Technology, for his assistance to prepare the revised paper.

#### References

- D. M. McClung and A. I. Mears, “Dry-flowing avalanche run-up and run-out,”
*Journal of Glaciology*, vol. 41, no. 138, pp. 359–369, 1995. View at Google Scholar · View at Scopus - O. Koch, P. Kofler, and E. B. Weinmüller, “The implicit Euler method for the numerical solution of singular initial value problems,”
*Applied Numerical Mathematics*, vol. 34, no. 2-3, pp. 231–252, 2000. View at Publisher · View at Google Scholar · View at Scopus - O. Koch and E. Weinmüller, “Analytical and numerical treatment of a singular initial value problem in avalanche modeling,”
*Applied Mathematics and Computation*, vol. 148, no. 2, pp. 561–570, 2004. View at Publisher · View at Google Scholar · View at Scopus - H. M. Antia,
*Numerical methods for scientists and engineers [M.S. thesis]*, McGraw-Hill, New Delhi, India, 1991. - O. Y. Ababneh and R. Ahmad, “Construction of third-order diagonal implicit Runge-Kutta methods for stiff problems,”
*Chinese Physics Letters*, vol. 26, no. 8, Article ID 080503, 2009. View at Publisher · View at Google Scholar · View at Scopus - R. Alexander, “Diagonally implicit Runge-Kutta methods for stiff O.D.E.'s,”
*SIAM Journal on Numerical Analysis*, vol. 14, no. 6, pp. 1006–1021, 1977. View at Publisher · View at Google Scholar - O. Y. Ababneh, R. Ahmad, and E. S. Ismail, “Design of new diagonally implicit Runge-Kutta methods for stiff problems,”
*Applied Mathematical Sciences*, vol. 3, no. 45, pp. 2241–2253, 2009. View at Google Scholar · View at Scopus - M. A. Huq, M. K. Hasan, M. M. Rahman, and M. S. Alam, “A simple and straightforward method for evaluating some singular integrals,”
*Far East Journal of Mathematical Education*, vol. 7, no. 2, pp. 93–107, 2011. View at Google Scholar - M. K. Hasan, M. A. Huq, M. S. Rahman, M. M. Rahman, and M. S. Alam, “A new implicit method for numerical solution of singular initial value problems,” in
*Proceeding of the International Conference on Mathematics and Information Technology (ICMIT-Mar '13)*, pp. 36–40, India, 2013. - M. Ali Akbar, M. S. Alam, and M. A. Sattar, “KBM unified method for solving an
*n*-th order non-linear differential equation under some special conditions including the case of internal resonance,”*International Journal of Non-Linear Mechanics*, vol. 41, no. 1, pp. 26–42, 2006. View at Publisher · View at Google Scholar · View at Scopus - M. A. Razzak, M. S. Rahman, K. C. Roy, B. M. I. Haque, and M. S. Alam, “An analytical technique to find approximate solutions of strongly nonlinear damped with forced systems,”
*Bulletin of Calcutta Mathematical Society*, vol. 105, no. 3, 2013. View at Google Scholar