Use trigonometric substitution to evaluate the integral.