I'm learning single variable calculus right now. Right now trying to understand integration with partial fraction. I'm confused in a problem from sometime. I think I'm doing right but answer in my book is something else.
Please have a look at the images.

The Solution given in my Book
I know there's is a difference in finding value of A and B. But in previous exercise I was applying the same method and was getting correct answer. Please help. thankyou in advance.
I think I get the answer of my question from where I was wrong.