- Research
- Open Access
- Published:

# The application of block pulse functions for solving higher-order differential equations with multi-point boundary conditions

*Advances in Difference Equations*
**volume 2016**, Article number: 93 (2016)

## Abstract

In this paper, the block pulse function method is proposed for solving high-order differential equations associated with multi-point boundary conditions. Although the orthogonal block pulse functions frequently have been applied to approximate the solution of ordinary differential equations associated with the initial conditions, the presented method provides the flexibility with respect to multi-point boundary conditions in separated or non-separated forms. This technique, which may be named the augmented block pulse function method, reduces a system of high-order boundary value problems of ordinary differential equations to a system of algebraic equations. The illustrated results confirm the computational efficiency, reliability, and simplicity of the presented method.

## Introduction

The systems of ordinary differential equations (ODEs) with different boundary conditions are well known for their applications in biology, chemistry, physics, engineering, and sciences [1–4]. There are many different reliable methods which can find the solution of ODEs for simple forms of boundary conditions. But the mathematical models of many phenomena in the real world are enforced by more difficult forms of boundary conditions such as multi-point boundary conditions in separated or non-separated forms.

Because of the importance, the boundary value problems have been solved several times by many different methods such as the finite difference method, the spline method, the radial basis functions, the wavelet method, and many other numerical and analytical methods; see [5–10] and the references therein. We recall that boundary conditions that are more difficult imply developing numerical methods to find the solution of the ordinary differential systems. However, some of these methods are reliable and applicable for solving ordinary differential equations; the most of these methods provide the solution only for a particular kind of differential equations or a particular kind of boundary conditions. In this study, we describe the application of the block pulse function method for solving arbitrary-order differential equations.

Recently, orthogonal block pulse functions have been widely discussed and applied to approximate the solutions of some difficult systems defined in engineering and science [11–22]. The most important properties of BPFs are disjointness, orthogonality, and completeness which cause the popularity among the computational methods.

In this work, we proposed the augmented block pulse function method for solving a system of arbitrary-order boundary value problem associated with initial conditions or multi-point boundary conditions in separated or non-separated forms. Let us consider the following *n*th-order differential equations with assumption of the existence and uniqueness of the solution:

associated with *n* equality conditions and

Since the differential equation may be enforced by many different conditions, we consider the general form including separated and non-separated boundary conditions but we also can consider boundary conditions or the set of conditions including some or all of these mentioned types. Let us assume

and \(x\in\mathbb{R}\) and \(x_{0}, x_{1},\ldots,x_{k}\) (not necessarily distinct) are given real finite constants. If \(k=0\) the problem becomes the initial value problem and for \(k=1\) the problem will be called a two-point boundary value problem. It is also called a multi-point boundary value problem if \(k>1\). In the particular case of distinct \(x_{0}, x_{1},\ldots,x_{n}\), the boundary conditions of the following type:

may be called separated and if the conditions are not separated will be called of non-separated type. In a more general form, the condition may also include the value of the derivatives of \(f(x)\) so

However, these types of systems arising in engineering and sciences have important applications but it is not possible to solve them analytically for arbitrary choices of \(\mathcal{L}(x)\) and \(\mathcal {L}_{i}(x)\), \(i=1,2,\ldots,n\). Therefore, the numerical methods for obtaining an approximated solution of (1) with higher accuracy still is of interest for researchers.

To make the article self-contained in Section 2 a short description on block pulse functions is added. In Section 3 the description of the method shows BPFs how can be applied to solve the high-order differential equations with a different kind of boundary conditions. The numerical results are illustrated in Section 4 to clarify more details of the proposed method and expectedly confirm the convergence and applicability of the method. Finally, a brief conclusion is stated in Section 5.

## Block pulse functions

An *m*-set of BPFs over the interval \(t \in[0,1)\) is defined as follows [22]:

where \(i=0,1,\ldots,m-1 \) is the translation parameter and \(\beta _{i}(x)\) is called the *i*th BPF.

There are some properties for BPFs which make them popular for approximation such as orthogonality, disjointness, and completeness [22]. A function \(f(x)\) over the interval \([0,1)\), can be expanded in a BPFs series with an infinite number of terms

where the coefficients are calculated as follows:

