M43. A medium and a potential in time on a shape, propagated exactly

Package: A4, its eighth part: in time on a region of the plane, the operator in space may be \(\nabla\cdot(\varepsilon(\mathbf{x})\nabla u) + c(\mathbf{x})\,u\). It is symmetric, so the modes of the shape are its modes, and heat, waves and the Schrödinger equation are propagated exactly in them: a membrane whose tension varies, a wave function in a potential well.

What was built

  • The modes of a symmetric operator (Elements::modes with a Symmetric): the stiffness is weighted with the medium at the points, the potential stands on the diagonal, and what a condition on the slope contributes is weighted with the medium at the boundary, since what flows through it is \(\varepsilon\,\partial u/\partial n\). With a medium of 1 and no potential it is the eigenproblem of milestone 34, entry for entry.

  • Reading the equation. Of the terms that milestone 38 stepped, a potential \(c(\mathbf{x})\,u\) and a divergence \(\nabla\cdot(\varepsilon(\mathbf{x})\nabla u)\) that do not depend on time are taken into the operator. An equation of second order in time may hold them, which it could not: nothing is stepped there.

  • What fits is decided at the points of the elements. The medium and the potential may share one complex factor with the constant part of the operator, as in the Schrödinger equation. Whether they do is seen from their values, not from how they are written. A potential that does not fit is stepped as before, a medium that does not fit is refused.

  • The planner counts the medium and the potential among what must be resolved, and names them in the first note of the plan.

  • A plan that steps is taken for every equation of first order in time, also where nothing is left to step.

What it reaches

Problem

Degree

Error

Heat in the medium \(2 + x\) on a triangle, value on two sides and slope on one

2, 4, 6

falls by more than 50 from one to the next, below \(10^{-8}\) at 6

A membrane with the tension \(2 + x\) on a disk, for two units of time

8

below \(10^{-7}\)

The ground state of a harmonic well on a disk, for two units of time

8, the planner’s choice

\(4\cdot10^{-11}\), in 1.8 s

The same, stepped as before

8

\(8\cdot10^{-10}\), 320 steps, 9.9 s

The eigenvalues of the oscillator \(\nabla^2 - x^2 - y^2\) on a wide square come out as \(-2\), \(-4\), \(-4\), \(-6\), \(-6\), \(-6\) to four digits and better.

Decisions

D43.1. In time the operator is whatever is symmetric

Developer, 2026-11-19.

The modes of a shape need a symmetric matrix and nothing else. A Laplacian with constant coefficients was the first operator that gives one, and a medium inside a divergence and a potential give one as well, at no cost in the eigenproblem. So they are propagated, not stepped: the result is exact in time, an equation of second order in time may hold them, and a wave function in a well takes a fifth of the time.

Milestone 42 recorded that a medium in time would need the weak form of a second derivative in a stepped term. That holds only for a medium that changes in time.

D43.2. The phase is read from the values

Developer, 2026-11-19.

The operator may be \(s\,(\nabla\cdot(\varepsilon\nabla u) + c\,u) + k\,u\) with complex numbers \(s\) and \(k\) and real fields \(\varepsilon > 0\) and \(c\). Whether an equation has this form is decided from the values of its coefficients at the points of the elements: the ratio of the medium at every point to the medium at the first must be real and positive, and the potential, less its constant part, over the same factor must be real, both to \(10^{-12}\). How the coefficients are written says nothing reliable: \(-i\cdot(-i\,V)\) is real.

D43.3. A potential that does not fit is stepped, a medium refused

Developer, 2026-11-19.

A potential with another phase, or one that changes in time, is a term without derivatives, and is stepped as milestone 38 stepped every potential, in an equation of first order in time. A medium that does not fit would be a second derivative in a stepped term, which decision D42.4 refuses.

D43.4. A plan that steps stays valid

Developer, 2026-11-19.

For a potential that varies in space alone the planner answered with element_stepping in version 0.1.0, and answers with element_propagator now. Decision D41.4 lets the planner change its choice from one middle number to the next, and promises that a saved plan keeps the choices it holds. So a plan with element_stepping is taken for every equation of first order in time: with nothing to step it advances the source alone, and the potential is in the modes either way. The page of changes says so under “Changed”.

What is left

  • Two more symmetric operators would fit the modes with little work: a matrix inside the divergence, for a medium that differs by direction, and a coefficient in front of the Laplacian, such as the density of a membrane, which is symmetric once the points are weighted with it.

  • A4 besides: drift that is propagated, systems, arrays as data, corners in time.