Show that the transformation Q = p + iaq , P = (p-iaq)/2ia is canonical and find the generating function. Use the transformation to solve the harmonic-oscillator problem. I was able to determine if the transformation is canonical, and it is. However, when it came to finding the generating function, I wasnt getting it right. And how do we use this transformation to solve the harmonic oscillator?