Hi,
Let an ac current is applied to a inductor of inductance L such that current in the inductor grows from zero to maximum value I0. Let I be the current at any instant t.The emf(back emf) induced in the inductor is given by
This will oppose any change in the current in the circuit. For the current I at an instant t, the rate of doing work is
If we iqnore the resistive losses, then
Total amount of work done in establishing the current I is
Total energy stored in a coil carrying current is