In charging a capacitor to a charge $Q$
Is there an equivalent to this in setting up current through an inductive circuit?
Energy stored in inductor $= 1/2Li^2$
What would be the work done in setting up the current $i$ in the inductor?
(I'm in high school, I have trouble deriving the work done for this one. For the capacitor, since the final voltage across it would be the emf of the battery, I can understand the expression for work done by the battery (as shown in the above image) but for inductor it is a little tricky since its voltage is given by $L*(di/dt)$.)