Research Article  Open Access
Computationally Efficient Technique for Solving ODE Systems Exhibiting Initial and Boundary Layers
Abstract
A computational technique based on asymptotic analysis for solving singularly perturbed ODE systems involving a small parameter is considered. The focus is on secondorder systems, but the procedure is also applicable for firstorder systems. Both initial value and boundary value problems will be solved. The application of the method is considered over the entire time domain for a wide range of and the resulting approximation is compared with the direct numerical solution. The convectiondiffusion problem from fluid mechanics and the telegraph equation from electrical engineering are considered.
1. Introduction
Singularly perturbed problems involving a small parameter are ubiquitous in the field of engineering and present a formidable challenge in their numerical solution. For example, in the field of fluid mechanics such problems appear in the form of convectiondiffusion partial differential equations and are used, in the computation of temperature in compressible flows, to describe the model equations for concentration of pollutants in fluids and to describe the momentum relation of the NavierStokes equations. In the field of electrical engineering an important application is the telegraph equation describing the voltage or the current as a function of time and position along a cable. The discretization of such systems usually leads to stiff systems of ordinary differential equations (ODEs) containing a small parameter. Such equations are usually stiff and require special care in their numerical solution. On the other hand, such systems can be treated by methods based on asymptotic analysis which renders a reasonable approximate decomposition of the original system into two new systems, for the slow mode and fast modes, respectively, which are no longer stiff. Of special interest are asymptotic methods based on the ChapmanEnskog procedure (CEP) in which the bulk part of the slow mode is left unexpanded. This technique is especially popular amongst mathematical physicists interested in obtaining the diffusion approximation for a wide range of evolution equations, for example, the Boltzmann equation, telegraph equation, and FokkerPlank equation [1]. On the other hand, obtaining diffusion approximations is rather complicated and involved and is confined to specialists in the field. In the 1990s Mika and coworkers [2, 3] considered the application of the CEP for solving ODEs. The mathematical theory was put on a sound footing, but subsequently, no attempts were made to promote the numerical application of the method, despite very promising initial results. One reason for this can be attributed to the requirement that their method based on the CEP require the initial conditions for the unexpanded slow part of the solution which have to be recovered from additional algebraic relations. This combined with the initial layer functions guarantee a uniformly smooth solution over the entire domain. For such a solution to be comparable to a direct numerical solution of the original system this step is crucial. In [3] the authors focused on obtaining uniformly convergent approximations in the bulk region. In this paper we propose a method for finding an correction to the approximate data. Further, we examine the method for obtaining a solution over the entire domain that is comparable to a direct numerical solution. The method is suitable for a larger range of the small parameter than that considered previously. An adaptation of the CEP was also considered in [4, 5] for solving problems in chemical kinetics and nuclear engineering, respectively.
Consider the initial value problem
where , and is a small positive parameter. The eigenvalues of the matrix have all positive real parts; hence is invertible. By letting , the secondorder system (1.1) is converted to the firstorder system:
The stiff differential equation (1.1) can be solved directly by using numerical methods, for example the finite difference or finite element method. With a finite difference scheme one could use a standard method on a special mesh or a standard mesh and a special method [6]. This is to guarantee uniformly convergent schemes for all values of . These techniques, involving discretization on standard meshes and layeradapted meshes, are well established when is a linear function of [7]. However, in our case is a nonlinear function of the dependent variable and hence is much more difficult to analyse and solve using these methods. On the other hand, an alternative approach commonly adopted, is to convert to the firstorder system (1.2) and then solve by using an implicit method, applicable for stiff systems, since the solution of such systems is well established. It is well known that the solution obtained in this way is usually costly. Alternatively, one could use approximation methods from singular perturbation theory [8, 9] for solving (1.1) or (1.2). The drawback of methods in this category is that they are based on heuristic derivations such as matching of the inner solution in the initial layer with the outer solution in the outer layer. The idea is to create an approximate solution by using the inner solution and then switching to an outer solution ensuring that the inner and outer solutions coincide as nearly as possible at the switch point. The problem is finding a suitable place to make the switch from one solution to the other.
The method proposed in this paper aims to avoid the difficulties presented by the preceding two approaches. Here, we follow the algorithm of the asymptotic expansion first proposed by Mika and Palczewski [2] for solving resonance type equations in kinetic theory and subsequently applied to solving singularly perturbed systems of secondorder ODEs by Mika and Kozakiewicz [3]. As already mentioned, in this case the method is based on the CEP in which the bulk solution for the slow variable remains unexpanded. The expansions are truncated to firstorder in in order to derive the firstorder version of the steady state approximation. Here we derive new initial conditions satisfied by the differential equations by using a Neumann expansion. The main point of the present exposition is that there is no additional cost involved in deriving the new initial condition whilst at the same time the numerical results are much improved for a larger range of the small parameter . The application of the method is also considered for solving boundary value problems. In performing a numerical investigation we apply the new algorithm to systems of initial value problems (IVPs) and boundary value problems (BVPs). The numerical results for IVPs show a significant improvement in the error and reaffirm the firstorder rate of convergence which is consistent with the theory [3] whilst the numerical results for BVPs demonstrate fast convergence of the bulk solution.
2. Derivation of the Asymptotic Procedure
In order to keep the present exposition selfcontained, we consider some aspects of the derivation of the asymptotic method presented in [3] together with the procedure for obtaining new initial conditions. The functions and in (1.2) are each decomposed into a bulk solution depending on and an initial layer solution depending on . Hence
where
The characteristic feature of the algorithm is that the bulk solution for the slow variable remains unexpanded. Substituting (2.1) into (1.2) we obtain upon equating functions of and separately
Now a postulate of the asymptotic method is that the bulk solution for the fast variable, namely, , depends on through its functional dependence on . To this end, we let , be two functions and write
Hence
Substituting (2.8) into (2.3) and (2.4) we obtain
Substituting (2.10) into (2.9) and equating coefficients of powers of we obtain
and solving the above for gives
Hence, from (2.4) we obtain as the solution of the firstorder system:
The initial condition is found by considering the initial conditions in (1.2). For this we require the initial layer solutions. These are obtained by substituting (2.2) into (2.5) and equating powers of yielding Clearly since for the initial layer function. Upon substituting (2.2) into (2.6) and using we further obtain
Hence
Using the initial conditions and in (2.1) we obtain to firstorder in that
Mika and Kozakiewicz [3] now expand into powers of , namely, Upon equating coefficients of in (2.19)(2.20) and using the initial layer functions just derived, they obtained the expression Here is solved in a different manner. From (2.20) and (2.11) to zeroth order in we obtain Using (2.19) and (2.18) we have Hence is the root of the, in general, nonlinear vector equation (2.23). It is noted that the solution of (2.23) maybe accomplished using the standard Newton method. However, this is in general an expensive process. In order to avoid this we derive an explicit expression for by letting , where is a function of and . Upon substitution into (2.23), using Taylor's theorem and ignoring terms of order we obtain the new initial condition
To simplify the evaluation of (2.24) we use the firstorder Neumann expansion for , assuming that for any compatible matrix norm. Hence, (2.24) simplifies to It is clear that no additional cost is borne in forming the Jacobian matrix terms representing the derivative in (2.25) since the derivative is already used in (2.14). We note that (2.25) reduces to (2.21) when the term is ignored.
The asymptotic convergence of the approximate solutions derived above is proved in [2]. The condition concerning the nonlinear function in (1.2) is that , which supplements the conditions necessary for the system to possess a unique solution on . Furthermore, the matrix has all positive eigenvalues so that the initial layer solutions decay exponentially.
3. Standard Approach
In the standard firstorder approach described, for example, in [3] to solving (1.2), in (2.1) is replaced by
With this substitution in (2.3)–(2.6) one obtains the system
Upon equating coefficients of and using the initial conditions, we obtain the following systems of ODEs to be solved for the bulk solution for the slow variable :
As before and
4. Boundary Value Problems
Consider the boundary value problem:
The boundary value problem (4.1) can be converted to the initial value problem (1.1) by dropping the second boundary condition and replacing it by the initial condition . Hence, and are assumed to have similar conditions to that considered in Section 2 on .
The initialvalue problem has a uniquely determined solution which depends on the choice of the initial value for . To determine the value of consistent with the righthand boundary condition we must find a zero of the function . Assuming that , one can use Newton's method to determine . Starting with an initial approximation , one then has to iteratively compute values according to
where for , is approximated by the forward difference formula:
with For the case , the matrix is determined by the following useful technique. The column of is approximated by
where is the standard unit vector in with unity in the position. Then, is determined by solving an initialvalue problem:
up to .
In this paper instead of applying the shooting method to the stiff secondorder system of equations (4.1) we first apply the firstorder asymptotic procedure to the system and then adapt the shooting method to the resulting nonstiff firstorder system. Now taking in (2.1) and (2.18) it can be shown that
Solve the firstorder system (2.14) with estimate (2.25) for numerically and denote the solution at by . It remains to determine so that agrees with from (4.6). Thus we define and iteratively obtain a zero of using (4.2). A convenient starting value for the iteration is obtained by setting and in (4.1) to yield . Essentially, we are trying to find an optimal such that both and lie on the solution curve of (2.14).
5. Numerical Examples
Example 5.1. Here we choose , , with in (1.1). Hence, (3.3)–(3.5) reduce to the ODEs:
to be solved for the bulk approximation according to the standard approach. The firstorder asymptotic solution to (1.1) using the standard approach is given by
According to the new approach we solve (2.14) which reduces to
From (2.21) we obtain
and using (2.25) we obtain the improved initial condition:
The graphical solutions depicted in Figure 1 are for . The direct numerical solution of (1.1) is denoted by and the firstorder solution corresponding to (5.2) with the initial layer incorporated is denoted by . When (5.3) is solved using the initial condition (5.4), the solution from (2.1) is denoted by ; likewise when (5.3) is solved using the initial condition (5.5) the solution from (2.1) is denoted by .
Figure 2 shows how the error varies as a function of for . It is clear that the present algorithm, incorporating the new initial condition (2.25), gives superior results, even for large .
Example 5.2. Since this paper is concerned with systems of ODEs, the following example is directed to such a case. The technique is illustrated for a system of coupled ODEs by choosing and : in (1.1). Solve (2.14) using an explicit RungeKutta method of order (RK2) with fixed step size equal to subject to the initial conditions (2.21) and (2.25) and designate the solutions by and , respectively. The corresponding solutions in (2.1) are denoted by and respectively. Let denote a highly accurate solution of (1.1) obtained using Mathematica 6.0 which will be treated as an exact solution for comparison purposes. Equation (1.1) is solved using the implicit Euler method with fixed step size equal to and the solution is denoted by . Table 1 shows the errors and , respectively. The CPU time for computing was second as compared to second for computing both and which amounts to a significant saving in computational effort.

Example 5.3. One has
Choose . Figures 3, 4, and 5 show a plot of the solution profiles (numerical solution) and (asymptotic bulk solution), corresponding to , , and used in (4.3) respectively. It is seen that the solution profiles are almost identical (in the bulk region) after the second iteration.
Example 5.4. We consider the following boundary layer problem from fluid mechanics:
where , is a constant, and is the boundary of the square To apply the present algorithm we replace the variable by and divide the spatial domain () into equally spaced points with spacing Letting and using the method of lines to discretize the above equation result in the system of ODEs:
. If we let and where
then the system of ODEs can be written as
and
Choose and . Figure 6 shows a plot of the solution profiles and (asymptotic solution) after the first iteration in . It is seen that the solution profiles are almost identical (in the bulk region).
Example 5.5. Consider the singularly perturbed telegraph equation:
where , and are constants, and is an arbitrary function of . Consider normal boundary conditions:
with initial conditions
As in the previous example we used the method of lines to obtain the discretized system of ODEs:
where , , , , with and . The initial conditions are , , and . Choose , and . Figure 7 shows the error in the various solution components. For example, corresponds to the error in the sixth solution component using (2.21) and corresponds to the error in the sixth solution component using (2.25), respectively. It is evident that using the new algorithm proposed in this paper gives superior numerical results.
(a)
(b)
(c)
(d)
(e)
(f)
6. Conclusion
The numerical solution of singularly perturbed secondorder ODEs of the form (1.1) involving a single variable and a linear function is well established. On the other hand, the solution of the system (1.1) with a nonlinear function presents a formidable numerical challenge. The procedure presented in this paper gives an efficient algorithm for solving such systems. The improved algorithm is capable of handling a wider class of problems and at the same time produces a uniform solution over the entire time domain of interest. Furthermore, the numerical examples selected are representative of typical application areas including problems exhibiting multiple boundary layers.
Acknowledgments
The authors would like to thank Professor Janusz Mika for providing them with useful suggestions during the preparation of this manuscript. Also, the authors would like to extend their appreciation to the anonymous referees, whose feedback contributed in improving the manuscript.
References
 J. R. Mika and J. Banasiak, Singularly Perturbed Evolution Equations with Applications to Kinetic Theory, vol. 34 of Series on Advances in Mathematics for Applied Sciences, World Scientific, River Edge, NJ, USA, 1995. View at: MathSciNet
 J. R. Mika and A. Palczewski, “Asymptotic analysis of singularly perturbed systems of ordinary differential equations,” Computers & Mathematics with Applications, vol. 21, no. 10, pp. 13–32, 1991. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 J. R. Mika and J. M. Kozakiewicz, “Firstorder asymptotic expansion method for singularly perturbed systems of secondorder ordinary differential equations,” Computers & Mathematics with Applications, vol. 25, no. 3, pp. 3–11, 1993. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 M. Galli, M. Groppi, R. Riganti, and G. Spiga, “Singular perturbation techniques in the study of a diatomic gas with reactions of dissociation and recombination,” Applied Mathematics and Computation, vol. 146, no. 23, pp. 509–531, 2003. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 R. Beauwens and J. Mika, “On the improved prompt jump approximation,” in Proceedings of the 17th IMACS World Congress Scientific Computation, Applied Mathematics and Simulation, Paris, France, July 2005. View at: Google Scholar
 C. Grossmann, H. Roos, and M. Stynes, Numerical Treatment of Partial Differential Equations, Universitext, Springer, Berlin, Germany, 2007. View at: MathSciNet
 T. Linss, Layeradapted meshes for convectiondiffusion problems, Ph.D. thesis, Technische Universität Dresden, 2007.
 J. A. Murdock, Perturbations: Theory and Methods, vol. 27 of Classics in Applied Mathematics, SIAM, Philadelphia, Pa, USA, 1999. View at: MathSciNet
 R. E. O'Malley Jr., Introduction to Singular Perturbations, Applied Mathematics and Mechanics, Academic Press, New York, NY, USA, 1974. View at: MathSciNet
Copyright
Copyright © 2009 N. Parumasur 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.