Circuit analysis with capacitor