One really quick way to tell whether $ax^2+bx+c$ can be factored using real numbers (where $a,b,c$ are assumed to be real) is by the discriminant $b^2-4ac.$ If the discriminant is negative, you can't factor the polynomial using real numbers. If the discriminant is $0,$ then you have a perfect square and you don't need partial fractions. If the discriminant is positive, then use partial fractions.
Even if you need imaginary numbers to do the factorization, you can still do a partial fraction decomposition, thus:
$$
\frac 1 {x^2+8x+20} = \frac{i/4}{x+4+2i} - \frac{i/4}{x+4-2i}.
$$
The reason for avoiding this is not in the arithmetic or the algebra, but rather, complications enter when you do calculus with complex numbers, so that is saved for a later course.
Sometimes more insight follows from completing the square than from thinking about the discriminant:
\begin{align}
& \int \frac{dx}{x^2+8x+20} = \int \frac{dx}{(x+4)^2+4} = \frac 1 2 \int\frac{dx/2}{\left(\frac{x+4} 2 \right)^2 + 1} \\[10pt]
= {} & \frac 1 2 \int \frac{du}{u^2+1} = \frac 1 2 \arctan u + C = \cdots\cdots
\end{align}
The fact that you get $(\cdots\cdots)^2+4,$ with ${}+4$ rather than with a negative number there, is what tells you you can't factor this using real numbers. If there had been a negative number, this could be factored as a difference of two squares.