Show that $\int_{0}^{\infty}{1\over x^{2}-x+1}{\mathrm dx\over \sqrt{x}}=\int_{0}^{\infty}{1\over (x^{2}-x+1)^2}{\mathrm dx\over \sqrt{x}}={\pi}$ Consider these integrals

$$\int_{0}^{\infty}{1\over x^{2}-x+1}\cdot{\mathrm dx\over \sqrt{x}}={\pi}\tag1$$
$$\int_{0}^{\infty}{1\over (x^{2}-x+1)^2}\cdot{\mathrm dx\over \sqrt{x}}={\pi}\tag2$$

An attempt:
Rewrite $(2)$ as
$$\int_{0}^{\infty}{16\over [(2x-1)^2+3]^2}\cdot{\mathrm dx\over \sqrt{x}}\tag3$$
$u=(2x-1)^{1/2}$, then $(3)$ becomes
$$\int_{i}^{\infty}{16u\over (u+3)^2}\mathrm du\tag4$$
$$\int_{i}^{\infty}\left({19\over 6(u+3)}-{3\over (u+3)^2}\right)\mathrm du\tag5$$
I don't think it makes sense to have the limit as an imaginary number.
Another sub: $u=2x-1$ then $(2)$ becomes
$$8\sqrt{2}\int_{-1}^{\infty}{1\over (u^2+3)^2}\cdot{\mathrm du\over \sqrt{u+1}}\tag6$$
Another sub: $u=x^2-x+1$ then $(2)$ becomes
$$\int_{1}^{\infty}{\mathrm du\over u^2\sqrt{u-3}}\cdot{\sqrt{2}\over \sqrt{1+\sqrt{u-3}}}\tag7$$
I am not getting anywhere!
How would one show that $(1)=(2)$ and verify its closed form?

Alternative computation.
$\displaystyle J=\int_{0}^{\infty}{1\over x^{2}-x+1}\cdot{\mathrm dx\over \sqrt{x}}$
Perform the change of variable $y=\sqrt{x}$,
$\begin{align} J&=2\int_{0}^{\infty}{1\over x^{4}-x^2+1}dx\\
&=2\int_{0}^{\infty}{1+x^2\over x^{6}+1}dx\\
&=2\int_{0}^{\infty}{1\over 1+x^{6}}dx+2\int_{0}^{\infty}{x^2\over x^{6}+1}dx
\end{align}$
In the last two integrals perform the change of variable $y=x^6$,
$\begin{align} J&=\dfrac{1}{3}\int_{0}^{\infty} \dfrac{x^{-\tfrac{5}{6}}}{1+x}dx+\dfrac{1}{3}\int_{0}^{\infty} \dfrac{x^{-\tfrac{1}{2}}}{1+x}dx\\
&=\dfrac{1}{3}\text{B}\left(\tfrac{1}{6},\tfrac{5}{6}\right)+\dfrac{1}{3}\text{B}\left(\tfrac{1}{2},\tfrac{1}{2}\right)\\
&=\dfrac{1}{3}\Gamma\left(\tfrac{1}{2}\right)^2+\dfrac{1}{3}\Gamma\left(\tfrac{1}{6}\right)\Gamma\left(\tfrac{5}{6}\right)\tag 1\\
&=\dfrac{1}{3}\dfrac{\pi}{\sin\left(\tfrac{\pi}{2}\right)}+\dfrac{1}{3}\dfrac{\pi}{\sin\left(\tfrac{\pi}{6}\right)}\tag 2\\
&=\dfrac{1}{3}\pi+\dfrac{2}{3}\pi\\
&=\boxed{\pi}
\end{align}$
1)
https://en.wikipedia.org/wiki/Beta_function#Relationship_between_gamma_function_and_beta_function
2) https://en.wikipedia.org/wiki/Reflection_formula
