[Tex/LaTex] How to draw polynom division

polynom

I want to draw this scheme, but I do not know how to start. Please help me.

enter image description here

Best Answer

Is (local) layout important?

Typesetting polynom division can easy be done with the polynom package:

\documentclass{article}
\usepackage{polynom}

\begin{document}
\textbf{Style A:}\par % this is the default
\polylongdiv[style=A]{6x^3-2x^2+x+3}{x^2-x+1}

\textbf{Style B:}\par
\polylongdiv[style=B]{6x^3-2x^2+x+3}{x^2-x+1}

\textbf{Style C:}\par
\polylongdiv[style=C]{6x^3-2x^2+x+3}{x^2-x+1}

\textbf{Style D:}\par
\polylongdiv[style=D]{6x^3-2x^2+x+3}{x^2-x+1}
\end{document}

enter image description here

I'm afraid I didn't try to change layout (yet), but that will be another question...

Related Question