EMF and internal resistance

The e.m.f (E) of the cell can be defined as the maximum p.d that the cell can produce across its terminals, or the open circuit p.d since when no current flows from the cell no electrical energy can be lost within it.
The quantity of useful electrical energy available outside the cell is IR and Ir is the energy transformed to other forms within the cell itself.