(a)
B=μ0nI=(4π×10−7)(2000)(2.0)=5.0×10−3 T
u=2μ0B2=2×4π×10−7(5.03×10−3)2=10 J m−3

(b) The field fills the volume Al=4.0×10−4×0.50=2.0×10−4 m³:
U=uV=10×2.0×10−4=2.0×10−3 J
(c)
L=μ0n2Al=(4π×10−7)(2000)2(4.0×10−4)(0.50)=1.0×10−3 H
U=21LI2=21×1.0×10−3×(2.0)2=2.0×10−3 J
The two methods agree. The energy of the inductor is the energy of its magnetic field.