Numerical Solution of Duffing Equations Involving Linear Integral Term…, Anapalı vd..
AKÜ FEMÜBİD 15 (2015) 021301 1
AKÜ FEMÜBİD 15 (2015) 021301 (1-11) AKU J. Sci. Eng. 15 (2015) 021301 (1-11) DOI:10.5578/fmbd.9211 Araştırma Makalesi / Research Article
Numerical Solutions of Duffing Equations Involving Linear Integral with Shifted Chebyshev Polynomials
Ayşe Anapalı, Yalçın ÖZTÜRK, Mustafa GÜLSU
Department of Mathematics, Faculty of Science, Muğla University, Muğla, Turkey Ula Ali Koçman Vocational School, Muğla University, Muğla, Turkey
e-posta: yozturk@mu.edu.tr
Geliş Tarihi:14.11.2014; Kabul Tarihi:03.04.2015 Keywords
Duffing-van der Pol equation; Duffing equation; Shifted
Chebyshev polynomials;
Chebyshev series;
Shifted Chebyshev polynomial solutions;
Approximation method.
Abstract
The purpose of this study is to give a shifted Chebyshev polynomial approximation for the solution of Duffing-van der Pol equation involving linear integral term (DEILI). For this purpose, a new Chebyshev collocation method is introduced. This method is based on taking the truncated shifted Chebyshev expansion of the function. This method based on first taking the truncated Chebyshev series of the solution function in the DEILI and then, transforms DEILI and given conditions into a matrix equation and then, we have the system of nonlinear algebraic equation using collocation points. Then, solving the system of algebraic equations we have the coefficients of the truncated Chebyshev series. In addition, examples that illustrate the pertinent features of the method are presented, and the results of study are discussed.
Lineer İntegral Terim İçeren Duffing Denkleminin Shifted Chebyshev Polinomları ile Nümerik Çözümleri
Anahtar kelimeler Duffing-Van der Pol
denklemi; Duffing denklemi; Shifted
Chebyshev Polinomları;
Chebyshev serisi;
Shifted Chebyshev polinom çözümleri;
Yaklaşım metodu
Özet
Bu çalışmanın amacı linear terim içeren Duffing-van der Pol denkleminin shifted Chebyshev polinomları yardımı ile yaklaşık çözümlerini sunmaktır. Bu amaçla Chebyshev sıralama metodu verilmiştir. Metodun ana karekteristiği verilen denklemi kesilmiş Chebyshev serisinin katasyılarının içeren bir denklem sistemine indirgemesidir. Bu sistem çözülerek kesilmiş Chebyshev serisinin katsayıları bulunur. Dolayısıyla yaklaşık çözüm elde edilir.
Ayrıca, metodun uygulanabilirlini göstermek için örnekler sunulmuştur.
© Afyon Kocatepe Üniversitesi
1.Introduction
Duffing equation is a mathematical model to describe a classical oscillator in a double-well by a periodical driven, which has been widely investigated in chaotic
phenomena (Mickens, 1981;
Guckenheimer and Holmes, 1983). It arises
in a variety of different scientific fields such as periodic orbit extraction, non-uniformity caused by an infinite domain, nonlinear mechanical oscillators, prediction of diseases (Ahmad and Alghamdi,2007; Tang, 1998). (Ahmad and Alghandi, 2008) presented the existence and uniquenes
AKÜ FEMÜBİD 15 (2015) 021301 2 solution of the Duffing equation involving
both integral and non-integral forcing terms with separated boundary conditions by a generalized quasilinearization technique. The numerical solutions of the Duffing equation with two-point boundary conditions have been investigated by many researchers (Yao,2009; Geng,2011;
Geng,2009).
In this paper, we consider the Duffing equation involving linear integral, which can be written as
) ( )
( ) , (
) ' , , ( ) ( ' ) ( ''
0
t g ds s y s t k
y y t f t y t y
t
1 0 t (1)
with the initial conditions
0y ( 0 )
1y ' ( 0 )
and
0y ( 1 )
1y ' ( 1 )
(2) where ,
0,
1,
0,
1,
and
are real constant.The aim of this study is to get solution as truncated Chebyshev series defined by
N
n n n
N
t a T t
y
0
*
( ) '
)
(
,) cos(
)
*(
n tTn , 2t1cos
(3) where Tn*(t) denotes the shifted Chebyshev polynomials of the first kind;
' denotes a sum whose first term is halved;a
n( 0 n N )
are unknown Chebyshev coefficients, and N is chosen any positive integer.2. Preliminaries and notations
In this section, we state some basic results about polynomial approximations. These important properties will enable us to solve the Duffing equations. Polynomials are the only functions that the computer can evaluate exactly, so we make approximate functions R R by
polynomials. We consider real-valued functions on the compact interval
[ b a , ]
:R b a f : [ , ]
and we denote the set all real-valued polynomials on
[ b a , ]
by P, that is
N
i i i
x a x
p b a x p
0
) ( ], , [ ,
and
} ,
)) ( deg(
: ) (
{
N p x p x N N Z
The uniform norm (or maximum norm) is defined by
) ( max
] ,
[
f x
f
b a
x .Definition 2.1 For a given continuous function
f C [ b a , ]
, a best approximation polynomial of degree N is a polynomial pN* (f)PN such that} :
min{
)
*
(
N
N
f f p p P
p
f
where the uniform norm is defined by
)
( max
] ,
[
f x
f
b a
x .Theorem 2.1 (Rivlin,1969; Davis,1963) Let
]
, [ b a C
f
. Then for any
0, there exist a polynomial pfor which
p
f
The theorem states that any continuous function
f
can be approximated uniformly by polynomials, no matter how badly behavedf
may be on[ b a , ]
. For phrasing; for any continuous function on] ,
[ b a
,f
, there exist a sequence of polynomial( p
N)
NN which converges uniformly towardsf
such thatAKÜ FEMÜBİD 15 (2015) 021301 3
0
lim
N
N
f p
.Theorem 2.2 (Rivlin,1969; Davis,1963;
Boyd, 2000; Atkinson, 2009; Mason and Handscomb, 2003) For any
f [ b a , ]
and0
N the best approximation polynomial
)
*
( f
p
N exists and is unique.Definition 2.2 Given an integer N 1 a grid is a set of
( N 1 )
pointsN i
x
iX ( )
0 in[ b a , ]
such thatb x x
x
a
0
1
N
. Then pointsN i
x
i)
0(
are called the nodes of the grid.Theorem 2.3 (Rivlin,1969; Davis,1963;
Boyd, 2000; Atkinson, 2009; Mason and Handscomb, 2003) Given a function
] , [ b a C
f
and a grid of( N 1 )
nodesN i
x
iX ( )
0 , there exist a unique polynomial INX( f) of degree N such that) ( ) )(
( i i
X
N f x f x
I , 0i N )
( f
INX is called the interpolant (or interpolating polynomial) of
f
through the grid X . The interpolant INX( f) can be express in the Lagrange form:
N
i
X i i X
N
f f x x
I
0
) ( ) ( )
(
where Xi (x) is the i-th Lagrange cardinal polynomial associated with the grid X :
N
j i
j i j
X i
i
x x
x x x
, 0
)
(
, 0i N.The Lagrange cardinal polynomials are such that
i j
j x
j iji
X
i
0
) 1
(
,
0 i , j , N
.The best approximation polynomials )
* ( f
pN are also an interpolant of
f
at 1
N nodes and the error in given by :
I ( f ) ( 1 ( X )) f p
*( f )
f
NX N Nwhere
N(X )
is the Lebesque constant relative to the grid X
N
i X b i a
N
X
xx
] 0 ,
[
( )
max : )
(
The Lebesque constant contains all the information on the effects of the choice of
X on
I ( f )
f
NX .Theorem 2.4 (Rivlin,1969; Davis,1963;
Boyd, 2000; Atkinson, 2009; Mason and Handscomb, 2003) For any choice of the grid X , there exist a constant C0 such that
C N
N x
2ln( 1)
)
(
.Corollary 2.1 (Rivlin,1969; Davis,1963;
Boyd, 2000; Atkinson, 2009; Mason and Handscomb, 2003) Let
N(X )
be Lebesque constant relative to the grid X, then
N( X )
asn
.In a similar way, by a uniform grid,
N X eN
N
N
ln
~ 2 ) (
1
as N .This means that for any choice of type sampling of
[ b a , ]
, there exists a continuous functionf C [ b a , ]
such that)
INX( f does not convergence uniformly towards
f
. Let assume that the functionf
is sufficiently smooth to have derivatives at least up to order( N 1 )
, withf
(N1) continuous i.e.f C
N 1[ a , b ]
.AKÜ FEMÜBİD 15 (2015) 021301 4 Definition 2.3 The nodal polynomial
associated with the grid is the unique polynomial of degree
( N 1 )
and leading coefficient 1 whose zeroes are the( N 1 )
nodes of X :
N
i
i X
N
x x x
w
0
1
( ) ( )
.Theorem 2.5 (Rivlin,1969; Davis,1963;
Boyd, 2000; Atkinson, 2009; Mason and Handscomb, 2003) If
f C
N 1[ a , b ]
, then for any grid X of( N 1 )
nodes, and for anyx [ b a , ]
, the interpolation error is) )! (
1 (
) ) (
)(
( )
(
1) 1 (
x N w
x f f I x
f
NXN X
N
where
( x ) [ a , b ]
and wN X 1(x) nodal polynomial associated with the gridX .
Definition 2.5 The grid
X ( x
i)
0iN such that thex
i’s are the( N 1 )
zeroes of the Chebyshev polynomial of degree( N 1 )
is called the Chebyshev-Gauss (CG) grid.Theorem 2.7 (Rivlin,1969; Davis,1963;
Boyd, 2000; Atkinson, 2009; Mason and Handscomb, 2003) The polynomials of degree
( N 1 )
and leading coefficient 1, the unique polynomial which has the smallest uniform norm on[ b a , ]
is the) 1
( n
th Chebyshev polynomial divided by2
N.2.1 Chebyshev polynomials
Definition 2.11 The Chebyshev polynomials
)
(x
T
n of the first kind is a polynomials inx
of degreen
, defined by relation (Mason and Handscomb,2003) n x
T
n( ) cos
, when xcos
If the range of the variable
x
is the interval]
1 , 1
[
, the range the corresponding variables
can be taken[ 0 , ]
. We mapthe independent variable
x
in[ 0 , 1 ]
to the variables
in[ 1 , 1 ]
by transformation1 2
x
s or ( 1)
2
1
s
x
and this lead to the shifted Chebyshev polynomial of the first kind Tn*(x) of degree
n
inx
on[ 0 , 1 ]
given by [13]) 1 2 ( ) ( )
*(
T s T x
x
Tn n n .
It is of course possible to defined Tn*(x), like
T
n(x )
, directly by a trigonometric relation. Indeed, we obtained
n xTn*( )cos2 when
x cos
2
. The leading coefficient ofx
n in Tn*(x) to be2
2n1. These polynomials have the following properties (Mason and Handscomb,2003):i)
T
*n1( x )
has exactly n1 real zeroes on the interval[ 0 , 1 ]
. The i-th zero xn,i of ,fori 0 , 1 ,..., n
) )) 1 ( 2
) 1 ) ( 2 cos( ( 1 2 ( 1
,
n
i
x
nin
(4)
ii) It is well known that the relation between the powers
x
n and the second kind Chebyshev polynomials Tn*(x) is for1 0 x ,
) 2 (
'
2
*0 1
2
T x
k
x n
n kn
k n n
(5)where
' denotes a sum whose first term is halved.3. Fundamental relations
In this section, we give the matrix forms of each term in the Eq.(1) and conditions.
AKÜ FEMÜBİD 15 (2015) 021301 5 3.1 Matrix representation of the
differential part
We consider the solution
y (x )
of Eq. (1) and its derivative yN(k)(x) defined by a truncated Chebyshev series (3).Then, we can put series in the matrix form, for2 , 1 , 0
k
A T
( ) )
( t
*t
y
,y
(k)( t )
T*(k)( t )
A (6) where)]
( ...
) ( ) ( [ )
( 0* 1* *
* t T t T t TN t
T
T
aN
a a ... ] [ 0 1 A
By using the expression (5) and taking n=0,1,…,N we find the corresponding matrix relation as follows
T
T
t
t )) ( ( )) (
(
X
D T* andt
Tt
T DX
( )
*( )
(7) where] 1
[ )
( t t
t
N X
0 2 2 3 2 2 2 2 2 1 2 2 2 2
0 0 2 6 1 2 6 2 2 6 3 2 6
0 0 0
2 4 1 2 4 2 2 4
0 0
0 0 2 2 1 2 2
0 0
0 0 0
2 0
1 2 1
2 1 2 1 2 2
5 5
5 6
3 3
4 1 2 0
N N
N N
N N
N N
N N N n N
N
D
Then, by taking into account (7) we obtain
t
Tt ) ( )( )
(
1*
X DT (8) and
T k
k
t
t )) ( )( )
(
(
T* ( )
X( ) D1 ,k 0 , 1 , 2
To obtain the matrix X(k)(t )
in terms of the matrixX(t )
, we can use the following relation:t
Tt
X BX(1)
( ) ( )
2 1
) 2
(
( t )
X( )( t )
BT X( t )(
BT)
X
(9)where
0 0
0 0
0 0
2 0
0 0
0 1
0 0
0 0
N
B (10)
Consequently, by substituting the matrix forms (8) and (9) into (6) we have the matrix relation for
k 0 , 1 , 2
A D B
X 1
)
(k
( t )
k(
T)
y
(11) Moreover, substituting the zeroes of Chebyshev polynomials in Eq.(4) into Eq.(6), we have A T
( ) )
( t
it
iy
andA D B X
A T
1 ) ( )
(
) ( ) (
) ( )
(
T k i
i k i k
t
t t
y (12)
or compact form TA
Y and
A D XB
A T
Y
1 ) ( )
(
) (
) ( )
(
T k
i k i
k t t
(13)
where
) (
) (
) (
1 0
t
Nt t
T T T T
) (
) (
) (
1 0
t
Ny t y
t y
Y
) (
) (
) (
) (
1 ) (
0 ) (
) (
N k
k k
k
t y
t y
t
y
Y
AKÜ FEMÜBİD 15 (2015) 021301 6
N N N
N
N N N
x x
x
x x
x
x x
x
x x
x
2 2 2 2 2
1 2 1 1
0 2 0 0
1 1 1 1
X
Similarly, substituting the zeroes of Chebyshev polynomial into
y
r(t )
, we obtained the matrix representationY Y
Y 1
__
)
(
rr (14) where
) (
) (
) (
1 0
N r
r r
r
t y
t y
t y Y
) ( 0
0
0 )
( 0
0 0
) (
1 0 __
tN
y t
y t y
Y
and
__
__
__
A T
Y (15) where
) ( 0
0
0 )
( 0
0 0
) (
1 0
__
tN
t t
T T
T T
A A
A A
0 0
0 0
0 0
__
.
We can write
s
n
n n r
m
m m
t y t y t H
t y t P y
y t f
0 0
) ( ' ) ( ) (
) ( ) ( )
' , , (
For obtained matrix form of
y
m,m Z
andy
ny '
,n Z
, using relation (14) and (15), we construct the following relationsA D X A
T 1
__
__
2(ti) y(ti)y(ti)( ) (ti)( T)
y (16a)
A D X A
T 2 1
__
__
2
3(ti)y (ti)y(ti)( ) (ti)( T)
y (16b)
A D X A
T 1 1
__
__
1( ) ( ) ( ) ( )( )
)
(i m i i m i T
m t y t yt t
y (16c)
and
A D B X A
T 1
__
__
) ( ) ( ) ( ) ( ' )
(ti y ti ti T
y (16d)
A D B X A
T 2 1
__
2 __
) ( ) ( ) ( ) ( ' )
(ti y ti ti T
y (16e)
A D B X A
T 1
__
__
) ( ) ( ) ( ) ( ' )
( i i n i T
n t y t t
y (16f)
Thus we can write
s
n
T i n n
r
m
T i m m
t t
t t
y y x f
0
__ 1 __
0
1 __ 1
__
) ( ) ( ) )(
(
) )(
( ) )(
( )
' , , (
A D B X A T H
A D X A T
P (17)
3.2 Matrix representation of integral part Let assume that
K ( s t , )
can be expanded to univariate Chebyshev series with respect tot
as follows:
N
r
r sr
t T s f
s t K
0
).
( ) ( )
,
(
(18)Then the matrix representations of the kernel function
K
s( t x , )
become), ( ) ( ) ,
( t s t s
K
F TT (19)AKÜ FEMÜBİD 15 (2015) 021301 7 where
] ) ( )
( ) ( ) ( [ )
(t f0 t f1 t f2 t fN t
F .
Substituting the relations (6) , (15) and (18) in integral part, we obtained
A D Q D F
A D X
X D F
D X X D F
A T T F
1 1
1
0 1
1
0
1 0
) ( ) (
) ( ) ( ) ( )
(
A ) ( ) ( ) ( )
(
) ( ) ( ) ( ) (
T
T t
T
T t
T t
T
t
ds s s t
ds s
s t
ds s s t t
I
(20)
where
t
T s s ds
0
) ( ) ( X X
Q ,
and
N j
j i i q t
j i
ij
, , 0 , 1 ,..., ] 1
[
1
Q
.3.3 Matrix representation of conditions On the other hand, the matrix form for conditions (2) can be written as
X D 1X B D 1
A1 0
1 0
) ( ) 0 ( )
)(
0 (
) 0 ( ' ) 0 (
T T
y y
] [ ] [ u
00u
01u
0N a
A (21a)and
X D 1X B D 1
A1 0
1 0
) ( ) 1 ( )
)(
1 (
) 0 ( ' ) 0 (
T T
y y
] [ ] [u10 u11 u1N b
A (21b)
4. Method of solution
Firstly, we construct the fundamental matrix equation corresponding to Eq.(1).
For computing the Chebyshev coefficient
matrix A numerically, the zeros of the Chebyshev polynomial defined by in Eq.(4) are put into the matrix form of Eq.(1). We obtain
r
m
T i m i
m
T i T
i
t t
t t
0
1 __ 1
__
1 1
2
) )(
( ) )(
(
) ( ) ( )
( ) (
A D X A T P
D B X D
B
X
) ( )
( ) (
) ( ) ( ) )(
(
1 1
0
__ 1 __
i T
i s
n
T i n i
n
t g t
B t t
A D Q D F
A D X
A T
H (22)
and then system can be written in the matrix form
XB2(
DT)
1
EXB(
DT)
1
rm
T m m 0
1 1
__
__
) ( )
(
TA XD P
sn
T n
n 0
__ 1 __
) ( )
(
TA XB DH
G A D
Q D
F
________
__ 1 ___
1 ( T) (23)
where
0 0 0
0 0
0
0 0
0
0 0
0
Ε
) ( 0
0 0
0 )
( 0 0
0 0
) ( 0
0 0
0 ) (
2 1 0
N m m
t m m
m
t t
x t
P P
P P
P
AKÜ FEMÜBİD 15 (2015) 021301 8
) ( 0
0 0
0 )
( 0
0
0 0
) ( 0
0 0
0 ) (
2 1
0
N n n
n n
t t
t t
H H
H H
H
) ( 0
0 0
0 )
( 0 0
0 0
) ( 0
0 0
0 ) (
2 1 0
tN
t t t
F F
F F
F
1 1
1 1
____
1
0 0 0
0 0
0
0 0
0
0 0
0
D D
D D
D
) ( 0
0 0
0 )
( 0 0
0 0
) ( 0
0 0
0 ) (
2 1 0
tN
t t t
Q Q
Q Q
Q
1 1 1 1
_______
1
) (
) (
) (
) (
) (
T T T T
T
D D D D
D
) (
) (
) (
) (
2 1 0
tN
g t g
t g
t g
G
Hence, the fundamental matrix equation (23) corresponding to Eq. (1) can be written in the form
G
WA or
[
W;G]
][wi, j
W ,
i , j 0 , 1 ,..., N
(24) where________
1 ___ __
1
0
1 __
__
0
1 1
__
__
1 1
2
) ( )
( ) (
) ( ) (
) ( )
(
T s
n
T n n r
m
T m m
T T
D Q D F D
XB A T H
D X A T P
D EXB D
XB W
To obtain the solution of Eq. (1) under conditions (2), by replacing the row matrices (21a)-(21b) by the last 2 rows of the matrix (24), we have the new augmented matrix,
[W
~
;
]
~
G =
b u
u u
a u
u u
t f w
w w
t f w
w w
t f w
w w
N N
N N
N N
N
N N
;
;
) (
) (
;
) (
;
1 11
10
0 01
00
2 2
21 20
1 1
11 10
0 0
01 00
So, we obtain a system of (N 1) nonlinear algebraic equations with unknown shifted Chebyshev coefficients.
Thus, we obtain the Chebyshev polynomial solution.
We can easily check the accuracy of the method. Since the truncated shifted Chebyshev series (3) is an approximate solution of Eq.(1), when the solution
) (t
y
N and its derivatives are substituted in Eq.(1), the resulting equation must be satisfied approximately; that is (Body, 2000) fort tq [0,1], q 0,1,2,...0 ) ( )
( ) , (
) ' , , ( ) ( ' ) ( '' ) (
0
qt q
q q
q q
t g ds s y s t k
y y t f t y t y x E
q
4.1 Error analysis and convergence Since, * 1
1
T
N , we conclude that if we choose the grid nodes( x
i)
0iN to be zero the (N+1) zeroes of the Chebyshev polynomials TN*1, we haveAKÜ FEMÜBİD 15 (2015) 021301 9
1 1 2
2 1
N
X
wN
and this is the smallest possible value. In particular, from Theorem 2.5, for any
] 1 , 0
1
[
C
Ny
we have (Rivlin,1969;Davis,1963; Body,2000)
11
2
( 1 )!
2
1
NN N
y
y N
y
(25)If
y
(N1) is uniformly bounded, the convergence of the interpolationy
N towards y when N is then extremely fast. Also the Lebesgue constant associated with the Chebyshev-Gauss grid is small) 1 2ln(
~ )
(
N X N
as N This is much better than uniform grids and close to the optimal value.
5. Illustrative example
In this section, several numerical examples are given to illustrate the accuracy and effectiveness properties of the method and all of them were performed on the computer using a program written in Maple 13.
Example 1 Consider the following Duffing equation involving linear integral term for
1 0 t ,
) ( )
( )
' 1 ( ' ''
0
2y s ds g t s
y y y y
t
with
0 ) 1 ( ' ) 1 ( 3 , 0 ) 0 ( ' ) 0 (
2 y y y y
where
2
3 4 3
4 2 2
2 1 2 3
4
) 1 ( 24
204 ) 540 228 32 15 ( ) 42 60 2 3 ( 8 ) 11 7 2 ( 66 ) 1 2 ( 132 726 18 16 ) 9
( e
t t t e t t t e t t e t t e e t t t t
g
t t
t
The exact solution of this problem is
) 1 ( 2
) 8 3 ( 2 11
)
( e
t e t e
y
t
.By applying the presented method for different values of N , we obtain the numerical solutions by Maple 13. Taking
12 , 10 , 8
N
the numerical results are shown in Table 1.The values of Ne y(t)yN(t) at selected points. The graph of numerical solutions and absolute errors is shown in Figure 1 and 2 respectively.