Energy in series and parallel connections