1. Introduction
Stancu [1] has produced the Stancu polynomials as a generalization of the Bernstein polynomials defined on the interval [0, 1] as follows:
Where 0 ≤ x 1, 0 ≤ α ≤ β . The Stancu polynomials are the Bernstein polynomials for α = β = 0, Therefore, these polynomials refered the Bernstein-Stancu polynomials by Altomare and Campiti [2]. Likewise, Stancu [3] indicated that the Stancu polynomials verified the Weierstrass Theorem [4] such as the Bernstein polynomials. In other words, the Stancu polynomials converge to a continuous function on the interval [0, 1]. Due to the fact that Stancu polynomials are Bernstein type polynomials, they have similar algebric properties with the Bernstein polynomials like positivity, continuity, recursion’s relation, differentiability, integrability over the interval [0, 1]. Moreover, since the Stancu polynomials also depends on the parameters α and β, these polynomials can be used to obtain better approximation than the Bernstein polynomials at the points
on the interval [0, 1]. That is; a better approximation of a continuous function y at any x points on the interval [0, 1] can be effectively got to use the Stancu polynomials with relevant selections of parameters α and β than the Bernstein polynomials [5].
Since many physical sciences, biological sciences and engineering problems in chemical reaction kinetics, molecular dynamics, electronic circuits, population dynamics can be modelled by differential equations, numerical solutions of these equations have become very significant work items in many branches of science for a long time. Because polynomials have algebric properties like countunity, derivability and integrability, a lot of polynomials as Bernstein, Chebyshev, Legendre, Jacobi and Laguerre polynomials play very substantial role producing numerical methods for the solutions of the differential equations. The Bernstein polynomials are commonly used polynomials among the numerical methods procured by these polynomials. Only in the past decade, many studies on the numerical solutions of different types of differential equations have been concerned with the collocation method [6-11], Galerkin Method [12-14], operational matrix method [15-21], Adomian decomposition method [22,23] that were produced by considering the Bernstein polynomials. However any numerical method have not improved for numerical solutions of the differential and other equations by considering the Stancu polynomials. Up to now done studies are about approximation properties and convergence rate of the Stancu polynomials. For this reason, in this study, our aim is to investigate the numerical solutions of the linear differential equations
under the initial conditions
or boundary conditions
by considering the Stancu polynomials (1.1) that are one of the generalization of the Bernstein polynomials. Here
and y(x) is unknown function. Moreover,
called the basis polynomials of the Bernstein type polynomials are mentioned in [24] and these polynomials have an important matrix relation that is underlined this study as follows:
Theorem 1.1. There is a relation between the basis polynomials matrix and their derivatives in the form
Here
are
matrices,
is
matrix such that the elements of N are defined by
for i, j = 0, 1, …, n and N0 = I is identity matrix [25].
The paper’s other sections are continued like that: In Section 2, the method depended on the Stancu polynomials and collocation points have been explained theoretically. In Section 3, some initial and boundary value problems have been considered to show how the method can be applied to the differential equations. Moreover, by getting the numerical results of the method’s maximum and mean errors, the whether method is effective or not have been explored. In addition, the obtained numerical results have been compared with the numerical results of the other well known methods to see whether the method produced by Stancu polynomials is better than the other methods or not. In final Section 4, some inferences have been made about method’s advantages and some advices that will lead to new studies have been given.
2. Manifestation the method
Theorem 2.1. Let
be collocation points on the interval [0, 1] and
. By means of the Stancu polynomials’ approach, the general m th-order linear differential equation (1.2) can expressed by a matrix equation as follows:
Here the matrices are
and
such that 0 ≤ x ≤ 1, 0 ≤ α ≤ β .
Proof: By considering Theorem 1.1 and the Stancu polynomials (1.1), unknown functions and their derivatives can be expressed by matrix form as follows:
Let
be collocation points that are nodes of the Stancu polynomials. These points are depended on selections of the α and β values. Substituting the collocation points and matrix equation (2.2) into equation (1.2), the following algebraic equation system is obtained
such that
. Here the matrices are defined as follows:
The proof is completed thanks to this equation system.
Some steps can be followed order to solve the differential equations (1.2) under the initial (1.3) and boundary (1.4) conditions.
Step 1. The equation (2.1) can be written compactly as follows:
This matrix equation (2.3) indicates a linear algebraic system including unknown coefficients y0, y1,.., yn.
Step 2. Initial (1.2) and boundary (1.3) conditions are also stated by matrix equations as follows:
Step 3. Adding or deleting techniques can be used in order to get the solution of equation (1.2) under the initial (1.3) and boundary (1.4) conditions. In adding technique the elements of the row matrices (2.4) or (2.5) are added to the end of the matrix (2.3). By this way, an augmented matrix is obtained as follows:
This matrix is also a (n+m+1)×(n+1) dimensional matrix. In replacing technique, rows of the augmented matrix (2.3) are replaced with the rows of the matrices (2.4) or (2.5). For example, replacing the last row matrices with the initial conditions, the new obtained matrix is a square matrix as below
Step 4. If
, the system can be written as
or
and the unknown coefficients yi; i = 0,1, … , n of the system are uniquely specified.
3. Some applications of the method
In this section, some initial and boundary problems have been considered in order to show that the Stancu collocation method can be applied to the problems. The numerical results have been given on different collocation points in according to values of α and β. In addition, the numerical results have been calculated on the programme MATLAB 7.1. Moreover, the numerical results have been presented as the tables. Likewise, to see how much the Stancu collocation method is useful and effective, the results of maximum and mean errors have been compared with the results of the other methods. Let define the used errors as follows:
Definition 3.1. Let y(x) is an exact solution and Sn (y; x) is a Stancu approximate solution. Maximum and mean errors can be determined on the collocation points by the following relations:
Example 3.1. Let the following initial value problem [25] consider:
The exact solution of this problem is y(x) = sin x.
In Table 1, the mean errors of the proposed method have been given for the different values of α = β and α < β. The numerical results of the method also have been calculated with adding technique. Moreover, the numerical results of the Stancu collocation method have been compared with the numerical results of the Bernstein collocation method for different values of n. The best numerical results of the proposed method have been obtained for α = 0 and β = 2. Furthermore, the table shows that the numerical results of the proposed method are better than the numerical results of the Berstein collation method for each value of n presented by Akyüz-Daşcıoğlu and Acar İşler [25].
Table 1: Comparison of the Emean errors for Example 3.1. |
|
Stancu Collocation Method |
Bernstein Collocation
Method [25] |
n |
α = 0.25
β = 0.25 |
α = 2.5 × 10–4
β = 2.5 × 10–4 |
α = 2.5 × 10–3
β = 7.5 × 10–3 |
α= 0
β = 1 |
α= 0
β = 2 |
α = 0
β = 0 |
5 |
6.3e – 002 |
7.8e – 005 |
6.9e – 004 |
1.0e – 005 |
9.0e – 007 |
9.6e – 006 |
10 |
3.2e – 002 |
3.4e – 005 |
3.4e – 004 |
5.1e – 013 |
2.0e – 013 |
1.4e – 012 |
15 |
2.2e – 002 |
2.2e – 005 |
2.2e – 004 |
3.3e – 015 |
8.9e – 016 |
1.3e – 015 |
20 |
1.6e – 002 |
1.7e – 005 |
1.7e – 004 |
5.4e – 015 |
8.7e – 016 |
2.6e – 015 |
Example 3.2. Let the following boundary value problem [26] consider:
that the exact solution of the problem is
.
In Table 2, the maximum errors of the proposed method have been compared with the maximum errors of the Berstein collocation method for different values of α and β. Both numerical results of the proposed method and Bernstein collocation method have been obtained by using replacing technique. In replacing technique, last rows of the augmented matrix have been deleted and row marices (2.4) have been written instead of it. In respect of Table 2, the numerical results of the proposed method are better than the numerical results of the Bernstein collocation method given in doctoral thesis by İşler Acar [26] for different values of n. This mean that numerical results calculated on the points
are more effective than the numerical results calculated on the points
. Moreover, when the exact solution is polynomial function, the numerical results are effectively good for n values run around the degree of polynomial.
Table 2: Comparison of the Emaxerrors for Example 3.2. |
|
Stancu Collocation Method |
Bernstein Collocation
Method [26] |
n |
α = 0.5
β = 0.5 |
α = 5.0 × 10–4
β = 5.0 × 10–4 |
α = 2.5 × 10–3
β = 7.5 × 10–3 |
α = 0
β = 1 |
α = 0
β = 0 |
3 |
6.1e – 001 |
1.2e – 004 |
3.1e – 016 |
1.9e – 016 |
1.1e – 016 |
4 |
5.4e – 001 |
5.6e – 005 |
2.2e – 016 |
3.1e – 016 |
0 |
5 |
4.5e – 001 |
2.8e – 005 |
4.4e – 016 |
4.4e –016 |
4.4e – 016 |
6 |
1.6e – 001 |
2.0e – 005 |
8.9e – 016 |
0 |
6.7e – 016 |
Example 3.3. Let the following the initial value problem [27] that has exact solution
consider:
In Table 3, the maximum errors of the proposed method have been given on the different collocation points depended on the values of α and β. Moreover, the numerical results of the Stancu collocation method have been comparised with the numerical results of the Bernstein collocation method. By the Table 3, the numerical results of the proposed method are better than the other method’s numerical results. Since the differential equation is not define on the 0 and 1 points, the numerical results computed on the collocation points
are really more effective and the method converges faster than the numerical results computed on the collocation points
. Moreover, the numerical results of the proposed method have been computed with adding technique. Generally, Table 3 shows that the numerical results of the proposed method recover quickly for values of α < β.
Table 3: Comparison of the Emax errors for Example 3.2. |
|
Stancu Collocation Method |
Bernstein Collocation
Method |
n |
α = 0.01
β = 0.01 |
α = 5.0 × 10–4
β = 5.0 × 10–4 |
α = 7.5 × 10–5
β = 1.0 × 10–5 |
α = 0
β = 1 |
α = 0
β = 2 |
α = 0
β = 0 |
10 |
3.3e – 003 |
7.1e – 004 |
5.9e – 004 |
2.3e – 004 |
9.7e – 005 |
5.7e – 004 |
15 |
1.8e – 003 |
9.1e – 005 |
1.4e – 004 |
2.2e – 012 |
5.5e – 012 |
9.0e – 012 |
20 |
1.4e – 003 |
6.8e – 005 |
1.0e – 005 |
3.3e – 011 |
7.5e – 012 |
2.4e – 010 |
25 |
1.1e – 003 |
5.4e – 005 |
8.1e – 006 |
2.3e – 010 |
8.2e – 010 |
2.2e – 009 |
30 |
9.1e – 004 |
4.5e – 005 |
6.8e – 006 |
6.0e – 009 |
1.2e – 009 |
8.4e – 009 |
Example 3.4. Let the following the boundary value problem [15] that has exact solution y(x)=ex consider:
In Table 4, the Stancu collocation method’s maximum errors have been compared with the other methods’ maximum errors. By the Table 4, the Stancu collocation method converges faster for values α = 0 and β = 2 than the Berstein collocation method for increasing n values. This means that the numerical results computed on the collocation points
are effectively better than the numerical results computed on the collocation points
. Besides, the numerical results of the Stancu collocation method are noticeably better than the numerical results of the Sin-Galerkin Method and Modified Decomposition Method [28] for n = 14. On the other hand the numerical results of the Stancu collocation method get better slowly than the BPG Method’s numerical results [15] for increasing n values.
Table 4: Comparison of the Emax errors for Example 3.4. |
|
|
Stancu
Collocation
Method |
Bernstein
Collocation
Method |
Bernstein-Petrov
-Galerkin
Method [15] |
Sin-Galerkin
Method [28] |
Modified
Decomposition
Method [28] |
n |
a = 0
b = 1 |
|
a = 0
b = 2 |
a = 0
b = 0 |
|
|
|
|
8 |
1.3e - 007 |
|
6.5e - 008 |
|
2.8e - 007 |
|
7.3e - 010 |
|
|
|
10 |
1.8e - 010 |
|
8.8e - 011 |
|
4.1e - 010 |
|
1.8e - 013 |
|
|
|
12 |
6.9e - 014 |
|
4.2e - 013 |
|
1.1e - 012 |
|
4.5e - 015 |
|
|
|
14 |
2.2e - 013 |
|
1.6e - 015 |
|
4.5e - 015 |
|
1.3e - 015 |
|
3.7e - 009 |
2.s5e - 008 |
4. Discussion and implications
In this study, a numerical method has been produced in terms of the Stancu polynomials that are generalization of the Bernstein polynomials for the solution of linear differential equations under the initial and boundary conditions on the C[0, 1]. The method bases on the collocation method. The collocation points of the method depend on the selection of the α and β values. Adding and replacing techniques have been used in order to compute the numerical results. The numerical results have been made in programme MATLAB. Since the Matlab is a high-performance software written mainly for technical and scientific calculations, including numerical calculation, graphical data representation and programming, this programme has been preferred to compute the numerical results. Moreover, the numerical results of the method have been compared with the numerical results of the other methods. Since the Bernstein collocation method is far effective method and the Stancu polynomials are one of the Bernstein type polynomials, the numerical results of the method generally compared with the numerical results of the Bernstein collocation method. Likewise, the numerical results have been given on the Tables. By considering this study, we can a lot of positive inferences as follows:
- The Stancu collocation method is easy understandable and applicable to the problems like the Bernstein collocation method.
- By using the Stancu collocation method, a better approximation of a continuous unknown function y at any collocation points x on the interval [0, 1] can be effectively got with relevant selection of the parameters a and b than the Bernstein collocation method. This state also provides to limit calculation to less number of terms.
- The numerical results of the Stancu collocation method get better for values of a = 0 and b = 2 than the other methods for increasing n values.
- To find the best numerical results of the method, both adding and replacing techniques can be used.
- To write the codes of the method and compute the numerical results of the method in MATLAB programme is very easy and clear because of the MATLAB has very large library.
In the direction of all these inferences, the Stancu polynomials that is more general structure of the Bernstein polynomials can be used for numerical solution of the initial and boundary value problems at the computational methods. Thanks to this study, new alternative collocation methods based on the Bernstein type polynomials such as Bernstein-Cholodowsky polynomials [29], Stancu-Cholodowsky polynomials [30] as can be investigated in the future studies. Moreover, new improved numerical methods can be tasted on the numerical solutions of many types of linear and nonlinear differential equations like integro-differential equations, partial differential equations, fractional differential equations modeling the natural and engineering problems. The applications of the Stancu collocation method and new obtained methods can also be coded with different programmes like Mapple, Mathematica, Matcad except MATLAB.