1. Introduction
Polynomial series and orthogonal functions play an essential rule for solving various problems of dynamic systems [
1,
2,
3,
4,
5,
6,
7,
8]. One of those problems is solving differential or integral equations. The major idea of employing orthogonal basis is that it decreases these problems in order to solve a system of linear algebraic equations, approximating some signals involved in these equations, by the use of both of the truncated orthogonal sequence and the matrix of integrations
to exclude the integral operations.
Consider the equationwith the obtained operational matrix by using the orthogonal functions’ basis and .
Lately, Wavelets are very important in various studies such as science and engineering. Various authors have studied different forms of wavelets such as Fourier series, Walsh functions, Legendre polynomials, Bessel series and Chebyshev polynomials (see [
9,
10,
11,
12,
13,
14,
15,
16]). The Wavelet analysis is a probable mechanism to solve such difficulty in Physics, signal and image processing by deletion of numerous terms in gaining demand precision. Gu and Jiang [
17] developed the Haar Wavelet operational matrix. Chen and Hsiao [
18] solved some problems in image processing, communication and physics using the wavelet analysis. Shyam and Susheel [
19] estimated a new theorem on preferable wavelet approximation of the functions from the generalized lipschitz class by the use of Haar scaling function.
By the use of Haar wavelets, Lepik [
20] proposed the segmentation method to solve differential equations, numerically. Lepik [
21] demonstrated that the Haar wavelet method is a strong tool for finding the solution of various forms of integral and partial differential equations, his method’s major feature is its simplicity and small calculation charge. Jhangeer et al. [
22] studied the Bogoyavlenskii–Kadomtsev–Petviashvili (BKP) equation by means of Lie symmetry analysis. Tavassoli Kajani et al. [
23] studied the Chebyshev wavelets matrix of integration, Sripathy et al. [
24] presented the chebyshev wavelet method in order to solve some non-linear differential equations arising in engineering. Shyam and Rakesh [
25] obtained five new estimates of any function
on
having bounded derivative by the method of the extended Legendre wavelet. Owais et al. [
26] developed the comprehensive theory of biorthogonal wavelets on the spectrum. Sharma and Lal [
27] presented the operational matrix of integration by the use of the Legendre wavelet in order to solve different types of differential equations in both linear and non-linear forms. This manuscript is orderly as follows: in the second section, we present the definition of Legendre wavelet beside its properties. Also, we present the definition of the extended Legendre wavelet expansion together with the function approximation. In section 3, we offer a novel and accurate method for solving linear differential equations over the intervals
[0, 1) based on the generalization of Legendre wavelets. The mechanism is still upon workable implementation of the operational matrix of integration and its derivatives. This method reduces the problems into algebraic equations. Our proposed numerical technique will be examined on three linear problems in the fourth section. We summarize our work in the fifth section.
2. Definitions and Preliminaries
2.1. Legendre wavelet and its properties
Considering a single function “mother wavelet”
, from which wavelets represent a family of functions by dilating and transforming this single function. This family of continuous wavelets [
17] has the following form:
The Legendre wavelets on the interval
defined by
for which
is positive integer,
and
, the order of the Legendre Polynomial is denoted by
and the normalized time is denoted by
. The Legendre Polynomials
which are obtained in the above definition is proposed as follows:
which are orthogonal over
[-1,1] with weighting function
, for more details (see Balaji [
28]).
2.2. Function approaches
A function
which is defined on
can be extended as Legendre Wavelet infinite series of the following type
where
.
After being trimmed, Eq. (2.4) can be rewritten as follows.
where
and
.
2.3. Generalized Legendre Wavelet Expansion [25]
In this section we introduce a generalization for Legendre wavelets given in (2.2) .The proposed Generalized Legendre wavelets
on the interval
are defined by
for which
is positive integer,
and
and the order of the Legendre Polynomial is denoted by
and the normalized time is denoted by
.
Lemma 2.1 (Orthonormality of the generalized Legendre wavelets)
The generalized Legendre wavelets which are defined in Eq. (2.6) are orthonormal on .
Proof:
First we show that are orthogonal on where .
From the definition of GLW given in Eq.(2.6), we have
Set , then for , we have , and for , we have and .
Since the Legendre polynomials are orthogonal on
, then we conclude that.
To show the generalized Legendre wavelets are orthonormal on
, we only need to show they are normalized, that is
Set: , then
Therefore we have
From (2.7) and (2.8) it is clear that our generalized Legendre wavelets that are defined in Eq. (2.6) are orthonormal.
A function
which is defined on
can be expanded as generalized Legendre wavelet infinite series of the following type
where
.
After being trimmed, Eq. (2.9) can be expressed as follows:
where
and
3.1. Generalized Legendre Wavelet Operational Matrix of Integration
Now, we will present our new generalized Legendre wavelet operational matrix of integration for , then it used to solve the differential equations. The variation between exact solution and Legendre wavelet solution is negligible.
With the use of the definition of Legendre wavelet for
and
we get that
Now by integrating Eq. (3.1), we have
Now expanding Eq. (3.13) in the type of basis function, yields that
where
In the same procedure, making the same mechanism for the other functions of basis, implies that
Thus we propose the operational matrix of integration as follows:
Thus,
3.2. Convergence criteria of the proposed (GLWM)
In this subsection, we discuss the theoretical analysis of the convergence of our approach to solve the general linear differential equation of order n defined below:
Theorem 3.1
The series solution
defined in Eq.(2.9) using generalized Legendre wavelet method converges to
Proof:
Let be the Hilbert space.
Since we have shown that forms an orthonormal basis.
Let be a solution of Eq. (3.15) where for in which denotes the inner product.
Let we denote
and
Consider the sequences of partial sums
Then,
Moreover,
As
, by Bessel’s inequality, we get that
is convergent, it yields that
is a Cauchy sequence and it converges to
(say).
Now, we have
Which is satisfied only in the case if
. Thus,
.
4. Numerical test and discussion
To demonstrate the effectiveness of our proposed generalized Legendre wavelet method (GLWM), we implement GLWM to some ordinary differential equations of linear form with constant and variable coefficients. All the numerical test examples were carried out with MATLAB R2015a.
Example 1
We deem the differential equation
whose exact solution is given by
.
We apply Generalized Legendre wavelets (GLWM) for, .
For this choice of
, the function approximation for
will take the summation form:
where
and
Now, we approximate the function
in terms of the set of the basis functions
as:
where in this case the coefficient vector
is given by
and we present the operational matrix of integration
as follows:
Therefore, we obtain
Now we used this operational matrix in order to find the solution of the deferential Eq. (4.1).
By integrating equation (4.1) and using equations (4.2) and (4.3), we have
which can rewritten in the following form
Form which we obtain,
Taking the transpose of the last equation we get the following system of equations
and
is the
identity matrix. Solving for the unknown vector
we get:
Table 4.1 compares the approximate solutions gained using the proposed method and regular Legendre wavelet method [
27] with the exact solutions. In comparison to the standard Legendre wavelets method, the proposed method clearly provides better accuracy.
Remark: We take both algebraic systems derived from applying our proposed technique (GLWM) and (LWM) are of the same size for the sake of fair comparison.
The accuracy comparison between our proposed method (GLWM) and the standard Legendre wavelets method (RLWM) [
27] is evident as shown in
Table 1 and
Table 2. Also, the absolute errors for both methods are compared in
Figure 1 as shown above. It is clear the suggested technique gives better accuracy compared to the regular Legendre wavelets.
Example 2
We deem the differential equation [3, 14]
where
is the unit step function. The analytic solution of (4.4) is given by
This problem has been solved by Legendre wavelets with
k = 3, M = 3 by Razzaghi and Yousefi [
3], and by Chebyshev wavelets, with
k = 2, M = 3 by Babolian and Fattahzadeh, see [
14]. We apply Generalized Legendre wavelets (GLWM) for
,
. We suppose that the unknown function
where
and
are as the preceding example. Integrating (4.4) from
0 to
t and with the use of the operational matrix
as computed in Example 1, we obtain
The above Eq. (4.5) holds for all the time t in the interval
[0 , 1).
Thus, form which we obtain,
where
is expressed as
Equation (4.6) can be expressed in the following form
where
Solving Eq. (4.7) for , we obtain the approximate solution
In
Table 3, a comparison is made between the approximate values using the present approach together with the exact solutions and the regular Legendre wavelets method.
It is evident that the proposed method (GLWM) gives better accuracy compared to regular Legendre wavelets method (RLWM). Note the numerical results for the case
and
are taken from [
3], while the approximate solution and the absolute error for
and
, we wrote our own MATLAB program.
The absolute errors for our suggested approach (GLWM) and the conventional Legendre and Chebyshev wavelets methods are contrasted in the following table (Table (4)). The absolute errors displayed in the table below indicate how the suggested method (GLWM) outperforms the conventional Legendre and Chebyshev wavelets methods.
Remark:
Since these are only the points
taken into consideration in [
14], as can be seen in
Table 1 on page 425, in [
14], we take into account the absolute errors at these points.
The absolute errors list in the table above show the demonstrate the superiority of the proposed method (GLWM) against the regular Legendre and Chebyshev wavelets methods.
Example 3: Bessel differential equation of order zero
We deem the differential equation [
14]
A solution known as the Bessel function of the first kind of order zero denoted by
is (O’Neil [
29])
.We will first suppose that the unknown function
is given by
Using the boundary conditions in (4.8) and (4.9) yields that
Now, approximating
where
Thus, our differential equation (4.8) is reduced to
which can be written as
In order to solve the example under investigation, we will use the following feature of the product of two generalized Legendre wavelet function vectors:
where
and in the same way we can gain
and
is a
matrix.
To represent the calculation process, we pick out, .
In this case, we have
Now, we approximate the function
in terms of the set of the basis functions
as:
where in this case the coefficient vector
is given by
and
Moreover, we will use the following feature of the product of two generalized Legendre wavelet function vectors:
where
In (4.13) we used the fact that
for
Also, we have
Conserving only the elements of
yields that:
From (4.11) we get
or
where
can be computed in the same manner of (4.9) as follows:
Similarly, we can compute
and
where we obtain:
Equation (4.17) is a set of algebraic equations which can be solved for
Cwhich is given as:
The approximate solution utilizing the suggested approach (GLWM), the regular Legendre wavelets (RLWM) are compared in
Table 3 to the solution function
. Also, the absolute errors for both methods are compared in
Table 3 and
Figure 2 as shown below. It is clear the suggested method gives better accuracy compared to the regular Legendre wavelets.