Equivalent rc network with compensating capacitor