Example 39.13. Self Inductance of a Solenoid.
Find the self inductance of a solenoid with length \(l\) and radius \(a\) with \(n\) turns per unit length.
Answer.
\(\pi\mu_0 n^2 l a^2\text{.}\)
Solution.
Imagine an arbitrary current \(I\) flowing through the solenoid. We will determine magnetic flux of this current through the solenoid. Even though, the solenoid is of finite length, we will assume it to be of infinite length with \(n\) turns per unit length with magnetic field given by
\begin{align*}
\amp B_{\text{in}} = \mu_0 n I,\\
\amp B_{\text{out}} = 0.
\end{align*}
We neglect the magnetic field of the current in the external wire needed to complete the circuit. To compute the magnetic flux through the circuit of the solenoid, we attach an open surface that has the circuit at its boundary.
Ignoring the magnetic flux through the part of the surface that is outside the loops, the magnetic flux \(\Phi_{\text{self}}\) through the closed circuit will be approximately equal to the magnetic flux through one loop times the number of loops in the solenoid. Since the area of one loop of wire of solenoid is \(\pi a^2\text{,}\) the flux through one loop will be
\begin{equation*}
\Phi (\text{ through one loop }) = \mu_0 n I \times \pi a^2.
\end{equation*}

Therefore, flux through the surface of all the loops will be
\begin{equation*}
|\Phi_{\text{self}}| \approx \Phi (\text{ through one loop }) \times (\text{ No. of loops}) = \left[\mu_0 n I \times \pi a^2\right]\times nl,
\end{equation*}
Factoring out the current gives the desired self inductance \(\mathcal{L}\) of a solenoid.
\begin{equation}
\mathcal{L} = \pi\mu_0 n^2 l a^2. \tag{39.8}
\end{equation}
Therefore, a longer solenoid with more dense loops and larger area of cross-section will have a higher self-inductance. Another thing to notice is the role of content inside solenoid. If you wrap solenoid around an iron core, you will replace \(\mu_0\) by \(\mu\text{.}\) This will increase the magnetic field inside by hundreds of fold, and hence, self-inductance of a solenoid wrapped around iron core can often be hundreds of times higher.