E_n=\frac{n^2\pi^2\hbar^2}{2mL^2}