When you make the substitution , you are converting the integrand to a function of , which means your terminals need to be values of , not .

So it should be .

But on an entirely different note, I believe hyperbolic substitution will be easier than trigonometric in this case.

Let .