M61. Potentials that separate: hydrogen in a ball

Package: F1 and F2, what both left: a potential between walls and on a round domain, where it leaves the modes separate. A potential that depends on the radius alone, in a disk or a ball, and one that is a sum of potentials along the axes of a box. Hydrogen, whose potential has a singularity that a uniform grid does not resolve, is the first of them: in spherical coordinates its states are smooth.

What was built

  • A potential in the modes of an axis. The matrix of an axis with faces, and the radial matrix of a round domain for each wave or harmonic, take a function of their coordinate on the diagonal. Their eigenvectors are then the modes of the operator with that potential.

  • A potential in an eigenproblem on a box with walls, a disk, a ring, a ball or a shell. What a problem in time would step, a term \(V(\mathbf{x})\,u\), is read as a potential and checked at a few points to be a sum of functions of the single coordinates, or of the radius alone. Each part is sampled on the line through one point of the domain.

  • What is refused, with its reason: a potential that couples the coordinates, one along a periodic axis, one that depends on an angle, any potential in a cylinder, a potential from an array, and one that is not real or not finite.

  • The refusal of a potential with a singularity in free space now names the ball.

What it reaches

Problem

States

Grid

Error of the eigenvalues

Time

Hydrogen in a ball of the radius 40

5

\(64\times64\times128\)

\(5\cdot10^{-13}\)

0.8 s

Hydrogen in a ball of the radius 40

14

\(64\times64\times128\)

\(10^{-6}\)

1.8 s

Hydrogen in the plane, in a disk of the radius 30

4

\(64\times128\)

\(7\cdot10^{-14}\)

0.06 s

The oscillator in a ball of the radius 8

4

\(64\times64\times128\)

\(4\cdot10^{-14}\)

0.5 s

The oscillator between walls at \(\pm8\), in the plane

6

\(128^2\)

\(2\cdot10^{-14}\)

0.06 s

The fourteen states of hydrogen are its first three levels. The third, \(E = -1/18\), is right to six digits only: its states reach the surface of the ball, which is a wall. That is the problem that was asked, a confined atom, and no error of the method.

The tests check hydrogen in a ball and in a disk against \(-1/(2n^2)\) and \(-1/(2(n - \tfrac12)^2)\), its ground state against \(e^{-r}/\sqrt\pi\) at every point of the radius, the oscillator in a ball and between walls, a well across a duct that is periodic along its length, and the potential \(2/x^2\) on an interval, which has a singularity on a wall, against the first zero of a spherical Bessel function.

Decisions

D61.1. A potential that separates belongs to the modes

Developer, 2026-11-20.

Decision D59.3 left a potential between walls to the block iteration, since its modes do not separate. Many of the potentials one asks for do leave them separate: the oscillator, a well along one axis, every central potential in a ball. For those the modes of the axes exist already, with one more term on a diagonal, and nothing iterates. So they are taken there, and what truly couples the coordinates is still refused with its reason and waits for A8.

D61.2. Hydrogen in a ball, not in free space

Developer, 2026-11-20.

The backlog asked for hydrogen in free space, by a grid that is not uniform or by taking the singularity off. In spherical coordinates there is nothing to take off: the ground state is \(e^{-r}\), a smooth function of the radius, and no point of the radius lies at the centre. The price is the surface of the ball, which is a wall. A state that reaches it is squeezed, and the user chooses the radius. The pages say so with numbers. The condition of a bound state on the surface, in place of the wall, is left for a later part.

D61.3. Separate at a few points

Developer, 2026-11-20.

Whether a formula is a sum of functions of the single coordinates could be read from its form, and would then depend on how it is written: \((x + y)^2 - 2xy\) is such a sum. It is checked by its values: at five points the potential must equal the sum of its values along the lines through a base point, less what the base point counts too often. The same sampling tells along which axes it varies at all. A potential that passes at five points and is no sum elsewhere would be solved wrongly: none has been found that does, and the points lie on no line or plane of symmetry.

D61.4. The faces take no potential

Developer, 2026-11-20.

On a face the equation is not asked for: the condition is. So the value of the potential there is never read, and a potential with a singularity on a wall where the mode vanishes, such as the centrifugal \(2/x^2\), is solved like any other.

What is left

  • A potential that couples the coordinates between walls, or depends on an angle: with A8.

  • A potential in a cylinder, which would need the radius and the axis to take one each.

  • The surface of a ball as the condition of a bound state, not a wall.

  • A potential from an array.