Chapter 8
Chapter 8
Chapter 8
Chapter 8
Special Functions
INTRODUCTION
Special functions are found in mathematical and physical
problems . Some of these functions which will be studied here are
Gamma, Beta, and error functions .
I- Gamma FUNCTION:
The Gamma functions is defined as (n) , and is written as :
(n) x n1e x dx , n 0 (a)
0
Prove :
We can prove Equation (b) as follows :
1
Special functions Chapter 8
For (n) x n 1e x dx , integrating by parts the right side gives ,
0
e dx e ( x ) (n 1) e x x n2 dx
( n) x n1 x x n1
0 (c)
0 0
Then
(n) (n 1)( n 2) e x x n3 dx , finally ;
0
(n) (n 1)1
(n 1)
(ii) (n) ,(for n 0 , and fraction) (f)
n
We can prove that ; (1) 1 as follows :
2
Chapter 8 Special functions
(1) e x dx e x 0
1
0
N (n) N (n)
1 1 1.6 0.8935
1.1 0.9514 1.7 0.9086
1.2 0.9182 1.8 0.9314
1.3 0.8975 1.9 0.9618
1.4 0.8873 2 1
1.5 0.8862
Table(1)
Example 1:
Evaluate :
(6) , (4) , (5.6) , (3.2)
Solution:
From equation(5) ; (6) 5(5) 5(4)(4) 51 120 , and
(4) 31 6 ,
3
Special functions Chapter 8
Example 2:
Evaluate :
(1.4)
Solution:
(0.4) (0.6) (1.6)
(1.4)
1.4 (1.4)(0.4) (1.4)(0.4)(0.6)
(1.6)
2.65923
(1.4)( 0.4)(0.6)
Theorem :
( p) ( p 1) , where 0 p 1
sin p
Example 3:
Evaluate :
1 2
( ) ( )
3 3
Solution:
From the above theorem ,
1 2 2
( ) ( )
3 3 3
sin
3
Example 4:
Prove that :
1
( )
2
4
Chapter 8 Special functions
Solution:
1
For n
2
1
1
( ) z 2 e z dz ,
2 0
1
1
( ) z 2 e z dz x 1e x (2 x)dx
2
2 0 0
Then,
2
1
e ( x y ) dxdy
2 2
( )
2 4
0 0
2
2 e r
2
0
d
0
2
2 (0 1)d
0
1
Then ( )
2
5
Special functions Chapter 8
II-Bessel Function
INTRODUCTION
Special functions are of fundamental importance since they
are applied to a large number of problems which are of interest to
engineers . Of these are problems on conduction of heat , high
frequency currents in cylindrical conductors , vibration of
membranes , and circular sheets of water .
There are various definitions for Bessel functions . Of these , they are
solutions of Bessel differential equation :
x x 2 n 2 y 0 , n 0
d2y dy
x2 2
(1)
dx dx
This is called Bessel differential equation of order n . It’s general
solution is given by:
y G.S . A1 J n ( x) A2Yn ( x) (2)
where Jn(x) is called Bessel function of first kind and order n , while
Yn(x) is called Bessel function of second kind and order n.
Now in practice we usually meet (1) in the form :
x2
d2y
2
x
dy
k 2 x2 n2 y 0 (3)
dx dx
To reduce (3) to the form (1) ,put kx=t , then ;
dy dy dt dy d2y d2y
k , and 2 k 2 2 ,
dx dt dx dt dx dt
Substituting in (3) , we get :
6
Chapter 8 Special functions
t 2 n 2 y 0 , i. e. :
t 2 2 d 2 y t dy
2
k 2
k
k dt k dx
t2
d2y
dt 2
dy
dx
t t 2 n2 y 0 , (4)
In this case, Jn(kx) is called Bessel function of the first kind and order
n with parameter k.. Similarly, Yn (kx) is Bessel function of second
kind and order n with parameter k .
x x 2 y 0 , i.e. :
d2y dy
x2 2
dx dx
d 2 y 1 dy
y0 (5)
dx 2 x dx
Applying Frobenius method i. e. , we assume the solution of this
equation as :
y xc (a0 a1x a2 x 2 .......) , a0 0 , then ,
dy
a0cx c 1 a1 (c 1) x c a2 (c 2) x c 1 ....... , and ,
dx
d2y
2
a0c(c 1) xc 2 a1 (c 1)(c) x c 1 a2 (c 2)(c 1) x c .......
dx
Substituting in (5) , we get :
a0c(c 1) xc 2 a1 (c 1)(c) xc 1 a2 (c 2)(c 1) xc .......
7
Special functions Chapter 8
a0cx c 1 a1 (c 1) xc a2 (c 2) xc 1 .......
x
xc (a0 a1x a2 x2 .......) 0
equal roots .
(2) xc 1 : a1 (c)(c 1) a1 (c 1) 0 , then ;
a1 c 1 0 , i.e. a1 0
2
a2 c 2 a0 0 , i.e. a1 0
2
ar
ar 2
c r 22
And since a1 0 , then a3 a5 a7 ....... 0 , and ;
a0 a2 a0
a2 a4 = , …….
c 22
c 4 c 22 c 42
2
Then ,
x2 x4
y1 a0 x c 1 ......
c 2 c 2 c 4
2 2 2
8
Chapter 8 Special functions
x2 x4 x6
J 0 ( x) 1 ..... , which is formula (6) in the
22 2242 22 4262
above .
For n = 1, we get ;
x x3 x5 x7
J1 ( x ) ..... (9)
2 2 2.4 2 2.4 2.6 2 2.4 2.6 2.8
9
Special functions Chapter 8
We notice that :
(1) J 1 ( x) is an odd function of x ,
(2) J 1 (0) 0
1
J0( x)
J1( x)
Fig. (1)
10
Chapter 8 Special functions
Important formulas :
1 1
If we put n , and n in equation of , J n (x) , we can get
2 2
Two important formulas usually used as a result when solving
problems related to Bessel functions , (expression for J 1 , and
2
J 1) .
2
2
(i) J 1 (x) sinx,
2 x
2
(ii) J 1 ( x) cos x
-
2 x
Proof :
( x / 2)n 2 r
For the equation ; J n ( x) (1) r ,
r 0 r!(n r 1)
1
put n , we get :
2
11
Special functions Chapter 8
1
2r
( x / 2) 2
J 1 / 2 ( x) (1) r ,
r 0 r! (r 3 / 2)
but ;
1 (2n) 1*
( r ) 2 n ,
2 2 * n1
1
And ( ) ,
2
then ,
( x / 2) 1 / 2 ( x / 2) 5 / 2
J 1 / 2 ( x)
(1 / 2) 1! (3 / 2)(1 / 2)
( x / 2) 9 / 2
...........
2! (5 / 2)(3 / 2)(1 / 2)
12
Chapter 8 Special functions
( x / 2) 1 / 2 x 2 x 4 x 6 2
1 3! 5! 7! ...... x sin x
(1 / 2)
1
(ii) Put n , we get :
2
( x / 2) 2r 1 / 2
J 1 / 2 ( x) (1) r
r!(r 1 / 2)
r 0
( x / 2) 1 / 2 ( x / 2) 3 / 2 ( x / 2) 7 / 2
.....
(1 / 2) 1!(3 / 2) 2!(5 / 2)
( x / 2) 1 / 2 x 2 x 4 x 6
1 2! 4! 6! ......
2
cos x
x
Example (1) :
Prove that :
13
Special functions Chapter 8
( x / 2)n 2 r
J n ( x) (1) r , then;
r 0 r!(n r 1)
n 2r
r ( x / 2)
J - n (x) (1)
r!(r n 1)
,
r 0
n 1 ( x / 2) n 2r ( x / 2) n 2r
J n ( x) (1) r (1) r
r!(r n 1) r n r!(r n 1)
,
r 0
( x / 2) n 2 r
to J n ( x) (1) r
.
r n r! (r n 1)
14
Chapter 8 Special functions
k n ( x / 2) n 2k
J n ( x) (1)
(n k )!(k 1)
k 0
( x / 2) n 2 k
(1) n
k o
(1) k
k! (n k 1)
(1)n J n ( x)
Differentiation formulae:
(1)
d n
x J n ( x) x n J n -1 ( x), (10)
dx
d J n ( x) J n 1 ( x)
,
dx x n
(2) (11)
xn
15
Special functions Chapter 8
d n
x J n ( x) x n J n -1 ( x)
dx
Proof:
( x / 2)n 2 r
Since , J n ( x) (1) r ,
r 0 r!(n r 1)
x 2n2r
then , [ x J n ( x)]
n
(1) n 2 r
r
,
r o 2 r! (n r 1)
d n d x 2n2r
and , [ x J n ( x)] (1) r n 2 r
dx dx r o 2 r! (n r 1)
x 2 n 2 r 1
(1) n 2 r 1
r
r 0 2 r!(n r )
( x / 2) 2 r ( n 1)
x n (1) r
r 0 r! (n 1) r 1
x n J n 1 ( x)
d n
Then , [ x J n ( x)] x n J n 1 ( x)
dx
16
Chapter 8 Special functions
( x / 2)n 2 r
Since , J n ( x) (1) r
,
r 0 r!(n r 1)
J ( x) x 2r
then , n n (1) r n 2 r ,
x r 0 2 r! ( n r 1)
d J n ( x) d
x 2r
and ,
dx x n dx
r 0
(1) r
2 n 2 r r! (n r 1)
x 2r 1
(1) r
r 0 2 n2r 1 (r 1)! (n r 1)
17
Special functions Chapter 8
d J n ( x) x 2r-1
(1) r
dx x n r 1
series as:
2 n 2 r 1.(r 1)!(n r 1)
d J n ( x) d x 2 k 1
(1) n 2 k 1
k 1
dx x n dx r 0 2 k!(n k 2)
n 2k 1
n k ( x / 2)
x (1)
k! (n k 2)
r 0
J n 1 ( x)
xn
d J n ( x) J ( x)
Then , n 1 n ,
dx x n
x
18
Chapter 8 Special functions
x 1
t
e 2 t
, t0 .
x 1
t
i.e. e 2 t
n
J n ( x) t n (12)
x 1 xt x
t
e 2 t
e e 2 2t
, but ,
2
xt
xt 1 xt
e 1 ......
2
2 21 2
n n 1
1 xt 1 xt
......
n1 2 n 11 2
19
Special functions Chapter 8
1 x
x 2
x
e 2t
1 ......
2t 2 1 2t
n 1
1 x 1 x
n
......
n 1 2t
n 11 2t
n
1 x x2
1
22n 2 J n ( x)
......
n1 2
n n2
1 x 1 x
......
n1 2 n 11 2
1 x n 1 x n 2
n
n2
n 1
........
2 n n 1 2 n 11
1 n
xn
1
x2
......
22n 2
2 n n 1
20
Chapter 8 Special functions
1 J n ( x) J n ( x)
n
Then by definition :
J n ( x) 1 J n ( x)
n
x 1
t
Then : e 2 t
n
J n ( x) t n
Example (2):
Prove that :
Solution:
21
Special functions Chapter 8
x i
( e e i )
e 2
n
J n ( x)e in
e i e i
But , ix sin
2
Then ;
e ix sin
n
J n ( x )e in
J n ( x)[cos n i sin n ]
n
22
Chapter 8 Special functions
cos (x sin )+i sin (x sin ) = Jo(x)+ 2J2(x) cos 2 + 2J4(x) cos 4 + …
Recurrences formulas:
n
J n-1 x J n x J n x
/
(1) (13)
x
23
Special functions Chapter 8
n
J n 1 x J n x - Jn x
/
(2) (14)
x
(3) J n 1 ( x) J n 1 ( x)
2n
J n ( x) (15)
x
Proof :
nx n 1 J n ( x) x n J n ( x) x n J n 1 ( x)
n
J n ( x) J n ( x) J n 1 ( x) , then ;
x
n
J n-1 x J n x J n x
/
24
Chapter 8 Special functions
n
J n 1 x J n x - Jn x
/
J n 1
( x) J n 1 ( x)
2n
J n ( x)
x
[ J n 1 ( x) - J n 1 ( x)] 2 J n ( x)
Integration formulae:
25
Special functions Chapter 8
(1) x n J n -1 ( x) x n J n ( x) c1 (17)
(2) x -n J n 1 ( x) x -n J n ( x) c 2 (18)
Proof :
d n
x J n (x) x n J n1 ( x) , we find :
dx
x n J n 1 ( x)dx x n J n ( x) c1
x n J n 1 ( x)dx x n J n ( x) c 2
26
Chapter 8 Special functions
Example (3):
Solution:
4
J 2 ( x) J 3 ( x) J 1 (x) , (19)
x
Also:
2
J 1 ( x) J 2 ( x) J 0 (x) (20)
x
Then :
4 2
J 3 ( x) ( J 1 ( x) J 0 ( x)) J 1 ( x)
x x
8 4
( 2
- 1) J 1 ( x)- J o ( x)
x x
Example (4):
Express J3/2(x) in terms of sin x and cos x
27
Special functions Chapter 8
Solution:
2
But J 1 / 2 ( x) sin x , and :
x
2
J 1 / 2 ( x) cos
x
2 sin x
Then J 3 / 2 ( x) ( cos x )
x x
Example (5):
Evaluate:
J 3 ( x)dx , x 4 J 1 ( x)dx
Solution:
28
Chapter 8 Special functions
J 3 ( x)dx x 2 ( x 2 J 3 ( x)) dx .
x n J n 1 ( x)dx x n J n ( x) c1 ,
J 3 ( x) dx x 2 ( x 2 J 2 ( x)) 2 x 1 J 2 ( x) dx
x n J n 1( x) dx x n J n ( x) c,
29
Special functions Chapter 8
x J1 ( x)dx x 2 ( x 2 J1 ( x)) dx
4
J n ( x) cos n J n ( x)
sin n n 0,1,2,.....
Yn ( x ) (21)
lim J p ( x) cos q - J -q (x) n 0,1,2.....
q n
sin q
2 x 1 n 1
Yn ( x) [ln( ) ]J n ( x) (n k 1)!( x / 2) 2k n
2 k 0
30
Chapter 8 Special functions
1 ( x / 2) 2k n
k 0
(1) k [ (k ) (n k )]
k!(n k )!
, (22)
1 1 1
Where , lim 1 ....... log n 0.5772 is Euler’s
n 2 3 n
constant , and ,
1 1 1 1
(q) 1 ...... , (0) 0 (23)
2 3 4 q
Y0(x)
0.5
Y1(x) x
Fig. (2)
31
Special functions Chapter 8
0
2
c J 2 (c )
2 n 1
c
x J n ( x) J n ( x)dx 2 ,
0 c J / (c )
2 2 n
c 2 2
2 J n 1 (c )
(22)
where and are any two different roots of the equation:
32
Chapter 8 Special functions
f ( x) A1 J 0 (a1 x) A2 J 0 (a 2 x) ... An J 0 (a n x)
Ap J 0 (a p x) (24)
P 1
1 1
xJ 0 (a n x) f ( x)dx An x J 02 a n x dx
0 0
33
Special functions Chapter 8
1
1 2
x J 02 a x dx J 1 a
0 2
Then ,
1
1
xJ 0 (a n x) f ( x)dx An J 12 a n (25)
0 2
And ,
2 1
An 2 xJ 0 (a n x) f ( x)dx
J 1 (a n ) 0
(26)
Example (6):
order .
Solution:
1 A1 J 0 (a1 x) A2 J 0 (a 2 x) ... An J 0 (a n x)
2 1
An xJ 0 (a n x)dx
J 12 (a n ) 0
Then ,
34
Chapter 8 Special functions
2 1 2 1
An J 1
( a n
)
J 12 (a n ) a n a n J 1 (a n )
Then ,
2 J 0 (a n x)
1
1 a n J 1 (a n )
35
Special functions Chapter 8
y a 0 x m a1 x m 1 a 2 x m 2 .... , a 0 0 (29)
Substituting from y and its first two derivatives in (27) , then
equating the coefficients of x m , x m 1 , and x m 2 to zeros , we
get :
a1 0 ,
n(n 1)
a2 a0 ,
2(2n 1)
a3 0 ,
n(n 1)(n 2)(n 3)
a4 a0 ,
2 * 4 * (2n 1)(2n 3)
Hence one solution of equation (27) is :
n(n 1) n 2 n(n 1)(n 2)(n 3) n 4
a0 x n x x .......
2(2n 1) 2 * 4 * (2n 1)(2n 3)
Giving a 0 its conventional value namely
2n 1
n 2
,
2 n1
36
Chapter 8 Special functions
2n1 n n(n 1) n 2
Pn ( x) x x
2
2 n n1 2(2n 1)
2n-2r ! x
1
n-2 r
Pn x
N
r
(31)
r 0 2 r! n-r ! n-2r
n
n/2 if n is even
where N
(n 1) / 2 if n is odd
Rodrigue’s formula
As well as , Legendre polynomials can be obtained using
Rodrigue’s formula as follows:
37
Special functions Chapter 8
1 dn
Pn ( x) n n
(x 2 1) n (32)
2 n! dx
P0(x) = 1 and P1 ( x) x , P2 ( x)
1
3x 2 1 ,
2
P3 ( x)
1
5x 2 3x , P4 ( x) 1 35x 4 30 x 2 3 , … as
2 8
shown in the following figure .
Pn (x)
1 P0
P1
P4 x
-1 P3 1
P2
-1
38
Chapter 8 Special functions
Proof:
We can written the left side of equation (34) as ;
1
[1 (2hx h 2 )]1 / 2
1 2hx h 2
39
Special functions Chapter 8
Or ;
1.3.5 .... (2n - 1) n n(n 1) n2
x x
n! 2(2n 1)
Which is Pn ( x) , i.e.
1
Pn ( x) h n
1 2hx h 2 n 0
40
Chapter 8 Special functions
(1 2 xh h 2 ) 3/2
n 0
n h n-1 Pn ( x)
1
Since Pn ( x) h n , then we can write the
1 2hx h 2
n 0
n 0
n (1 - 2 xh h 2 )h n-1 Pn ( x) ( x-h) h n Pn ( x)
n 0
But
n 0
( x-h) h n Pn ( x) x h n Pn ( x)- h n 1 Pn ( x) ,
n 0 n 0
then ,
n 0
x h n Pn ( x)- h n1 Pn ( x)
n 0
nPn ( x) h n-1 2 n x Pn ( x) h n
n 0 n 0
41
Special functions Chapter 8
n Pn ( x) hn1
n 0
2(n 1) d n 1 2
n 1 [( x 1)n .x]
2 (n 1)! dx n 1
42
Chapter 8 Special functions
1 dn dn
Pn1 ( x) n ( x 1) 2n n ( x 2 1) n 1 x 2
2 n
2 .n! dx n
dx
which can be manipulated as:
1 dn
Pn1 ( x) n n
( x 2 1) n
2 .n! dx
2n d n 2 n 1 2
( x 1) ( x 1 1)
2 n.n! dx n
1 dn
Pn1 ( x) (1 2n) Pn ( x) n -1 n
( x 2 1) n 1
2 (n - 1)! dx
(1 2n) Pn ( x) Pn1 ( x)
From which, we deduce that :
Pn1 ( x) Pn1 ( x) (2n 1) Pn ( x)
Example 7:
Prove that :
1
Pn ( )d
1
Pn 1 ( x) Pn 1 ( x)
x (2n 1)
Solution:
Integrating both sides of Equation. (38) from x to 1, we get
1 1
then ;
43
Special functions Chapter 8
1
1 1 1
Pn ( )d Pn 1
( ) Pn 1
( )
x 2n 1 x x
But ;
Pn-1(1) = Pn+1(1) = 1 ,
Then ;
1
Pn ( )d
1
Pn 1 ( x) Pn 1 ( x)
x (2n 1)
Series of Legendre Polynomials
We can expanding a given function f(x) (a piecewise
continuous function ) in a series of Legendre polynomial in the
form :
f ( x) Ao Po ( x) A1P1 ( x) A2 P2 ( x) ... An Pn ( x) (40)
k 0
Example 8:
44
Chapter 8 Special functions
where ,
2n 1 1
An
2 1
f ( x).Pn ( x)dx
then ;
x A n Pn ( x) ,
2
n 0
2n 1 1 2
where An
2 1
x Pn ( x)dx
that is ;
1
1 1
A0
2 x 2 dx
3
,
1
1
3
A1
2 x 3dx 0 ,
1
1 2
5 2 (3x 1) 2
A2
2 x .
2
dx
3
1
45
Special functions Chapter 8
7 1 2 (5 x 3 3x)
A3 x . dx 0 ,
2 1 2
Then A4 = A5 = A6 = … = 0.
1 2
Therefore, x2 Po ( x) P2 ( x) ,
3 3
Example 9:
Expand the following function in terms of Legendre
polynomials.
2 x 1 0 x 1
f ( x)
0 1 x 0
Solution:
Since ,
f ( x) An Pn ( x) ,
k 0
where ,
2n 1 1
An
2 1
f ( x).Pn ( x)dx
then ;
2 x 1 0 x 1
f ( x) An Pn ( x) ,
k 0 0 -1 x 0
Where ,
46
Chapter 8 Special functions
2n 1 1
An
2 0
(2 x 1) Pn ( x)dx 0 ,
then ;
11
A0 (2 x 1)dx 1 ,
20
31 7
A1
20
(2 x 1) x dx ,
4
51 (3x 2 1) 5
A2 (2 x 1) dx ,
20 2 8
71 (5 x 3 3x) 7
A3
20
( 2 x 1)
2
dx -
16
,
91 (35 x 4 30 x 2 3) 9
A4 (2 x 1) dx - ,
20 8 8
……
Then , Legendre expansion for the concerned function can be
expressed as :
2 x 1 0 x 1
f ( x) ,
0 - 1 x 0
7 5 7 9
P0 ( x) P1 ( x) P2 ( x) P3 ( x) P4 ( x) ....
4 8 16 8
47
Special functions Chapter 8
Sheet (8)
1- Evaluate:
1 1
2-Show That:
(i) J1(x)=-J0(x) , (ii) x J0(x) =[x J1(x)]
3-Prove that :
2 sin x
J 3 ( x) cos x
2 x x
4- Evaluate:
(i) J5/2 (x) and J-5/2(x) in terms of sines and cosines.
(ii) J3(x) in terms of J0(x) and J1 (x).
5- Prove That:
(i)J2(x) – J0(x)= 2J0(x),
7- Prove That:
J ( x)dx 1
0
1
48
Chapter 8 Special functions
8- Prove That:
x2 2
2
(ii) xJ n ( x)dx [ J n ( x) J n1 ( x) J n1 ( x)] c
2
9- Evaluate Each of The Following Integrals:
1
3
(i) x J 2 ( x)dx , x
3
(ii) J 0 ( x)dx,
0
1
J 1 ( x)
(iii) x 2 J 0 (2 x)d , (iv) dx,
0
x
J 2 ( x)
(v) dx
x2
2(8 2p )
(ii) x = 3
p 1
3
J 1 ( p )
J 1 ( p ) , J1(p) = 0 & 0 < x < 11
p
11-Prove that:
/2
cos(x sin )d
2
J 0 ( x),
0
49
Special functions Chapter 8
50