In the general case? Poorly.
Usually when encountering polynomials of this type, you're dealing with integers, so polynomials of the types
$$\begin{align*}
&x^2 -x + 2 \\
&2x^2 - 3x + 1 \\
&4x^2 - 9
\end{align*}$$
and so on. When you're dealing with non-integers, it begins to get rougher.
If your polynomials have rational coefficients, say
$$\begin{align*}
&\frac 1 2 x^2 - \frac 9 5 \\
&x^2 + \frac 3 4 x - \frac 1 7
\end{align*}$$
and so on, you can reduce to the first case by multiplying by the lowest common denominator for the fractions, i.e. the lowest common multiple of the denominators. Hence in both of these cases, you can "do it in your head" by checking factorizations of the constant term, essentially.
If you have irrational coefficients, you're stuck. You might get lucky (certain polynomials may have a form you can exploit, e.g. from the difference of squares formula, you can get by easily if you don't have a linear coefficient), but in general you have little choice but to use the quadratic formula. For the quadratic $ax^2+bx+c$, you will have two roots,
$$
r_{+,-} = \frac{-b \pm \sqrt{b^2-4ac}}{2a}
$$
and then $ax^2+bx + c = a(x-r_+)(x-r_-)$.