Capacitor ripple and frequency relationship