- Research
- Open Access
- Published:

# Solving third-order boundary value problems with quartic splines

*SpringerPlus*
**volume 5**, Article number: 326 (2016)

## Abstract

In this article, we present a novel second order numerical method for solving third order boundary value problems using the quartic polynomial splines. We establish the convergence of the method. We present numerical experiments to demonstrate the efficiency of the method and validity of our second order method, which shows that present method gives better results.

## Background

In this article we consider a quartic splines method for the numerical solution of the third order boundary value problems given as

subject to the boundary conditions

where *α*, *β* and *γ* are real constant.

In environments and in most other areas of natural and applied sciences, the differential equations that govern the behavior of model systems are well-known. For instance, to describe the evolution of physical phenomena in fluctuating environments governed by third order differential equation (Ahmad et al. 2012). The study of aero elasticity, sandwich beam analysis and beam deflection theory, electromagnetic waves, theory of thin film flow and incompressible flows and regularization of the Cauchy problem for one-dimensional hyperbolic conservation laws (Bressan 2000) are some other model systems in natural and applied sciences where the third order boundary value problems arise.

The theoretical concepts of existence, uniqueness and convergence of the solution and some specific solution of problem (1) can be found in the literature (Howes 1982; Agarwal 1986; Gupta and Lakshmikantham 1991; Gregus 1987; Murty and Rao 1992; Feckan 1994; Henderson and Prasad 2001; Li 2010). The specific assumption to further ensure existence and uniqueness of the solution to problem (1) will not be considered. Thus the existence and uniqueness of the solution to problem (1) is assumed. Further we assume that problem (1) is well pose. The emphasis in this article will be on the development of an efficient numerical method to deal with approximate numerical solution of the third order boundary value problem.

The quality of a numerical method depends on the accuracy of the method to a great extent. Some efficient and accurate numerical methods for solving higher order boundary value problems are available in literature. Some researchers have studied and solved in particular third order boundary value problems with different boundary conditions using different methods for instance some literary work in Finite Difference Method (Al-Said 2001), Quintic Splines (Khan and Aziz 2003), Non polynomial spline method (Islam et al. 2005, 2007; Srivastava and Kumar 2012), Quartic B-splines (Gao and Chi 2006), Haar wavelets method (Fazal-i-Haq and Ali 2011), Collocation quantic spline (Noor and Khalifa 1994), Reproducing Kernel Method (Li and Wu 2012) and references therein can be found. With advent of computers it gained important to develop more accurate numerical methods to solve higher order boundary value problems. Hence, the purpose of this article is to develop an efficient numerical method for solution of third order boundary value problems (1).

We present our work in this article as follows. In the next section we derive a finite difference method. In section “Convergence analysis”, we discuss convergence of the proposed method under appropriate condition. The application of the proposed method on the test problems and illustrative numerical results so produced to show the efficiency in section “Numerical results”. Discussion and conclusion on the performance of the proposed method present in section “Conclusion”.

## The difference method

We define *N* finite numbers of nodal points of the domain [*a*, *b*], in which the solution of the problem (1) is desired, as \(a\le x_0<x_1<x_2<\cdots <x_N =b\) using uniform step length *h* such that \( x_i=a+i.h, i=0,1,2,\ldots ,N\). Also, we let *u*(*x*) be the exact solution of (1) and we denote the numerical approximation of *u*(*x*) at node \(x=x_i\) as *u*
_{
i
}. Let us denote *f*
_{
i
} as the approximation of the theoretical value of the source function *f*(*x*, *u*(*x*)) at node \(x=x_i ,\; i=0,1,2,\ldots ,N\). Thus the boundary value problem (1) at node \(x=x_i\) may be written as

subject to the boundary conditions

We wish to determine the numerical approximation of the theoretical solution *u*(*x*) of the problem (1) at the nodal point \(x_i , i=1,2,\ldots ,N\).

