I want to evaluate an integral of the form:
using python sympy, however, I am not able to do so.
This is what I have implemented:
import sympy as sym
r,a,b = sym.symbols('r,a,b')
I = r/sym.sqrt((a-r)*(r-b))
I_1 = sym.integrate (I,r)
print (I_1)
The result that I am getting is: Integral(r/sqrt(-(-a + r)*(-b + r)), r)
Thus, it is not evaluating the integral, rather just simplifying the equation.
Can anyone help me with this?



To simplifying integral you can use:
To solve integral you can use: