How is lenz related to law of conservation of energy
According to the Lenz's law, the induced emf opposes the change that produces it. It is this opposition against which we perform mechanical work in causing in the magnetic flux.
suppose when a north pole of a magnet is pushed towards coil.Then the direction of induced emf in the coil is such the end facing the magnet becomes north pole so as to oppose the motion of the magnet.Thus work has to be done against the magnetic repulsive force to push the magnet towards the coil.The electrical energy produced in the coil is at the expense of this work done. so, the mechanical energy is converted into electric energy.