The effect of capacitor on voltage source