Here is where you fail. a - b = ab-b (a+b)(a-b) = b(a-b) It would actually be on the right hand side of the equation either: = ab-b^2 OR = b(a-1) Simple algebra IS pretty tricky. I can see how you would get confused...