In fact, the series expansion (6) contains an infinite number of terms for smooth \(f(x)\). If \(f(x)\) is a piecewise constant or may be approximated by a piecewise constant, the sum in (6) will be terminated after *m* terms, that is,

where

Also, the collocation points can be defined in the following form:

Now substituting the collocation points leads to

The above equations can be rewritten in the following matrix form:

and \(\boldsymbol {\Phi}_{m}\) is the BPF matrix of order *m* defined by

### Theorem 2.1

*Suppose that*
\(f(x)\)
*is an arbitrary real bounded function*, *which is square integrable in the interval*
\([0,1)\), *and*

*Then*

We consider the solution of *n*th-order system (1) to need at least *n*th-order differentiability to be able to approximate the highest-order derivative of the unknown function and prevent the discontinuity seen in (8). So we first define

where

These integrals can be evaluated using the definition of BPFs for \(i=0,1,\ldots,m-1\) and are given as follows:

### Remark 2.2

More generally, we define the BPFs over the interval \([a,b)\) as

where

Also, the integrals of \(\bar{\beta}_{i}(x)\) can be evaluated as

Note that if we assume

then \(f(x)\) can be approximated using \(\mathbf{P}_{in}(x)\), \(i=0,1,2,\ldots,m-1\), as follows:

Similarly, by using the collocations points (10) we have

and the matrix form of the above linear system is

where

is the *n*th BPFs integral matrix and

For example, the matrix of the first time integration is

and the second time integration is

The integration of BPFs has the important role to approximate differential terms and the described matrices in (13), (32), and (33) show the sparsity of the systems made by using BPFs, which affects the computational efficiency.

## Description of the method

First we describe the method for general form of (1) and then some particular cases will be taken to show more features of the method. Assume \(f^{(n)}(x)\) is expanded in a series as follows:

which gives

Without loss of generality, we may assume the values of \(f^{k}(a)\), \(k=0,1,\ldots,n-1\), are unknowns such that

In closed form we can write

or

where \(c_{m+k}=f^{(n-k-1)}(a)\), \(k=0,1,\ldots,n-1\).

This assumption leads to the technique which we named the augmented block pulse function (ABPF) method. In fact, we develop the BPF method to be flexible for an approximation of the differential equations with different boundaries. We replace the expansion of \(f^{(i)}(x)\), \(i=0,1,\ldots,n\), into the system of (1) and (4) and then substitute the collocation points defined in (10) as follows:

and

where

From equations (37) and (38), a nonlinear system of \((m+n)\) equations and \((m+n)\) unknown coefficients results. Solving this system, we can obtain the unknown coefficients \(c_{i}\), \(i=0,1,\ldots,(m+n-1)\) and therefore the functions \(f^{(j)}(x)\), \(j=0,1,\ldots,n\) are identified.

### Remark 3.1

It is worth noting here that we can do a few simple modifications when some of \(f^{(i)}(a)\), \(i=0,1,\ldots,n-1\), are given. Particularly if \(f^{(i)}(a)\), \(i=0,1,\ldots,n-1\), all are given, the system becomes an initial value problem and there is no need to consider any \(c_{i}\), \(i=m,\ldots,m+n-1\). In addition, we can keep the structure of the algorithm and input the given initial value into the described scheme. Obviously, the first state considers the value of \(f^{(i)}(a)\), \(i=0,1,\ldots,n-1\), precisely and the second state find them approximately such that there are good agreement between precise and approximated values. In this paper, the reported results are based on the second assumption.

### Remark 3.2

Definitely we need \((n+m)\) equations which are linear independent to find a unique solution including \((n+m)\) unknown coefficients. Note that the intersection of \(\{x_{0}, x_{1},\ldots,x_{k}\}\) defined in (3), and the collocation points defined (10) should be an empty set. If there exists any common point, we can simply change the collocation points non-uniformly such that every collocation point may be chosen from \([\frac{i}{m},\frac{i+1}{m} )\), \(i=0,1,2,\ldots, m-1\) in order to include all basis functions and keep the structure of constructed matrices demonstrated in (13), (32), and (33) and for higher order. Obviously, there are many sets of points that are appropriate candidates for leading to the independent algebraic equations.

## Numerical examples

In order to assess the accuracy of block pulse function method for solving higher-order differential equations with multi-point boundary conditions we will consider the following examples. The associated computations with the examples were performed using MAPLE 17 with 64 digits precision on a personal computer.

