1. Introduction
Multi-point boundary value problems arise in a variety of applied mathematics and physics. However, it is usually difficult to obtain closed-form solutions for boundary value problems, especially for nonlinear boundary value problems. In most cases, only approximate solutions can be expected. Some numerical methods have been developed for obtaining approximate solutions to BVPs such as spline methods [1-3,5,7], PadΓ© approximants method [4], shooting method [8], and finite difference method [9]. We present, a numerical method structured on spline function approximations for solving a general third-order boundary value problem of the form πβ΄(π₯) = π(π₯, π, πβ², πβ³), πβ€π₯β€π (1.1) along with the following three cases of boundary conditions Case I : π(π) = πΌ, πβ²(π) = π½, π(π) = π0, (1.2a) Case II : π(π) = πΌ, πβ²(π) = π½, πβ²(π) = π1, (1.2b) Case III : π(π) = πΌ, πβ²(π) = π½, πβ³(π) = π2, (1.2c) where f is a continuous function on [a, b] and the parameters Ξ± , Ξ² and ππ, i =0,1,2 are finite real arbitrary constants. In approximation theory, spline functions occupy an important position having a number of applications, especially in the numerical solutions of boundary-value problems (BVPs). Third-order BVPs are solved by Caglar et al. [1] using fourth-degree B-splines, have a first-order accuracy. Khan and Aziz [2,3] have used a fourth-order method based on quintic splines for solving the third-order linear and nonlinear BVPs of the form πβ΄(π₯) = π(π₯, π), subject to the boundary conditions the case I , also the same problem is solved in [5] by using a second-order method based on quartic non-polynomial spline space. Tirmizi et al. [4] have solved third-order BVP of the form πβ΄(π₯) = π(π₯, πβ²), this method arises from a four-point recurrence relation involving exponential terms, these being replaced by PadΓ© approximants. An existence and location result for the thirdorder separated boundary value problem of the form (1.1) with one-sided Nagumo condition have presented by Grossinho et al. in [6]. Mahmoud [7] has presented quintic spline collocation methods for solving two types of general linear third-order BVPs, those methods are third-order convergent.
1. Importance and Aim of This Work
As we know, it is difficult to give the analytical solutions of problems (1.1)-(1.2c), for that reason, the numerical solutions are very important. The purpose of this work is to provide a numerical treatment for finding the approximate spline solution and its derivatives of the problem at every point of the range of integration. Advantages of the proposed method is extremely simple, quite easy to use, and gives a very good accuracy, and has a computational cost that is cost-effective, because this technique is leaded only to solve a algebraic system of third order, while other numerical methods are leaded to solve algebraic systems of order N, where N the number of grid points.
2. Methodology
Theoretical part: The suggested method in this study is transformed the general nonlinear third-order BVP into third-order initial value problems, after that spline function approximations are directly applied to thirdorder initial value problems without their reducing into a system of first-order IVPs in ordinary differential equations. Thus, the approximate Spline solution and its derivatives of the nonlinear third-order BVP attain the same order of accuracy for nonlinear third-order IVPs. The proposed spline method when applied to the problem of form (1.1)-(1.2c) is convergent. Practical part: Numerical results for various problems are compared with those obtained by others. The comparisons show the accuracy, robustness and efficiency of the presented methodology. The computations are accomplished by using Mathematica Version 5 and Turbo Pascal under Windows (TPW 1.5) in double precision. In consequence, all the problems of form (1.1)-(1.2c) are solvable by using the proposed spline method.
3. Reduction of the BVP into two IVPs
In this section, the nonlinear third-order BVP (1.1) with three cases of the boundary conditions (1.2a)-(1.2c) is reduced into two nonlinear third-order IVPs. This technique is similar to the linear case of shooting method for the third-order BVPs[7], except that the solution to a nonlinear problem cannot be simply expressed as a linear combination of the solutions to two IVPs. Instead, it needs to use the solutions to a sequence of initial-value problems of the form: πβ΄(π₯) = π(π₯, π, πβ², πβ³), πβ€π₯β€π (1.3) subject to the initial conditions π(π) = πΌ, πβ²(π) = π½, , πβ³(π) = π‘, (1.4) involving a unknown parameter t , to approximate the solution to BVP (1.1) with one of the cases of boundary conditions (1.2a)-(1.2c). This is performed by choosing the parameter π‘= π‘π in a manner to ensure that
is satisfied with boundary conditions, case I: π(π) = πΌ, πβ²(π) = π½, π(π) = π0 and that
is satisfied with boundary conditions, case II: π(π) = πΌ, πβ²(π) = π½, πβ²(π) = π1 and that
is satisfied with boundary conditions, case III : π(π) = πΌ, πβ²(π) = π½, πβ³(π) = π2 Here, π(π₯, π‘π) denotes the solution of the IVP (1.3)-(1.4) with π‘= π‘π, and π(π₯) denotes the solution of the BVP (1.1)-(1.2). The evaluation starts with a parameter π‘0 that determines the initial elevation at which the object is fired from the point (a, Ξ±) and along the curve described by the solution to the initial-value problem: πβ΄(π₯) = π(π₯, π, πβ², πβ³), πβ€π₯β€π, π(π) = πΌ, πβ²(π) = π½, πβ³(π) = π‘0 (1.6) If π(π, π‘0) is not sufficiently close to π0, we can attempt to correct our approximation by choosing another elevation π‘1 and so on, until π(π, π‘π) is sufficiently close to π0. If π(π₯, π‘) indicates the solution to the IVP (1.3)-(1.4), the problem associated with determining t so that the following equations are satisfied, respectively: π(π, π‘) βπ0 = 0, (1.7a) with boundary conditions, case I πβ²(π, π‘) βπ1 = 0, (1.7b) with boundary conditions, case II, πβ³(π, π‘) βπ2 = 0, (1.7c) with boundary conditions, case III. Since (1.7a)-(1.7c) are nonlinear equations, Newtonβs iteration method will be used to obtain the sequences {π‘π} of the approximate solutions, when the initial value π‘0 is given, the iteration solutions have the following forms, respectively: π‘π= π‘πβ1 β
Here, the knowledge of ππ‘πβ³(π, π‘πβ1) are required. Still this presents a difficulty, since explicit representations for π(π, π‘), πβ²(π, π‘) and πβ³(π, π‘) are not known. Suppose that the IVP (1.3)-(1.4) is rewritten, emphasizing that the solution depends on both x and t:
For this reason, we take the partial derivative of problem (1.9) with respect to t . This implies that:
ππ‘(π₯, π‘) + Since x and t are independent, then we obtain
ππ‘(π₯, π‘), πβ€π₯β€π The initial conditions of problem (1.9) are satisfied as follow:
By using π(π₯, π‘) to denote
ππ‘π(π₯, π‘) and assume that the order of differentiation of x and t can be reversed, equations (1.10)-(1.11) transform to the initial-value problem:
(1.12) Now, it is required numerical method for solving the both IVPs (1.9) and (1.12), and then the iteration relations (1.8a)-(1.8c) will be known, and can rewrite them as follow: π‘π= π‘πβ1 β
In practice, these initial-value problems are not likely to be solved exactly. In the next section, spline function approximations can be applied to obtain the numerical solutions of the both nonlinear third- IVPs (1.9) and (1.12). Applying Spline Approximations for Non-linear IVPs: Consider the uniform grid partition β: β‘{π= π₯0 < π₯1 < β―< π₯π< π₯π+1 < β―< π₯π= π} of the interval [π, π] with mesh size β= (πβπ)/π and grid points π₯π= π+ π β, π= 0,1, β¦ , π. The Spline function approximation S(x) to the function π(π₯, π‘) at the grid points is given by the piecewise expression:
(2.1)
Where
π! 6 π=4 πΆπ,πβ3, π₯β[π₯π, π₯π+1], π= 0, β¦ , πβ1 (2.2) By applying the Spline approximation (2.2) and its derivatives with respect to x, ππ
β΄(π₯) on three collocation points π₯π+π§π= π₯π+ π§πβ, (π= 1,2,3), into the third order IVP (1.9), in each subinterval πΌπ= [π₯π, π₯π+1], π= 0(1)πβ1, we have
β³(π₯) (π₯π+π§π)], π= 1,2,3 (2.3a) with the initial conditions
β΄(π) = πβ΄(π, π‘) is determined by the derivation of equation (1.9), where
π! 6 π=4 πΆπ,πβ3, π₯π+π§πβ[π₯π, π₯π+1], π= 1,2,3, π= 0, β¦ , πβ1 (2.4) The first three coefficients πΆπ,1, πΆπ,2, πΆπ,3 are computed from the nonlinear system (2.3a) by using the initial conditions (2.3b) for n=0, or from the previous step if n>1. Similarly, it is required to find the approximate spline solution to the initial-value problem (1.12), to do so, we take the following spline approximation:
π! 6 π=4 πΆΜπ,πβ3, π₯β[π₯π, π₯π+1], π= 0, β¦ , πβ1, (2.5) by applying the approximation (2.5) into (1.12) to be satisfied at collocation points π₯π+π§π= π₯π+ π§πβ, π= 1(1)3, yields: ππ,π
(2.6a) with the initial values: ππ,0(π) = ππ,0
π! 6 π=4 πΆΜπ,πβ3, π₯π+π§πβ[π₯π, π₯π+1], π= 1,2,3, π= 0, β¦ , πβ1 (2.7) And 0 < π§1 < π§2 < π§3 = 1 (2.8) Again, the first three coefficients πΆΜπ,1, πΆΜπ,2, πΆΜπ,3 are computed from the nonlinear system (2.6a) by using the initial conditions (2.6b) for π= 0, or from the previous step if π> 1. By finding the numerical spline solutions of (2.3a)-(2.3b) and (2.6a) (2.3b), and substituting ππβ1(π₯π, π‘πβ1), ππ,πβ1(π₯π, π‘πβ1) and their derivatives into the iteration relations (1.13a)-(1.13c), we have
1. A unique Solution
As previous, the numerical solution of the nonlinear third-order BVP (1.1) will transform to the two solutions of initial value problems of the form: πβ΄(π₯) = π(π₯, π(π₯), πβ²(π₯), πβ³(π₯)), π₯β[π, π] (2.10a) π(π) = πΌ, πβ²(π) = π½ and πβ³(π) = π‘ (2.10b) Suppose that π: [π, π] Γ πΆ[π, π] Γ πΆ1[π, π] Γ πΆ2[π, π] βπ is an enough smooth function satisfying the following Lipschitz condition in respect to the last three arguments: |π(π₯, π¦1, π¦2, π¦3) βπ(π₯, π’1, π’2, π’3)| β€πΏ(|π¦1 βπ’1| + |π¦2 βπ’2| + |π¦3 βπ’3|), (2.11) β(π₯, π¦1, π¦2, π¦3), (π₯, π’1, π’2, π’3) β[π, π] Γ π 3 where the constant L is called a Lipschitz constant for f. These conditions assure the existence of a unique solution U(x) of problem (2.10). By applying the Spline approximations (2.2) and its derivatives into the problem (2.10), using three collocation points π₯π,π§π= π₯π+ π§πβ, (π= 1,2,3), we obtain the system
β³(π) = π‘ (2.12b) We rewrite (2.12a) in the matrices formula: π΄πΆΜ π= πΜ π+ πΉΜ π (2.13) Where
139441πΏ (2.14) then the spline approximation solution S(x) of the problem (2.10) is existent and unique forπ§1 = 1/4, π§2 = 3/4, π§3 = 1, where L is a Lipschitz constant for f. Proof. From the relation (2.13), it suffices to prove that the vector πΆΜ π can be uniquely determined for arbitrary given πΜ π. LetπΆΜ π
1, πΆΜ π 2 βπ 3, then from the relation (2.13), we can write πΆΜ π
1 and πΆΜ π 2 can be written in the form
Thus, the function π¬π defines a contraction mapping if βπΏ
1152 < 1 which satisfies (2.14). Hence there
π, β), π= 0,1,2, β¦ The proof of the Theorem is now complete Convergence Analysis: We assume that π(π₯) βπΆ7[π, π], the unique solution of the third-order BVP (1.1) and ππ(π₯) be a spline approximation to U(x), also π= (πΜ π) is a 3-dimensional column vector. Here, the vector πΜ π is the local truncation error. Applying the Spline approximation ππ(π₯) on three collocation points π₯π+π§π= π₯π+ π§πβ, (π= 1,2,3), and setting
On the other hand, from the system (2.13), we get πΆΜ π= π΄β1πΜπ+ π΄β1πΉΜπ (3.2) Where
Using Taylorβs expansions for the functions π(π)(π₯), π= 0, β¦ ,3 about π₯π, in the relation (3.2) and substituting it into (3.1), the local truncation error at the nth step is yielded, as follows:
(3.3) Where
π! 6 π=0 π(π)(π₯π) + O(β7), π₯β[π₯π, π₯π+1], Note from the relation (3.3) that the proposed Spline method is exact for expansions of the solution of degree β€6, hence, global truncation error is βπββ= π. O(β7) β‘O(β6). Consequently, we have obtained the following: let πβπΆ7[π, π] be Lipschitz continuous, then the spline approximation π(π₯)converges to the solution U(x) of the nonlinear third-order BVP as ββ0 for π§1 = 1/4, π§2 = 3/4, π§3 = 1 and lim ββ0 π(π)(π) = π(π)(π), π= 0, β¦ ,3, π= π, π. (3.4)
Furthermore, the convergence order is furth, i.e., we have |π(π)(π₯) βπ(π)(π₯)| < πΆπβ7βπ, π= 0, β¦ ,3. (3.5) Algorithm: The Spline Method for solving the nonlinear third-order BVP (1.1) We use the following notations elfa=ο‘ , beta= ο’ . INPUTS: Input (a,b, elfa, beta, tk, b0 or b1 else b2): the boundary conditions and constants. Input (πΆ1, πΆ2, πΆ3), the initial approximation vector πΆ= (πΆ1, πΆ2, πΆ3)π. Input (πΆΜ1, πΆΜ2, πΆΜ3), the initial approximation vectorπΆΜ = (πΆΜ1, πΆΜ2, πΆΜ3)π. Input (N), number of subintervals N. Input (M), maximum number of iterations M . Tolerance Tol=0.1E-8; the parameters z1=1/4; z2= 3/4; z3=1; Step 1 Set h=(b-a)/(N); ki=1; Step 2 while (ki <= M) do {0} Steps 3-22. Step 3 Begin {The initial conditions} S0=elfa;
S1=beta; S2=tk; S3=f(a,s0, s1, s2); Sw0=0; Sw1=0; Sw2=1; Sw3=S'''w(a); Step 4 for n:=1 to N do {1} steps 5-19. {Spline solution (2.3a) for the nonlinear IVP (1.9)} We set πΉπ(πΆ) β‘ππ
β³ (π₯π+π§π)] = 0 Step 5 k=1; Step 6 while k <= M do {1} steps 7-11 Step 7 Calculate πΉπ(C) and Jn(C), Where Jn(C)π,π= ππΉπ,π(πΆ)/ππΆπ for 1 β€π, πβ€3. Step 8 Solve the 3ο΄3 linear system π½π(πΆ)π= βπΉπ(πΆ). Step 9 Set C=C+Y. Step 10 if ||Y|| < Tol then {substituting (2.4) and its derivations} sp1[n] = Sn(C); sp11[n] = SΛn(C); sp12[n] = SΛΛn(C); sp13[n] = SΛΛΛn(C); Step 11 Set k:=1+k; {end while 1} {Spline solution (2.6a) for the nonlinear IVP (1.12)} We put πΉπ(πΆΜ) β‘ππ,π
Step 12 k=1; steps 13 While (k<=M) do {2} steps 14-18. Step 14 Calculate πΉπ(πΆΜ) and π½π€π(πΆΜ), Where π½π€π(πΆΜ)π,π= πππ€π,π(πΆΜ)/ππΆΜπ for all 1 β€π, πβ€3.
Step 15 Solve the 3ο΄3 linear system π½π€π(πΆΜ)πΜ = πΉπ(πΆΜ). Step 16 Set πΆΜ = πΆΜ + πΜ Step 17 if βπΜβ < Tol then {substituting (2.7) and its derivations} x:=z[i]*h; Sw[n] = Swn(CΜ); Sw1[n] = SwΛn(CΜ); Sw2[n] = SwΛΛn(CΜ); Sw3[n] = SwΛΛn(CΜ); Step 18 Set k:=k+1; {end while 2} Step 19 Set {Renewing the initial conditions} S0=spl[n]; S1=spl1[n]; S2=spl2[n]; S3=spl3[n]; Sw0=Sw[n]; Sw1=Sw1[n]; Sw2=Sw2[n]; Sw3=Sw3[n]; {end for 1} Step 20 if abs(spl[l,3]-b0)<=tol then {else (spl1[l,3]-b1) or (spl2[l,3]-b2) } Step 21 for n:=1 to N do {2} Set x=a+z[i]*h+(n-1)*h; Output(x, Spl[n], Spl1[n], Spl2[n], Spl3[n], tk, Ki); {end for 2} Output ('Procedure is complete. '); STOP. Step 22 tk:=tk-(spl[N,3]-b0)/Sw[N,3]; {the iterations (2.9b)-(2.9c) are used for the ki=ki+1; other boundary conditions ((1.2b)-(1.2c))} {end while 0 &&& Procedure completed unsuccessfully}
END.
Results and Discussion:
In this section, four numerical examples are given to demonstrate the order of convergence and the accuracy of the present spline method. Numerical results of examples are obtained from computer programs designed by TPW 1.5 in double precision, and figures are plotted by Mathematica 5. The local errors and the rate of convergence are computed for presented spline method. Here, the notations πΈπ
π is the spline approximation of the exact solution π(π₯π). Moreover, the experimental nodal rate of convergence is given by π ππ‘π= πππ 2(πΈπ/πΈ2π). Problem 4.1 Consider the following nonlinear third-order BVP [1-3,5] πβ΄ = β2πβ3π+
π(0) = 0, π(1) = Ln(2), πβ²(0) = 1. The analytical solution is π(π₯) = Ln(1 + π₯). This problem will be reduced into the following two initial value problems:
Corresponding to the boundary conditions, case I, it is required that the iteration relation (2.9a) is satisfied, when π‘= π‘π. The best maximum error of the non-polynomial spline method[5] is 0.200E-7 for h=1/256. Table1 shows the absolute errors of problem4.1, in addition to comparisons of the spline method with other methods [1-3]. In Table 2, Observed maximum errors of the Problem 4.1 for step size h different are compared with other methods[5,11] . Fig.1 plots the Spline approximation solution with the exact solution of problem 4.1, for h=0.1. In Fig. 2, the absolute error in the Spline solution of prblem4.1 is depicted for h=0.1.
π indicates the nodal difference error, and ππ
Problem 4.2 Consider the non-linear BVP [10] πβ΄ + π(π₯)πβ³(π₯) β[πβ²(π₯)]2 + 1 = 0, 0 β€π₯β€1 π(0) = 0, πβ²(0) = 0, π(1) = 0. Here, it is wanted to solve the two initial value problems:
Also, it is required that the iteration relation (2.9a) is satisfied. Table 3 shows the spline solution and local errors at the nth step of problem 4.2 by present spline method, for N=10. By solving the problem 4.2 for N=10, 20, 40, the rate of convergence for the spline method is illustrated in Table 4. The Spline solution Si and its derivation ππ
β² of problem 4.2, for h=0.05, are plotted in Fig.3. Also in Fig.4, the second derivation of Spline solution ππ
β³ of problem 4.2, for h=0.05.
The solution of this problem is equivalent to solve the two initial value problems:
Moreover, it is required to implement the iteration relation (2.9b), since it fits the boundary conditions, case II, it is required that the iteration relation:
Table 5 displays the spline solution and local errors at the nth step of the Spline solution and its derivatives up to third order of the problem 4.3 , for b =1, N=10, ο₯ =1. The best maximum error of the computational method [9] is 1.636318E-05. Problem 4.4. Consider the following singular nonlinear problem[12]
β²of problem 4.4, for N=30.
1/64 0.277 E-05 0.374 E-06 0.45474735 E-12 1/128 0.680 E-06 0.820 E-07 0.22737367 E-12 Table 3: The spline solution and local errors of problem4.2 by presented spline method when, N=10, h=0.1 π₯π ππ πΈπ
β΄π 0.10 0.00149606947 5.76539E-09 7.8803E-10 5.74810E-09 2.47091E-11 0.20 0.00531781873 1.19943E-08 9.1163E-10 5.0805E-09 2.47082E-11 0.30 0.01046620293 1.80013E-09 3.55389E-10 4.41608E-08 4.94467E-11 0.40 0.01594328099 2.31002E-09 8.34378E-10 3.75784E-08 4.97091E-11 0.50 0.02075232466 2.66541E-09 2.64222E-09 3.1027E-09 3.69507E-11 0.60 0.02389786115 2.80448E-09 5.06813E-09 2.45991E-09 2.47091E-12 0.70 0.02438584791 2.67313E-09 8.09279E09 1.81712E-09 7.41593E-11 0.80 0.02122417681 2.19414E-09 1.17278E-08 1.19906E-09 1.97783E-10 0.90 0.01342370403 1.32497E-09 1.5977E-09 5.68608E-09 4.20275E-10 1.00 0.00000000000 5.56236E-14 2.09525E-09 2.47375E-09 6.92239E-10 Table 4: The rate of convergence for presented spline method, with N=10
by presented spline method for N=10, h=0.1, ο₯ =1. π₯π ππ πΈπ
β΄π 0.10 1.10291561144 7.41820 E-11 2.96646 E-10 7.53051 E-08 1.64208 E-08 0.20 1.21033159287 1.13733 E-10 4.45010 E-10 7.00269 E-08 1.60499 E-08 0.30 1.32052581935 1.28547 E-10 4.94456 E-10 6.34815 E-08 1.50017 E-08 0.40 1.43208833425 1.28547 E-10 8.84561 E-10 5.65422 E-07 1.36024 E-07 0.50 1.54386476268 1.23600 E-10 4.35116 E-09 4.97481 E-07 1.20622 E-07 0.60 1.65490998244 1.13733 E-10 1.60961 E-09 4.34129 E-08 1.05071 E-07 0.70 1.76445019289 1.08785 E-10 9.76911 E-10 3.77082 E-08 9.03612 E-08 0.80 1.87185185968 1.03839 E-10 6.87887 E-10 3.26709 E-08 7.69368 E-08 0.90 1.97659628872 1.08786 E-10 4.88911 E-10 2.83198 E-08 6.47857 E-08 1.00 2.078258809212 1.02324 E-10 3.23602 E-10 2.45867 E-08 5.44887 E-08 Table 6: The spline solution, its derivatives and absolute errors of problem4.4 by presented spline method when,
N=40, h=0.0225. π₯π ππ ππ
4. Conclusion
The presented algorithm is experimented for solving some problems in nonlinear third-order differential equations. This presented spline method enables us to approximate the solution as well as its derivative at every point of the range of integration, while other methods do not produce. Tables 1-6 and Figures 1-5 are illustrated the applicability, efficiency and very good accuracy of the spline method. Comparisons of our results with the results obtained [1-3, 5, 9, 11] show that the presented spline method is better than other methods. Table4 shows the rate of convergence for the spline method when applied to the problem4.2 is at least four, and this is agreed with theoretical study. In consequence, all the problems of form (1.1)-(1.2c) is solvable successfully by using the proposed method.