Integral of $\int{\frac{2x-3}{(3x^2-2x+4)\sqrt{x^2-3x+1}}}dx$ I need to solve the following integral:
$$\int{\frac{2x-3}{(3x^2-2x+4)\sqrt{x^2-3x+1}}}dx$$
First I tried factorizing the denominators but it wasn't helpful. Then I thought about completing the square in $3x^2-2x+4$ but nothing came from there. I don't know if there might be any useful trigonometric substitution I could use or maybe some other substitution. I also tried with $t = \sqrt{x^2-3x+1}$  and $t = \frac{1}{x^2-2x+4}$ but also got me nowhere. Thanks for reading and your help. 
 A: $$\int\dfrac{2x - 3}{\left(3x^2 - 2x + 4\right)\sqrt{x^2 - 3x + 1}}\,\mathrm dx\equiv2\int\dfrac{2x - 3}{\left(3x^2 - 2x + 4\right)\sqrt{\left(2x - 3\right)^2 - 5}}\,\mathrm dx$$
Let $u = 2x - 3\implies\mathrm du = 2\,\mathrm dx$. Therefore,
$$\int\dfrac{2x - 3}{\left(3x^2 - 2x + 4\right)\sqrt{\left(2x - 3\right)^2 - 5}}\,\mathrm dx\equiv2\int\dfrac u{\left(3u^2 + 14u + 31\right)\sqrt{u^2 - 5}}\,\mathrm du$$
Let $u = \sqrt 5\sec(v)\implies \mathrm du = \sqrt5\sec(v)\tan(v)\,\mathrm dv$. Therefore,
$$\begin{align}\int\dfrac u{\left(3u^2 + 14u + 31\right)\sqrt{u^2 - 5}}\,\mathrm du&\equiv\int\dfrac{5\sec^2(v)\tan(v)}{\left(15\sec^2(v)+ 14\sqrt5\sec(v) + 31\right)\sqrt{5\sec^2(v) - 5}}\,\mathrm dv \\ &\stackrel{\sec^2(v) = 1 + \tan^2(v)}=\sqrt5\int\dfrac{\sec^2(v)}{15\sec^2(v) + 14\sqrt5\sec(v) + 31}\,\mathrm dv\end{align}$$
Perform tangent half-angle substitution.
$$\int\dfrac{\sec^2(v)}{15\sec^2(v) + 14\sqrt5\sec(v) + 31}\,\mathrm dv\equiv\int\dfrac{\left(1 + \tan^2\left(\frac v2\right)\right)^2}{\left(1 - \tan^2\left(\frac v2\right)\right)^2\left(\frac{15\left(1 + \tan^2\left(\frac v2\right)\right)^2}{\left(1 - \tan^2\left(\frac v2\right)\right)^2} + \frac{14\sqrt5\left(1 + \tan^2\left(\frac v2\right)\right)}{1 - \tan^2\left(\frac v2\right)} + 31\right)}\,\mathrm dv$$
Let $t = \tan\left(\dfrac v2\right)\implies\mathrm dv = \dfrac2{1 + t^2}\,\mathrm dt$. Therefore,
$$\begin{align}&\int\dfrac{\left(1 + \tan^2\left(\frac v2\right)\right)^2}{\left(1 - \tan^2\left(\frac v2\right)\right)^2\left(\frac{15\left(1 + \tan^2\left(\frac v2\right)\right)^2}{\left(1 - \tan^2\left(\frac v2\right)\right)^2} + \frac{14\sqrt5\left(1 + \tan^2\left(\frac v2\right)\right)}{1 - \tan^2\left(\frac v2\right)} + 31\right)}\,\mathrm dv\\&\equiv-\int\dfrac{1 + t^2}{\left(7\sqrt5 - 23\right)t^4 + 16t^2 - 7\sqrt5 - 23}\,\mathrm dt\end{align}$$
Now, factor the denominator and perform partial fraction decomposition.
A: Using the substitution $u^2 = x^2-3x+1$ we get that
$$2du = \frac{2x-3}{\sqrt{x^2-3x+1}}dx$$
which is exactly $2$ out of the $3$ terms that we need to kill for our integral. Then using quadratic equation to solve for $x$ we get that
$$x = \frac{3}{2}\pm\sqrt{u^2+\frac{5}{4}}$$
$$x^2 = u^2 + \frac{7}{3} \pm 3\sqrt{u^2+\frac{5}{4}}$$
so our integral becomes the slightly nicer looking
$$\int \frac{2\:du}{3u^2+8\pm 7\sqrt{u^2+\frac{5}{4}}}$$
and at this point so far trig and hyperbolic substitutions haven't been working nicely. Wolfram is not giving a straight answer, either, so who knows if an elementary real answer exists.
