$\displaystyle\int\frac{1}{x^4 + x^2 + 1}\mathrm{d}x$ using the trig substitution.
My attempt: I got $\left(x^2 + \frac{1}{2}\right)^2+\frac{3}{4}$ and did $x= \frac{1}{\sqrt2}\tan \theta$ but did not know how to proceed because I got $\displaystyle\int\frac{\sec^2\theta}{\sec^4\theta+ 3}\mathrm{d}\theta$ after factoring out the constant