I want to evaluate the following integral:
$$ \int_{1/2}^1 \frac{1}{x \sqrt{(1-x)x}} dx$$
I would compute this as
$$ \frac{2(x-1)}{\sqrt{(1-x)x}}\biggr\rvert_{1/2}^1 $$
which is not defined at $1$.
However, Mathematica evaluates the definite integrals as $2$.
I can see how one would obtain approximately 2 by evaluating it close to 1, but is it correct?
In other words: Is $2$ the correct answer, or is the integral really not defined?