The Kinetic energy integral given in the book Modern Quantum Chemistry by Attila Szabo and Neil Ostlund is given by (Appendix A eqn A.10) $$ \left(A\left|-\frac{1}{2} \nabla^{2}\right| B\right)=\int d \mathbf{r}_{1} \tilde{g}_{1 s}\left(\mathbf{r}_{1}-\mathbf{R}_{A}\right)\left(-\frac{1}{2} \nabla_{1}^{2}\right) \tilde{g}_{1 s}\left(\mathbf{r}_{1}-\mathbf{R}_{B}\right) $$
where the g1s functions represent gaussians centered at Ra and Rb. They are unnormalised wave function g1s can be written as $\phi_{1 s}^{\mathrm{GF}}\left(\alpha, \mathbf{r}-\mathbf{R}_{A}\right)=e^{-\alpha\left|\mathbf{r}-\mathbf{R}_{A}\right|^{2}}$ While solving this integral I am getting stuck at $$ \beta\int e^{-\alpha\left|\mathbf{r}-\mathbf{R}_{A}\right|^{2}}[3-2\beta|\mathbf{r}-\mathbf{R}_{B}|^2]e^{-\beta\left|\mathbf{r}-\mathbf{R}_{B}\right|^{2}}dr $$ Now I know that the two gaussians with combine to form $$ K\beta\int e^{-p\left|\mathbf{r}-\mathbf{R}_{p}\right|^{2}}[3-2\beta|\mathbf{r}-\mathbf{R}_{B}|^2]dr $$ Where $p=\alpha+\beta$ and $\mathbf{R}_{P}=\left(\alpha \mathbf{R}_{A}+\beta \mathbf{R}_{B}\right) /(\alpha+\beta)$
To calculate the overlap integral where the del square term wasnt present we could just substitute $|r-Rp|=r_1$ and $dr=dr_1$ and solve the integral. But what substitution do I make here. In the book the final given equation is as follows. (eqn A.11) $$\begin{aligned}\left(A\left|-\frac{1}{2} \nabla^{2}\right| B\right)=& \alpha \beta /(\alpha+\beta)\left[3-2 \alpha \beta /(\alpha+\beta)\left|\mathbf{R}_{A}-\mathbf{R}_{B}\right|^{2}\right][\pi /(\alpha+\beta)]^{3 / 2} \\ & \times \exp \left[-\alpha \beta /(\alpha+\beta)\left|\mathbf{R}_{A}-\mathbf{R}_{B}\right|^{2}\right] \end{aligned}$$