Just wandering how to do long division in latex. Say I want to divide

The way I did it was as follows. Is there an easier or neater way of doing this? Thanks.
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $x+1$\newline
$x^2+8x+15\overline{)x^3+9x^2+28x+34}$\\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $\underline{x^3+8x^2+15x}$\\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $x^2+13x+34$\\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $\underline{x^2+ \ 8x+15}$\\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $5x+19$