Similarities between power supplies and capacitors