Thanks Seratend,
although, the well goes from (0 to a): i don't think there are any cos terms that make up the enegy-eigenfns.
so if they form a basis, you can represent any function as linear combinations of these eigenfunctions. Fourier series seems to suggest that you cannot express...