Ah! Solved the maths problems...
I have one more question, though. For a one-dimensional quantum harmonic oscillator, when determining the amplitudes,C_{i}, should I integrate from 0 to infinity, or from -infinity to infinity? I'm guessing it's the latter.