Abstract
In this paper an exponentially fitted finite difference method is presented for solving singularly perturbed two-point boundary value problems with the boundary layer at left (or right) end of the domain. A fitting factor is introduced and the model equation is discretized by a finite difference scheme on an uniform mesh. Thomas algorithm is used to solve the tri-diagonal system. The stability of the algorithm is investigated. It is shown that proposed technique provides first order accuracy independent of the perturbation parameter. Several linear and nonlinear problems are solved by the proposed method and numerical results are presented to illustrate the theoretical parameter-uniform error bounds established.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
Singularly perturbed boundary value problems often arise in applied sciences and engineering, typical examples include high Reynold’s number flow in fluid dynamics, modelling the problems in mathematical biology and semi-conductor devices where the edge effects are important. These problems depend on a small positive parameter \(\varepsilon \) known as the singular perturbation parameter. These problems have been received a significant amount of attention in past and recent years. A well known fact is that the solution of such problems display sharp boundary or interior layers when \(\varepsilon \) is very small, i.e., the solution varies rapidly in some parts and varies slowly in some other parts. Typically there are thin transition layers where the solutions can jump abruptly, while away from the layers the solution behaves regularly and vary slowly. So the treatment of singularly perturbed problems presents severe difficulties that have to be addressed to ensure accurate numerical solutions. Thus more efficient but simpler computational techniques are required to solve singular perturbation problems. For a good analytical discussion on singular perturbation, one may refer the books: Doolan et al. [3], Kevorkian and Cole [9], O’Malley [12]. Also, for some numerical methods and their convergence analysis, one may refer to recent books: Farrell et al. [4], Miller et. al. [10], Roos et al. [19] and the references therein. In the articles [2, 5–7, 13, 15–17, 20], many researcher have followed different numerical approach combining fitted mesh methods and fitted operator methods for solving singular perturbation problems where as [8] gives an erudite outline on the numerical methods for singular perturbation problems. In [11, 14] efficient numerical methods are used for singularly perturbed differential equations with an delay (or shift) term. Recently, Reddy et. al [18] have developed an exponential finite difference method for solving model equation of the form (1). But Most of these available numerical techniques are constructed on fitted operator techniques or by the use of reasonable apriori information about the solutions which is a limitation of this kind of approach.
In this paper, we introduce a simple exponentially fitted finite difference method for solving singularly perturbed two-point boundary value problems with the boundary layer at one end (left or right) point. A fitting factor is introduced and the model equation is discretized by a finite difference scheme on an uniform mesh. Thomas algorithm is used to solve the tri-diagonal system. The stability of the algorithm is investigated. Several linear and nonlinear problems are solved to demonstrate the applicability of the method. It is observed that the present method approximates the exact solution very well.
The rest of the paper is organized as follows: “Continuous problem” section recalls pertinent properties of the solution \(y(x)\) of (1). In “Discrete problem” section, we describe the finite difference scheme, followed by a brief discussion on Thomas algorithm and its stability analysis. We discuss the convergence analysis of the numerical solution obtained by the exponential scheme in “Convergence analysis” section. Finally, “Numerical result” section gives some numerical examples that confirm the theoretical error estimates. Also, we apply the proposed scheme on some nonlinear problems and problem with right end boundary layer.
Throughout this paper \(C\) denotes a generic positive constant independent of the grid points \(x_{j}\) and the parameters \(\varepsilon \) and \(N\) (the number of mesh intervals) which can take different values at different places, even in the same argument. A subscripted \(C\) (i.e., \(C_{1}\)) is a constant that is independent of \(\varepsilon \) and of the nodal points \(x_{j}\), but whose value is fixed. Whenever we write \(\phi = \fancyscript{O}(\psi )\), we mean that \(|\phi | \le C |\psi |\). To simplify the notation, we set \(g_{j} = g(x_{j})\) for any function \(g\), while \(g_{j}^{N}\) denotes an approximation of \(g\) at \(x_{j}\). Also, we assume that \( \varepsilon \le C N^{-1} \) as is generally the case of discretization of convection-diffusion problems. It is worthwhile to mention that this assumption is not a restriction in practical situation.
Continuous Problem
In this article, we consider the following singularly perturbed boundary value problem (SPBVP):
where \(0< \varepsilon \ll 1\) is a small singular perturbation parameter, the functions \( a(x), \,b(x), \,f(x)\) are sufficiently smooth and \(\alpha , \beta \) are given constants. Further, we assume that \( a(x) \ge 2M > 0 \) and \( b(x) \le 0\). Under these assumptions, the above problem (1) has a unique solution which exhibits a boundary layer at \(x=0\).
From the theory of singular perturbations [12] and using Taylor’s series expansion for \(a(x)\) about \(x=0\) and restriction to their first terms, we get
where \(y_0 (x)\) is the solution of the reduced problem of (1), given by
First, the interval \([0,1]\) is divided into \(N\) equal number of subintervals, each of length \(h\). Let \(0=x_0 < x_1 <x_2<\ldots < x_N = 1\) be the points such that \(x_i=ih\) for \(i=0,1,\ldots ,N\). From (2) as \(h\rightarrow 0\), we have
Let \(\rho = \frac{h}{\varepsilon }\). Now the equation becomes
Now introducing an exponentially fitting factor \(\sigma (\rho )\) in (1), we get
with boundary conditions \(B_0 \equiv y(0)= \alpha ,\) and \(B_1 \equiv y(1)= \beta .\) The fitting factor \(\sigma (\rho )\) is to be determined in such a way that the solution of (6) converges uniformly to the solution (1).
Lemma 1
(Maximum principle) Let \(v\) be a smooth function satisfying \(v(0) \ge 0,\ v(1)\ge 0 \) and \(L v(x)\le 0, \ \forall x \in \ \varOmega , \text{ then } \text{ v(x) } \ge 0 , \ \forall x \in \ \overline{\varOmega }\).
Proof
We can prove the above lemma by method of contradiction. Let \(x^{*} \in \overline{\varOmega }\) be such that \(v(x^{*}) = \min v(x), x \in \overline{\varOmega }\) and assume that \(v(x^{*}) < 0\). Clearly \(x^{*}\notin \{0,1\}\) and \(v'(x^{*})=0 \) and \(v''(x^{*})\ge 0.\) Now consider
which is a contradiction to our assumption. Hence \( v(x) \ge 0, \forall x \in \ \overline{\varOmega }\). \(\square \)
An immediate consequence of the maximum principle is the following stability estimate.
Lemma 2
If \(u\) is the solution of the boundary value problem (1), then
Proof
Consider the following barrier function
It is easy to check that \(\psi ^{\pm }(x) \ge 0 \) at \(x=0,1\). Now from (1)
Thus by applying the maximum principle (Lemma 1), we can conclude that \(\psi ^{\pm }(x)\ge 0, \forall x \in \overline{\varOmega }\), which is the required result. \(\square \)
Lemma 3
The solution \(u(x)\) and its derivatives of the BVP (1) satisfy the following bounds:
Proof
This lemma can be proved by following the method of proof as in [10]. \(\square \)
Discrete Problem
Consider the difference approximation of (1) on a uniform grid \(\overline{\varOmega }^{N} = \{x_{j}\}_{j=0}^{N}\) and denote \(h =x_{j+1}-x_{j}\). For a mesh function \(Z_{j}\), we define the following difference operators:
The upwind finite difference scheme for (6) takes the form
Using the above difference operators, we have
Multiplying (10) by \(h\) and taking the limit \(h\rightarrow 0\), we get
where \(f(x_i)-b(x_i)y(x_i)\) is bounded. substituting (4) in (11) and then simplifying, we get
Hence, (9) takes the form
where \(p(x) = a(x)/\varepsilon , q(x) = b(x)/\varepsilon , r(x) = f(x)/\varepsilon \).
Let \(\delta \) be a small deviating argument such that \(0 < \delta \ll 1\). By using Talylor’s expansion about the point \(x=x_i\) up to the second order approximation, we have
Therefore, we have
So from (13), we have
But from Taylor series expansion about the point \(x=x_i\), we have
Substituting the above in (14), we get a three term recurrence relation as follows:
where
Now (15) gives a system of \(N-1\) equations with \(N-1\) unknowns from \(y_1\) to \(y_{N-1}\) where \(y(x_i) = y_i\). To solve the tri-diagonal system, we use Thomas algorithm. A brief discussion on Thomas algorithm is as follows:
Thomas algorithm A brief discussion on Thomas algorithm for solving the tri-diagonal system (15) is given below:
Consider the tri-diagonal system (15) with the boundary conditions. In Thomas algorithm, we set a recurrence relation
where \(W_i = W(x_i)\) and \(T_i = T(x_i)\) are to be determined. For \(i=0\), we get \(y_0 = W_0 y_1+T_0\), but from boundary conditions, we already know that \(y_0 = \alpha \). So by comparing the coefficients, we get \(W_0 = 0\) and \(T_0 = \alpha \). Again from (16), we have
Substituting (17) in (15), we get
and on simplifying, we obtain
Comparing (15) and (19), we get
with the initial conditions \(W_0 = 0\) and \(T_0 = \alpha \). Now, we can calculate \(W_i,T_i\) and hence using the value \(y_n = \beta \), we can get the values of \(y_i\) for \(i =N-2, N-1,\ldots , 1. \)
Stability Analysis
By stability, we mean that the error committed at one stage is not propagated into larger to the later stage. Suppose a small error \(e_{i-1}\) has been made in calculating \(W_{i-1}\) given above. Now \(\overline{W}_{i-1} = W_{i-1}+e_{i-1}\) and we want to calculate \(\overline{W}_{i-1}\). So
From the assumption made earlier that \(a(x)> 0\), \(b(x)\le 0\), so \(|E_i| \le |G_i|\). Now by the condition \(|W_i| < 1, \, i=1,2,\ldots ,N-1\), it follows that \( |e_i| = |W_i|^2\dfrac{|E_i|}{|G_i|}|e_{i-1}| < |e_{i-1}|, \) and hence, the stability is guaranteed.
Lemma 4
(Discrete comparison principle) Assume that the mesh function \(V(x_i)\) satisfies \(V(x_0)\ge 0\) and \(V(x_N)\ge 0\). If \(L^N V(x_i)\le 0\) for \(1\le i \le N-1\), then \(V(x_i)\ge 0\) for \(0 \le i \le N\).
Proof
Let us choose \(k\) such that \(V(x_k) = \min V(x_i), 1\le i \le N-1\). If \(V(x_k) \ge 0\), then there is nothing to prove. It is obvious that \(V(x_{k+1})-V(x_{k}) \ge 0\) and \(V(x_{k})-V(x_{k-1}) \le 0\). Now from (10), we have
which contradicts \(L^N V(x_i)\le 0\). Hence, our assumption is wrong. \(\square \)
Convergence Analysis
The following theorem shows the \(\varepsilon \)-uniform convergence of the proposed scheme.
Theorem 1
Let \(y\) and \(Y\) be respectively the exact solution of (1) and the discrete solution of (13) respectively. Then, for sufficiently large \(N\), we have the following \(\varepsilon \)–uniform error estimate:
Proof
First, let us decompose the solution \(y(x)\) of (1) into regular and singular parts as: \( y(x)= r(x)+s(x). \) Now for \(0\le k \le 3\), the regular component \(r(x)\) satisfies
and the singular component \(s(x)\) satisfies
where \(e(x,a) = e_1(x,a)+e_2(x,a) = \exp (\frac{-a_0 x}{\varepsilon })+ \exp (\frac{-a_0(1-x)}{\varepsilon })\). (for details see [10]).
Similarly, decompose the discrete solution \(Y\) of the problem (13) into regular \((R_{\varepsilon })\) and singular \((S_{\varepsilon })\) components. Thus \(Y(x)= R_\varepsilon (x)+S_\varepsilon (x)\) where \(R_{\varepsilon }\) and \(S_{\varepsilon }\) are respectively the solution of the following problems:
Thus \(y(x)-Y(x) = [r(x)-R_\varepsilon (x)]+ [s(x)-S_\varepsilon (x)]\) and the error can be estimated as
Now we need to calculate the errors in the regular and singular components separately.
Let us first calculate the error in the regular component. Consider the local truncation error defined as follows:
Using Taylor’s series expansion and neglecting higher order terms from fourth order, we get the following expansions for \(y(x_i+h)\) and \(y(x_i-h)\):
and
where \((\xi _1^{(i)}), (\xi _1^{(i)}) \in (x_{i-1}, x_{i+1})\). Simplifying the above two expressions, we can easily show that
So, \(\Vert (\Delta ^2-\frac{d^2}{dx^2})y(x_i)\Vert \le C\Vert y'''\Vert \), where \(\Vert y'''\Vert = \displaystyle \sup _{x_i\in (x_0,x_N)} |y'''(x_i)|.\) Similarly by Taylor’s series expansion up to the second order terms we get
Now using the bounds of \(r^k(x), s^k(x)\) and the assumption \(\varepsilon \le C N^{-1}\), the equation (23) reduces to
Hence, using the discrete maximum principle (Lemma 4), we get
Now we need to find out the error in the singular component. The local truncation error in the singular component is bounded in the standard way as done for the regular part and is given by
Choose a constant \(K\) such that \(K\varepsilon \ln N \ge \frac{1}{4}\), i.e., \(\varepsilon ^{-1} \le 4 K \ln N\) So from above inequality, we have
Now again using the discrete comparison principle , we reach at
Finally, combining (25) and (26), we get our desired result. \(\square \)
Numerical Results
To demonstrate the applicability of the method, we have applied the proposed scheme on several linear and nonlinear singular perturbation problems with left boundary layers. These examples are widely discussed in the literature. The exact solutions or sometimes uniformly valid approximate solutions are used for comparison purpose.
Example 1
Consider the homogeneous problem
The exact solution is given by \(y(x)=\dfrac{(\exp ({m_{2})}-1)\exp ({m_{1}x})-(1-\exp ({m_{1})})\exp ({m_{2}x})}{\exp (m_{2})-\exp (m_{1})},\) where \( m_{1,2}=\dfrac{-1\pm \sqrt{1+4 \varepsilon }}{2\varepsilon }.\) This BVP has a boundary layer in the left end at \(x=0\).
Example 2
Consider the non-homogeneous singular perturbation problem
Its exact solution is \(y(x)=x(1+x-2\varepsilon )+\dfrac{(2\varepsilon -1)(1-\exp (-x/\varepsilon ))}{1-\exp (-1/\varepsilon )},\) which has a boundary layer at the left side of the domain near \(x=0\) (Table 1).
For any value of \(N\) and \(\varepsilon \), we calculate the exact maximum point-wise errors \(E_{\varepsilon }^{N}\) and the corresponding rates of convergence by
where \(u\) is the exact solution and \(U_{j}^{N}\) is the numerical solution obtained by using \(N\) mesh intervals in the domain \(\overline{\varOmega }^{N}\) (Table 2).
Now we would like to see uniform error and rate of convergence as (Table 2)
Non-Linear Example
In this section to demonstrate the applicability of the proposed method, we have applied it to a nonlinear singular perturbation problem with left boundary layer. First the nonlinear problem is converted to a sequence of linear problem by method of quasi-linearization process [3].
Example 3
Consider the non-linear singular perturbation problem
The linear problem concerned to this example is
The uniform valid approximation (Ref. [1]) is \(y(x) = \ln (\frac{2}{1+x})-(\ln 2) \exp (-2x/ \varepsilon )\), which has a boundary layer of thickness \(O(\varepsilon )\) near \(x=0\) (Table 3).
Right End Boundary Layer Problem
Finally, we consider the following singularly perturbed boundary value problem with right end boundary layer:
where \(0< \varepsilon \ll 1\) is a small singular perturbation parameter, the functions \( a(x), b(x), f(x)\) are sufficiently smooth and \(\alpha , \beta \) are given constants. Further, we assume that \( a(x) \ge 2M > 0 \) and \( b(x) \ge 0\). Under these assumptions, the above problem (27) has a unique solution which exhibits a boundary layer at \(x=1\).
Using Taylor series expansion for \(a(x)\) near the point \(x=1\), we get
where \(y_0 (x)\) is the solution of the reduced problem of (27), given by
As \(h\rightarrow 0\), we have
which becomes
where \(\rho = \frac{h}{\varepsilon }\). Introducing an exponentially fitting factor \(\sigma (\rho )\) in (27), we get
with boundary conditions \(B_0 \equiv y(0)= \alpha ,\) and \(B_1 \equiv y(1)= \beta .\) On simplifying, we get
Now we can use the finite difference scheme and the techniques discussed for the left end boundary layer problem. Finally, we will reach at a three term recurrence relation as follows:
where
Now (34) gives a system of \(N-1\) equations with \(N-1\) unknowns from \(y_1\) to \(y_{N-1}\) where \(y(x_i) = y_i\). Hence, we can use Thomas algorithm to solve the tri-diagonal system.
Example 4
Consider the following singular perturbation problem:
Its exact solution \(y(x)\) is of the form \(y(x) = e^{(1+\varepsilon )(\frac{x-1}{\varepsilon })}+e^x,\) and has a boundary layer at the right side of the domain near \(x=1\). The numerical results are shown in Table 4.
Conclusion
An efficient exponentially fitted finite difference scheme for a class of singularly perturbed BVPs of the form (1) with left (or right) boundary layers is presented in this paper. A comparatively simple fitting factor is introduced and the solution thus obtained through a tri-diagonal system. We carried out the error analysis and numerical results obtained for some examples show that proposed scheme is of almost first-order accurate up to an logarithm factor. Hence, the key result established here is that the solution thus obtained is uniformly convergent with respect to the perturbation parameter.
References
Bender, C.M., Orszaq, S.A.: Advanced Mathematical Methods for Scientists and Engineers. Springer-Verlag, New York (1999)
Chakravarthy, P.P., Reddy, Y.N.: Exponentially fitted modified upwind scheme for singular perturbation problems. Int. J. Fluid Mech. Res. 33(2), 119–136 (2006)
Doolan, E.P., Miller, J.J.H., Schildres, W.H.A.: Uniform Numerical Methods for Problems with Initial and Boundary Layers. Boole Press, Dublin (1980)
Farrell, P.A., Hegarty, A.F., Miller, J.J.H., O’Riordan, E., Shishkin, G.I.: Robust Computational Techniques for Boundary Layers. Chapman & Hall/CRC Press, Boca Raton (2000)
Habib, H.M., El-Zahar, E.R.: An algorithm for solving singular perturbation problems with mechanization. Appl. Math. Comput. 188, 286–302 (2007)
Jayakumar, J., Ramanujam, N.: A numerical method for singular perturbation problems arising in chemical reactor theory. Comput. Math. Appl. 27, 83–99 (1994)
Kadalbajoo, M.K., Kumar, D.: Initial value technique for singularly perturbed two point boundary value problems using an exponentially fitted finite difference scheme. Comput. Math. Appl. 57, 1147–1156 (2009)
Kadalbajoo, M.K., Kumar, D.: A brief survey on numerical methods for solving singularly perturbed problems. Appl. Math. Comput. 217, 3641–3716 (2010)
Kevorkian, J., Cole, J.D.: Multiple Scale and Singular Perturbation Methods. Springer-Verlag, New York (1996)
Miller, J.J.H., O’Riordan, E., Shishkin, G.I.: Fitted Numerical Methods for Singular Perturbation Problems. World Scientific, Singapore (1996)
Mohapatra, J., Natesan, S.: Uniformly convergent numerical method for singularly perturbed differential-difference equation using grid equidistribution. Int. J. Numer. Methods Biomed. Eng. 27(9), 1427–1445 (2011)
O’Malley, R.E.: Singular Perturbation Methods for Ordinary Differential Equations. Springer-Verlag, New York (1990)
Patidar, K.C.: High order parameter uniform numerical method for singular perturbation problems. Appl. Math. Comput. 188, 720–733 (2007)
Rao, R.N., Chakravarty, P.P.: A finite difference method for singularly perturbed differentialdifference equations with layer and oscillatory behavior. Appl. Math. Model. 37, 5743–5755 (2013)
Rashidi, M.M., Shooshtari, A., Bg, O.A.: Homotopy perturbation study of nonlinear vibration of von karman rectangular plates. Comput. Struct. 106, 46–55 (2012)
Rashidi, M.M.: The modified differential transform method for solving mhd boundary-layer equations. Comput. Phys. Comm. 180(11), 2210–2217 (2009)
Rashidi, M.M., Ganji, D.D., Dinarvand, S.: Explicit analytical solutions of the generalized burger and burgerfisher equations by homotopy perturbation method. Numer. Methods Partial Differ. Equ. 25(2), 409–417 (2009)
Reddy, Y.N., Chakravarty, P.P.: An expoential fitted finite difference method for singular perturbation problem. Appl. Math. Comput. 154, 83–101 (2004)
Roos, H.G., Stynes, M., Tobiska, L.: Numerical Methods for Singularly Perturbed Differential Equations. Springer, Berlin (1996)
Vigo-Aguiar, J., Natesan, S.: An efficient numerical method for singular perturbation problems. J. Comput. Appl. Math. 192, 132–141 (2006)
Acknowledgments
This research work is supported by the Department of Science & Technology, Government of India under research grant no. SERB/F/7053/2013-14.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Mohapatra, J., Reddy, N.R. Exponentially Fitted Finite Difference Scheme For Singularly Perturbed Two Point Boundary Value Problems. Int. J. Appl. Comput. Math 1, 267–278 (2015). https://doi.org/10.1007/s40819-014-0008-4
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40819-014-0008-4