Return to computing page for the first course APMA0330
Return to computing page for the second course APMA0340
Return to computing page for the fourth course APMA0360
Return to Mathematica tutorial for the first course APMA0330
Return to Mathematica tutorial for the second course APMA0340
Return to Mathematica tutorial for the fourth course APMA0360
Return to the main page for the first course APMA0330
Return to the main page for the second course APMA0340
Return to the main page for the fourth course APMA0360
Return to Part V of the course APMA0340
Introduction to Linear Algebra with Mathematica
Hermite functions and Hermite polynomials arise in many contexts and as such there are several ways of defining them. We follow the definition that is used by all computer algebra systems, including Mathematica.
Numerical evaluation of Hermite's polynomials is an ill-posed problem. The main challenge is an alternating series \eqref{EqHermite.1} with growing coefficients. Mathematica has build in command for these polynomials: HermiteH[n, x].
Note that the leading coefficient in the Hermite polynomial Hn(x) = 2nxn + ··· grows exponentially. It is convenient to consider similar polynomials but with leading coefficient to be 1. The corresponding polynomials are denoted by Hen(x).
The sequence { Hen(x)} of classical orthogonal polynomial, called Chebyshev--Hermite polynomials, are defined by the following formula:
where \( \displaystyle \| H_n \| = \left( 2^n n! \,\sqrt{\pi} \right)^{1/2} = \left( \int_{\mathbb{R}} e^{-x^2} H_n^2 (x)\,{\text d} x \right)^{1/2} \) is the norm of the Hermite polynomial Hn(x) in Hilbert space 𝔏²(ℝ, e−x²).
where \( \displaystyle \| He_n \| = \left( n! \,\sqrt{2\pi} \right)^{1/2} = \left( \int_{\mathbb{R}} e^{-x^2 /2} He_n^2 (x)\,{\text d} x \right)^{1/2} \) is the norm of the Chebyshev--Hermite polynomial Hen(x) in Hilbert space 𝔏²(ℝ, e−x²/2).
with arbitrary constants 𝑎0 and 𝑎₁. However, we have to set 𝑎0 = 0 because the corresponding function grows exponentially with x --- this term has no physical meaning.
For arbitrary λ, the Hermite equation (1.1)
can be solved using the series method
\[
y(x) = \sum_{k \ge 0} a_k x^k ,
\tag{1.2}
\]
because the coefficients p(x) = −x and q(x) = λ are analytic about x0 = 0 (so it is an ordinary point). The derivatives of function (1.2) are
Notice that since the sum started at n = 1, the second equation is true for n = 1, 2, 3, ….
These are the recurrence relations or finite difference. Sometimes (but not always!) it is the case that the recurrence relations can be written
for n = 0, 1, 2, 3, ….. We see here that n = 0 in the second equation gives us 2𝑎2 − λ𝑎0 = 0, so the first equation is really
the second with n = 0. A bit of algebra gives us for the recurrence relations:
For odd terms, the pattern is identified in terms of products using
\( \displaystyle )\left( 2- \lambda \right) \left( 4- \lambda \right) \cdots \left( 2k- \lambda \right) = \prod_{i=1}^k (2i-\lambda ) , \) we have
\[
y_2 (x) = x + \sum_{k\ge 0} \frac{\prod_{i=1}^{2k+1} (i - \lambda )}{(2k+3)! \,\prod (2i-\lambda )} \, x^{2k+3} .
\]
The y₁(x) and y₂(x)
are linearly independent since one is odd and the other even, so they form a fundamental set of
solutions. If we can’t recognize the pattern, which we saw was a difficult process, we can instead write the first few terms
in the series (usually four or five will do). If more terms are required, the coefficients can be calculated using the recursion
relations.
What follows is particularly of interest to physicists, since the Chebyshev--Hermite polynomials Hen(x) arise in solving the Schrödinger
equation for a harmonic oscillator. However, it also shows one way in which special functions arise from differential
equations, so in that sense it is of interest to all.
If λ is nonnegative even integer, then λ = 2m, and something interesting happens to our solutions. One of these solutions
will become a polynomial in this case–the first if m is even, and the second if m is odd. Let’s see how this happens.
where we have stopped summing at k = m/2 (which is an integer since m is even) because higher terms will have a factor
2 · m/2 − m = 0 in the product.
Similar calculations can be made when
m is odd. The product in the numerator will have a zero factor when 2k + 1 − m = 0. Therefore, we stopped the summing at
k = (m − 1)/2. This is an integer since m is odd.
The Chebyshev--Hermite polynomial Hem(x) is defined as the polynomial solution to the Chebyshev--Hermite equation (1.1) with λ = 2m for which the
coefficient of xm is 1. The Chebyshev--Hermite polynomials are found from flipping back and forth between y ₁ and y ₂, depending on
which one has the terminating infinite sum, and then normalizing.
End of Example 1
The Hermite polynomials form a complete orthogonal system in the Hilbert space 𝔏²(ℝ, e−x²) with respect to the following inner product:
\[
\langle f\,\vert\,g \rangle = \langle f,g \rangle = \int_{-\infty}^{\infty} f(x)\,g(x)e^{−x^2} \,{\text d}x \qquad \mbox{where} \qquad \| f \| = +\sqrt{\langle f,f \rangle}
\]
is called the norm in this Hilbert space. Note that integration in the inner product is understood in Lebesque sense rather than Riemann to make the space 𝔏²(ℝ, e−x²) complete. Note that there are two notations for inner product, either the bra-ket notation (in physics following P. Dirac) with vertical line separating functions or comma (in mathematics). The orthogonality condition for Hermite polynomials is read as
The roots of the n-th Hermite or Chebyshev--Hermite polynomial are important because they are the quadrature points for the Hermite–Gauss numerical integration scheme:
where { xi } are zeroes of Hen(x).
They also are the collocation points for Hermite function pseudospectral schemes for solving differential equations. The equation Hn(x) = 0 has n real zeroes on the interval spanned by the turning points, \( \displaystyle x \in [-\sqrt{2n+1}, \sqrt{2n+1}] . \)
Since the leading coefficient (2n) of the Hermite polynomial Hn(x) grows exponentially and it is a sum of alternating terms, its numerical evaluation becomes ill-posed. Therefore, for computational point of view Hermite functions are more preferable to use.
One can define the Hermite functions of degree n (wave functions) as follows:
As it is seen from the previous example, the Hermite polynomials and functions change from oscillatory behavior to monotonic, exponentially decay at the “turning points."
In the vicinity of the turning points, the Hermite functions are approximated in terms of the Airy function, Ai(z),
Fourier transforms
Fourier transform of the Hermite functions are given in the following
Lemma 1:
The Hermite functions
are eigenfunctions for the Fourier transform in 𝔏²(ℝ):
Example 3:
Let Y = N(μ, σ) be a general Gaussian distribution with mean μ and standard deviation σ. In order
to compute the moments of the random variable Y, we
rewrite the integral representation of Chebyshev-Hermite polynomial as follows,
\[
He_n ({\bf j}x) \left( -{\bf j} \right)^n = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^{+\infty} z^n e^{- (z - x)^2 /2} {\text d} z = E \left[ Y^n \right] .
\]
The name "error function" and its abbreviation erf were proposed by J. W. L. Glaisher in 1871 on account of its connection with "the theory of Probability.
The French banker, mathematician, and social reformer Odile Rodrigues showed in 1816 that a large class of second-order Sturm-Liouville ordinary differential equations (ODEs) had polynomial solutions that could be put in a compact and useful form now generally called Rodrigues formulae.
This means that the convolution yields the moments
E[Hen(Y)] of a random variable Y
= N(x, 1) with normal distribution. In order to employ the induction, we check Eq.(2.1) for first two values n = 0, 1. Calculations show that
In quantum mechanics, a ladder operator is an operator that increases or decreases the eigenvalue of another operator. Correspondingly, there are two of the ladder operators, known as a raising or creation operator and lowering or annihilation operator.
Since we have two orthonomal bases (Hermite functions and Chebyshev--Hermite functions) in Hilbert space 𝔏²(ℝ), we need two kinds of ladder operators. For Hermite functions, we denote them with letter using bold fonts as it is common in mathematics. On the other hand, we utilize letters with hat as they are usually written in physics.
where \( \displaystyle \texttt{D} = {\text d}/{\text d}x , \quad\mbox{and} \quad \texttt{I} = \texttt{D}^0 \quad \) is the identity operator. Then we have
Let \( |n\rangle \) be an eigenfunction of \( {\cal H} : \ {\cal H} \,|n\rangle = \lambda_n |n\rangle , \) whose eigenvalue λn is unknown at this point. Now we prove the key property that N has
nonnegative integer eigenvalues:
that is, \( \lambda_n = n + 1/2 . \) Since \( \hat{a} |n\rangle \) is complex conjugate to \( \langle n | \hat{a}^{\ast} , \) the normalization integral \( \langle n | \hat{a}^{\ast} \, \hat{a} |n\rangle \ge 0 \) and is finite. From
In other words, N acting on \( \hat{a} \,|n\rangle \) shows that \( \hat{a} \) has lowered the eigenvalue n by one unit; hence it is a lowering (or annihilation)
operator. Similarly, N acting on \( \hat{a}^{\ast} \,|n\rangle \) shows that \( \hat{a}^{\ast} \) has raised the eigenvalue n corresponding to \( |n \rangle \) by one unit, whence its name raising, or creation, operator. Therefore,
Applying \( \hat{a} \)
repeatedly, we can reach all lower states, including the lowest, or ground, state \( |0\rangle , \) with eigenvalue λ0. We cannot step lower because \( \lambda_0 \ge 0. \) Hence, \( \hat{a}\,|0\rangle \equiv 0, \) suggesting we construct \( \psi_0 = | 0 \rangle \) from the (factored) first-order ODE
So its energy eigenvalue is \( \lambda_0 = 1/2 , \) and its number eigenvalue is n = 0, confirming the notation \( |0\rangle . \) Applying \( \hat{a}^{\ast} \) repeatedly to \( \psi_0 = |0\rangle , \) all other eigenvalues are confirmed to be \( \lambda_n = n+1/2 . \) Using normalizations, we find
Example 6:
The harmonic oscillator is almost ubiquitous model system in any field of physics. Here we present a fairly solid and pedagogically effective way to treat the quantum harmonic oscillator. It is one
of the few problems that can really be solved in closed form, and is a very generally useful solution, both in
approximations and in exact solutions of various problems.
As t was discussed in tutirial I (see section viii), a harmonic oscillator is a model that describes a particle of mass m moving in a single direction and subject to a restoring force that is proportional to the displacement of
the particle (also is known as Hooke's law). In classical Newtonian mechanics this means that the acting force is proportional to the displacement x:
where \( \displaystyle v = \dot{x} = {\text d}x/{\text d} t \) is the velocity of the particle and k is a positive number, characteristic of the resistance; it is called the force constant or spring constant. This constant coefficient differential equation has the general solution:
It is actually the total energy
E of an oscillator that is the sum of its kinetic energy K = mv²/2 and the elastic potential energy of the force.
Since mass m of the particle does not depend on time t, it is convenient to introduce the momentum: p = mv instead of velocity. Then the
coresponding Hamiltonian is interpreted as the sum a kinetic energy term, K, and a potential energy term, Π:
where q corresponds to displacement (in some coordinate system) and p = mv. Remembering from tutorial I that k/m = ω², where ω is characteristic angular frequency of this system, we can rewite the Hamiltonian as
where ℏ ≈ 1.054571817... × 10−34 [joule·second = m² kg /s] is the reduced Planck constant, and the Hamiltoniam operator is the sum of a kinetic energy term, K, and a potential energy term, Π (Greek letter "p" in upper case):
where \( \displaystyle \quad \hat{p} = -{\bf j}\hbar\,\partial_x \quad \) is the momentum operator in the x-direction, and \( \displaystyle \quad \hat{q} \) is the position operator.
Here Ψ is the wavefunction that is associated energies for this system, and m is an effective (reduced) mass, and k is an effective force constant.
For a diatomic molecule, there is only one vibrational mode, so there will be only a single set of vibrational wavefunctions with associated energies for this system.
Substituting the definitions for the operators yields
This Hamiltonian appears in various applications, and in fact the approximation of the harmonic oscillator
is valid near the minimum of any potential function.
Application of separation of variables to the Schrödinger equation, Ψ = T(t) w(x), we obtain
\[
\frac{{\text d}^2 w}{{\text d}x^2} + \frac{2m}{\hbar^2}\left( E - \frac{k}{2}\,x^2 \right) w = 0 .
\tag{6.1}
\]
This differential equation is not straightforward to solve. Rather than fully develop the details of the solution, we will introduce dimensionless variables because it is not good to carry around so many constants in that equation. Therefore, we make substitution
In order to simplify the expression for β, we revoke angula velocity from classical harmonic oscillator: ω² = k/m. This gives a standard Sturm--Liouville problem
We are looking for nontrivial solutions of Eq.I7.1) that belong to 𝔏²(−∞, ∞). We know that this problem has discrete number of eigenvalues λn = (2n+1), n = 0, 1, 2, …. The corresponding eigenfunctions are Hermite functions:
We are looking for nontrivial solutions of Eq.I7.1) that belong to 𝔏²(−∞, ∞). We know that this problem has discrete number of eigenvalues λn = n+½, n = 0, 1, 2, …. The corresponding eigenfunctions are Chebyshev--Hermite functions:
respectively.
Hermite polynomials Hn(x) are eigenfunctions of the Sturm--Liouville problem for the Hermite differential equation on the infinite interval \( (-\infty , \infty ) : \)
subject to the condition that its solutions grow at infinity no faster than a polynomial,
corresponding to eigenvalues \( \lambda_n = 2n \ge 0, \) an integer.
The Chebyshev--Hermite polynomials Hen(x) are eigenfunctions corresponding to eigenvalues λ = n of the Sturm--Liouville problem for the Hermite differential equation on the infinite interval \( (-\infty , \infty ) : \)
The eigenvalue problems for both, the Hermite and Chebyshev--Hermite polynomials, include requirement that solution must grow no faster than a polynomial.
The Hermite functions are the eigenfunctions of the elliptic operator \( - \frac{{\text d}^2}{{\text d} x^2} + x^2 . \)
These functions are solutions to the differential equation that involves a quantum mechanical, simple harmonic oscillator:
Kagawa, T.: Hermite function expansions of Heaviside function. Journal of Pseudo-Differential Operators and Applications,
2015, 6, No. 1, pp. 21–32.
Kagawa, T. & Yoshino, K.,
The Hermite expansion of the characteristic functions,
Journal of Pseudo-Differential Operators and Applications,
2017, Vol. 8, No. 2, pp. 255–273.
https://doi.org/10.1007/s11868-017-0188-x
Sadlok, Z. On Hermite expansion of x^p, Annales Polonici mathematici, 1980, 38, pp. 159--162. doi: 10.4064/ap-38-2-159-162
Thangavelu, S., Lectures on Hermite and Laguerre Expansions Mathematical Notes, 42. Princeton University Press, Princeton, New Jersey, 1993.
Return to the main page (APMA0340)
Return to the Part 1 Matrix Algebra
Return to the Part 2 Linear Systems of Ordinary Differential Equations
Return to the Part 3 Non-linear Systems of Ordinary Differential Equations
Return to the Part 4 Numerical Methods
Return to the Part 5 Fourier Series
Return to the Part 6 Partial Differential Equations
Return to the Part 7 Special Functions