Conservation of energy in electromagnetism? How is energy conserved in electromagnetism? Is it hinted only from Lenz's law or from Maxwell?
Also, if a solenoid's flow of current produces a magnetic field, and from the magnetic field forces are applied on dipoles, how is energy conserved? 
I know that energy is always conserved, but in this case when electric & magnetic fields interact to do work I don't know how to picture conservation.
 A: The way to understand conservation of energy when dealing with electric and magnetic fields is to consider the work they do on charged particles, which leads to a result called Poynting's theorem, see http://www.phy.duke.edu/~rgb/Class/Electrodynamics/Electrodynamics/node33.html.
A: Electric potential energy, or electrostatic potential energy, is a potential energy (measured in joules) that results from conservative Coulomb forces and is associated with the configuration of a particular set of point charges within a defined system. An object may have electric potential energy by virtue of two key elements: its own electric charge and its relative position to other electrically charged objects.
Lets say you have, two like charges separated by a distance. Like charges repel each other. So, both the charges repel each other. In order to explain this situation in terms of conservation of energy you need to understand that electric charge and relative position of one charge w.r.t other acts as the source of potential energy.
When one charge repels the other charge, it converts the electric potential energy stored into kinetic energy, thus separating the charges. So, law of conservation of energy hols good. Even if you consider the unlike charges, the same explanation can be given that the charges convert their potential energy into kinetic energy thus causing them to come near.
A: hard to answer because in this case energy is conserved we all know, but at atomic level. when charged particle moved between charged feilds or between atoms they produces magnetic Fields kinetic energy of the electrons is converted into creating charged fields.
