Abstract

In this study, a matrix method based on Taylor polynomials and collocation points is presented for the approximate solution of a class of nonlinear differential equations, which have many applications in mathematics, physics and engineering. By means of matrix forms of the Taylor polynomials and their derivatives, the technique we have used reduces the solution of the nonlinear equation with mixed conditions to the solution of a matrix equation which corresponds to a system of nonlinear algebraic equations with the unknown Taylor coefficients. On the other hand, to illustrate the validity and applicability of the method, some numerical examples together with residual error analysis are performed and the obtained results are compared with the existing results in literature.

1. Introduction

In this study, we consider the high order differential equation with nonlinear terms in the formsubject to the mixed conditions;Here and are the functions defined on the interval and are suitable real constants; is an unknown function to be determined.

In recent years, it is well known that there exists an increasing interest in the application of the models to nonlinear problems of (1)-(2) type in biology, physics and engineering. Also, the numerical solution methods of them have been developed very rapidly and intensively by many authors [110]. In [11], they present a new analytical technique for obtaining the analytical approximate solutions for system of Fredholm-Integral equations based on the use of residual power series method (RPSM). A new general form fractional power series is introduced in the sense of the Caputo fractional derivative in [12]. They implement a relatively new analytic iterative technique to get approximate solutions of differential algebraic equations system based on generalized Taylor series formula and the analysis proposes an analytical-numerical approach for providing solutions of a class of nonlinear fractional Klein-Gordan equation subjected to appropriate initial conditions in Caputo sense by using the Fractional Reduced Differential Transform Method (FRDTM) in [13, 14], respectively. In this study, by means of the matrix methods based on collocation points given by M. Sezer and coworkers [1517], we developed a new numerical method to find the approximate solutions of (1) in the truncated Taylor series formwhere , are unknown coefficients to be determined; is a Taylor polynomial of degree on the interval .

2. Operational Matrix Relations

We now consider (1) and find the matrix forms of each term in the equation. We first convert the Taylor polynomial equation defined by (3) to matrix formwhereBesides, it is clearly seen that the recurrence relation between the matrix and its derivatives iswhere [18]From (4) and (6), we have the matrix relationIn addition, we can obtain the following matrix forms of the expressions ,  ,  ,  ,   and , by similar computations as (4)–(8) [15, 17]:whereNow we can define the collocation points asBy substituting the collocation points (11) into (1), we get the system of matrix equations, for or brieflywhereWe now put the collocation points (11) into the relation (8) and obtain the matrix equation, for ,whereOn the other hand, we can write the nonlinear part of (13) asBy substituting the collocation points (11) into the relations (9a), (9b), (9c), (9d), (9e), and (9f), respectively, the matrices , and are obtained from the following matrix forms:whereBy substituting the matrix relations (15) and (18) into (13), we obtain the fundamental matrix equationor brieflywhereAlso we can write the fundamental matrix equation (21) in the augmented matrix formor clearlyBesides, by using the matrix relation (8), the fundamental matrix equation of the mixed conditions (2) becomesor brieflyor clearlyso thatConsequently, to find the Taylor coefficients, , related to the approximate solution (3) of problem (1)-(2), by replacing the row matrices (26) by the last rows (or any rows) of the augmented matrix (23), we obtain new augmented matrix.From this nonlinear system, that is, the matrix equation , the unknown coefficients, , are determined; therefore the Taylor polynomial solution is obtained as

3. Accuracy of Solutions and Residual Error Estimation

We can check the accuracy of the obtained solutions as follows [18]. Since the truncated Taylor series (3) is an approximate solution of Eq. (1), then the solution and its derivatives are substituted in Eq. (1), the resulting equation must be satisfied approximately; that is, fororIf is prescribed, then the truncation limit is increased until the difference at each of the points becomes smaller than the prescribed . Therefore, if when is sufficiently large enough, then the error decreases.

On the other hand, by means of the residual function, , and the mean value of the function, , on the interval , the accuracy of the solution can be controlled and the error can be estimated [19].

Thus, the upper bound of the mean error, , is as follows:andMoreover we use different error norms for measuring errors. These are defined as follows:(1)(2)(3)

where ; also and are the exact and approximate solutions of the problem, respectively [20].

4. Numerical Examples

The method of this study is useful in finding the solutions of a class of nonlinear equations in terms of Taylor polynomials and the accuracy. We illustrate it by the several numerical examples and perform all of them on the computer using a program written separately in MATLAB R2017b.

Example 1. Consider the second-order nonlinear differential equationwith the initial and boundary conditionswhere .
While the exact solution is , the proposed method is applied and the approximate solutions of (35) under conditions (36) are obtained as , , , for N = 2,3,4,5, respectively.
In Tables 1 and 2, we see that absolute errors and , , and errors are calculated for , respectively.

Example 2. Consider the second-order nonlinear differential equation of the formwith the initial conditionsSee [21].
Similarly, while the exact solution is , the approximate solutions of (38) under conditions (39) are obtained as , , , for N = 2,3,4,5, respectively.
Considering , the obtained approximate solutions are compared with the exact solution in Figure 1 and the absolute errors are demonstrated in Table 3.

The upper bound of the mean error, , of Example 2 can be calculated as as in the method given and of Example 2 is illustrated in Figure 2 for .

Example 3. Consider Volterra’s Population Model, a model for population growth of a closed system introduced by Volterra.
The model is defined by the nonlinear integro-differential equation [22]where is a prescribed parameter. In order to examine the mathematical behavior of the individual's scale population u (t), we first setSubstituting (41) into (40) and using for numerical purpose, we findwith the initial conditions

See [23].

Because the problem has not exact solution, we follow the same procedure and obtain the approximate solutions of (42) under the conditions (43). For N=5, the obtained solution using our method is . In Table 4, the results of the approximate solutions of the problem that is obtained with Runge-Kutta method [24], Adomian decomposition method [23], and the proposed method on are presented in Table 4.

Example 4. Consider the following differential equation:It is solved as follows with the proposed method under boundary conditions. (a)For , , , .For , and the ordering points are for the interval .The solution is investigated in the following form:Using our proposed method, the fundamental matrix equation is obtained asHere,The following fundamental matrix equation is obtained as is obtained for the boundary condition and using the proposed method, the desired matrix equationis constructed.
Thus, Taylor’s coefficients are found as and for , the solutionis obtained.(b)For ,   and the ordering points are for the interval 1/2 < x ≤ 1.y(1/2) = 1/2 is obtained for by considering . Thus, the following matrix equation is written as follows:Thus, by calculating Taylor’s coefficients for the solutionis obtained.
The solution of (44) under condition (46)overlaps with the exact solution of the problem.

5. Conclusion

Nonlinear differential equations used in engineering, physics, mathematics or in many modelling problems are usually difficult to solve analytically. In this study, a Taylor matrix method has been given to solve a class of nonlinear differential equations in order to find a consistent approximate solution. A significant advantage of the proposed method, the Taylor coefficients of the solution can be found obviously by developing computer programs. The results related to examples have been shown in Tables 1–4 and Figures 1 and 2. As seen from tables and figures, when the value of N is increased, the numerical results rapidly improve. Residual error analysis has been also developed for the accuracy of solutions. The proposed method can be improved with new strategies to solve other high order nonlinear differential equations.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Disclosure

The abstract that has the same title was presented in the ICAAMM 2017 (International Conference on Applied Analysis and Mathematical Modelling).

Conflicts of Interest

The authors declare that they have no conflicts of interest.