Advanced integration, how to integrate 1/polynomial ? Thanks I have been trying to integrate a function with a polynomial as the denominator.
i.e, how would I go about integrating 
$$\frac{1}{ax^2+bx+c}.$$
Any help at all with this would be much appreciated, thanks a lot :)
ps The polynomial has NO real roots 
$${}{}$$

The details depend on $a$, $b$, and $c$. 
Assume $a\ne 0$. If there are two distinct real roots, use partial fractions.
If there are two identical real roots, we are basically integrating $\dfrac{1}{u^2}$.
If there are no real roots, complete the square. With the right substitution, you basically end up integrating $\dfrac{1}{1+u^2}$, and get an $\arctan$.
For polynomials of higher degree, factor as a product of linear terms and/or quadratics with no real roots. (In principle this can be done. In practice, it may be very unpleasant). 
Then using partial fractions and substitutions you end up with integrals of $\dfrac{1}{u^{n}}$, and/or $\dfrac{u}{(1+u^2)^{n}}$ and/or $\dfrac{1}{(1+u^2)^{n}}$. All of these are doable.   
Added: It turns out the OP was interested in the irreducible case. Will write a bit on that, because I want to advocate a procedure slightly different from the standard one. Assume that $a$ is positive. 
Rewrite $\dfrac{1}{ax^2+bx+c}$ as 
$\dfrac{4a}{4a^2x^2+4abx+4ac}$, and then, completing the square, as $\dfrac{4a}{(2ax+b)^2+4ac-b^2}$.
Note that $4ac-b^2$ is positive. Call it $k^2$, with $k$ positive.
Make the change of variable $2ax+b=ku$. Substitute. There is some cancellation, and we end up integrating $\dfrac{2}{k}\dfrac{1}{1+u^2}.$
I would suggest going through this procedure in any individual case. As an example, with $\dfrac{1}{x^2+x+1}$ we write $\dfrac{4}{4x^2+4x+4}$, then $\dfrac{4}{(2x+1)^2+3}$, make the change of variable $2x+1=\sqrt{3} u$.  
Another addition: The OP has expressed a wish to see the particular problem $\int\frac{dx}{x^2+10x+61}$.  The numbers here are particularly simple, designed for the "standard" style, so we will do it that way.  Also, we will use more steps than necessary.
First we complete the square. We get $x^2+10x+61=(x+5)^2-25+61=(x+5)+36$.
Now let $u=x+5$. Then $du=dx$ and
$$\int\frac{dx}{x^2+10x+61}\int \frac{dx}{(x+5)^2+36}=\int\frac{du}{u^2+36}.$$
Now maybe think: it would be nice if we had $u^2=36w^2$, because the $36$ could then "come out." So let $u=6w$. Then $du=6\,dw$, and we get
$$\int\frac{du}{u^2+36}=\int \frac{6\,dw}{36w^2+36}=\int\frac{1}{6}\frac{dw}{w^2+1}=\frac{1}{6}\arctan(w) +C.$$
Finally, we undo our substitution. We have $w=\frac{u}{6}=\frac{x+5}{6}$.
