Suppose we have solved for the energy eigenstates of some Hamiltonian operator $\hat{H}$.
We call the energy eigenstates $\psi_n (x)$, where:
$n=1$: $\psi_1 (x)$ is the ground states
$n=2$: $\psi_2 (x)$ is the first excited states
It says that the general wavefunction can be expanded in such eigenstates via:
$$\psi(x)=\sum_{n=1}^\infty a_n\psi_n(x)$$
I don't what it means by general wavefunction in this case? Does it mean that all wavefunction that solve the particular Hamiltonian or does it mean eigenfunctions of all (different) Hamiltonians?