Using and the electrostatic Poisson equation, , integration by parts gives
The boundary potential is zero, so the surface term vanishes. Hence .
For the capacitor use the usual parallel-plate approximation, neglecting edge fields. The two gaps have widths and , and their field magnitudes are and . The field-energy expression gives
The two faces of the middle plate carry charges and . Its total charge is their sum; the grounded plates have zero potential and contribute zero to . The charge-potential expression therefore gives , exactly the same result. Since is largest at , the energy at fixed is minimized when the middle plate is centered, with value .
This is the electrostatic energy of a three-plate capacitor in the intended uniform-field model. Finite circular plates have fringing corrections; no small-gap-to-radius ratio is explicitly stated in the source, so the simple formula should not be described as an exact finite-disc solution.