We know that,
If W is the amount of work done in carrying a charge from one end to the other end of a conductor, then by definition of potential difference,
From equation (i) and (ii),
According to Ohm's law,
From equation (iii) and (iv),
This work done (W) by the current measures the electric energy which is supplied by the battery or any other source of electrical energy. If the conductor is a heating appliance and current is purely resistive, then this energy (W) is converted into heat (H). Thus,
This is the expression for heat produced.