Self-inductance of a coil is the property of the coil in which it opposes the change of current flowing through it.
Self induction of long solenoid of inductance L, A long solenoid is one which length is very large as compared to its cross section area. the magnetic field inside such a solenoid is constant at any point and given by
B=μ0NIl
μ0=absolutemagneticpermeabilityN=totalnumberofturns
Magnetic flux through each turn of solenoid
ϕ=B×areaofeachturnϕ=μ0NIl×Atotalflux=flux×totalnumberofturnsNϕ=N(μ0NIl×A)..........(1)
If L is the coefficient of inductance of solenoid
Nϕ=LI...............(2)
from equation 1 and 2
LI=N(μ0NIl×A)L=μ0N2Al(3)
The magnitude of emf is given by
|e|ore=LdIdt...............(4)multiplyingItobothsideseIdt=LIdIbutI=dqdtIdt=dq
Also work done (dW)= voltage X Charge(dq)
or dW = eXdq = eIdt
substituting the values in equation 4
dW = LIdt
By integrating both sides
∫w0dW=∫I00LIdtW=12LI02
this work done is in increasing the current flow through inductor is stored as potential energy (U) in the magnetic field of inductor
U=12LI02