Evaluate the integral using trigonometric substitution.