How to choose a trigonometric substitution

A square root with a sum or difference of squares often gets easier when we use a trig identity. Which substitution we choose depends on the expression inside the radical. We’ll look at the three patterns and use one after completing the square.

Match the radical to a trig identity

Choose the substitution that simplifies the square root
RadicalSubstitution
a2-u2u=asinθ
a2+u2u=atanθ
u2-a2u=asecθ

Here a>0. Choose an angle range that keeps the radical nonnegative and makes the substitution reversible on the interval you are using.

Complete the square to find a secant pattern

∫x2x2-4x-7dx

The expression under the root is 2(x-1)2-9. Use u=2(x-1), and on the right-hand interval use u=3secθ with 0<θ<π2. This gives u2-9=3tanθ.

x=1+32secθdx=32secθtanθdθ

After canceling the tangent factor, the integral becomes

12∫secθdθ+32∫sec2θdθ

Return to the original variable

Write D=2x2-4x-7. Then tanθ=D3 on this branch. Using the two antiderivatives gives

D2+12ln|2(x-1)+D|+C

The factor of 3 inside the logarithm can be absorbed into C. Differentiation confirms this expression on either interval where D>0. Each interval can have its own constant.