The Abel-Plana formula gives an expression for the difference between a discrete sum and the corresponding integral. The formula can be derived from the argument
principle

(1)

where
are the zeros of
and
are the poles contained within the contour . An appropriate choice of and then yields

(2)

or equivalently

(3)

The formula is particularly useful in Casimir effect calculations involving differences between quantized modes and free modes.