Define \(x_{i-\frac{1}{2}}=x_i-\frac{1}{2}h, i=1,2,\ldots ,N\) nodes in [*a*, *b*]. Let \(s_{i-\frac{1}{2}}\) be an approximation to \(u_{i-\frac{1}{2}}= u(x_{i-\frac{1}{2}})\) solution of the problem (1) at these nodes obtained by the quartic spline \(S_i(x)\) passing through the points \((x_{i-\frac{1}{2}},s_{i-\frac{1}{2}})\) and \((x_{i+\frac{1}{2}},s_{i+\frac{1}{2}})\). For each *i*th segment, we write polynomial quartic spline \(S_i(x)\) in the form

where \(c_{i0} , c_{i1} , c_{i2} , c_{i3} , c_{i4}\) are real finite constants. Then the quartic spline defined by

To determine constants *c*
_{
i0}, *c*
_{
i1}, *c*
_{
i2}, *c*
_{
i3}, *c*
_{
i4} we assume that \(S_i(x)\) satisfies problem (1) with boundary conditions at \(x_{i-\frac{1}{2}}\) and \(x_{i+\frac{1}{2}}\) . Following the idea in Fazal-i-Haq and Ali (2011) we let

Thus we will obtain

Using method of undetermined coefficients and Taylor’s series expansion, we discretize problem (2) at these nodes in [*a*, *b*],

where \(t_i, i=1,2,\ldots ,N\) is truncation error. In discretization we have used boundary conditions in a natural way.

After neglecting the *t*
_{
i
} in (7), at nodal points \(x_{i-\frac{1}{2}}, i=1,2,\ldots ,N\), we will obtain the *N* × *N* linear or nonlinear system of equations depends on the source function *f*(*x*, *u*) in unknown \(s_{i-\frac{1}{2}}\). We have to solve a system of equations by an appropriate method. We have applied either Gauss Seidel or Newton–Raphson iterative method to solve above system of Eq. (7) respectively for linear and nonlinear system of equations by following algorithms,

in which terms are defined as follow,

where

and

Let **s** and **F** are the all vector of values \(s_{i-\frac{1}{2}}\) and *F*
_{
i
} respectively.

Neglecting the term \(O((\delta {\mathbf{s}} )^2)\) and assuming \({\mathbf{s}} +\delta {\mathbf{s}} \) is root of **F**, then

where \({\mathbf{J}} ^{-1}=\frac{\partial (f_1,f_2,\ldots ,f_N)}{\partial (s_\frac{1}{2},s_\frac{3}{2},\ldots ,s_{N-\frac{1}{2}})}\). Also some time we consider \(\delta {\mathbf{s}} ={\mathbf{s}} _{m+1}-{\mathbf{s}} _m\).

We compute numerical value of *u*
_{
N
} by using following second order approximation,

## Convergence analysis

We will consider following linear test equation for convergence analysis of the proposed method (7).

subject to the boundary conditions \(u_0=\alpha , \quad u'_0=\beta \) and \( u'_N=\gamma \). We can write the proposed method (7) in the matrix form as

where

and \({\mathbf{u}} =(u_{i-\frac{1}{2}}), {\mathbf{a}} =(a_i)\), and \({\mathbf{t}} =(t_i)\) are *N*-dimensional column vectors defined as,

Let us solve test problem (9) by proposed method (7) after neglecting the terms \(t_i\). We will obtain a system of linear equations in \( s_{i-\frac{1}{2}}\). Solving the system of equations so obtained by an iterative method, we get an approximate solution. Let us write system of equation in matrix form,

where \({\mathbf{s}} =(s_{i-\frac{1}{2}})\) is *N*-dimensional column vector of approximate solution of system of equations obtained from (7). Let us define

where \(s_{i-\frac{1}{2}}\) is an approximate value of \(u_{i-\frac{1}{2}}, i=1,2,\ldots ,N\). Thus from (10) and (11) we can write an error equation

where \({\mathbf{e}} =(e_{i-\frac{1}{2}}), i=1,2,\ldots ,N\) is *N*-dimensional column vector. Let \({\mathbf{K}} =(k_{ij})\) be the explicit inverse of nonsymmetric Toeplitz matrix **D** and defined as Jain et al. (1987), Varga (2000), Horn and Johnson (1990), [24],

where

From (15), (16) and (17), we can prove that **K** is nonsymmetric and positive matrix. Let matrix \({\mathbf{R}} =(R_{i1})_{N\times 1}\), denotes the matrix of the row sum of the matrix \({\mathbf{K}} =(k_{ij})_{N\times N}\) where,

