# Math Help - Indefinite integral

1. ## Indefinite integral

I solved this but my answer differs from the correct answer in my solution manual

integral (x-1)^2

I expanded the integrand and got x^2-2x+1 so I separated the integral into three for each term and got the different answer.

Why didnt my method work?

2. Originally Posted by swimmergirl
I solved this but my answer differs from the correct answer in my solution manual

integral (x-1)^2

I expanded the integrand and got x^2-2x+1 so I separated the integral into three for each term and got the different answer.

Note: $\int \! (ax + b)^n \, dx = \frac{1}{a} \cdot \frac{1}{(n+1)} (ax + b)^{n+1} + C$ provided $n \neq -1$.