I get their difference is
so I wouldn't call them equal. Why do you think they are?
Ok, I show that the derivatives of each of these expressions do indeed equal the integrand but remember that there is a constant of integration when you integrate. So the two expressions you have that integral equal to can in fact differ by a constant, which they apparently do.