hamster,
I'm not sure what you mean. Are P(x) and Q(x) supposed to be polynomials? According to mathematica, the indefininte integral contains logs, and is very complicated.
jgens,
I'm not sure I understand exactly what you're saying, but I'm skeptical of your method since you don't...