Thank you for reporting, we will resolve it shortly
Q.
The expression for the magnetic energy stored in a solenoid in terms of magnetic field $B$, area $A$ and length $l$ of the solenoid is
Alternating Current
Solution:
$U_{B}=\frac{1}{2} L I^{2}=\frac{1}{2} L\left(\frac{B}{\mu_{0} n}\right)^{2}=\frac{1}{2}\left(\mu_{0} n^{2} A l\right)\left(\frac{B}{\mu_{0} n}\right)^{2}$
$=\frac{B^{2} A l}{2 \mu_{0}}$