Example: A Bessel Function & Partial Sums

Dr. K.G. TeBeest

This is Example 3 on page 742. Furthermore, we studied partial sums in Section 11.2.


NOTE: Bessel functions are special functions that are used extensively in engineering to study vibrations, heat transfer, and electromagnetics.


In Maple, the Bessel function (of order 0) is BesselJ(0,x) .

The series representation of the Bessel function (of order 0) is

J[0](x) = sum((-1)^n*x^(2*n)/(2^(2*n)*n!^2),n = 0 ....


Set the term a[n] in the Bessel function's series as a function of n:

> a := n -> (-1)^n * x^(2*n) / ( 2^(2*n) * (n!)^2 ) ;

a := proc (n) options operator, arrow; (-1)^n*x^(2*...

Construct the N th partial sum (add all terms up to term N ) as a function of N:

s[N] = sum(a(n),n = 0 .. N)

> s := N -> sum( a(n), n = 0 .. N ) ;

s := proc (N) options operator, arrow; sum(a(n),n =...


See the 2nd, 3rd, and 4th partial sums:

> s(2) ;

1-1/4*x^2+1/64*x^4

> s(3) ;

1-1/4*x^2+1/64*x^4-1/2304*x^6

> s(4) ;

1-1/4*x^2+1/64*x^4-1/2304*x^6+1/147456*x^8

Note that the partial sums are polynomials (literally truncated power series).


Plot the Bessel function J[0](x) on the interval [ -8, 8 ]:

> plot( BesselJ( 0, x ), x = -8 .. 8, -1 .. 1, thickness = 4 ) ;

[Maple Plot]


Plot the Bessel function J[0](x) along with the partial sums on the interval [ -8, 8 ]:

s(2)- red , s(3)- yellow , s(4)- pink , s(5)- green . The Bessel function is in blue.

Note that as we keep more terms in the series, the partial sums (red, yellow, pink, green) give better approximations to the Bessel function (blue).

> plot( { s(2), s(3), s(4), s(5), BesselJ(0,x) }, x = -8 .. 8, -1 .. 1, thickness = 4 ) ;

[Maple Plot]

NOTE: The curly braces { } in the plot command above are used to denote a set.

Return to Section 11.8