
1.2. LINEAR ODES WITH VARIABLE COEFFICIENTS 39
Of particular importance in solving problems involving Bessel functions is
knowing the locations of the zeros. The first 5 zeros of, e.g., J
1
are now ob-
tained with the following BesselJZeros command. Note that the argument 1
is expressed in floating point form, i.e., 1.0, in order to numerically evaluate the
zeros. The command BesselYZeros will generate the zeros of the Y
n
(x).
>
Zeros_J1:=BesselJZeros(1.0,1..5);
Zeros
J1 := 3.831705970, 7.015586670, 10.17346814, 13.32369194, 16.47063005
For large x, both the J
n
(x)andY
n
(x) have the appearance of slowly decreasing
sine or cosine functions. Jennifer confirms this conjecture by Taylor expanding,
e.g., J
1
(x)aboutx=+∞ and keeping the first term in the expansion.
>
taylor(BesselJ(1,x),x=infinity,1);
−
√
2 cos(x +
π
4
)
1
x
√
π
+O((
1
x
)
(3/2)
)
The “order of” term, O((1/x)
3/2
), is removed with convert(%,polynom),the
“ditto operator”, %, applying the command to the previously executed result.
6
>
J1_asymptotic:=convert(%,polynom);
J1
asymptotic := −
√
2 cos(x +
π
4
)
1
x
√
π
Asymptotically, J
1
(x) behaves like a cosine function whose amplitude decreases
like 1/
√
x. The Bessel functions have many important properties which are too
numerous for Jennifer to explore here. For an exhaustive list of the properties
of all special functions, she refers the reader to the voluminous Handbook of
Mathematical Functions [AS72]. One important property shared by special
functions is that they satisfy recurrence relations, relating functions of different
orders. Here’s an example of a recurrence relation for the J
n
(x). This recurrence
relation relates Bessel functions of orders n−1, n+1, and n for arbitrary x.
>
recurrence:=BesselJ(n-1,x)+BesselJ(n+1,x)
=simplify(BesselJ(n-1,x)+BesselJ(n+1,x));
recurrence := BesselJ(n − 1,x) + BesselJ(n +1,x)=
2 n BesselJ(n, x)
x
Now, Jennifer introduces Legendre’s ODE by entering the Sturm–Liouville
arrow operator SL with p =1−x
2
, q =0, w =1, and L ≡ λ = n (n + 1). The
differential equation ode2 is then solved and identified as Legendre’s equation.
>
ode2:=SL(1-xˆ2,0,1,n*(n+1)); y2:=Y(ode2);
ode2 := −2 x (
d
dx
y(x)) + (1 −x
2
)(
d
2
dx
2
y(x)) + n (n +1)y(x)=0
Methods for second order ODEs:
...................................................................
6
To recall the second previous result, use two percent signs, %%, and so on.