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.
The correct answer says (x-1)^3/3
Why didnt my method work?