\documentclass{article}
\usepackage{epsfig}
\pagestyle{empty}
\begin{document}
$output = gain * (a1 * input + a2 * input^2 + a3 * input^3)$
\pagebreak

\end{document}
