This is because the wave function for a particle in a box is given by $\psi_n(x) = \sqrt{\frac{2}{L}}\sin\left(\frac{n\pi x}{L}\right)$, where $n$ is the quantum number. For $n=5$, there will be 5 peaks in the wave function within the box.
Show more…