How should I try to evaluate the integral $\int_a^b \sqrt{1 + \frac{x^2}{r^2 - x^2}} \; dx$ I've tried to evaluate $\displaystyle\int_{-r}^r \sqrt{1 + \frac{x^2}{r^2 - x^2}} \; dx$ on my own, but I have encountered a problem I cannot get around.
The indefinite integral $\sqrt{\frac{r^2}{r^2-x^2}} \sqrt{r^2-x^2} \tan ^{-1}\left(\frac{x}{\sqrt{r^2-x^2}}\right) + C$ is undefined at both limits of integration
(the fractions $\frac{r^2}{r^2-r^2} = \frac{r^2}0 = \text{indetermined}$ and $\frac{({-r})^2}{r^2-r^2} = \frac{r^2}0 = \text{indetermined}$)
so I really don't know what to do. Apparently, the value of this integral should be $\pi r.$ Any help would be appreciated.

hint...The integrand is equivalent to $$\frac {r}{\sqrt{r^2-x^2}}$$