Hence we have obtained

Thus for large *N*, from (19) we conclude that

Let

Then from (13), (20) and (21) we have

Thus from Eq. (22) it follows that \(\Vert {\mathbf{e}} \Vert \rightarrow 0\) as \(h \rightarrow 0\). This establishes the convergence of the method (7) and the order of convergence of method (7) is at least \(O(h^2)\).

## Numerical results

To illustrate our method and demonstrate its computational efficiency, we have considered three model problems. In each model problem, we took uniform step size *h*. In Tables 1, 2, 3 and 4, we have shown *MAE* the maximum absolute error in the solution *u* of the problems (1) for different values of *N*. We have used the following formula in computation of *MAE*,

We have used Gauss Seidel and Newton–Raphson iteration method to solve respectively for linear and nonlinear system of equations arised from Eq. (7). All computations were performed on a Windows 2007 Ultimate operating system in the GNU FORTRAN environment version 99 compiler (2.95 of gcc) on Intel Core i3-2330M, 2.20 Ghz PC. The solutions are computed on *N* nodes and iteration is continued until either the maximum difference between two successive iterates is less than 10^{(−10)} or the number of iteration reached 10^{3}.

**Problem 1** The model linear problem given by

subject to boundary conditions

where *f*(*x*) is calculated so that the analytical solution of the problem is \(u(x)=x\exp (-x)\). The *MAE* computed by method (7) for different values of *N* are presented in Table 1 and the results obtained in the numerical experiment is compared with high order finite difference method reported in Al-Said (2001).

**Problem 2** The nonlinear model problem given by

subject to boundary conditions

where *f*(*x*) is calculated so that the analytical solution of the problem is \(u(x)=(x-1)\sin (x)\). The *MAE* computed by method (7) for different values of *N* are presented in Table 2 and the results obtained in the numerical experiment is compared with high order finite difference method reported in Al-Said (2001).

**Problem 3** Consider the following third-order obstacle problems (Noor and Khalifa 1994),

subject to boundary conditions

The analytical solution of the problem is

