I'm slightly confused because the answer on the right, the one you say is correct, is missing a negative sign isn't it ?

That aside, the two answers are equivalent, the confusion coming from your use of for both calculations. It would have been better to use for one and for the other.

Then, that is, or

The gets swallowed up by the constant of integration.