4 Special Functions and Solutions To Differential Equations
4 Special Functions and Solutions To Differential Equations
From the above definition, it is clear that Γ(x) cannot be defined at x = 0, −1, −2, . . .,
since the limit becomes infinite for any of these values, see Fig. 1. It also has the special
result Γ(1) = 1, which can be deduced from the definition above. We may also define the
Gamma function as an infinite product series:
∞ z
1 Y 1 + n1
Γ(z) = (2)
z n=1 1 + nz
where z = x + iy is a complex variable. This is Euler’s product for Γ(z). The function
converges everywhere except at z = 0, −1, −2, −3, . . .. The Gamma function is one of the
few mathematical functions which is not a direct solution to a differential equation. However,
it plays a significant role in the solution to many equations and special functions.
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 29
The Gamma function also has the following recurrence relationship which is useful for
determining values of Γ(x) for values greater than one, that is:
which can be easily deduced, making it a generalization of the factorial function n!.
The integral form also allows us to define the derivative of the Gamma function, since
we may differentiate under the integral sign and obtain:
Z ∞
0
Γ (x) = e−t tx−1 ln tdt x>0 (7)
0
and Z ∞
00
Γ (x) = e−t tx−1 (ln t)2 dt x>0 (8)
0
By and large the Gamma function is most useful for solving definite integrals. For
example, if the following change of variables are employed we obtain the following alternate
forms: for example, if t = u2 , then we obtain:
Z ∞
2
Γ(x) = 2 e−u u2x−1 du (9)
0
or if t = ln(1/u), then
Z 1 x−1
1
Γ(x) = ln du (10)
0 u
A more complicated but very useful form can be obtained by using Eq. (9) in the following
form:
Z ∞ Z ∞
−u2 2x−1 2
Γ(x)Γ(y) = 2 e u du · 2 e−v v 2y−1 dv (11)
0 0
or Z ∞ Z ∞
2 +v 2 )
Γ(x)Γ(y) = 4 e−(u u2x−1 v 2y−1 dudv (12)
0 0
Further if we introduce u = r cos θ and v = r sin θ we can show (left as an exercise) that:
Z π/2
Γ(x)Γ(y) = 2Γ(x + y) cos2x−1 θ sin2y−1 θdθ (13)
0
or Z π/2
Γ(x)Γ(y)
= cos2x−1 θ sin2y−1 θdθ x > 0, y > 0 (14)
2Γ(x + y) 0
and Z ∞
Γ(a, x) = e−t ta−1 dt a>0 (16)
x
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 31
such that
γ(a, x) + Γ(a, x) = Γ(a) (17)
These functions find uses in probability theory and some fundamental transport problems
heat and mass transfer.
Γ(x)Γ(y)
B(x, y) = x > 0, y > 0 (21)
Γ(x + y)
from which we also observe the following symmetry property:
ap bq cr Γ(p/α)Γ(q/β)Γ(r/γ)
Z Z Z
I= xp−1 y q−1 z r−1 dxdydz = (24)
V αβγ Γ(1 + p/α + q/β + r/γ)
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 32
These integrals as we shall see, are useful in evaluating the multiple integrals associated
with the evaluation of areas, volumes, and moments of many simple and complex geometries.
In the case of a area integrals, bounded by the axes x = 0 and y = 0 and the curve:
x α y β
+ =1 (25)
a b
one would simplify Eq. (24) as:
ap bq Γ(p/α)Γ(q/β)
Z Z
I= xp−1 y q−1 dxdy = (26)
A αβ Γ(1 + p/α + q/β)
Example 1
Show that the integral
Z π/2
1 3 Γ(2/3)Γ(5/6)
sin 3 θdθ = √ (27)
0 2 π
Example 2
Given the curve:
x α y β
+=1 (28)
a b
in the first quadrant, prove the integral defined by Eq. (26).
Example 3
Consider the curve referred to as a hyper-ellipse defined by the function:
x n y n
+ =1 (29)
a b
where a, b, n > 0. Find the area under the curve. Verify that the solutions for a = b and
6 b and n = 2 (ellipse) are obtained from the general solution.
n = 2 (circle) and for a =
Example 4
Show that the solution for the following differential equation:
d2 φ dφ
2
+ 3η 2 =0 (30)
dη dη
subject to the conditions:
φ(0) = φ0
φ(η → ∞) = φ∞
can be obtained on terms of the incomplete gamma function.
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 33
Additional properties include erf(0) = 0 and erf(∞) = 1. The complementary error function
denoted as erfc x occurs frequently in diffusion problems. It is defined as:
Z ∞
2 2
erfc x = √ e−t dt (34)
π x
such that
erfc x = 1 − erf x (35)
The error function and complementary error function can also be expressed in terms of
the incomplete Gamma functions. It will be left as an exercise for you to verify that:
Z x
2 2 1
erf x = √ e−t dt = √ γ(1/2, x2 ) (36)
π 0 π
and Z ∞
2 2 1
erfc x = √ e−t dt = √ Γ(1/2, x2 ) (37)
π x π
d2 φ dφ
2
+ 2η =0 (38)
dη dη
subject to φ = 1 when η = 0 and φ → 0 when η → ∞. The solution can be found by means
of the method of reduction of order. That is we will define w = dφ/dη to obtain:
dw
+ 2ηw = 0 (39)
dη
Separating variables allows us to write:
dw
= −2ηdη (40)
w
or after integrating
ln w = −η 2 + ln C1 (41)
or
w
ln = −η 2 (42)
C1
which gives
dφ 2
w= = C1 e−η (43)
dη
Integrating once more, yields:
Z η
2
φ = C1 e−η dη + C2 (44)
0
Finally application of the two boundary conditions yields:
Z 0
2
1 = C1 e−η dη + C2 = C2 (45)
0
and Z ∞
2
0 = C1 e−η dη + C2 (46)
0
or
−1 1
C1 = R ∞ −η 2 = −√ (47)
0
e dη π/2
The above equation may be evaluated by means of Eq. (9) and Eq. (14). Again, it will
be left as an exercise for you to show that:
Z ∞ √
−η 2 π
e dη = (48)
0 2
Returning to our solution we obtain:
Z η
2 2
φ=1− √ e−η dη = 1 − erf η = erfc η (49)
π 0
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 35
d2 y dy
x2 2
+ x + (x2 − n2 )y = 0 n≥0 (50)
dx dx
The general solution to this equation can be found using the series form through the
application of the Method of Frobenius. Provided that n is not an integer, the general
solution is of the form:
This is referred to as a Bessel function of the second kind. Since both Jn (x) and Yn (x)
are linearly independent solutions, they are valid for all values of n, and hence the general
solution to Eq. (50) is taken as:
The functions Jn (x) and Yn (x) are shown in Figs. 3 and 4 for the values of n = 0, 1 and
2. In problems where x = 0 is part of the solution domain, the Yn (x) must be excluded since
they are undefined at x = 0.
The Bessel functions of the first and second kind have several special characteristics,
particularly when the the order is half integral. In these cases the functions reduce to
elementary forms of sine and cosine functions. For example if n = 1/2 we have:
r
2
J1/2 (x) = sin(x) (57)
πx
r
2
J−1/2 (x) = cos(x) (58)
πx
r
2
Y1/2 (x) = − cos(x) (59)
πx
r
2
Y−1/2 (x) = sin(x) (60)
πx
Some useful recurrence relationships are:
2n
Jn+1 (x) = Jn (x) − Jn−1 (x) (61)
x
d 1
Jn (x) = [Jn−1 (x) − Jn+1 (x)] (62)
dx 2
d
x Jn (x) = xJn−1 (x) − nJn+1 (x) = nJn (x) − xJn+1 (x) (63)
dx
d n
x Jn (x) = xn Jn−1 (x) (64)
dx
d −n
x Jn (x) = −x−n Jn+1 (x) (65)
dx
The above equations are also valid if Jn (x) is replaced by Yn (x).
xi+1
0 = xi0 + π (66)
d2 y dy
x2 2
+ (1 − 2a)x + [b2 c2 x2c + (a2 − c2 n2 )]y = 0 n≥0 (67)
dx dx
which has the general solution:
y(x) = xa [C1 Jn (bxc ) + C2 Yn (bxc )] (68)
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 38
The above equation and others like are found by applying multiple changes in variables.
We will discuss a few others in class and or in assigned problems. Use of equations such as
Eq. (67), is quite straight forward as one merely writes a differential equation in standard
form and then proceeds to develop a system of equations to define all of the coefficients in
terms of the variable a, b, c and n.
Example 5
Given the differential equation:
d2 y dy
x2 2
+ 5x + (4x2 + 3)y = 0 (69)
dx dx
find the solution in terms of Bessel functions.
Example 6
Airy’s differential equation is given by:
2
y 2d
x + xy = 0 (70)
dx2
find the solution in terms of Bessel functions.
d2 y dy
x2 2
+ x − (x2 + n2 )y = 0 n≥0 (71)
dx dx
The solution to the above equation is in the form of:
π
[I−n (x) − In (x)] n 6= 0, 1, 2, ...
2 sin(nπ)
Kn (x) = π (75)
lim
[I−p (x) − Ip (x)] n = 0, 1, 2, ...
p→n 2 sin(pπ)
This is referred to as a modified Bessel function of the second kind. Since both In (x)
and Kn (x) are linearly independent solutions, they are valid for all values of n, and hence
the general solution to Eq. (71) is taken as:
d n
x Kn (x) = −xn Kn−1 (x) (88)
dx
d −n
x Kn (x) = −x−n Kn+1 (x) (89)
dx
These expressions only cover a number of useful relationships involving the Bessel func-
tions and modified Bessel functions. The student is referred to the various references and
handbooks for additional expressions involving integrals of Bessel functions, namely the
book by Gradshteyn and Ryzhik (2007). Of course the mathematical packages Maple and
Mathematica can also assist you quite well.
An alternate form which is more frequently used is obtained by introducing the change
of variable x = sin φ:
Z φ
dφ
F (φ, k) = p 2
k2 < 1 (91)
0 2
(1 − k sin φ)
0
√ The parameter k is called the modulus of the elliptic integral and the parameter k =
1 − k 2 , the complementary modulus with respect to k. When the variable x = 1 or
φ = π/2, the elliptic integral is referred to as the complete elliptic integral of the first kind,
and is denoted as:
Z π/2
dφ
K = K(k) = p (92)
0 (1 − k 2 sin2 φ)
When the complementary modulus k 0 is the argument of the complete elliptic integral,
it is frequently denoted as:
Z π/2
0 0 dφ
K = K(k ) = p (93)
0 (1 − k 02 sin2 φ)
The elliptic integral of the second kind is defined as:
Z xr
1 − k 2 x2
E(x, k) = dx k2 < 1 (94)
0 1 − x2
or, more frequently as:
Z φ q
E(φ, k) = 1 − k 2 sin2 φdφ k2 < 1 (95)
0
Once again, if the variable x = 1 or φ = π/2, the elliptic integral is referred to as the
complete elliptic integral of the second kind, and is denoted as:
Z π/2 q
E = E(k) = 1 − k 2 sin2 φdφ (96)
0
When the complementary modulus k 0 is the argument of the complete elliptic integral,
it is frequently denoted as:
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 42
Z π/2 q
0 0
E = E(k ) = 1 − k 02 sin2 φdφ (97)
0
Finally, we define the elliptic integral of the third kind which has the form:
Z x
dx
Π(x, n, k) = p k2 < 1 (98)
2 2 2 2
0 (1 + nx ) (1 − x )(1 − k x )
Once again, if the variable x = 1 or φ = π/2, the elliptic integral is referred to as the
complete elliptic integral of the third kind, and is denoted as:
d2 y dy
(1 − x2 ) 2
− 2x + n(n + 1)y = 0 n ≥ 0, |x| < 1 (104)
dx dx
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 43
or
d 2 dy
(1 − x ) + n(n + 1)y = 0 n ≥ 0, |x| < 1 (105)
dx dx
The solution of Eq. (104) is found in terms of:
The Legendre function of the second kind for the case when n = 0, 1, 2, 3, . . ., is defined
by:
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 44
n
1 1+x X 1
Qn (x) = Pn (x) ln − Pm−1 (x)Pn−m (x) (110)
2 1 − x m=1 m
or
Q0 (x) = 12 ln 1+x
1−x
Q1 (x) = P1 (x)Q0 (x) − 1
Q2 (x) = P2 (x)Q0 (x) − 23 x (111)
Q3 (x) = P3 (x)Q0 (x) − 52 x2 + 3
2
..
.
It is clear that that singularities at x = ±1 exist in the first term of the Qn (x) and
hence must be avoided if these points exist in the solution domain of an application. The
first 5 Legendre polynomials are plotted in Figs. 7 and 8 for Pn (x) and Qn (x). For the
general case of n not being an integer, the Legendre functions may be defined in terms of
the Hypergeometric function. We will discuss these at the conclusion of the next section.
∞
Γ(a)Γ(b) X Γ(a + n)Γ(b + n) xn
F (a, b; c; x) = |x| < 1, c 6= 0, −1, −2, . . . (112)
Γ(c) n=0 Γ(c + n) n!
or ∞
X (a)n (b)n xn
F (a, b; c; x) = |x| < 1, c 6= 0, −1, −2, . . . (113)
n=0
(c)n n!
ENGR 9420 - Engineering Analysis: Special Functions and Differential Equations 45
where the operation defined by (δ)n is used to represent in a shorthand fashion the following:
Γ(δ + n)
(δ)n = (114)
Γ(δ)
d2 y dy
x(1 − x) 2
+ [c − (a + b + 1)x] − aby = 0 (116)
dx dx
Another linearly independent solution, can be found yielding the following general solution:
dk (a)k (b)k
k
F (a, b; c; x) = F (a + k, b + k; c + k; x) (118)
dx (c)k
Finally, the Hypergeometric function also has a useful integral representation:
Z 1
Γ(c)
F (a, b; c; x) = tb−1 (1 − t)c−b−1 (1 − xt)−a dt (119)
Γ(b)Γ(c − b) 0
Γ(2n + 1) n n 1−n 1 1
Pn (x) = x F (− , ; − n; 2 ) (124)
2n [Γ(n
+ 1)] 2 2 2 2 x
Γ( 21 )Γ(n + 1) −n−1 n 1+n 3 1
Qn (x) = n+1 3 x F (1 + , ;n + ; 2) (125)
2 Γ(n + 2 ) 2 2 2 x
This is just a small sampling of such relationships. Additional functions may be defined on
the basis of other hypergeometric functions such as the Confluent Hypergeometric functions
of the first and second kind.
References
Abramowitz, M. and Stegun, I, Handbook of Mathematical Functions, Dover Publications,
1961.
Andrews, L.C., Special Functions of Mathematics for Engineers, SPIE Press, 1998.
Davis, H.T., Introduction to Non-Linear Differential and Integral Equations, Dover, 1962.
Farrell, O.J. and Bertram, R., Solved Problems in Analysis as Applied to Gamma, Beta,
Legendre, and Bessel Functions, Dover, 1963.
Gradshteyn, I.S. and Ryzhik, I.M., Tables of Integrals, Series, and Products, Academic
Press, 2007.
Gray, A. and Mathews, G.B., A Treatise on Bessel Functions and Their Applications to
Physics, Dover Publications, 1966.
Lebedev, N.N., Special Functions and Their Applications, Dover Publications, 1972.
Sneddon, I.N., Special Functions of Mathematical Physics and Chemistry, Oliver and Boyd,
1955.