Now matter what I do I can't seem to find the error in my completion of the square... It's probably something obvious but I'm running out of ideas at this point.
I'm trying to complete : $ 3 x^{2}-2 x+4 $ in order to solve this integral : $ \int \frac{d x}{3 x^{2}-2 x+4} $
I get : $$ \left(x-\frac{1}{3}\right)^{2}+\frac{11}{9} $$
But by going through with the integral (and I am 100% sure of the integral calculation) I do not arrive at the correct answer: hence my 'basic' square completion is has to be wrong, but I really can't see how else I would do it. Here is how I went about doing it: $$ \left(x-\frac{2 x}{3}-\frac{1}{2}\right)^{2}+\frac{4}{3}-\frac{1}{9} $$
I am also open to any suggestions for better methods of course !
You have missed a factor $3$:$$3x^2-2x+3=3\left(\left(x-\frac13\right)^2+\frac{11}9\right).$$In fact\begin{align}3x^2-2x+4&=3\left(x^2-\frac23x+\frac43\right)\\&=3\left(\left(x-\frac13\right)^2-\frac1{3^2}+\frac43\right)\\&=3\left(\left(x-\frac13\right)^2+\frac{11}9\right).\end{align}