### Example 1

Consider the following ordinary differential equation [7, 24]:

with the separated boundary conditions

and the exact solution

According to the algorithm, we first approximate \(y^{(6)}(x)\) as follows:

where \(\bar{\beta}_{i}(x)\) are the BPFs defined in (22) on \([a,b]=[-1,1]\). Let us assume \(m=6\), by integration one can find \(y^{(j)}(x)\), \(j=0,1,\ldots,5\), as follows:

The chosen uniform collocation points, \(-\frac{5}{6}\), \(-\frac{1}{2}\), \(-\frac{1}{6}\), \(\frac{1}{6}\), \(\frac{1}{2}\), and \(\frac{5}{6}\), should be substituted into the following equation:

which gives sixalgebraic linear equations. Also, we will get other six linear equations as follows:

inwhich are included12 unknown coefficients. Solving the obtained system gives

and Table 1 includes the observed absolute error by these values. The plots of the numerical solution by the proposed method with \(m=64\) versus the exact solution and the absolute error function are depicted in Figures 1 and 2, respectively, showing higher accuracy. The graph of the sixth derivative of the numerical solution by BPFs versus the exact solution for \(m=64\) is given in Figure 3. This example with other boundary conditions [7, 24] also can be reduced to a system of linear equations as described.

### Example 2

Consider the following linear fourth-order nonlocal boundary value problem [25]:

with the non-separated boundary conditions

and the exact solution

Plotsof the numericalsolution by the proposed method with \(m=64\) versus the exact solution and the absolute error function are depicted in Figures 4 and 5, respectively. The graph of the fourth derivative of the numerical solution by BPFs versus the exact solution for \(m=64\) is given in Figure 6. Also, Table 2 presents the observed maximum absolute error for \(m=10\) and \(m=16\), using the proposed together with the results obtained by reproducing kernel method (RKM), given in [25]. By the comparison of the results obtained using the presented method in Table 2 with the RKM, it is easily found that the present approximations are more efficient.

### Example 3

Consider the following nonlinear second-order four-point boundary value problem:

with the non-separated boundary conditions

and the exact solution

The plots of the numerical solution by the proposed method with \(m=32\) versus the exact solution and the absolute error function are depicted in Figures 7 and 8, respectively. The graph of second derivative of the numerical solution by BPFs versus the exact solution for \(m=32\) is given in Figure 9.

## Conclusion

The block pulse functions provide the efficient method to solve high-order ODEs associated with the general type of multi-point boundary conditions. According to the presented method, the *n*th-order ODE defined in (1), which can be linear or nonlinear system with separated and non-separated boundary conditions, will be reduced to the algebraic equations by using block pulse functions and a polynomial function of degree \(n-1\). The most important privileges of the proposed method are computational efficiency due to sparse matrices, simplicity, and reliability, so one may increase the number of basis functions and consequently the accuracy will be improved.

## References

- 1.
Agarwal, RP: Boundary Value Problems for High Order Differential Equations. World Scientific, Singapore (1986)

- 2.
Ang, WT, Park, YS: Ordinary Differential Equations: Methods and Applications. Universal-Publishers, Boca Raton (2008)

- 3.
Hsu, S-B: Ordinary Differential Equations with Applications. World Scientific, Singapore (2006)

- 4.
Roberts, C: Ordinary Differential Equations: Applications, Models, and Computing. CRC Press, Boca Raton (2011)

- 5.
Loghmani, GB, Ahmadinia, M: Numerical solution of sixth order boundary value problems with sixth degree B-spline functions. Appl. Math. Comput.

**186**, 992-999 (2007) - 6.
Loghmani, GB, Alavizadeh, SR: Numerical solution of fourth-order problems with separated boundary conditions. Appl. Math. Comput.

**191**, 571-581 (2007) - 7.
Siddiqi, SS, Akram, G: Septic spline solutions of sixth-order boundary value problems. J. Comput. Appl. Math.

**215**, 288-301 (2008) - 8.
Temimi, H, Ansari, AR: A new iterative technique for solving nonlinear second order multi-point boundary value problems. Appl. Math. Comput.

**218**, 1457-1466 (2011) - 9.
Vedat, SE: Solving nonlinear fifth-order boundary value problems by differential transformation method. Selçuk J. Appl. Math.

