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 VI of the course APMA0340
Introduction to Linear Algebra with Mathematica
We demonstrate application of the separation of variables in solving the
Helmholtz equation \( \nabla^2 u + k^2 u = 0 . \)
The Helmholtz equation often arises in the study of physical problems involving partial differential equations (PDEs) in both space and time. The Helmholtz equation, which represents a time-independent form of the wave equation, results from applying the technique of separation of variables to reduce the complexity of the analysis.
Hermann von Helmholtz (1821–1894) was a German physician and physicist. He contributed to many fields, including physiology, fluid dynamics, the theory of electricity and magnetism, and thermodynamics. His formulation of the principle of conservation of energy influenced a generation of physicists.
Among other things, he participated in two of the most significant developments in physics and in the philosophy of science in the 19th century: the proof that Euclidean geometry does not describe the only possible visualizable and physical space, and the shift from physics based on actions between particles at a distance to the field theory. Helmholtz achieved a staggering number of scientific results, including the formulation of energy conservation, the vortex equations for fluid dynamics, the notion of free energy in thermodynamics, and the invention of the ophthalmoscope. His constant interest in the epistemology of science guarantees his enduring significance for philosophy.
where ∇² is the Laplace operator (or "Laplacian"), k² is the eigenvalue. We split Eq.\eqref{EqHelmholtz.1} into a set of
ordinary differential equations by considering
\[
u(x,y,z) = X(x)\,Y(y)\,Z(z) .
\]
Substituting this product into the Helmholtz equation, we obtain
Equation \eqref{EqHelmholtz.2} exhibits one separation of variables. The left-hand side is a function of x alone, whereas the right-hand side depends only on y and z and not on x. But x, y, and z are all independent coordinates. The equality of both sides depending on different variables means that the behavior of x as an independent variable is not determined by y and z. Therefore, each side must be equal to a constant, a constant of separation. We choose
The choice of sign of λ² is completely arbitrary here; it will be fixed in specific problems by the need to satisfy specific boundary
conditions. Now, turning our attention to Eq.\eqref{EqHelmholtz.4}, we obtain
and a second separation has been achieved. Here we have a function of y equated to a
function of z, as before. We resolve it, as before, by equating each side to another constant
of separationm, -m²:
introducing a constant n² by \( \displaystyle k^2 = \lambda^2 + m^2 + n^2 \) to produce a symmetric set of equations.
Now we have three ODEs \eqref{EqHelmholtz.3},\eqref{EqHelmholtz.6}, and \eqref{EqHelmholtz.7}.
Our solution should be labeled according to the choice of our constants λ, m, and n; that
is,
Subject to the conditions of the problem being solved and to the condition k² = λ² + m² + n², we may choose λ, m, and n as we like, and formula \eqref{EqHelmholtz.8} will still be a solution of the Helmholtz equation, provided Xλ(x) is a solution of Eq.\eqref{EqHelmholtz.3}, and so on. We may develop the most
general solution of Eq.\eqref{EqHelmholtz.1} by taking a linear combination of solutions uλ,m,n:
The constant coefficients cλ,m are finally chosen to permit u(x, y, z) to satisfy the boundary conditions of the problem, which, as a rule, lead to a discrete set of values λ, m.
Circular Cylindrical Coordinates
With our unknown function u(x, y, z) dependent on ρ, φ, and z, the Helmholtz equation becomes
Again, a function of z on the right appears to depend on a function of ρ and φ on the
left. We resolve this by setting each side of equal to the same constant. Let us choose -λ². Then
\begin{equation}
\frac{{\text d}^2 Z}{{\text d}z^2} = \lambda^2 Z
\label{EqHelmholtz.11}
\end{equation}
This is Bessel’s differential equation. The solutions and their properties are presented in section. The separation of variables of Laplace’s equation in parabolic coordinates also
gives rise to Bessel’s equation. It may be noted that the Bessel equation is notorious for the
variety of disguises it may assume.
The original Helmholtz equation, a three-dimensional PDE, has been replaced by three ODEs, Eqs. \eqref{EqHelmholtz.11}, \eqref{EqHelmholtz.12}, and \eqref{EqHelmholtz.13}. A solution of the Helmholtz equation is
Identifying the specific P , , Z solutions by subscripts, we see that the most general solu-
tion of the Helmholtz equation is a linear combination of the product solutions
Note that all derivatives are now ordinary derivatives rather than partials. By multiplying by r² sin²θ, we can isolate
\( (1/\Phi)\,({\text d}^2 \Phi /{\text d}\phi^2 ) \) to obtain
This equation relates a function of φ alone to a function of r and θ alone. Since r, θ,
and φ are independent variables, we equate each side of the equation above to a constant. In almost
all physical problems φ will appear as an azimuth angle. This suggests a periodic solution
rather than an exponential. With this in mind, let us use -m² as the separation constant, which, then, must be an integer squared. Then
for some functions f, g, and h; p is another parameter.
In the hydrogen atom problem, one of the most important examples of the Schrödinger
wave equation with a closed form solution is k² = f(r), with k²independent of θ, φ.
Equation \eqref{EqHelmholtz.23} for the hydrogen atom becomes the associated Laguerre equation.
The great importance of this separation of variables in spherical polar coordinates stems
from the fact that the case k² = k²(r) covers a tremendous amount of physics: a great deal
of the theories of gravitation, electrostatics, and atomic, nuclear, and particle physics. And with k² = k²(r), the angular dependence is isolated in \eqref{EqHelmholtz.21} and \eqref{EqHelmholtz.22} that can be solves explicitely.
Finally, as an illustration of how the constant m in Eq.\eqref{EqHelmholtz.21} is restricted, we note that
φ in cylindrical and spherical polar coordinates is an azimuth angle. If this is a classical problem, we shall certainly require that the azimuthal solution Φ(φ) be single-valued; that is,
This is equivalent to requiring the azimuthal solution to have a period of 2π. Therefore m must be an integer. Which integer it depends on the details of the problem. If the integer |m| > 1, then Φ will have the period 2π/m. Whenever a coordinate corresponds to an axis equation \eqref{EqHelmholtz.21} must be holt for any φ, the azimuth angle, and
for z, an axis of translation of the cylindrical coordinate system. The solutions, of course, are sin(𝑎z) and cos(𝑎z) and the corresponding hyperbolic function (or exponentials) sinh(𝑎z) and cosh(𝑎z) for +𝑎².
Return to Mathematica page
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