Solenoid magnetic field energy

W = L * I^2 / 2
Find   It is known that:
      =