The Hamiltonian density is . In the vacuum only contributes. Hence
Substitution, using , yields
This Dirichlet scalar vacuum energy density illustrates why a massive field's local unregularized energy density need not be uniform. The cosine integrates to zero over the interval, so
These divergent expressions are understood with a common regulator before exchanging sums, integrals or derivatives. Normal ordering the Hamiltonian operator separately in each geometry would erase the vacuum terms one is trying to compare; a common regulated subtraction is used instead in c and d.
On the unbounded line the momentum density of states in a reference length is . Count both signs of , each with zero-point energy and the same frequency regulator:
The extensive divergent term agrees exactly with c. Subtract it before taking the cutoff away:
The force tending to change the interval length is
Its negative sign means attraction: separating the boundaries increases this negative vacuum-energy difference toward zero. The bulk subtraction must be made before interpreting the force, otherwise differentiating an unphysical cutoff-dependent bulk energy would contaminate it.
This is the one-dimensional scalar Dirichlet Casimir force. The source's name “Casimir-Polder” normally refers to a retarded atom–atom or atom–surface dispersion force, whose geometry and power law differ. No atom polarizability or electromagnetic mode multiplicity enters the scalar result derived here.