Answer
$3x-4$
Work Step by Step
Setup:
Dividing with $x-k$, place k as the top left entry.
List coefficients of the numerator (0 for missing powers) in the first row.
Copy the leading coefficient to the bottom row, same column.
$\begin{array}{rrr}
{3 )} &{3}&{-5}&{-12}\\
{ } &{ }&{ } &{ }\\
\hline &{3 }&{ } &{ }\end{array}$
Fill the next entries, column by column:
Middle row: k$\times$(previous bottom row entry)
Bottom row: add the two entries above.
Repeat.$\begin{array}{rrr}
{3 )} &{3}&{-5}&{-12}\\
{ } &{ }&{ 9} &{ 12 }\\
\hline &{3 }&{4 } &{0 }\end{array}$
Interpret result: Q(x) is the quotient, R(x) the remainder.
$Q(x)=3x-4,\quad R(x)=0$
$\displaystyle \frac{P(x)}{D(x)}=Q(x)+\frac{R(x)}{D(x)}$
$\displaystyle \frac{3x^{2}-5x-12}{x-3}=3x-4$