TeX source:
\left(x^{4}-x^{2}+5 x-2\right) \div(x+2)