Derivation of theoretical formulas for resonance integrals from Heisenberg equation of motion