It looks to me that you have correctly applied the method, although don't forget the constant of integration.

If you have doubts about your indefinite integration result, recall that you may use differentiation as a check:

Since the derivative of the anti-derivative is the original integrand, you know the result is correct.