sympy/sympy — pull request #1017 by ness01 (2012-01-23 09:17:57+00:00)
Title: [integrals] Fix issue 3023.

(The problem was in _rewrite_saxena, which inconsistently reduced
the branch factor of a variable in only one of two occurrences.)

Also add a new line of debug output, and a test.