Average energy stored in a pure inductance L when a current i flows through it, is
Li2
2Li2
Li24
Li22
As we know, e=-dϕdt=-Ldidt
Work done against back e.m.f. e in time dt and current i is
dW=-eidt=Ldidtidt=Lidi
⇒W=L∫0iidi=12Li2