Legendre and Bessel Functions
Legendre and Bessel functions are special functions because they solve recurring differential equations from geometry. Legendre functions appear with spherical symmetry, angular variables, and expansions on . Bessel functions appear with cylindrical symmetry, radial vibration, heat flow in disks, and wave propagation in circular domains.
The important lesson is that special functions are not arbitrary new objects. They are named solution families with well-studied series, orthogonality, recurrence relations, and zeros. In engineering mathematics they play the same role that sine and cosine play for rectangular domains: they provide modes adapted to the geometry and boundary conditions.
Definitions
Legendre's differential equation is
For nonnegative integer , the polynomial solution is the Legendre polynomial . The first few are
Bessel's equation of order is
The standard solution that is finite at for is the Bessel function of the first kind . For integer order ,
Orthogonality means that different modes have zero inner product with respect to the correct weight. For Legendre polynomials,
For Bessel functions in radial problems, orthogonality usually involves the weight on .
Key results
Legendre polynomials satisfy Rodrigues' formula:
They also satisfy
The parity is simple: is even when is even and odd when is odd. This parity helps simplify expansions of even or odd functions on .
Legendre expansion coefficients are computed by projection:
Bessel functions arise from the Frobenius method at the regular singular point . The indicial roots are , and the branch corresponds to the behavior. When boundary conditions require finiteness at the origin, the more singular branch is often rejected.
Zeros of Bessel functions determine radial eigenvalues. If a circular membrane of radius is fixed at the boundary, radial modes satisfy . The allowed values of are therefore zeros of . This is the circular-domain analog of for sine modes on an interval.
Recurrence relations make computation and analysis practical. For Bessel functions,
and
These formulas connect neighboring orders and derivatives. They are used in numerical libraries and in applying derivative boundary conditions.
Special functions should be treated as precise mathematical objects, not as black boxes. Their normalization, weight function, and boundary behavior matter. Two sources may use different conventions for associated Legendre functions or spherical Bessel functions, so always check the definition before using a table.
The geometry explains the weight functions. In spherical coordinates, angular integrals lead to weights such as or after a change of variables. In polar coordinates, the area element is , which is why radial Bessel orthogonality contains the factor . Forgetting the weight changes the coefficients and destroys orthogonality.
Legendre polynomials are also eigenfunctions of a Sturm-Liouville problem:
The endpoint coefficient vanishes at , which is why the natural interval is . The eigenvalue parameter becomes discrete when regularity at both endpoints is required. This is typical of separated boundary-value problems: geometry and endpoint conditions select a countable set of admissible modes.
Bessel functions play a parallel role in polar coordinates. When the Laplacian is written in polar form, separation with an angular factor or leaves a radial equation. After scaling the radial variable, that equation becomes Bessel's equation. The order comes from angular periodicity, while the allowed radial wavenumbers come from boundary conditions at .
Zeros deserve special attention because they become eigenvalues after scaling. If is the th positive zero of , then vanishes at . The index counts angular variation, and counts radial nodes. A mode with larger oscillates more rapidly in the radial direction. A mode with larger has more angular nodal lines.
The normalization of modes is often chosen for convenience. Legendre polynomials are usually normalized by , not by unit length in the inner product. Bessel radial modes are often left unnormalized until coefficients are computed. When expanding a function, the denominator of the projection coefficient must use the actual norm of the selected mode, not an assumed value of .
In numerical work, recurrence relations can be stable in one direction and unstable in another. Computing high-order Bessel functions by forward recurrence may lose accuracy for some ranges of and . Scientific libraries choose algorithms depending on the order and argument. This is another reason to use tested implementations for production computation while learning the series and recurrence formulas for interpretation.
Legendre and Bessel functions also encode qualitative information. The number and location of zeros determine nodal lines, which are places where a vibrating membrane or standing wave is motionless. Orthogonality means that energy or squared error can be decomposed by mode. Smooth data usually produce rapidly decaying expansion coefficients, while discontinuities or sharp boundary layers require many modes.
Visual
| Function family | Typical domain | Weight | Common boundary role |
|---|---|---|---|
| Angular modes in spherical problems | |||
| Radial modes in disks and cylinders | |||
| Rectangular Neumann modes | |||
| Rectangular Dirichlet modes |
Worked example 1: Legendre projection
Problem. Approximate on using Legendre polynomials.
Method.
- Use
- Solve the formula for in terms of and :
- Rearrange:
- Since ,
Answer.
Check. Substitute :
This example is exact because is already a polynomial of degree two. A more complicated function would have infinitely many Legendre coefficients. Orthogonality guarantees that the coefficient of can be found independently by projection, without solving a coupled linear system for all coefficients at once.
Worked example 2: First terms of a Bessel function
Problem. Write the first three nonzero terms of .
Method.
- Use the series for :
- For :
- For :
- For :
Answer.
Check. The derivative at is , consistent with the evenness of .
The approximation is most accurate near the origin because it was derived from a series centered there. For larger , more terms are needed, and oscillatory asymptotic formulas may be more efficient. This local-versus-global issue is one reason special-function libraries combine several methods internally.
Code
import numpy as np
from scipy.special import eval_legendre, jn_zeros, jv
x = np.linspace(-1.0, 1.0, 5)
print(eval_legendre(2, x))
zeros = jn_zeros(0, 3)
print("first zeros of J0:", zeros)
print("J0 at first zero:", jv(0, zeros[0]))
The code evaluates and the first zeros of . In a circular membrane problem with radius , those zeros are the first radial wavenumbers for axisymmetric modes with a fixed boundary. For a different radius, the wavenumbers scale as zero divided by .
For coefficient calculations, software can evaluate the functions but the mathematical normalization still has to come from the model. A radial expansion on a disk integrates with , while a one-dimensional Legendre expansion integrates with . Using the wrong inner product may still produce numbers, but they will not be the expansion coefficients for the intended problem.
Common pitfalls
- Forgetting the weight function in orthogonality integrals, especially the radial weight for Bessel modes.
- Assuming every solution of Legendre's equation is a polynomial. Polynomial behavior occurs for special integer parameters.
- Using Bessel zeros for the wrong boundary condition; derivative conditions use zeros of instead of .
- Mixing ordinary Bessel functions with spherical Bessel functions without changing definitions.
- Dropping the singular solution without checking whether the domain includes the origin.
- Expecting special functions to simplify to elementary functions in general.
- Ignoring normalization conventions when comparing tables, software, and textbooks.
- Treating zeros as interchangeable across orders. A zero of is generally not a zero of .
- Forgetting that physical boundary conditions determine whether , , or another combination supplies the eigenvalue equation.
- Assuming a finite polynomial expansion when the target function is not itself a polynomial of bounded degree.
- Expanding a radial function without checking behavior at the origin. Regularity at often removes one formal solution branch.
- Comparing modal amplitudes without accounting for the norm of each mode under the correct weighted inner product.
- Rounding roots too early in downstream eigenvalue calculations.