Simplify (x^2+3x+1)/(x-4) by performing long division.

Check the final answer first, then review the worked steps.

Answer

\(x + 7 + \frac{29}{x-4}\)

Work

$$(x^2 + 3x + 1) \div (x - 4) = x + 7 + \frac{29}{x - 4}$$

Step-by-step solution

  1. Divide the first term of the numerator by the first term of the denominator: $x^2 \div x = x$.
  2. Multiply $x$ by $(x-4)$ to get $x^2 - 4x$.
  3. Subtract this from the numerator: $(x^2 + 3x + 1) - (x^2 - 4x) = 7x + 1$.
  4. Divide the new first term by the denominator: $7x \div x = 7$.
  5. Multiply $7$ by $(x-4)$ to get $7x - 28$.
  6. Subtract this from the current remainder: $(7x + 1) - (7x - 28) = 29$.
  7. Write the result as the quotient plus the remainder over the divisor: $x + 7 + \frac{29}{x-4}$.