Sorting out the second integration variable
Then using the integration template the second integral becomes
Putting the exponential with the similar term in the integral over r1 yields
(4)
The next step for the r1 integration is to combine the powers of r1
(5)
and to simplify the factor
and to finally evaluate the last integral
(7)