Derive the formula for the self inductance of a long solenoid

Derive the formula for the self inductance of a long solenoid.

Usually we consider the magnetic field at any point on a long solenoid is constant and is given by:
image