Hankel Transform Calculator
Enter a function and parameters.

Radial Symmetry and Bessel Functions

The Hankel transform is essentially a radial version of the Fourier transform. For a circularly symmetric function fr, its zero-order Hankel transform is Fk=0frJ0krrdr where J0 denotes the Bessel function of the first kind. This transform preserves radial information and appears in solutions of wave and diffusion equations with cylindrical symmetry.

The ordinary Fourier transform decomposes a function into plane waves eikx. In polar coordinates, radial waves involve Bessel functions because they satisfy the differential equation r22f+r1f+(k2)f=0. The Hankel transform inherits orthogonality properties from these Bessel functions.

Series Representation of J₀

The Bessel function J0 can be expressed as a power series J0z=m0(-1)m2z2mm2m!. In practice we approximate J0 using the first several terms. Because the integrand also contains r, higher powers contribute less for moderate arguments, making the approximation effective.

Numerical Integration

To compute Fk numerically, we evaluate the integrand frJ0krr on a grid from 0 to a chosen upper limit. Simpson's rule averages pairs of intervals to approximate the integral with good accuracy. Because the Hankel transform integrates to infinity, we rely on the user to pick an upper limit large enough that the tail contributions are negligible for the function in question.

Choosing a larger limit may improve accuracy at the cost of more function evaluations. Similarly, decreasing the step size improves the Simpson approximation but requires more computation. The default values provide a reasonable trade-off for smooth, rapidly decaying functions like Gaussians.

Using the Calculator

Enter your radial function in terms of r. Good examples include exp(-r^2) or 1/(1+r^2). Specify the parameter k where you want the transform evaluated and select an upper integration limit. When you press the button, the script samples the function at evenly spaced points, computes the Bessel factor with a short series, and applies Simpson's rule to produce an approximate value for Fk.

The output appears below the form with six decimal places. You can explore how Fk changes with k or how different functions decay. Many problems in optics, acoustics, and electromagnetism reduce to Hankel transforms when radial symmetry is present. Understanding these transforms provides insight into diffraction patterns, beam propagation, and solutions of Bessel-type equations.

Implementation Highlights

The integral is approximated as

Fkj=0NwjfrjJ0krjrj

where wj are Simpson weights and rj are equally spaced sample points. The series used for J0 includes ten terms, providing good accuracy for arguments less than about 20. You can adjust the step size or extend the series for higher precision.

Because everything runs in your browser, no data leaves your computer. This makes it convenient for quick checks or classroom demonstrations. For heavy computational tasks, specialized numerical libraries might be preferable.

Further Exploration

Try computing the transform of exp(-r^2) at several k values and compare it to the known analytic result Fk=12e-k24. Seeing this numerical agreement reinforces both the theory and the correctness of the algorithm. The Hankel transform provides a window into radial phenomena ranging from sound waves in a cylindrical duct to the diffraction of laser beams.

Beyond physics, Hankel transforms also arise in probability theory and machine learning when dealing with radial basis functions. Because radial kernels depend only on distance, their Fourier transforms reduce to Hankel transforms. Understanding how these transforms behave helps in designing efficient algorithms for pattern recognition and density estimation on high-dimensional data sets.

Related Calculators

Covariance Matrix Calculator - Analyze Multivariate Data

Compute the covariance matrix for two or three datasets and explore its meaning.

covariance matrix calculator multivariate statistics

Double Integral Calculator - Numerical Approximation

Approximate the value of a double integral over a rectangular region.

double integral calculator

Padé Approximant Calculator - Rational Function Approximation

Generate Padé approximants for a given function using series coefficients.

Padé approximant calculator rational approximation series expansion