Solving Integrals using Beta Gamma Functions