In a circuit, a battery provides the difference in potential between two terminals by doing work against the electric field, to give electrons potential energy. ... Due to the law of conservation of energy, the sum of all voltage drops must equal the appliedvoltage as stated by kirchoff's second law.