Beruflich Dokumente
Kultur Dokumente
SPECIAL FUNCTIONS
table of content
Chapter 5
Special Functions
Legendre equation
Solution of Legendre equation Legendre polynomials
Recurrence and Rodrigues formulae
Orthogonality of Legendre polynomials
Fourier-Legendre series
Integral transform
5.8 Exercises
Chapter 5
SPECIAL FUNCTIONS
Introduction
In this chapter we summarize information about several functions
which are widely used for mathematical modeling in engineering.
Some of them play a supplemental role, while the others, such as the
Bessel and Legendre functions, are of primary importance. These
functions appear as solutions of boundary value problems in physics and
engineering.
The survey of special functions presented here is not complete we
focus only on functions which are needed in this class. We study how
these functions are defined, their main properties and some
applications.
0 x < 0
H (x ) =
1 x > 0
(1)
H ( x)
(2)
> plot(Heaviside(x-2),x=-1..4,discont=true);
H ( x 2)
filter function
F (x , a , b ) = H (x a ) H (x b ) = 1 a < x < b
0 x>b
g ( x ) F ( x,1,3 )
(3)
x =0
x0
(x ) =
(4)
The second property provides the unit area under the graph of the delta
function:
b
(x )dx = 1
( x ) = lim Sh ( x ) = lim
h 0
H ( x + h) H ( x h)
2h
h 0
( x ) = lim G ( x ) = lim
0
x2
c) triangle functions:
0
x 1
+
2 h
h ( x) = h
x +1
h2 h
(x ) = lim h (x )
h0
( x ) = lim Dn = lim
n
e) sine functions:
(x ) = lim
sin nx
x
(1 + n2 x 2 )
x < h
h x < 0
0xh
x>h
Properties
(x )dx = 1
(x a ) =
a +c
x=a
xa
(x a )dx = 1 ,
c >0
a c
4) Symmetry:
(x) = ( x)
( x a) = (a x)
5) Derivatives:
1
x
The derivative can be defined as a limit of triangle functions and
interpreted as a pure torque in mechanics. The higher order derivatives of
the delta function are:
k!
(k ) (x ) = ( 1)k k (x )
k = 1,2,...
x
(x ) = (x )
6) Scaling:
(ax ) =
1
(x )
a
for a 0
7) There are some important properties of the delta function which reflect
its application to other functions. If f (x ) is continuous at x = a , then
f (x ) (x a ) = f (a ) (x a )
c
f (x ) (x a )dx = f (a )
b<a<c
f (x ) (x a )dx = f (a )
f (t ) (t a )dt = f (a )H (x a )
x0
x0 a
f ( x ) ( x )dx = f ( x ) ( x )
f ( x ) ( x )dx = f ( x ) ( x )
f ( x ) ( x )dx = f (0 )
f ( x ) ( x )dx = f (0 ) =
f ( 0 )
8) Laplace transform:
L{ (x )} = e sx (x )dx = 1
0
L{ (x a )} = e sx (x a )dx = e as
a >0
9) Fourier transform:
F { (x a )} = e ix (x a )dx = e ia
a >0
Applications
The graph of the solution shows that the system was at rest until the time
t = 5 , when an impulse force was applied yielding periodic oscillations.
Si( x ) =
0
sin t
dt
t
x ( , )
(5)
The integrand can be expanded in Taylor series and then integrated term
by term yielding a series representation of the sine integral function:
( 1)n x 2 n+1
n=0 (2 n + 1)(2 n + 1)!
Si (x ) =
(6)
Si ( x )
The limiting values of the sine integral function are determined by the
Dirichlet integral
sin
d = 2
0
which was obtained in Section 3.5 (Remark 3.7, p.227) as a particular case
of the Fourier transformation of the step function.
erf ( x ) =
t 2
x ( , )
dt
(7)
> plot(erf(x),x=-4..4);
erf ( x )
erfc( x ) = 1 erf (x ) =
> plot(erfc(x),x=-4..4);
erfc( x )
erf (x ) =
( 1)n x 2 n+1
n! (2n + 1)
n=0
d2
4 x x2
erf (x ) =
e
2
dx
e
x
t 2
dt
(8)
q
p
x (1 x ) dx
p,q
is equal to
p! q!
( p + q + 1) !
With some transformation of this integral and taking the limits, Euler
ended up with the result
1
( ln x )
dx = n! ( n + 1)
Later, the gamma function was defined by the improper integral which
converges for all x except of 0 and negative integers (Euler, 1781):
(x ) = e t t x1dt
(9)
> plot(GAMMA(x),x=-5..4);
( x)
Properties:
a)
(x + 1) = x (x )
(x + 1)
(10)
= e t t ( x+1)1dt
0
= e t t x dt
0
= t x de t
0
= t x e t
+ e t dt x ( lim t x e t = 0 )
= x e t t x1dt
0
= x (x )
b)
(n ) = (n 1)!
n = 1,2 ,3 ,...
(n + 1) = n!
(11)
Proof:
c)
The gamma function does not exist at zero and negative integers.
d)
( x) = ( x)
( x)
e)
(x + 1) 2x
f)
g)
Binomial coefficients:
( z + 1)
z
z!
=
=
w w! ( z w ) ! ( w + 1) ( z w + 1)
(12)
5.6
Bessel Functions
1. Bessel Equation
=
=
dr dr dr dx dx dx dr
dr 2
Then the equation becomes
x 2 y + xy + x 2 2 y = 0
(14)
x=0
x 2 Q(x ) = x 2 2 is analytic: q0 = 2
Therefore, x = 0 is a regular singular point, and the Frobenius theorem
can be used for solution of the Bessel Equation.
3. Indicial Equation
r 2 2 = 0
There are two roots of this equation:
r1 =
r2 =
(choose 0 for convenience, later we can abandon this assumption).
The Frobenius approach depends on the form of the difference of roots of
the indicial equation:
r1 r2 = ( ) = 2
Two cases of the Frobenius theorem may be involved:
a)
b)
r1 r2 = 2 integer
r1 r2 = 2 = integer
this case includes = n , n N 0 (positive integers and zero) and
2n + 1
=
(half of the odd integer)
2
In both cases, the first solution, following the Frobenius theorem, has to
be found in the form:
y1 = cn x n+r = cn x n+ , x > 0
(15)
n =0
n =0
Proceed to this solution, and then we will analyze how it handles the
abovementioned cases.
Using assumed form of solution (2), calculate the derivatives
4. First Solution
y1 = cn x n+
n =0
y1 = (n + )cn x n+ 1
n =0
y1 = (n + )(n + 1)cn x n+ 2
n =0
n =0
n =0
n =0
n =0
=0
n =0
n =0
m=0
m=2
(16)
m=2
Applying the Identity Theorem 2.6 to the term with summation, we obtain
a recurrence relationship:
cm =
cm 2
m(m + 2 )
for m 2
Using this relationship and also the first two terms of the equation, we get:
m=0
0 c0 = 0
m=1
(1 + 2 )c1 = 0
m=2
c2 =
m=3
m=4
c0
c0
=
2(2 + 2 ) 2 2(1 + )
c1
c3 =
=0
3(3 + 2 )
c0
c2
c4 =
=
4(4 + 2 ) 2 2 2 2 2(1 + )(2 + )
c0 = arbitrary
c3 = 0
c4 =
c0
2 4 2(1 + )(2 + )
m=5
m=6
c3
=0
5(5 + 2 )
c4
c4
=
c6 =
6 (6 + 2 ) 2 2 3(3 + )
c5 = 0
c5 =
c6 =
c0
2 3! (1 + )(2 + )(3 + )
4
All coefficients with odd indices are equal to zero. Recognizing the
pattern, we can determine the coefficients with even indices:
( 1)k c0
c2 k = 2 k
k = 0 ,1,2 ,...
2 k ! (1 + )(2 + ) (k + )
This expression may be written in more elegant form if the gamma
function is used. Multiply and divide the expression by (1 + ) :
( 1)k c0
(1 + )
2 2 k k ! (1 + )(1 + )(2 + ) (k + )
Repeatedly using the property (a) of the gamma function, we squeeze the
product in the denominator:
(1 + )(1 + )(2 + ) (k + ) = (2 + )(2 + )(3 + ) (k + ) = (k + + 1)
Then the expression for the coefficients becomes:
( 1)k c ( + 1)
c2 k = 2 k 0
2 k ! ( + k + 1)
1
Choose the value for the arbitrary coefficient c0 =
, then
2 ( + 1)
c2 k =
c2 k =
( 1)k
2 2 k + k ! ( + k + 1)
( 1)
2 k +
x 2 k +
2
=
k
!
+ k + 1)
(
)
+
+
2
k
!
k
1
k =0
k =0
This series solution converges absolutely for all x 0 because there are
no other singular points. The function represented by this power-series
solution is called to be a Bessel function of the 1st kind of order and it
is denoted by
y1 ( x ) =
( 1)k x
2 k +
( 1)k x
2 k +
2
(
k
!
+ k + 1)
k =0
J ( x ) =
(17)
J n (x ) =
k =0
( 1)k x
2 k +n
2
k ! (n + k )!
(18)
This is a Bessel function of the 1st kind of integer order (including zero).
5. Second Solution
( 1)k x
2 k
2
k
!
+ k + 1)
k =0
J (x ) =
(19)
J (x ) J (x )
2 sin
=
J (x ) J (x )
x
(20)
If n is not integer, then the Wronskian is not zero and the Bessel
functions J (x ) and J (x ) are linearly independent.
Then the general solution of the Bessel Equation may be written as
y (x ) = c1 J (x ) + c2 J (x )
Case 2) = n
(21)
( 1) x
2
(22)
J n (x ) =
k =0 k! ( n + k + 1)
and change the index of summation k by s to make substitution in the
exponentiation
2k n = 2 s + n
then k = s + n , and equation (22) becomes
k
J n ( x ) =
( 1)s+n x
2 s+n
(s + n )!(s+ 1)
(23)
s= n
Consider a factor in the denominator (s + 1) : when s + 1 0 (nonpositive integer), the gamma function is unbounded, therefore, the first n
terms from s = n to s = 1 in the summation (23) are equal to zero,
then taking that into account for integers, (s + 1) = s! , we obtain
J n (x ) =
( 1)s+n x
2
(s + n )!s!
s =0
or
2 s+n
J n (x ) = ( 1) J n (x )
n
== ( 1)
( 1)s x
2 s+n
(s + n )!s!
s =0
(24)
J (x ) = d k x k + cJ (x ) ln x
k =0
or we can use the reduction formula (Part I, 2.2.9 3, p.131) to find the
second solution:
dx
J (x ) = J (x ) 2
xJ (x )
where long division and the Cauchy product should be used (which is
tedious but manageable).
But, instead, traditionally, the second independent solution is introduced
by the definition of the Bessel function of the 2nd kind of order :
Y (x ) =
cosJ (x ) J (x )
sin
(25)
cosJ (x ) J (x )
sin
(26)
Yn (x ) = ln + J n (x ) .......
(27)
2
1
1 1
(29)
When the order of the Bessel equation is not integer, the complete
solution may be also given only in the terms of Bessel functions of the
first kind:
y (x ) = c1 J (x ) + c2 J (x )
(30)
The second solution was derived mostly for integer roots, so, we
emphasize it by the following statement: the complete solution of the
Bessel equation of integer order n is given by:
y (x ) = c1 J n (x ) + c2Yn (x )
(31)
1
can be expressed in terms
2
1
. Consider BE (14).
2
Use substitution y =
= x 2u
3
y =
du
1 2
x u+x 2
2
dx
5
du
du
3 2
x ux 2
+x 2
4
dx
dx
then the equation becomes
1
2
4
u + 1 +
u = 0
x2
y =
1
, this equation reduces to a linear ODE with constant
2
coefficients
u + u = 0
the general solution of which is given by
For =
y = c1 cos x + c 2 sin x
cos x
x
sin x
+ c2
(17), we obtain that Bessel functions of half orders are given by:
J 1 (x ) =
2
1
2
(x ) =
2 cos x
(32)
2 sin x
(33)
3
are:
2
sin x
cos x
x
J 3 (x ) =
x
2
2
(34)
cos x
+ sin x
x
J 3 (x ) =
(35)
x
2
Other Bessel functions of half of odd integer orders also can be expressed
in terms of elementary functions. These functions are used for
construction of spherical Bessel functions
J 1 (x )
n
n+ 2
1 d sin x
= xn
(36)
j n (x ) =
x
2
x dx
x
2
1
2
(x )
1 d cos x
= x n
(37)
x
2
x dx
x
which are solutions of the Bessel equation
x 2 y + 2 xy + x 2 n(n + 1) y = 0 n = 0,1,2,...
(38)
This equation appears as one of the ODE in the separation of variables of
the Laplacian in spherical coordinates [Abramowitz and Stegun, p.437]
y n (x ) =
n+
(39)
H(2 ) (z ) = J (z ) iY (z )
(40)
J (z ) e i J (z )
i sin
(41)
H(1) (z ) =
J (z ) ei J (z )
i sin
(42)
x2 x4
x6
x8
+
+
+
4 64 2304 147456
x x3
x5
x7
+
+
J1 (x ) =
2 16 384 18432
x2 x4
x6
x8
+
J 2 (x ) =
8 96 3072 184320
J 0 (x ) = 1
Identities
Differential identities
2
J (x ) J 1 (x )
x
2
J 1 (x ) =
J (x ) J +1 (x )
x
J +1 (x ) =
Addition theorem
(46)
d
x J (x ) = x J 1 (x )
dx
d
x J (x ) = x J +1 (x )
dx
J 0 (x ) = J 1 (x )
xJ (x ) + J (x ) = xJ 1 (x )
J (x ) = J 1 (x )
xJ (x ) J (x ) = xJ +1 (x )
J (x ) = J +1 (x ) +
Integral identities
(45)
(47)
(48)
+1
+1
x J (x )dx = x J +1 (x ) + c
+1
+1
x J (x )dx = x J 1 (x ) + c
J n (x + y ) =
J (x )
J (x )
(49)
(50)
(51)
(52)
J k (x )J n k ( y )
(53)
k =
9. Generating functions
1 x
t
t 2
J n (x )t n
(55)
n =
cos x = J 0 (x ) 2 J 2 (x ) + 2 J 4 (x ) 2 J 6 (x ) +
sin x = 2 J 1 (x ) 2 J 3 (x ) + 2 J 5 (x ) +
1 = J x (x ) + 2 J 2 (x ) + 2 J 4 (x ) +
+ 2 J 2 k (x ) +
1
x = J 1 (x ) + 3J 3 (x ) + 5 J 5 (x ) +
2
+ (2k + 1)J 2 k +1 (x ) +
1
x = J 2 (x ) + 4 J 4 (x ) + 9 J 6 (x ) +
8
+ k 2 J 2 k (x ) +
x 2 y + xy x 2 + 2 y = 0
(56)
which can be written in the form of Bessel equation (14) with the second
parameter = i :
x 2 y + xy + i 2 x 2 2 y = 0
(57)
which has a general solution given by equation (29) with x replaced by ix:
y (x ) = c1 J (ix ) + c 2 Y (ix )
(58)
Equation (58) provides a solution of the modified Bessel equation (91) in
complex form. But it is desirable to have a real form of solution.
Consider
J (ix ) =
k =0
( 1)k ix
2 k +
2 k +
2
2
=i
k! ( + k + 1)
k = 0 k! ( + k + 1)
(59)
because:
= i .
Then define a function which is called the modified Bessel function of
the 1st kind of order :
2 k +
I (x ) = i J (ix ) =
k = 0 k! ( + k + 1)
(60)
I (x ) = i J (ix ) =
k = 0 k! ( + k + 1)
(61)
W [I (x ), I (x )] =
y (x ) = c1 I (x ) + c 2 I (x )
v integer
(62)
( )
= i ( 1) I n (x ) = ( 1) ( 1) I n (x ) = I n (x )
For integer orders = n , n = 0,1,2,3, , the second solution of the
modified Bessel equation is defined with the help of the modified Bessel
function of the 2nd kind of order :
2 n
K (x ) =
I (x ) I (x )
2
sin
(63)
as the limit of
K n (x ) = lim K (x )
(64)
(2m 1) m 2 p 2 2
1 2m
y +
2 y + p 2 a 2 x 2 p 2 + 2 +
+
y = 0
x
x2
x
( )
y = x m e x y ax p
is a solution of the generalized equation. For instance, for any real 0
(including integers), the general solution can be written as
y = x m e x c1 J ax p + c 2 Y ax p
or for non-integer orders, a general solution can be written as
y = x m e x c1 J ax p + c 2 J ax p
Proof of this statement can be made by the appropriate change of variables
and by reduction of the differential equation to the Bessel equation.
Example 1
( )
( )]
( )
( )]
2
1
y + y + 1 2 y = 0
x
x
0 1 2
1 2 0
y +
2 0 y + (1)( 1)x 21 2 +
y = 0
x2
x
Airy equation
Example 2
1 2 2
9 4 2 3 2
2 0 y + x 2 + 0 + 0 + 4 4 y = 0
y +
x
x
4 9
1
2 3
y 2 (x ) = x 2 J 1 ix 2
3
3
2 3
y 2 (x ) = x I 1 x 2
3
3
3 3 3
33
3
3
2
x 2 2
Bi(x ) =
x + I 1 x 2
I 1
3 3 3
33
which are called Airy functions. The next plot shows
the graph of Airy functions
Bi ( x )
Ai ( x )
p
p
2a p
y (x ) = xY 1
x2
p
p
Solutions of the Airy equation can be obtained in this case much faster.
c) Equation
y + a 2 e 2 x p 2 y = 0
has solutions
y (x ) = J p ae x
( )
(ae )
(ae )
y (x ) = J p
y (x ) = Y p
Self-adjoint form of BE
(x ) =
a1
1 a0 dx
1 2 dx
1
1
e
= 2 e x = 2 e ln x =
a0
x
x
x
After multiplication of BE by
+ 2 x y = 0
x
[xy ] +
1
it can be reduced to self-adjoint form
x
(identify p(x ) = x )
xyn ( x )ym ( x ) dx = 0
for n m
L1
0xL
boundary conditions:
Dirichlet y (x ) x = L = 0
II
Neumann
III Robin
y (x ) x = L = 0
[y (x ) + Hy(x )]x = L
=0
We are looking for the values of the parameter which provide nontrivial solutions y (x ) = c 1 J (x ) satisfying boundary conditions I-III.
These values can be found by substitution of the solution into the
boundary conditions I-III as the positive roots of the following equations:
Equations for eigenvalues
J (L ) = 0
II
J +1 (L ) +
III
J (L ) = 0
L
( 0 = 0 is also an eigenvalue when = 0 )
d
J (x ) = 0
J (x ) = 0
dx
J +1 (x ) +
J (x ) = 0
x
J +1 (L ) + H + J (L ) = 0
L
Proof:
y (x ) + Hy (x )
d
=
J (x ) + HJ (x )
( = J (x ) + HJ (x ) , Oz)
dx
J (x ) + HJ (x )
= J +1 (x ) +
x
= J +1 (x ) + H + J (x )
x
J 0 (L ) = 0
J 1 (L ) = 0
(and 0 = 0 is also eigenvalue)
J 1 (L ) + HJ 0 (L ) = 0
xJ ( n x )J ( m x )dx =
0
0
2
N
nm
n=m
Norm of eigenfunctions
2
,n
= xJ ( n x )dx
2
x2
=
2
=
L2
2
2
2
J ( n x ) + 1
2 x 2
2
2
J ( n L ) + 1
2 L2
2
J ( n x )
2
J ( n L )
x2
= J2 ( n x ) J 1 ( n x ) J +1 ( n x )
2
0
0
The derivative can be expressed as (use chain rule and identity in sec. 6)
d
J ( n x )
=
J ( n x )
dx
J ( n x )
= n J +1 ( n x ) +
n x
N2,n
= xJ 2 ( n x )dx
= n J +1 (n x ) +
J (n x )
x
or if we use the other identity for lower order then
d
J ( n x )
=
J ( n x )
dx
J ( n x )
= n J 1 ( n x )
n x
= n J 1 ( n x )
J ( n x )
Then taking into account that eigenvalues n satisfy equations I-III (that
simplifies expressions), the squared norm for specific boundary conditions
is given:
Bessel-Fourier Series
N2,n
II
N2,n
III
N2,n
L2 2
J +1 (n L ) or
2
2
L2
1 2 2 J2 (n L )
=
2
n L
L2
2
H2
2
2 + 1 2 2
n L
n
L2 2
J 1 ( n L )
2
2
L2
N 0 ,0 =
2
J (n L )
The obtained orthogonal systems can be used for constructing the function
expansion in a generalized Fourier series
f ( x ) = an J ( n x )
n =1
an =
xJ ( n x ) f ( x ) dx
0
2
xJ ( n x ) dx
0
xJ ( n x ) f ( x ) dx
0
N2,n
y ( L) = 0
f ( x ) = an J 0 ( n x ) ,
n =1
where an =
2
L2
xJ ( n x ) f ( x ) dx
0
J2+1 ( n L )
an =
xJ 0 ( n x ) dx
0
2
0 ,n
J 1 ( n ) 1
2 J 1 ( n )
=
n N02,n L2 n J 12 ( n L )
2 J 1 ( n ) J 0 ( n x )
9 n =1 n J 12 ( 3n )
y ( L ) = 0
J +1 (L ) +
L2
L2
2
1 2 2 J2 (n L ) and N 02,0 =
=
N2,n
2
2
n L
Fourier-Bessel series:
=0
0
f ( x ) = a0 + an yn( ) ( x ) ,
where
n =1
an =
a0 =
xJ 0 ( n x ) f ( x ) dx
0
N2,n
2 L
xf ( x ) dx
L2 0
L
>0
f ( x ) = an yn( ) ( x ) ,
n =1
where
an = xJ ( n x ) f ( x ) dx
0
N2,n
an =
xdx
0
2
0 ,0
1
9
an =
xJ 0 ( n x ) dx
0
2
0 ,n
L2 J 1 ( n )
2 J 1 ( n )
=
2
2 n J 0 ( n L ) 9 n J 02 ( 3n )
Maple solutions:
=0
=1
SF-1-2-0.mws
SF-1-2-1.mws
y ( L ) + Hy ( L ) = 0
J +1 ( L ) + H + J ( L ) = 0
L
f (x )
= an yn( ) ( x )
n =1
where an =
xJ 0 ( n x ) f ( x ) dx
0
N2,n
SF-1-3.mws
:= 0
> L:=3;
L := 3
> f(x):=1-Heaviside(x-1);
f( x ) := 1 Heaviside ( x 1 )
Characteristic equation:
> w(x):=BesselJ(nu,x*L);
w ( x ) := BesselJ ( 0 , 3 x )
> plot(w(x),x=0..10);
Eigenvalues:
> lambda:=array(1..200);
:= array ( 1 .. 200 , [ ] )
> N:=n-1;n:='n':i:='i':m:='m':y:='y':x:='x':
N := 24
Eigenfunctions:
y[n]:=BesselJ(nu,lambda[n]*x);
yn := BesselJ ( 0 , n x )
Squared Norm:
>NY[n]:=int(x*y[n]^2,x=0..L):
NY[n]:=subs(BesselJ(nu,L*lambda[n])=0,NY[n]):
Fourier-Bessel coefficients:
a[n]:=int(x*y[n]*f(x),x=0..L)/NY[n];
a n :=
BesselJ ( 1 , n )
2
9 BesselJ ( 1 , 3 ) 2
n
n
Fourier-Bessel series:
> u(x):=Sum(a[n]*y[n],n=1..N);
24
u( x ) :=
n=1
2 BesselJ ( 1 , n ) BesselJ ( 0 , n x )
n BesselJ ( 1 , 3 n )
> u(x):=sum(a[n]*y[n],n=1..N):
> plot({f(x),u(x)},x=0..L,discont=true,color=black);
L1
L2
H1 = 1
=0
k1 dx + h1 y
k1
x= L1
h
dy
=0
H2 = 2
k 2 dx + h2 y
k2
x = L2
The general solution is given by
y (x ) = c1 J (x ) + c2Y (x )
A BVP for BE in the finite domain according to the Sturm-Liouville
theorem generates an infinite set of eigenvalues n and corresponding
Example 6
Boundary conditions:
y x= L = 0
1
y x= L = 0
2
J (L1 ) Y (L1 ) c1 0
J (L ) Y (L ) c =
2
2 2
0
We are looking for non-trivial solution of BVP, i.e. both coefficients in
general solution cannot be zero
c1 0
c
2 0
J (L1 ) Y (L1 )
det
= J (L1 )Y (L2 ) J (L2 )Y (L1 ) = 0
J (L2 ) Y (L2 )
The roots of this equation yield the eigenvalues n for which BVP has
non-trivial solutions y n (x ) (eigenfunctions). Oscillatory property of
Bessel functions provides an infinite set of eigenvalues n and
corresponding eigenfunctions are
yn (x ) = c1,n J (n x ) + c2 ,nY (n x )
Determine now the coefficients c1,n and c2 ,n from a system where
eigenvalues are substituted
J (n L1 ) Y (n L1 ) c1,n 0
J ( L ) Y ( L ) c =
n 2 2 ,n
0
n 2
Because a linear system has a singular matrix, solutions for c1,n and c2 ,n
are linearly dependent and can be determined just from one equation, let it
be the second one
c1,n J (n L2 ) + c2 ,nY (n L2 ) = 0
one of the unknowns in this equation is a free parameter, choose
1
1
, then c2 ,n =
c1,n =
(
)
(
J n L2
Y n L2 )
Then eigenfunctions have the form:
y n (x ) =
Eigenfunctions
J (n x )
Y ( x )
n
J (n L2 ) Y (n L2 )
L2
= xyn2 (x )dx
L1
J ( x ) Y ( x )
= x n n dx
Y (n L2 )
L1 J (n L2 )
2
L2
L2
L2
xJ (n x )dx + 2
xY (n x )dx
J (n L2 ) L
Y (n L2 ) L
2
2
1
xJ (n x )Y (n x )dx
J (n L2 )Y (n L2 ) L1
Summary:
y x= L = 0
2
f ( x ) = an y n ( x )
n =1
where
an =
xy (x )dx
2
n
N2,n
Maple examples:
=0
=1
SF-AD-1-0.mws
SF-AD-1-1.mws
L1 = 2 , L2 = 5 f (x ) = 1 H (x 3 )
=0
H1 = 1
k1 dx + h1 y
k
x= L1
1
x = L1
x = L2
x = L1
x = L2
L1
L2
SF-5.mws
h
dy
=0
H2 = 2
k 2 dx + h2 y
k
x = L2
2
The general solution is given by
y (x ) = c1 J (x ) + c2Y (x )
The derivative of the general solution (use chain rule and differential
identities)
d
y ( x ) = c1 J + 1 ( x ) +
J ( x ) + c2 Y + 1 ( x ) +
Y ( x )
dx
x
x
c1 J +1 (L1 ) +
J (L1 ) c2 Y +1 (L1 ) +
Y (L1 ) + c1 H 1 J (L1 ) + c2 H 1Y (L1 ) = 0
L1
L1
c1 J +1 (L2 ) +
J (L2 ) + c2 Y +1 (L2 ) +
Y (L2 ) + c1 H 2 J (L2 ) + c2 H 2Y (L2 ) = 0
L2
L2
Collect terms
c1 J +1 (L1 ) + H 1 J (L1 ) + c2 Y +1 (L1 ) + H 1 Y (L1 ) = 0
L1
L1
J (L2 ) + c2 Y +1 (L2 ) + H 2
c1 J +1 (L2 ) + H 2 +
L
L
2
2
Denote:
a11 = J +1 (L1 ) + H 1 J (L1 )
L1
Y (L2 ) = 0
a12 = Y +1 (L1 ) + H 1 Y (L1 )
L1
a21 = J +1 (L2 ) + H 2 + J (L2 )
L2
Y (L2 )
a22 = Y +1 (L2 ) + H 2
L2
J +1 (L1 ) + H 1 J (L1 )
L1
Y + 1 (L2 ) + H 2 + Y (L2 )
L2
J (L 2 ) = 0
Y +1 (L1 ) + H 1 Y (L1 ) J +1 (L2 ) + H 2
L1
L2
y n (x )
solutions
of
the
BVP
J (n x ) Y (n x )
a21,n
a22 ,n
J (n x )
n J +1 (n L2 ) + H 2 +
L2
J (n L2 )
nY +1 (n L2 ) + H 2
L2
Y (n L2 )
Y (n x )
= xyn2 (x )dx
N2,n
L1
Fourier-Bessel series:
f ( x ) = an y n ( x )
n =1
L2
L2
L1
L1
xy n (x ) f (x )dx
where a n =
L2
xy (x )dx
xy n (x ) f (x )dx
2
n
N2,n
L1
Maple example
L1 = 2 , L2 = 5
H1 = 2 , H 2 = 3
f (x ) = 1 H (x 3)
=0
=1
SF-AD-9-0.mws
SF-AD-9-1.mws
y n (x )
1 x 2 y + n(n + 1) y = 0
Solution of this equation include Legendres functions of degree n of the
1st and the 2nd kind Pn (x ) and Q n (x ) .
1. Legendre Equation
[(
) ]
[(
) ]
y = ak x k
k =0
y = ka k x k 1
k =1
y = k (k 1)a k x k 2
k =2
( 1 x ) k ( k 1) a x
2
k =2
k =2
k =2
k 2
2x kak x k 1 + n ( n + 1) ak x k = 0
k =1
k =0
k ( k 1) ak x k 2 k ( k 1) ak x k 2kak xk + n ( n + 1) ak x k = 0
k =0
k =0
k =2
k =1
k =0
( k + 1)( k + 2 ) ak + 2 x k k ( k 1) ak x k 2kak x k + n ( n + 1) ak x k = 0
k =1
n ( n + 1) a0 + 1 2 a2 + 2 3 a3 + n ( n + 1) 2 a1 x +
k =2
k =2
k (k + 1) n(n + 1)
(n k )(n + k + 1)
ak =
a
k = 2 ,3,...
(k + 1) (k + 2 )
(k + 1) (k + 2 ) k
Coefficients a 0 and a 1 are arbitrary, consider them to be the parameters
for the general solution and collect the terms corresponding to these
coefficients, then the power series solution of the Legendre Equation
becomes
a k +2 =
y (x )
n ( n + 1) 2 n ( n 2 )( n + 1)( n + 3 ) 4 n ( n 2 )( n 4 )( n + 1)( n + 3 )( n + 5 ) 6
= a0 1
x +
x
x + ...
2!
4!
6!
= a 0 L n ,1 (x ) + a 1 L n ,2 (x )
n=0
L1,n (x )
L 2 ,n (x )
a0
a 1 L2 ,0 (x )
n=1
a 0 L1,1 (x )
n=2
a0 1 3 x 2
n=3
a 0 L1,3 (x )
a1 x
a 1 L 2 ,2 (x )
5
a1 x x 3
3
Choose
a 0 = ( 1) 2
n!
a 1 = ( 1)
n 1
2
(n + 1)!
2
n
n 1 n +1
2n !
2n
!
!
2
2 2
Then Legendre functions of the 1st kind for different values of parameter n
generate the following set of polynomials
P0 (x ) = 1
P1 (x ) = x
3 2 1
x
2
2
5 3 3
P3 (x ) = x x
3
2
35 4 15 2 3
x +
P4 (x ) =
x
8
4
8
Recurrence formula
Rodrigues formula
Pn (x ) =
n
1 dn 2
x 1
n
2
2 n! dx
0
mn
1
Pm ( x ) Pn ( x )dx =
1
2
m=n
2n + 1
Fourier-Legendre series
f (x ) = c n Pn (x )
n =0
cn =
f (x )Pn (x )dx
Pn (x )dx
2
= n + f (x )Pn (x )dx
2 1
Maple Solution:
SF-8.mws
1 1
f (x ) = n + Pn (x )dx Pn (x )
2 0
n =0
Integral transform
fn =
f (x )K n (x )dx
f (x ) = f n K n (x )
n =0
> restart;
> with(orthopoly);
[ G , H , L , P, T , U ]
1 3 x2
+
2
2
5 3 3
x x
2
2
3 35 4 15 2
x
x
+
8 8
4
63 5 35 3 15
x
x +
x
8
4
8
> f(x):=Heaviside(x);
f( x ) := Heaviside ( x )
Fourier-Legendre coefficients:
> c[n]:=(n+1/2)*int(f(x)*P(n,x),x=-1..1);
1
1
cn := n +
P ( n, x ) dx
0
Fourier-Legendre series:
> u(x):=sum(c[n]*P(n,x),n=0..10);
1 218295
315315 3 1702701 5 984555 7 1616615 9
u( x ) := +
x
x +
x
x +
x
2 65536
16384
32768
16384
65536
> plot({f(x),u(x)},x=-1..1);
> u(x):=sum(c[n]*P(n,x),n=0..100):
> plot({f(x),u(x)},x=-1..1);
Consider a vector space of square integrable functions L2 [ 1,1] . The span of all
f n ( x ) = cn Pn ( x )
k =1
[ 1,1] .
( f pn )
dx
Legendre polynomials
> restart;
> with(orthopoly):
> plot({P(0,x),P(1,x),P(2,x)},x=-1..1);
P0
P1
P2
> plot({P(3,x),P(4,x),P(5,x)},x=-1..1);
P3
P5
P4
> plot({P(6,x),P(7,x),P(8,x)},x=-1..1);
P6
P7
P8
5.8 Exercises:
1) Show
sin x (x n ) = 0
sin x (x n ) = ( 1) (x n )
n +1
(3 x + 6 ) f (x )dx =
In general
f ( 2 )
3
f (x0 )
[g (x )] f (x )dx = g (x )
0
where g (x0 ) = 0
3) Solve the IVP and sketch the solution curves (use Maple and Laplace
transform):
y y = (t 2 )H (t 2 )
y (0 ) = 0
y (0 ) = 0
y + 2 y + y = 3 (t 2 )
y (0 ) = 1
y (0 ) = 1
1 x >0
sgn(x ) =
1 x < 0
a) Express sgn(x ) in terms of Heaviside step function H (x )
b) Express Heaviside step function H (x ) in terms of sgn(x )
d
sgn(x )
dx
d) Sketch the graph of sgn(x 3)
c)
Calculate
d
J 0 (x ) = J 1 (x )
dx
x ( , ) ,
(HE)
e)
over ( , ) :
H m ( x ) H n ( x )w ( x ) dx = 0
if m n