By letting , differentiating to get , which becomes
Substituting into the integral, you get
However
So simplifying the expression
And as we've changed the variable, we need to change the limits of the integral
As , when
And when
So the integral becomes
Becoming