This integral appeared in my recent integral calculus test. I tried to make a few attempts, but none of them seemed to simplify the integral.
Attempt $1$: Substituting $x\to\tan x$,
$$I=\int_0^{\pi/2}\frac{dx}{\sqrt{\tan^2x-\tan x+1}}=\sqrt2\int_0^{\pi/2}\frac{\cos x\,dx}{\sqrt{2-\sin2x}}$$
The $\tan x$ in the denominator is creating a problem, I am not able to find a way to handle it.
Attempt $2$: Substituting $x\to\frac1x$,
$$I=\int_0^\infty\frac{x\,dx}{(x^2+1)\sqrt{x^2-x+1}}\tag1$$
I tried adding this and the original integrals to get
$$I=\frac12\int_0^\infty\frac{x+1}{(x^2+1)\sqrt{x^2-x+1}}dx$$
But this doesn’t seem to simplify anything. Then, I tried IBP in $(1)$ with $u=\frac1{\sqrt{x^2-x+1}}$ and $dv=\frac{x\,dx}{x^2+1}$, but it gave a more complicated integral to solve:
$$I=\frac14\int_0^\infty\frac{(2x-1)\ln(x^2+1)}{(x^2-x+1)^\frac32}dx$$
Attempt $3$: Substituting $x-\frac12\to\frac{\sqrt3}2\sinh x$,
$$I=4\int_{-\frac12\ln3}^\infty\frac{dx}{3\sinh^2x+2\sqrt3\sinh x+5}=16\int_\frac1{\sqrt3}^\infty\frac{x\,dx}{3x^4+4\sqrt3x^3+14x^2-4\sqrt3x+3}$$
Attempt $4$: Euler substitution $t_\pm=\sqrt{x^2-x+1}\pm x$,
$$I=2\int_1^\infty\frac{2t_+-1}{t_+^4+2t_+^2-4t_++2}dt_+=2\int_{-1/2}^1\frac{2t_-+1}{t_-^4+2t_-^2+4t_-+2}dt_-$$
The polynomials $3x^4+4\sqrt3x^3+14x^2-4\sqrt3x+3, x^4+2x^2\pm4x+2$ have all roots unreal, so if I resort to partial fraction decomposition, it will be really messy and tedious and not something I’d be able to do in a timed test.
Any ideas as to how to tackle this integral in some other elegant way or proceed with any of the integrals I obtained in my attempts are highly appreciated.
FullSimplify[ Integrate[1/((x^2 + 1)*Sqrt[x^2 - x + 1]), {x, 0, Infinity}]]has been calculating for 10 minutes now lol. Also, @ThinhDinh's proposed closed form matches the numerical value to a large number of digits so its probably right. – Max0815 May 05 '25 at 06:44