I was trying to do a computational project from Computational Physics by Steven Koonin. The problem requires us to solve two integrals each of which has singularity at the lower limit and numerically i have been not able to solve this problem. The integral is $$ \theta = 2b \left [ \int_b^{r_{max}} \frac{dr}{r^2}(1- \frac{b^2}{r^2})^{-1/2} - \int_{r_{min}}^{r_{max}} \frac{dr}{r^2}(1-\frac{b^2}{r^2} - \frac{V}{E})^{-1/2} \right ] $$
Here, $r_{min}$ is the root of argument in second square root and b is root for first integral.
Can anyone suggest some method to solve this numerically preferably by simpsons 1/3rd or trapezoidal rule? I am working with python.