Solution:
Place the coefficients of \(x^3-x^2+2x+4\) in the top row and drop the leading coefficient to the bottom row.
\begin{equation*}
\begin{array}{c|rrrr}
2 \amp 1 \amp -1 \amp 2 \amp 4\\
\amp \amp \amp \amp \\
\hline
\amp 1 \amp \amp \amp
\end{array}
\end{equation*}
Multiply the bottom entry by \(2\) and place the result beneath the next coefficient. Then add.
\begin{equation*}
\begin{array}{c|rrrr}
2 \amp 1 \amp -1 \amp 2 \amp 4\\
\amp \amp +2 \amp \amp \\
\hline
\amp 1 \amp 1 \amp \amp
\end{array}
\end{equation*}
Repeat the process with the newest bottom entry.
\begin{equation*}
\begin{array}{c|rrrr}
2 \amp 1 \amp -1 \amp 2 \amp 4\\
\amp \amp +2 \amp +2 \amp \\
\hline
\amp 1 \amp 1 \amp 4 \amp
\end{array}
\end{equation*}
Repeat the process one final time.
\begin{equation*}
\begin{array}{c|rrrr}
2 \amp 1 \amp -1 \amp 2 \amp 4\\
\amp \amp +2 \amp +2 \amp +8 \\
\hline
\amp 1 \amp 1 \amp 4 \amp 12
\end{array}
\end{equation*}
Read off the quotient and the remainder from the bottom row.
-
Remainder \(= 12\) (last number)
-
Quotient \(=1x^2+1x+4=x^2+x+4\)
