 The integral generally becomes a summation.One may trivially combine the expressions of capacitance and electrostatic interaction energy,

respectively, to obtain,

which is similar to the quantum capacitance.A more rigorous derivation is reported in the literature.