In the circuit shown, switch S is closed at time t = 0. The charge which passes through the battery in one time constant is
eR2EL
ELR
ELeR2
eLER
The current at time t is given by
i=i01-e-t/τ
Where i0=ER and τ=LR
So dQ=idt=i01-e-t/τdt
Q=∫dQ=∫0τi01-et/τdt=i0∫0τdt-∫0τe-t/τdt
⇒Q=ER·LRe=ELeR2⇒Q=ELeR2