Let's summarize our results, and write the eigenfunctions out in terms of the individual sines and cosines.
Required for a solution is that:
Then: