%% 
%%  An UIT Edition example
%% 
%%  Example 10-09-11 on page 221.
%% 
%%  Copyright (C) 2010 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{177.70511pt}
\AtBeginDocument{\setlength\parindent{0pt}}
\StartShownPreambleCommands
\usepackage{amsmath}
\StopShownPreambleCommands
\begin{document}
\begin{align*}
 (x^{5}+x^{2}):(x^{3}+x^{2}) &= x^{2}-x+1\\
 \underline{{-(x^{5}+x^{4})}}\hspace{9ex}\\
 -x^{4}+x^{2}\hspace{5ex}\\
 \underline{{-(-x^{4}-x^{3})}}\hspace{4.5ex}\\
 x^{3}+x^{2}\hspace{1.5ex}\\
 \underline{{-(x^{3}+x^{2})}\hspace{1ex}}\\
 0\hspace{5ex}
\end{align*}
\end{document}