where the constants \(a_i, i=1,2,\ldots ,6\) can be determined by the solving a system of linear equations which can be obtained by applying the continuity conditions of \(u(x), u'(x)\) and \(u''(x)\) at \(x=\frac{1}{4}\) and \(\frac{3}{4}\). The *MAEI*, *MAEM* and *MAEE* respectively in interval \([0,\frac{1}{4}], [\frac{1}{4},\frac{3}{4}]\) and \([\frac{3}{4},1]\) and *MAE* = max{*MAEI*, *MAEM*, *MAEE*} computed by method (7) for different values of *N* are presented in Table 3 and the results obtained in the numerical experiment is compared with some higher order method reported in literature presented in Table 4.

We have described a numerical method for numerical solution of third order boundary value problem and three model problems including an obstacle problem considered to test the performance of the proposed method. Numerical result for examples for different values of *N* which is presented in tables, the maximum absolute errors in solution decreases with decrease in step size *h*. Also from the numerical results in Table 4, is clear that the new method (7) outperforms the existing methods. On the other hand, it is evident that method (7) is convergent and the rate of convergence is at least quadratic.

## Conclusion

A finite difference method to find the numerical solution of third order boundary value problems has been developed. At nodal point \(x = x_{i-\frac{1}{2}}, i = 1, 2,\ldots ,N\) we have obtained a system of algebraic equations given by (7). Thus we have a system of linear equations if source function *f*(*x*, *u*) is linear otherwise system of nonlinear equations. The propose method produces good approximate numerical value of the solution for model problems and it is computationally efficient and accurate method. The idea presented in this article leads to the possibility to develop finite difference methods for the numerical solution of higher odd order boundary value problems. Works in these directions are in progress.

## References

Agarwal RP (1986) Boundary value problems for higher order differential equations. World Scientific, Singapore

Ahmad B, Nieto JJ, Alsaedi A, El-Shahed M (2012) A study of nonlinear Langevin equation involving two fractional orders in different intervals. Nonlinear Anal Real World Appl 13:599–606

Al-Said EA, Noor MA, Khalifa AK (1996) Finite difference scheme for variational inequalities. J Optim Theory Appl 89(2):453–459

Al-Said EA (2001) Numerical solutions for system of third-order boundary value problems. Int J Comput Math 78(1):111–121

Al-Said EA, Noor MA (2003) Cubic splines method for a system of third-order boundary value problems. Appl Math Comput 142(2–3):195–204

Bressan A (2000) Hyperbolic systems of conservation laws. The one-dimensional Cauchy problem. Oxford University Press, London

Fazal-i-Haq IH, Ali A (2011) A Haar wavelets based numerical method for third-order boundary and initial value problems. World Appl Sci J 13(10):2244–2251

Feckan M (1994) Singularly perturbed higher order boundary value problems. J Differ Equ 111(1):79–102

Gao F, Chi CM (2006) Solving third-order obstacle problems with quartic B-splines. Appl Math Comput 180(1):270–274

Gregus M (1987) Third order linear differential equations. Series: mathematics and its applications, vol 22. Springer, Netherlands

Gupta CP, Lakshmikantham V (1991) Existence and uniqueness theorems for a third-order three point boundary value problem. Nonlinear Anal Theory Methods Appl 16(11):949–957

Henderson J, Prasad KR (2001) Existence and uniqueness of solutions of three-point boundary value problems on time scales. Nonlinear Stud 8:1–12

Horn RA, Johnson CR (1990) Matrix analysis. Cambridge University Press, New York 10011

Howes FA (1982) Differential inequalities of higher order and the asymptotic solution of the nonlinear boundary value problems. SIAM J Math Anal 13(1):61–80

Islam S, Khan MA, Tirmizi IA, Twizell EH (2005) Non-polynomial splines approach to the solution of a system of third-order boundary-value problems. Appl Math Comput 168(1):152–163

Islam SU, Tirmizi IA, Khan MA (2007) Quartic non-polynomial spline approach to the solution of a system of third-order boundary-value problems. J Math Anal Appl 335(2):1095–1104

Jain MK, Iyenger SRK, Jain RK (1987) Numerical methods for scientific and engineering computation, 2nd edn. Willey Eastern Limited, New Delhi

Khan A, Aziz T (2003) The numerical solution of third-order boundary-value problems using quintic splines. Appl Math Comput 137(2–3):253–260

Li YX (2010) Positive periodic solutions for fully third-order ordinary differential equations. Comput Math Appl 59:3464–3471

Li X, Wu B (2012) Reproducing kernel method for singular multi-point boundary value problems. Math Sci 6:16. doi:10.1186/2251-7456-6-16

Murty KN, Rao YS (1992) A theory for existence and uniqueness of solutions to three-point boundary value problems. J Math Anal Appl 167(1):43–48

Noor MA, Al-Said EA (2004) Quartic splines solutions of third-order obstacle problems. Appl Math Comput 153(2):307–316

Noor MA, Khalifa AK (1994) A numerical approach for odd-order obstacle problems. Int J Comput Math 54(1):109–116

Pandey PK. An efficient numerical method for the solution of third order boundary value problem in ordinary differential equations (to appear)

Srivastava PK, Kumar M (2012) Numerical algorithm based on quintic nonpolynomial spline for solving third-order boundary value problems associated with draining and coating flow. Chin Ann Math Ser B 33(6):831–840

Usmani RA, Sakai M (1984) Quartic spline solutions for two-point boundary problems involving third order differential equations. J Math Phys Sci 18:365–380

Varga RS (2000) Matrix iterative analysis, second revised and expanded edition. Springer, Heidelberg

## Acknowledgements

It is not possible for us to pay processing charges of journal. I greatly acknowledge the support from Springer Plus in term of waivers of processing fee.

### Competing interests

All authors declare that they have no competing interests.

## Author information

### Authors and Affiliations

### Corresponding author

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Pandey, P.K. Solving third-order boundary value problems with quartic splines.
*SpringerPlus* **5**, 326 (2016). https://doi.org/10.1186/s40064-016-1969-z

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s40064-016-1969-z

### Keywords

- Boundary-value problems
- Finite-difference methods
- Obstacle problems
- Quartic polynomial splines

### Mathematics Subject Classification

- 65L10
- 65L12
- 65L20