Problem 114
Medium Exponential and Logarithmic

Evaluate the integral: I = integral (x³)/(x+3) dx

Evaluate the integral: $$ I = \int \frac{x^3}{x+3}\,dx. $$

Explanation of Method

Since the numerator's degree exceeds the denominator's, polynomial long division reduces the integrand to a polynomial plus a simple remainder term, both of which integrate directly.

  1. Divide $x^3$ by $x+3$ using polynomial long division.
  2. Rewrite the integral as a polynomial plus a remainder fraction.
  3. Integrate term by term.

Step 1 · Polynomial long division

Dividing $x^3$ by $x+3$:

$$ \frac{x^3}{x+3} = x^2 - 3x + 9 - \frac{27}{x+3}. $$

This can be verified by multiplying back: $(x+3)(x^2-3x+9) = x^3+27$, so $x^3 = (x+3)(x^2-3x+9) - 27$.

Step 2 · Rewrite the integral

Substituting the division result:

$$ I = \int \left(x^2 - 3x + 9 - \frac{27}{x+3}\right) dx. $$

Step 3 · Integrate term by term

Integrating each term:

$$ \int x^2\,dx = \frac{x^3}{3}, \qquad \int -3x\,dx = -\frac{3x^2}{2}, \qquad \int 9\,dx = 9x, \qquad \int \frac{27}{x+3}\,dx = 27\ln|x+3|. $$

Step 4 · Combine the results

Adding all the pieces together:

$$ I = \frac{x^3}{3} - \frac{3x^2}{2} + 9x - 27\ln|x+3| + C. $$


Summary Table

Term Antiderivative
$x^2$$x^3/3$
$-3x$$-3x^2/2$
$9$$9x$
$-27/(x+3)$$-27\ln|x+3|$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac{x^3}{3} - \frac{3x^2}{2} + 9x - 27\ln|x+3| + C. $$