The influence of resonance on capacitor