Preprint
Article

Generalized Legendre Wavelets, Definition, Properties and Their Applications for Solving Linear Differential Equations

Altmetrics

Downloads

215

Views

38

Comments

0

A peer-reviewed article of this preprint also exists.

Submitted:

13 May 2023

Posted:

15 May 2023

You are already at the latest version

Alerts
Abstract
In this work, we offer a novel and accurate method in order to find the solution of the 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 via the properties of generalized Legendre wavelet (GLW) together with the operational matrix of integration. The function approximation has been picked out in such a way so as to enumerate the connection coefficients in an facile manner. The proposed numerical technique, based on the GLW, has been examined on three linear problems as a consequence of this investigation. The outcomes have shown that this method, as opposed to some other existing numerical and analytical methods, is a very useful and advantageous for tackling such problems.
Keywords: 
Subject: Computer Science and Mathematics  -   Computational Mathematics

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 P to exclude the integral operations.
Consider the equation 0 t χ ( x ) d x = P χ ( x ) , with the obtained operational matrix P by using the orthogonal functions’ basis ψ 0 , ψ 1 , , ψ n 1 and χ = [ ψ 0 , ψ 1 , , ψ n 1 ] .
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 f on [ 0 , 1 ) 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” ψ ( t ) , 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:
ψ a , b ( t ) = | a | 1 2 ( t b a ) , a , b R , a 0 .
The Legendre wavelets on the interval [ 0 , 1 ) defined by
ψ n , m ( t ) = { m + 1 2 2 k 2 L m ( 2 k t n ^ ) , n ^ 1 2 k t < n ^ + 1 2 k ; 0 o t h e r w i s e
for which k is positive integer, n = 1 , 2 , , 2 k 1 and n ^ = 2 n 1 , the order of the Legendre Polynomial is denoted by m = 0 , 1 , 2 , , M and the normalized time is denoted by t . The Legendre Polynomials L m which are obtained in the above definition is proposed as follows:
L 0 ( t ) = 1 , L 1 ( t ) = t , L m + 1 ( t ) = 2 m + 1 m + 1 t L m ( t ) m m + 1 L m 1 ( t ) , m = 1 , 2 , 3 ,
which are orthogonal over [-1,1] with weighting function w ( 1 ) = 1 , for more details (see Balaji [28]).

2.2. Function approaches

A function f ( t ) which is defined on [ 0 , 1 ) can be extended as Legendre Wavelet infinite series of the following type
f ( t ) = n = 1 m = 0 c n , m ψ n , m
where c n , m = f , ψ n , m .
After being trimmed, Eq. (2.4) can be rewritten as follows.
f ( t ) n = 1 2 k 1 m = 0 M 1 c n , m ψ n , m = C T ψ ( t ) .
where C = [ c 1 , 0 c 1 , 1 c 1 , M 1 c 2 k 1 , 0 c 2 k 1 , 1 c 2 k 1 , M 1 ] T and ψ ( t ) = [ ψ 1 , 0 ψ 1 , 1 ψ 1 , M 1 ψ 2 k 1 , 0 ψ 2 k 1 , 1 ψ 2 k 1 , M 1 ] T .

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 ( G L W ) on the interval [ 0 , 1 ) are defined by
ψ ( μ ) n , m ( t ) = { m + 1 2 μ k 2 L m ( μ k t n ^ ) , n ^ 1 μ k t < n ^ + 1 μ k ; 0 o t h e r w i s e
for which k is positive integer, n = 1 , 2 , , μ k 1 and n ^ = 2 n 1 and the order of the Legendre Polynomial is denoted by m = 0 , 1 , 2 , , M and the normalized time is denoted by t .
Lemma 2.1 (Orthonormality of the generalized Legendre wavelets)
The generalized Legendre wavelets which are defined in Eq. (2.6) are orthonormal on [ n ^ 1 μ k , n ^ + 1 μ k ] .
Proof:
First we show that ψ ( μ ) n , m ( t ) are orthogonal on [ n ^ 1 μ k , n ^ + 1 μ k ] where n ^ = 2 n 1 .
From the definition of GLW given in Eq.(2.6), we have
ψ ( μ ) n , m ( t ) , ψ ( μ ) n , m ( t ) = m + 1 2 μ k 2 L m ( μ k t n ^ ) , m + 1 2 μ k 2 L m ( μ k t n ^ ) = m + 1 2 m + 1 2 μ k n ^ 1 μ k n ^ + 1 μ k L m ( μ k t n ^ ) L m ( μ k t n ^ ) d t
Set μ k t n ^ = y , then for t = n ^ 1 μ k , we have y = 1 , and for t = n ^ + 1 μ k , we have y = 1 and d t = 1 μ k d y .
Hence,
ψ ( μ ) n , m ( t ) , ψ ( μ ) n , m ( t ) = m + 1 2 m + 1 2 μ k 1 1 L m ( y ) L m ( y ) d y
Since the Legendre polynomials are orthogonal on [ 1 , 1 ] , then we conclude that.
ψ ( μ ) n , m ( t ) , ψ ( μ ) n , m ( t ) = 0.
To show the generalized Legendre wavelets are orthonormal on [ n ^ 1 μ k , n ^ + 1 μ k ] , we only need to show they are normalized, that is ψ ( μ ) n , m ( t ) 2 2 = 1
ψ ( μ ) n , m ( t ) 2 2 = 2 n 2 μ k 2 n μ k ( 2 m + 1 2 ) μ k L m 2 ( μ k t 2 n + 1 ) d t
Set: v = μ k t 2 n + 1 , then d v = μ k d t
Therefore we have
ψ ( μ ) n , m ( t ) 2 2 = ( 2 m + 1 2 ) 1 1 L m 2 ( v ) d v = ( 2 m + 1 2 ) ( 2 2 m + 1 ) = 1
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 f ( t ) which is defined on [ 0 , 1 ) can be expanded as generalized Legendre wavelet infinite series of the following type
f ( t ) = n = 1 m = 0 c n , m ψ μ n , m
where c n , m = f , ψ μ n , m .
After being trimmed, Eq. (2.9) can be expressed as follows:
f ( t ) n = 1 μ k 1 m = 0 M c n , m ψ μ n , m ( t ) = C T ψ ( t ) ,
where C = [ c 1 , 0 c 1 , 1 , ... , c 1 , M , c 2 , 0 , c 2 , 1 , ... , c 2 , M , ... , c μ k 1 , 0 c μ k 1 , 1 , ... , c μ k 1 , M ] T and ψ ( t ) = [ ψ μ 1 , 0 ψ μ 1 , 1 ψ μ 1 , M ψ μ 2 , 0 ψ μ 2 , 1 ψ μ 2 , M ψ μ μ k 1 , 0 ψ μ μ k 1 , 1 ψ μ μ k 1 , M ] T .

3.1. Generalized Legendre Wavelet Operational Matrix of Integration

Now, we will present our new generalized Legendre wavelet operational matrix of integration for M = 3 , K = 2 , μ = 3 , 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 m = 0 , 1 , 2 , 3 and n = 1 , 2 , 3 . we get that
ψ 1 , 0 μ ( t ) = { 3 2 , 0 t < 2 9 0 , o t h e r w i s e
ψ 1 , 1 μ ( t ) = { 3 3 2 [ 9 t 1 ] , 0 t < 2 9 0 , o t h e r w i s e
ψ 1 , 2 μ ( t ) = { 3 2 5 2 [ 3 ( 9 t 1 ) 2 1 ] , 0 t < 2 9 0 , o t h e r w i s e
ψ 1 , 3 μ ( t ) = { 3 2 7 2 [ 5 ( 9 t 1 ) 3 3 ( 9 t 1 ) ] , 0 t < 2 9 0 , o t h e r w i s e
ψ 2 , 0 μ ( t ) = { 3 2 , 2 9 t < 4 9 0 , o t h e r w i s e
ψ 2 , 1 μ ( t ) = { 3 3 2 [ 9 t 3 ] , 2 9 t < 4 9 0 , o t h e r w i s e
ψ 2 , 2 μ ( t ) = { 3 2 5 2 [ 3 ( 9 t 3 ) 2 1 ] , 2 9 t < 4 9 0 , o t h e r w i s e
ψ 2 , 3 μ ( t ) = { 3 2 7 2 [ 5 ( 9 t 3 ) 3 3 ( 9 t 3 ) ] , 2 9 t < 4 9 0 , o t h e r w i s e
ψ 3 , 0 μ ( t ) = { 3 2 , 4 9 t < 6 9 0 , o t h e r w i s e
ψ 3 , 1 μ ( t ) = { 3 3 2 [ 9 t 5 ] , 4 9 t < 6 9 0 , o t h e r w i s e
ψ 3 , 2 μ ( t ) = { 3 2 5 2 [ 3 ( 9 t 5 ) 2 1 ] , 4 9 t < 6 9 0 , o t h e r w i s e
ψ 3 , 3 μ ( t ) = { 3 2 7 2 [ 5 ( 9 t 5 ) 3 3 ( 9 t 5 ) ] 4 9 t < 6 9 0 o t h e r w i s e
Now by integrating Eq. (3.1), we have
0 t ψ 1 , 0 μ ( t ) d t = { 3 2 t , 0 t < 2 9 2 3 , o t h e r w i s e
Now expanding Eq. (3.13) in the type of basis function, yields that
0 t ψ 1 , 0 μ ( t ) d t = [ 1 9 3 27 0 1 9 2 9 0 0 0 2 9 0 0 0 ] Ψ 12 ( t )
where
Ψ 12 ( t ) = [ ψ 1 , 0 μ ψ 1 , 1 μ ψ 1 , 2 μ ψ 1 , 3 μ ψ 2 , 0 μ ψ 2 , 1 μ ψ 2 , 2 μ ψ 2 , 3 μ ψ 3 , 0 μ ψ 3 , 1 μ ψ 3 , 2 μ ψ 3 , 3 μ ] T .
In the same procedure, making the same mechanism for the other functions of basis, implies that
0 t ψ 1 , 1 μ ( t ) d t = [ 3 27 0 15 135 3 27 0 0 0 0 0 0 0 0 ] Ψ 12 ( t )
0 t ψ 1 , 2 μ ( t ) d t = [ 0 15 135 0 0 0 0 0 0 0 0 0 0 ] Ψ 12 ( t )
0 t ψ 1 , 3 μ ( t ) d t = [ 1 9 3 27 0 1 9 0 0 0 0 0 0 0 0 ] Ψ 12 ( t )
0 t ψ 2 , 0 μ ( t ) d t = [ 0 0 0 0 1 9 3 27 0 1 9 2 9 0 0 0 ] Ψ 12 ( t )
0 t ψ 2 , 1 μ ( t ) d t = [ 0 0 0 0 3 27 0 15 135 3 27 0 0 0 0 ] Ψ 12 ( t )
0 t ψ 2 , 2 μ ( t ) d t = [ 0 0 0 0 0 15 135 0 0 0 0 0 0 ] Ψ 12 ( t )
0 t ψ 2 , 3 μ ( t ) d t = [ 0 0 0 0 1 9 3 27 0 1 9 0 0 0 0 ] Ψ 12 ( t )
0 t ψ 3 , 0 μ ( t ) d t = [ 0 0 0 0 0 0 0 0 1 9 3 27 0 1 9 ] Ψ 12 ( t )
0 t ψ 3 , 1 μ ( t ) d t = [ 0 0 0 0 0 0 0 0 3 27 0 15 135 3 27 ] Ψ 12 ( t )
0 t ψ 3 , 2 μ ( t ) d t = [ 0 0 0 0 0 0 0 0 0 15 135 0 0 ] Ψ 12 ( t )
0 t ψ 3 , 3 μ ( t ) d t = [ 0 0 0 0 0 0 0 0 1 9 3 27 0 1 9 ] Ψ 12 ( t )
Thus we propose the operational matrix of integration as follows:
P = [ 1 9 3 27 0 1 9 2 9 0 0 0 2 9 0 0 0 3 27 0 15 135 3 27 0 0 0 0 0 0 0 0 0 15 135 0 0 0 0 0 0 0 0 0 0 1 9 3 27 0 1 9 0 0 0 0 0 0 0 0 0 0 0 0 1 9 3 27 0 1 9 2 9 0 0 0 0 0 0 0 3 27 0 15 135 3 27 0 0 0 0 0 0 0 0 0 15 135 0 0 0 0 0 0 0 0 0 0 1 9 3 27 0 1 9 0 0 0 0 0 0 0 0 0 0 0 0 1 9 3 27 0 1 9 0 0 0 0 0 0 0 0 3 27 0 15 135 3 27 0 0 0 0 0 0 0 0 0 15 135 0 0 0 0 0 0 0 0 0 0 1 9 3 27 0 1 9 ] .
Thus,
0 t Ψ 12 ( x ) d x = P Ψ 12 ( t ) .

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:
y ( n ) + P 1 ( t ) y ( n 1 ) + + P n 1 ( t ) y + P 0 ( t ) y = h ( t ) , y ( t 0 ) = y 0 , y ( t 0 ) = y 1 , , y ( n 1 ) ( t 0 ) = y n 1 .
Theorem 3.1
The series solution
y ( t ) = n = 1 m = 0 c n , m ψ n , m μ ( t ) defined in Eq.(2.9) using generalized Legendre wavelet method converges to y ( t ) .
Proof:
Let L 2 ( R ) be the Hilbert space.
Since we have shown that ψ ( μ ) n , m ( t ) = m + 1 2 μ k 2 L m ( μ k t n ^ ) forms an orthonormal basis.
Let y ( t ) = i = 0 M h n i ψ n i μ ( t ) be a solution of Eq. (3.15) where h 1 i = y ( t ) , ψ 1 i μ ( t ) for n = 1 in which . , . denotes the inner product.
Let we denote ψ n i μ ( t ) = ψ μ ( t ) and α j = y ( t ) , ψ μ ( t )
y ( t ) = i = 1 M y ( t ) , ψ 1 i μ ( t ) ψ 1 i μ ( t )
Consider the sequences of partial sums
W n 1 = j = 1 n 1 α j ψ μ ( t j )   and   W m 1 = j = 1 m 1 α j ψ μ ( t j )
Then,
y ( t ) , W n 1 = y ( t ) , j = 1 n 1 α j ψ μ ( t j ) = j = 1 n 1 α ¯ j y ( t ) , ψ μ ( t j ) = j = 1 n 1 α ¯ j α j = j = 1 n 1 | α j | 2 .
Moreover,
W n 1 W m 1 2 = j = m + 1 n 1 α j ψ μ ( t j ) 2 = i = m + 1 n 1 α i ψ μ ( t i ) , j = m + 1 n 1 α j ψ μ ( t j ) = i = m + 1 n 1 j = m + 1 n 1 α i α ¯ i ψ μ ( t i ) , ψ μ ( t j ) = i = m + 1 n 1 | α i | 2
As n , by Bessel’s inequality, we get that i = m + 1 n 1 | α i | 2 is convergent, it yields that { W n 1 } is a Cauchy sequence and it converges to W (say).
Now, we have
W y ( t ) , ψ μ ( t j ) = W , ψ μ ( t j ) y ( t ) , ψ μ ( t j ) = lim n W n 1 , ψ μ ( t j ) α j = lim n W n 1 , ψ μ ( t j ) α j = lim n j = 1 n 1 α j ψ μ ( t j ) , ψ μ ( t j ) α j = α j α j = 0
Which is satisfied only in the case if y ( t ) = W . Thus, y ( t ) = j = 1 α j ψ μ ( t j ) .

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
0.25 y + y = t , y ( 0 ) = 0 .
whose exact solution is given by y ( t ) = 1 4 ( e 4 t + 4 t 1 ) .
We apply Generalized Legendre wavelets (GLWM) for M = 3 , k = 2 , μ = 3 .
For this choice of M , k , μ , the function approximation for y ( t ) will take the summation form:
y ( t ) n = 1 μ k 1 m = 0 M c n , m ψ n , m μ ( t ) = n = 1 3 m = 0 3 c n , m ψ n , m μ ( t ) = C T Ψ ,
where
C 12 × 1 = [ c 1 , 0 c 1 , 1 c 1 , 2 c 1 , 3 c 2 , 0 c 2 , 1 c 2 , 2 c 2 , 3 c 3 , 0 c 3 , 1 c 3 , 2 c 3 , 3 ] T
and
Ψ 12 × 1 ( t ) = [ ψ 1 , 0 μ ( t ) ψ 1 , 1 μ ( t ) ψ 1 , 2 μ ( t ) ψ 1 , 3 μ ( t ) ψ 2 , 0 μ ( t ) ψ 2 , 1 μ ( t ) ψ 2 , 2 μ ( t ) ψ 2 , 3 μ ( t ) ψ 3 , 0 μ ( t ) ψ 3 , 1 μ ( t ) ψ 3 , 2 μ ( t ) ψ 3 , 3 μ ( t ) ] T .
Now, we approximate the function f ( t ) = t in terms of the set of the basis functions Ψ ( t ) as:
f ( t ) = t e T Ψ ( t ) 12 × 1 .
where in this case the coefficient vector e is given by
e = [ 0.0524 0 . 0302   0 0 0 . 1571   0 . 0302   0 0 0 . 2619   0 . 0302   0 0 ] T
and we present the operational matrix of integration P 12 × 12 as follows:
P 12 × 12 = ( 1 / 9 260 / 4053 0 0 0 0 0 0 0 0 0 0 260 / 4053 0 489 / 17045 0 0 0 0 0 0 0 0 0 0 489 / 17045 0 94 / 5005 0 0 0 0 0 0 0 0 0 0 94 / 5005 0 0 0 0 0 0 0 0 0 2 / 9 0 0 0 1 / 9   260 / 4053 0 0 0 0 0 0   0     0     0     0     260 / 4053     0     489 / 17045     0     0     0     0     0 0 0 0 0 0 489 / 17045 0 94 / 5005 0 0 0 0 0 0 0 0 0 0 94 / 5005 0 0 0 0 0 2 / 9 0 0 0 2 / 9 0 0 0 1 / 9 260 / 4053 0 0 0 0 0 0 0 0 0 0 260 / 4053 0 489 / 17045 0 0 0 0 0 0 0 0 0 0 489 / 17045 0 94 / 5005 0 0 0 0 0 0 0 0 0 0 94 / 5005 0 )
Therefore, we obtain
x = 0 t Ψ ( x ) 12 × 1 d x = P 12 × 12 Ψ 12 × 1 ( t ) .
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
0.25 0 t d y d x d x + 0 t y ( x ) d x = 0 t e T Ψ ( x ) 12 × 1 d x ,
which can rewritten in the following form
0.25 C T Ψ ( t ) + P C T Ψ ( t ) = e T P Ψ ( t ) 12 × 1 .
Form which we obtain,
0.25 C T + P C T = P T e .
Taking the transpose of the last equation we get the following system of equations ( 0.25 I + P T ) C = P T e and I is the 12 × 12 identity matrix. Solving for the unknown vector C we get:
C = [ 0 . 0526   0 . 0305   9 . 67 e - 5   1 . 64 e - 5   0 . 16   0 . 032   2 . 95 e - 4   1 . 72 e - 5   0 . 276   0 . 0351   5 . 08 e - 4   1 . 89 e - 5 ] T
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]
0.25 y ( t ) + y ( t ) = u ( t ) , y ( 0 ) = 0 .
where u ( t ) is the unit step function. The analytic solution of (4.4) is given by y ( t ) = 1 e 4 t .
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 M = 3 , k = 2 , μ = 3 . We suppose that the unknown function
y ( t ) n = 1 μ k 1 m = 0 M c n , m ψ n , m μ ( t ) = n = 1 3 m = 0 3 c n , m ψ n , m μ ( t ) = C T Ψ ,
where Ψ ( t ) and C are as the preceding example. Integrating (4.4) from 0 to t and with the use of the operational matrix P 12 × 12 as computed in Example 1, we obtain
0.25 C T Ψ ( t ) + P C T Ψ ( t ) = e T P Ψ ( t ) 12 × 1 .
The above Eq. (4.5) holds for all the time t in the interval [0 , 1).
Thus, form which we obtain,
0.25 C T + P C T = P T e ,
where u ( t ) is expressed as
u ( t ) = 2 3 [ 1 0   0 0 1   0   0 0 1   0   0 0 ] T Ψ ( t ) 12 × 1 = e T Ψ ( t ) 12 × 1 .
Equation (4.6) can be expressed in the following form
Q C = D ,
where Q = 0.25 I + P T , D = P T d .
Solving Eq. (4.7) for C , we obtain the approximate solution y ( t ) = C T Ψ .
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 M = 3 and k = 2 are taken from [3], while the approximate solution and the absolute error for M = 3 and k = 3 , 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 t = 0.0 , 0.1 , 0.2 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]
t y + y + t y = 0 , y ( 0 ) = 1 , y ( 0 ) = 0 .
A solution known as the Bessel function of the first kind of order zero denoted by J 0 ( t ) is (O’Neil [29]) J 0 ( t ) = q = 0 ( 1 ) q ( q ! ) 2 ( t 2 ) 2 q .We will first suppose that the unknown function y ( t ) is given by
y ( t ) = C T Ψ ( t ) .
Using the boundary conditions in (4.8) and (4.9) yields that
y ( t ) = C T P Ψ ( t ) , y ( t ) = C T P 2 Ψ ( t ) + 1 .
Now, approximating t , 1 where t e T Ψ ( t ) , 1 d T Ψ ( t ) .
Thus, our differential equation (4.8) is reduced to
e T Ψ C T Ψ + C T P Ψ + e T Ψ ( C T P 2 Ψ + d T Ψ ) = 0 ,
which can be written as
Ψ T ( e T Ψ ) C + Ψ T P T C + Ψ T ( e T Ψ ) P 2 T C + Ψ T ( e T Ψ ) d = 0.
In order to solve the example under investigation, we will use the following feature of the product of two generalized Legendre wavelet function vectors:
C T Ψ ( t ) Ψ ( t ) T Ψ T C ˜ ,
where C = [ c 1 , 0 c 1 , 1 , ... , c 1 , M , c 2 , 0 , c 2 , 1 , ... , c 2 , M , ... , c μ k 1 , 0 c μ k 1 , 1 , ... , c μ k 1 , M ] T and in the same way we can gain Ψ ( t ) and C ˜ is a μ k 1 M × μ j k 1 M matrix.
To represent the calculation process, we pick out M = 3 , k = 2 , μ = 3 .
In this case, we have
Now, we approximate the function f ( t ) = t in terms of the set of the basis functions Ψ ( t ) as:
f ( t ) = t e T Ψ ( t ) 12 × 1 ,
where in this case the coefficient vector e is given by
e = [ 2 27 6 81 0 0 2   9   6 81 0 0 5 2 27 6 81 0 0 ] T
and
d = [ 2 3 0   0 0 2   3   0   0 0 2   3 0   0 0 ] T
Moreover, we will use the following feature of the product of two generalized Legendre wavelet function vectors:
Ψ ( t ) Ψ T ( t ) = ( Ψ 1 Ψ 1 T 0 0 0 Ψ 2 Ψ 2 T 0 0 0 Ψ 3 Ψ 3 T ) ,
where
Ψ i Ψ i T = ( ψ i , 0 μ ψ i , 0 μ ψ i , 0 μ ψ i , 1 μ ψ i , 0 μ ψ i , 2 μ ψ i , 0 μ ψ i , 3 μ ψ i , 1 μ ψ i , 0 μ ψ i , 1 μ ψ i , 1 μ ψ i , 1 μ ψ i , 2 μ ψ i , 1 μ ψ i , 3 μ ψ i , 2 μ ψ i , 0 μ ψ i , 2 μ ψ i , 1 μ ψ i , 2 μ ψ i , 2 μ ψ i , 2 μ ψ i , 3 μ ψ i , 3 μ ψ i , 0 μ ψ i , 3 μ ψ i , 1 μ ψ i , 3 μ ψ i , 2 μ ψ i , 3 μ ψ i , 3 μ ) , i = 1 , 2 , 3.
In (4.13) we used the fact that ψ i , j μ ψ k , l μ = 0 for i k . Also, we have
ψ i , 0 μ ψ i , j μ = 3 2 ψ i , j μ , i = 1 , 2 , 3 , j = 0 , 1 , 2 , 3 ,
ψ 1 , i μ ψ i , 1 μ 3 2 ψ i , 0 μ + 6 10 ψ i , 2 μ , i = 1 , 2 , 3 ,
ψ i , 1 μ ψ i , 1 μ 6 10 ψ i , l 1 μ , i = 1 , 2 , 3 , l = 2 , 3 ,
ψ i , 2 μ ψ i , 3 μ 27 6 35 ψ i , 1 μ , i = 1 , 2 , 3.
Conserving only the elements of Ψ ( t ) yields that:
Ψ i Ψ i T = ( 3 2 ψ i , 0 μ 3 2 ψ i , 1 μ 3 2 ψ i , 2 μ 3 2 ψ i , 3 μ 3 2 ψ i , 1 μ 3 2 ψ i , 0 μ + 6 10 ψ i , 2 μ 6 10 ψ i , 1 μ 6 10 ψ i , 2 μ 3 2 ψ i , 2 μ 6 10 ψ i , 1 μ 3 2 ψ i , 0 μ + 6 10 ψ i , 2 μ 27 6 35 ψ i , 1 μ 3 2 ψ i , 3 μ 6 10 ψ i , 2 μ 27 6 35 ψ i , 1 μ 3 2 ψ i , 0 μ + 6 10 ψ i , 2 μ ) , i = 1 , 2 , 3.
From (4.11) we get
Ψ T ( E ˜ ) C + Ψ T P T C + Ψ T ( E ˜ ) P 2 T C + Ψ T ( E ˜ ) d = 0 ,
or
E ˜ C + P T C + E ˜ P 2 T C + E ˜ d = 0 ,
where E ˜ can be computed in the same manner of (4.9) as follows:
E ˜ = ( E 1 0 0 0 E 2 0 0 0 E 3 )
E 1 = ( 3 2 e 1 3 2 e 2 3 2 e 3 3 2 e 4 3 2 e 2 3 2 e 1 + 6 10 e 3 6 10 e 2 6 10 e 3 3 2 e 3 6 10 e 2 3 2 e 1 + 6 10 e 3 27 6 35 e 2 3 2 e 3 6 10 e 3 27 6 35 e 2 3 2 e 1 + 6 10 e 4 )
= ( 1 9 3 27 0 0 3 27 1 9 60 135 0 0 60 135 1 9 35 105 0 0 35 105 1 9 ) .
Similarly, we can compute E 2 and E 3 where we obtain:
E 2 = ( 1 3 3 27 0 0 3 27 1 3 60 135 0 0 60 135 1 3 35 105 0 0 35 105 1 3 ) ,   E 3 = ( 5 9 3 27 0 0 3 27 5 9 60 135 0 0 60 135 5 9 35 105 0 0 35 105 5 9 ) .
Equation (4.17) is a set of algebraic equations which can be solved for Cwhich is given as: C = 0.2343 0.001259 0.0003123 5.349 e 5 0.2256 0.003718 0.0003092 1.943 e 5 0.2087 0.006028 0.0002839 1.285 e 5 ] T
The approximate solution utilizing the suggested approach (GLWM), the regular Legendre wavelets (RLWM) are compared in Table 3 to the solution function J 0 ( t ) . 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.

5. Conclusion

In this paper, a novel and accurate mechanism so as to find the solution of linear differential equations over the intervals [0, 1) based on the generalization of Legendre wavelets is offered. Our technique reduced the problems into algebraic equations through the features of generalized Legendre wavelet (GLW) simultaneously with the operational matrix of integration. We chose the function approximation in such a manner so as to compute the connection coefficients in an easy manner. The proposed numerical technique, based on the GLW, has been examined on three linear problems as a consequence of this investigation.

6. Statements and Declarations

  • Competing Interests: The authors declare that they have no competing interests.
  • Authors' contributions: These authors contributed equally to this work.
  • Ethics approval: This article does not contain any studies with human participants or animals performed by any of the authors.
  • Availability of supporting data: The datasets used or analyzed during the current study available from the corresponding author on reasonable request.

References

  1. Razzaghi, M.; Yousefi, S. Legendre wavelets direct method for variational problems. Math. Comput. Simul. 2000, 53, 185–192. [Google Scholar] [CrossRef]
  2. Hwang, C.; Shih, Y.P. Laguerre series direct method for variational problems. J. Optim. Theory Appl. 1983, 39, 143–149. [Google Scholar] [CrossRef]
  3. Razzaghi, M.; Yousefi, S. The Legendre wavelets operational matrix of integration. Int. J. Syst. Sci. 2001, 32, 495–502. [Google Scholar] [CrossRef]
  4. Maleknejad, K.; Tavassoli Kajani, M.; Mahmoudi, Y. Numerical solution of linear Fredholm and Volterra integral equation of the second kind by using Legendre wavelets. Kybernetes 2003, 32, 1530–1539. [Google Scholar] [CrossRef]
  5. Morlet, J.; Arens, G.; Fourgeau, E.; Glard, D. Wave propagation and sampling theory—Part I: Complex signal and scattering in multilayered media. Geophysics 1982, 47, 203–221. [Google Scholar] [CrossRef]
  6. LDebnath, F.A. Shah, Wavelet transforms and their applications, Boston, Birkhäuser, (2002).
  7. DeVore, R.A. Nonlinear approximation. Acta Numer. 1998, 7, 51–150. [Google Scholar] [CrossRef]
  8. Meyer, Y. Wavelets: their past and their future. Prog. Wavelet Anal. Appl. 1993, 11, 9–18. [Google Scholar]
  9. Chen, C.; Hsiao, C. A walsh series direct method for solving variational problems. J. Frankl. Inst. 1975, 300, 265–280. [Google Scholar] [CrossRef]
  10. Cheng, C.F.; Tsay, Y.T.; Wu, T.T. Walsh operational matrices for fractional calculus and their application to distributed systems. J. Frankl. Inst. 1977, 303, 267–284. [Google Scholar] [CrossRef]
  11. Hwang, C.; Shih, Y.-P. Solution of integral equations via Laguerre polynomials. Comput. Electr. Eng. 1982, 9, 123–129. [Google Scholar] [CrossRef]
  12. Chang, R.Y.; Wang, M.L. Shifted Legendre direct method for variational problems. J. Optim. Theory Appl. 1983, 39, 299–307. [Google Scholar] [CrossRef]
  13. Horng, I.-R.; Chou, J.-H. Shifted Chebyshev direct method for solving variational problems. Int. J. Syst. Sci. 1985, 16, 855–861. [Google Scholar] [CrossRef]
  14. Babolian, E.; Fattahzadeh, F. Numerical solution of differential equations by using Chebyshev wavelet operational matrix of integration. Appl. Math. Comput. 2007, 188, 417–426. [Google Scholar] [CrossRef]
  15. Razzaghi, M. Fourier series direct method for variational problems. Int. J. Control. 1988, 48, 887–895. [Google Scholar] [CrossRef]
  16. Paraskevopoulos, P.; Sklavounos, P.; Georgiou, G. The operational matrix of integration for Bessel functions. J. Frankl. Inst. 1990, 327, 329–341. [Google Scholar] [CrossRef]
  17. Guf, J.S.; Jiang, W.S. The Haar wavelets operational matrix of integration. Int. J. Syst. Sci. 1996, 27, 623–628. [Google Scholar] [CrossRef]
  18. Chen, C.; Hsiao, C. Haar wavelet method for solving lumped and distributed-parameter systems. Iee Proc. - Control. Theory Appl. 1997, 144, 87–94. [Google Scholar] [CrossRef]
  19. Lal, S.; Kumar, S. Best wavelet approximation of functions belonging to generalized Lipschitz class using Haar scaling function. Thai J. Math. 2017, 15, 409–419. [Google Scholar]
  20. Lepik, Ü. Numerical solution of differential equations using Haar wavelets. Math. Comput. Simul. 2005, 68, 127–143. [Google Scholar] [CrossRef]
  21. Lepik, Ü. 2007, March. Application of the Haar wavelet transform to solving integral and differential equations. In Proceedings of the Estonian Academy of Sciences, Physics, Mathematics (Vol. 56, No. 1).
  22. Jhangeer, A.; Hussain, A.; Junaid-U-Rehman, M.; Khan, I.; Baleanu, D.; Nisar, K.S. Lie analysis, conservation laws and travelling wave structures of nonlinear Bogoyavlenskii–Kadomtsev–Petviashvili equation. Results Phys. 2020, 19, 103492. [Google Scholar] [CrossRef]
  23. Kajani, M.T.; Vencheh, A.H.; Ghasemi, M. The Chebyshev wavelets operational matrix of integration and product operation matrix. Int. J. Comput. Math. 2009, 86, 1118–1125. [Google Scholar] [CrossRef]
  24. Sripathy, B.; Vijayaraju, P.; Hariharan, G. Chebyshev wavelet based approximation method to some non-linear differential equations arising in engineering. Int. J. Math. Anal. 2015, 9, 993–1010. [Google Scholar] [CrossRef]
  25. Lal, S. Generalized legendre wavelet method and its applications in approximation of functions of bounded derivatives. Palest. J. Math. 2019, 8, 373–389. [Google Scholar]
  26. Ahmad, O.; Sheikh, N.A.; Nisar, K.S.; Shah, F.A. Biorthogonal wavelets on the spectrum. Math. Methods Appl. Sci. 2020, 44, 4479–4490. [Google Scholar] [CrossRef]
  27. Sharma, V.K.; Lal, S. Solution of Differential Equations by Using Legendre Wavelet Operational Matrix of Integration. Int. J. Appl. Comput. Math. 2022, 8, 1–21. [Google Scholar] [CrossRef]
  28. Balaji, S. Legendre wavelet operational matrix method for solution of fractional order Riccati differential equation. J. Egypt. Math. Soc. 2015, 23, 263–270. [Google Scholar] [CrossRef]
  29. P. V. O’Neil, Advanced Engineering Mathematics, Belmont, California, Wadswort, (1987).
Figure 1. Absolute error comparison for Example 1 for M = 3; k = 2; μ = 4 , against the Regular Legendre wavelets (RLWM) [27] solutions for M = 4; k = 3.
Figure 1. Absolute error comparison for Example 1 for M = 3; k = 2; μ = 4 , against the Regular Legendre wavelets (RLWM) [27] solutions for M = 4; k = 3.
Preprints 73598 g001
Figure 2. Absolute error comparison for Example 3 M = 3; k = 2; against the Regular Legendre wavelets (RLWM) [14] solutions for M=3 and k=3.
Figure 2. Absolute error comparison for Example 3 M = 3; k = 2; against the Regular Legendre wavelets (RLWM) [14] solutions for M=3 and k=3.
Preprints 73598 g002
Table 1. Evaluation of differences between the approximate solution of Example 1 using generalized Legendre wavelets for M = 3; k = 2; μ = 3 , against the exact and Legendre wavelets [27] solutions for M = 3; k = 3.
Table 1. Evaluation of differences between the approximate solution of Example 1 using generalized Legendre wavelets for M = 3; k = 2; μ = 3 , against the exact and Legendre wavelets [27] solutions for M = 3; k = 3.
t Exact Sol. Generalized Legendre wavelets (proposed method)
for M = 3 , k = 2 , μ = 3
Regular Legendre wavelets [27]
for M=3 and k=3
Approximate Sol. Absolute Error Approximate Sol. Absolute Error
0.1
0.2
0.3
0.4
0.5
0.6
0.01758
0.06233
0.12529
0.20047
0.28383
0.37268
0.017559
0.062345
0.1253
0.20048
0.28384
0.37268
2.1156e-05
1.253e-05
2.6631e-06
1.0317e-05
2.6723e-06
1.5045e-06
0.01787
0.06191
0.12548
0.20032
0.28365
0.37271
2.9000e-04
4.2000e-04
1.9000e-04
1.5000e-04
1.8000e-04
3.0000e-05
Table 2. Evaluation of differences between the approximate solution of Example 1 using generalized Legendre wavelets for M = 3; k = 2; μ = 4 , against the exact and Legendre wavelets [27] solutions for M = 4; k = 3.
Table 2. Evaluation of differences between the approximate solution of Example 1 using generalized Legendre wavelets for M = 3; k = 2; μ = 4 , against the exact and Legendre wavelets [27] solutions for M = 4; k = 3.
t Exact Sol. Generalized Legendre wavelets (proposed method)
for M = 3 , k = 2 , μ = 4
Regular Legendre wavelets [27]
for M=4 and k=3
Approximate Sol. Absolute Error Approximate Sol. Absolute Error
0.1
0.2
0.3
0.4
0.5
0.6
0.01758
0.06233
0.12529
0.20047
0.28383
0.37268
0.017559
0.062345
0.1253
0.20048
0.28384
0.37268
2.1156e-05
1.253e-05
2.6631e-06
1.0317e-05
2.6723e-06
1.5045e-06
0.01787
0.06191
0.12548
0.20032
0.28365
0.37271
2.9000e-04
4.2000e-04
1.9000e-04
1.5000e-04
1.8000e-04
3.0000e-05
Table 3. Evaluation of differences between the approximate solution of Example 2 using generalized Legendre wavelets for M = 3; k = 2; μ = 3 , against the exact and Legendre wavelets [3] solutions for M = 3 ; k = 2 and k = 3 .
Table 3. Evaluation of differences between the approximate solution of Example 2 using generalized Legendre wavelets for M = 3; k = 2; μ = 3 , against the exact and Legendre wavelets [3] solutions for M = 3 ; k = 2 and k = 3 .
T Exact Solution (proposed method) for
M = 3 , k = 2 ,   μ = 3
Regular Legendre wavelets for
M = 3
Appr. Sol Absolute Error Appr. Sol
k = 2 [3]
Absolute Error Appr. Sol
k = 3
Absolute Error
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0
0.3297
0.5507
0.6988
0.7981
0.8647
0.9093
0.0002416
0.3298
0.5506
0.6988
0.7981
0.8647
0.9093
0.0002416
8.462e-5
5.012e-5
1.065e-5
4.127e-5
1.069e-5
6.018e-6
0.0002
0.3284
0.5523
0.6980
0.7987
0.8653
0.9091
2.0e-4
0.00128
0.00163
8.06e-4
5.97e-4
6.35e-4
1.82e-4
0.0051813
0.3285
0.55233
0.69808
0.79872
0.86537
0.90912
5.1813e-03
1.1825e-03
1.6606e-03
7.3067e-04
6.1326e-04
7.0400e-04
1.5817e-04
Table 4. Evaluation of differences between the absolute errors of Example 2 using generalized Legendre wavelets for M = 3; k = 2; μ = 3 , against Legendre wavelets [3] and Chebyshev wavelets method [14].
Table 4. Evaluation of differences between the absolute errors of Example 2 using generalized Legendre wavelets for M = 3; k = 2; μ = 3 , against Legendre wavelets [3] and Chebyshev wavelets method [14].
T (proposed method) for
M = 3 , k = 2 ,   μ = 3
Legendre wavelets for
k = 2
Chebyshev wavelets
Method [14]
Absolute Error Absolute Error
M = 3
Absolute Error
M = 4
Absolute Error
M = 3
Absolute Error
M = 4
Absolute Error
M = 5
0.0
0.1
0.2
2.4160e-04
8.462e-5
5.012e-5
2.0e-4
1.2800e-03
1.6300e-03
5.1813e-03
1.1825e-03
1.6606e-03
1.2700e-02
1.4500e-02
3.8000e-03
2.1000e-03
1.3200e-03
1.7000e-03
0.2038e-3
0.0208e-3
0.1467e-3
Table 3. Evaluation of differences between the approximate values using our proposed approach (GLWM), ( RLWM) together with the solution of J 0 ( t )
Table 3. Evaluation of differences between the approximate values using our proposed approach (GLWM), ( RLWM) together with the solution of J 0 ( t )
T Exact   solution < break / > J 0 ( t ) Generalized   Legendre   wavelets   ( proposed   method )   for   M 3 = ,   μ = 3 Regular Legendre wavelets for M=3 and k=3 [14]
Appr. Solution Absolute Error Appr. solution Absolute Error
0.1
0.2
0.3
0.4
0.5
0.6
0.997502
0.990025
0.977626
0.960398
0.93847
0.912005
0.997501
0.990025
0.977626
0.960398
0.93847
0.912005
2.6760e-07
4.8122e-08
1.0624e-07
8.9834e-08
7.0354e-08
4.3358e-08
0.997502 0.990024 0.977625 0.960396 0.938468 0.912004 4.3793e-07
9.7224e-07
1.2465e-06
2.2267e-06
1.8072e-06
8.6350e-07
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated