Solenoid magnetic field energy

$$W = \frac{\mu\cdot \mu0\cdot n^{2}\cdot l^{2}\cdot V}{2}$$
Find   It is known that:
      =