Is there a nice algebraic way to solve the following geometrically motivated integral?
$$\int_{-1}^1\frac{m(2m-1)x^{2m-2}(1-x^{2m})+m^2x^{4m-2}}{(m^2x^{4m-2}+1-x^{2m})\sqrt{1-x^{2m}}}dx,$$ where $m$ is a positive integer.
In fact, this integral can be shown to be the integral of the curvature of the plane curve $x^{2m}+y^2=1, y\geq0$, which is the angle rotated by the tangent vector of the curve as it traverses along the curve. So this integral is $\pi$, but I would like to see some alternative, algebraic solutions.
@user10354138' solution:
Denote the integrand by $f(x)$. We have \begin{align} &\frac{\mathrm{d}}{\mathrm{d} x}\arctan\frac{m x^{2m - 1}}{\sqrt{1 - x^{2m}}} \\ =\ & \frac{1}{1 + (\frac{m x^{2m - 1}}{\sqrt{1 - x^{2m}}})^2} \left(\frac{m(2m - 1) x^{2m - 2}}{\sqrt{1 - x^{2m}}} + \frac{m^2x^{4m - 2}}{(1 - x^{2m})\sqrt{1 - x^{2m}}} \right)\\ =\ & f(x). \end{align} Thus, $$\int_{-1}^1 f(x) \mathrm{d} x = \arctan\frac{m x^{2m - 1}}{\sqrt{1 - x^{2m}}}\Big\vert_{-1}^1 = \pi.$$