Integrals that look like:
are really common in quantum mechanics (at least at the upper-division undergraduate level). Unfortunately, trying to perform one of these integrals using the built-in sympy integration function gives confusing results that are difficult to use.
This code produces more practical results by using the simple analytical solution for these integrals (shown in the back of Griffiths QM):
