I have the question:
Here is my attempt is this correct ?
Yes, this is correct.
However you lost your constant of integration somewhere in the middle.