answering this question step by step is not possible , it will be possible if i can send images but it is not possible however i try to explain the process of solving it , i hope you can get it .
in the question x-1 can also be written as A.d/dx(x2-5x+6)+B
and we will split this integration in two parts and then it will become a simple integration on formula based.