%% 
%%  Der Mathematiksatz mit LaTeX, 1. Auflage 2009
%% 
%%  Example 10-9-11 on page 234.
%% 
%%  Copyright (C) 2009 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.
%% 

\documentclass[]{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{170.59192pt}
\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}
