This issue has already been discussed on this list, but the previous solutions are unsatisfactory. Integrate returns non-deterministic results depending on machine speed and kernel cache state. Example (Mathematica 8.0.4):
The previous solutions involve adjusting the machine speed and clearing the kernel cache before each evaluation. This strategy attempts to achieve the least transformed result, though this is presumably not guaranteed. Instead, how can one achieve the most transformed result? The behavior of Integrate appears to be similar to that of Refine, Simplify, FullSimplify. However, unlike the latter, Integrate does not expose a TimeConstraint option. How can one achieve the effect of TimeConstraint -> Infinity? Is the absence of this option related to the undecidability of Risch's algorithm or is the non-determinism entirely in a subsequent simplification phase?