**8**(1), 45-49 (2007) - 10.
Wazwaz, AM: The numerical solution of fifth-order boundary value problems by the decomposition method. J. Comput. Appl. Math.

**136**, 259-270 (2001) - 11.
Datta, KB, Mohan, BM: Orthogonal Functions in Systems and Control. World Scientific, Singapore (1995)

- 12.
Deb, A, Sarkar, G, Bhattacharjee, M, Sen, SK: All-integrator approach to linear SISO control system analysis using block pulse functions (BPF). J. Franklin Inst.

**334**(2), 319-335 (1997) - 13.
Deb, A, Sarkar, G, Sen, SK: Block pulse functions, the most fundamental of all piecewise constant basis functions. Int. J. Syst. Sci.

**25**(2), 351-363 (1994) - 14.
Harmuth, HF: Transmission of Information by Orthogonal Functions. Springer Science & Business Media. Springer, Berlin (2013)

- 15.
Hatamzadeh-Varmazyar, S, Masouri, Z, Babolian, E: Numerical method for solving arbitrary linear differential equations using a set of orthogonal basis functions and operational matrix. Appl. Math. Model. (2015). doi:10.1016/j.apm.2015.04.048

- 16.
Hatamzadeh-Varmazyar, S, Masouri, Z: Numerical method for analysis of one- and two-dimensional electromagnetic scattering based on using linear Fredholm integral equation models. Math. Comput. Model.

**54**, 2199-2210 (2011) - 17.
Hatamzadeh-Varmazyar, S, Naser-Moghadasi, M, Masouri, Z: A moment method simulation of electromagnetic scattering from conducting bodies. Prog. Electromagn. Res.

**81**, 99-119 (2008) - 18.
Hatamzadeh-Varmazyar, S, Naser-Moghadasi, M, Babolian, E, Masouri, Z: Numerical approach to survey the problem of electromagnetic scattering from resistive strips based on using a set of orthogonal basis functions. Prog. Electromagn. Res.

**81**, 393-412 (2008) - 19.
Jiang, ZH, Schaufelberger, W: Block Pulse Functions and Their Applications in Control Systems. Lecture Notes in Control and Information Sciences, vol. 179. Springer, Berlin (1992)

- 20.
Rao, CP: Piecewise Constant Orthogonal Functions and Their Application to Systems and Control. Springer, Berlin (1983)

- 21.
Sannuti, P: Analysis and synthesis of dynamic systems via block-pulse functions. Proc. Inst. Electr. Eng.

**124**(6), 569-571 (1977) - 22.
Wang, C-H: Generalized block-pulse operational matrices and their applications to operational calculus. Int. J. Control

**36**, 67-76 (1982) - 23.
Maleknejad, K, Khodabin, M, Rostami, M: A numerical method for solving

*m*-dimensional stochastic Itô-Volterra integral equations by stochastic operational matrix. Comput. Math. Appl.**63**, 133-143 (2012) - 24.
Siddiqi, SS, Twizell, EH: Spline solutions of linear sixth order boundary value problems. Int. J. Comput. Math.

**60**, 295-304 (1996) - 25.
Lin, YZ, Lin, JN: Numerical algorithm about a class of linear nonlocal boundary value problems. Appl. Math. Lett.

**23**, 997-1002 (2010)

## Acknowledgements

Z Avazzadeh wish to thank Natural Science Foundation of Jiangsu Province (Project No. BK20150964) and gratefully acknowledges ‘A Project Funded by the Priority Academic Program Development of Jiangsu Higher Education Institutions’.

## Author information

## Additional information

### Competing interests

The authors declare that they have no competing interests.

### Authors’ contributions

All authors contributed equally to the writing of this paper. All authors read and approved the final manuscript.

## 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

Avazzadeh, Z., Heydari, M. The application of block pulse functions for solving higher-order differential equations with multi-point boundary conditions.
*Adv Differ Equ* **2016, **93 (2016). https://doi.org/10.1186/s13662-016-0822-6

Received:

Accepted:

Published:

### MSC

- 65Lxx
- 94A11
- 34k28

### Keywords

- ordinary differential equations
- block pulse functions
- boundary value problem
- multi-point value problem
- separated or non-separated boundary conditions