Now let's rexamine the integral:
Making the proper substitutions, we end up with
Integrating, we end up with (we need a constant since this is indefinite integration [no limits])
But we were after , so now backsubstitute back into your antiderivate to now get
Does this process make a little more sense now?