# Calculus/Integration techniques/Trigonometric Substitution

Integral of sqrt(x+1)/x (substitution + partial fraction decomposition)
Integral of sqrt(x+1)/x (substitution + partial fraction decomposition)

The idea behind the trigonometric substitution is quite simple: to replace expressions involving square roots with expressions that involve standard trigonometric functions, but no square roots. Integrals involving trigonometric functions are often easier to solve than integrals involving square roots.

Let us demonstrate this idea in practice. Consider the expression $\sqrt{1-{x}^{2}}$ . Probably the most basic trigonometric identity is ${\mathrm{sin}}^{2}\left(\theta \right)+{\mathrm{cos}}^{2}\left(\theta \right)=1$ for an arbitrary angle $\theta$ . If we replace $x$ in this expression by $\mathrm{sin}\left(\theta \right)$ , with the help of this trigonometric identity we see

$\sqrt{1-{x}^{2}}=\sqrt{1-{\mathrm{sin}}^{2}\left(\theta \right)}=\sqrt{{\mathrm{cos}}^{2}\left(\theta \right)}=\mathrm{cos}\left(\theta \right)$

Note that we could write $\theta =\mathrm{arcsin}\left(x\right)$ since we replaced ${x}^{2}$ with ${\mathrm{sin}}^{2}\left(\theta \right)$ .

We would like to mention that technically one should write the absolute value of $\mathrm{cos}\left(\theta \right)$ , in other words $|\mathrm{cos}\left(\theta \right)|$ as our final answer since $\sqrt{{a}^{2}}=|a|$ for all possible $a$ . But as long as we are careful about the domain of all possible $x$ and how $\mathrm{cos}\left(\theta \right)$ is used in the final computation, omitting the absolute value signs does not constitute a problem. However, we cannot directly interchange the simple expression $\mathrm{cos}\left(\theta \right)$ with the complicated $\sqrt{1-{x}^{2}}$ wherever it may appear, we must remember when integrating by substitution we need to take the derivative into account. That is we need to remember that $dx=\mathrm{cos}\left(\theta \right)d\theta$ , and to get a integral that only involves $\theta$ we need to also replace $dx$ by something in terms of $d\theta$ . Thus, if we see an
integral of the form

$\int \sqrt{1-{x}^{2}}dx$

we can rewrite it as

$\int \mathrm{cos}\left(\theta \right)\mathrm{cos}\left(\theta \right)d\theta =\int {\mathrm{cos}}^{2}\left(\theta \right)d\theta$

Notice in the expression on the left that the first $\mathrm{cos}\left(\theta \right)$ comes from replacing the $\sqrt{1-{x}^{2}}$ and the $\mathrm{cos}\left(\theta \right)d\theta$ comes from substituting for the $dx$ .

Since ${\mathrm{cos}}^{2}\left(\theta \right)=\frac{1+\mathrm{cos}\left(2\theta \right)}{2}$ our original integral reduces to:

$\frac{1}{2}\int d\theta +\frac{1}{2}\int \mathrm{cos}\left(2\theta \right)d\theta$ .

These last two integrals are easily handled. For the first integral we get

$\frac{1}{2}\int d\theta =\frac{1}{2}\theta$

For the second integral we do a substitution, namely $u=2\theta ,du=2d\theta$ to get:

$\frac{1}{2}\int \mathrm{cos}\left(2\theta \right)d\theta =\frac{1}{2}\int \mathrm{cos}\left(u\right)\frac{1}{2}du=\frac{1}{4}\mathrm{sin}\left(u\right)=\frac{\mathrm{sin}\left(2\theta \right)}{4}$

Finally we see that:

$\int {\mathrm{cos}}^{2}\left(\theta \right)d\theta =\frac{\theta }{2}+\frac{\mathrm{sin}\left(2\theta \right)}{4}=\frac{\theta +\mathrm{sin}\left(\theta \right)\mathrm{cos}\left(\theta \right)}{2}$

However, this is in terms of $\theta$ and not in terms of $x$ , so we must substitute back in order to rewrite the answer in terms of $x$ .

That is we worked out that:

$\mathrm{sin}\left(\theta \right)=x\mathrm{cos}\left(\theta \right)=\sqrt{1-{x}^{2}}\theta =\mathrm{arcsin}\left(x\right)$

So we arrive at our final answer

$\int \sqrt{1-{x}^{2}}dx=\frac{\mathrm{arcsin}\left(x\right)+x\sqrt{1-{x}^{2}}}{2}$

As you can see, even for a fairly harmless looking integral this technique can involve quite a lot of calculation. Often it is helpful to see if a simpler method will suffice before turning to trigonometric substitution. On the other hand, frequently in the case of integrands involving square roots, this is the most tractable way to solve the problem. We begin with giving some rules of thumb to help you decide which trigonometric substitutions might be helpful.

If the integrand contains a single factor of one of the forms $\sqrt{{a}^{2}-{x}^{2}}\text{or}\sqrt{{a}^{2}+{x}^{2}}\text{or}\sqrt{{x}^{2}-{a}^{2}}$ we can try a trigonometric substitution.

• If the integrand contains $\sqrt{{a}^{2}-{x}^{2}}$ let $x=a\mathrm{sin}\left(\theta \right)$ and use the identity $1-{\mathrm{sin}}^{2}\left(\theta \right)={\mathrm{cos}}^{2}\left(\theta \right)$ .
• If the integrand contains $\sqrt{{a}^{2}+{x}^{2}}$ let $x=a\mathrm{tan}\left(\theta \right)$ and use the identity $1+{\mathrm{tan}}^{2}\left(\theta \right)={\mathrm{sec}}^{2}\left(\theta \right)$ .
• If the integrand contains $\sqrt{{x}^{2}-{a}^{2}}$ let $x=a\mathrm{sec}\left(\theta \right)$ and use the identity ${\mathrm{sec}}^{2}\left(\theta \right)-1={\mathrm{tan}}^{2}\left(\theta \right)$ .

If the integrand contains a piece of the form $\sqrt{{a}^{2}-{x}^{2}}$ we use the substitution

$x=a\mathrm{sin}\left(\theta \right)dx=a\mathrm{cos}\left(\theta \right)d\theta$

This will transform the integrand to a trigonometric function. If the new integrand can’t be integrated on sight then the tan-half-angle substitution described below will generally transform it into a more tractable algebraic integrand.

E.g., if the integrand is $\sqrt{1-{x}^{2}}$ ,

$\begin{array}{cc}\underset{0}{\overset{1}{\int }}\sqrt{1-{x}^{2}}dx& =\underset{0}{\overset{\frac{\pi }{2}}{\int }}\sqrt{1-{\mathrm{sin}}^{2}\left(\theta \right)}\mathrm{cos}\left(\theta \right)d\theta \\ =\underset{0}{\overset{\frac{\pi }{2}}{\int }}{\mathrm{cos}}^{2}\left(\theta \right)d\theta \\ =\frac{1}{2}\underset{0}{\overset{\frac{\pi }{2}}{\int }}\left(1+\mathrm{cos}\left(2\theta \right)\right)d\theta \\ =\frac{\pi }{4}\end{array}$

If the integrand is $\sqrt{\frac{1+x}{1-x}}$ , we can rewrite it as

$\sqrt{\frac{1+x}{1-x}}=\sqrt{\frac{1+x}{1+x}\cdot \frac{1+x}{1-x}}=\frac{1+x}{\sqrt{1-{x}^{2}}}$

Then we can make the substitution

$\begin{array}{ccc}\underset{0}{\overset{a}{\int }}\frac{1+x}{\sqrt{1-{x}^{2}}}dx& =\underset{0}{\overset{\alpha }{\int }}\frac{1+\mathrm{sin}\left(\theta \right)}{\mathrm{cos}\left(\theta \right)}\mathrm{cos}\left(\theta \right)d\theta & 0

When the integrand contains a piece of the form
$\sqrt{{a}^{2}+{x}^{2}}$
we use the substitution

$x=a\mathrm{tan}\left(\theta \right)\sqrt{{x}^{2}+{a}^{2}}=a\mathrm{sec}\left(\theta \right)dx=a{\mathrm{sec}}^{2}\left(\theta \right)d\theta$

E.g., if the integrand is $\left({x}^{2}+{a}^{2}{\right)}^{-\frac{3}{2}}$ then on making this substitution we find

$\begin{array}{ccc}\underset{0}{\overset{z}{\int }}\left({x}^{2}+{a}^{2}{\right)}^{-\frac{3}{2}}dx& ={a}^{-2}\underset{0}{\overset{\alpha }{\int }}\mathrm{cos}\left(\theta \right)d\theta & z>0\\ ={a}^{-2}\left[\mathrm{sin}\left(\theta \right){\right]}_{0}^{\alpha }& \alpha =\mathrm{arctan}\left(\frac{z}{a}\right)\\ ={a}^{-2}\mathrm{sin}\left(\alpha \right)\\ ={a}^{-2}\frac{\frac{z}{a}}{\sqrt{1+\frac{{z}^{2}}{{a}^{2}}}}\\ =\frac{z}{{a}^{2}\sqrt{{a}^{2}+{z}^{2}}}\end{array}$

If the integral is

$I=\underset{0}{\overset{z}{\int }}\sqrt{{x}^{2}+{a}^{2}}z>0$

then on making this substitution we find

$\begin{array}{cccc}I& =& {a}^{2}{\int }_{0}^{\alpha }{\mathrm{sec}}^{3}\theta d\theta & \alpha ={\mathrm{tan}}^{-1}\left(z/a\right)\\ =& {a}^{2}{\int }_{0}^{\alpha }\mathrm{sec}\theta d\mathrm{tan}\theta \\ =& {a}^{2}\left[\mathrm{sec}\theta \mathrm{tan}\theta {\right]}_{0}^{\alpha }& -& {a}^{2}{\int }_{0}^{\alpha }\mathrm{sec}\theta {\mathrm{tan}}^{2}\theta d\theta \\ =& {a}^{2}\mathrm{sec}\alpha \mathrm{tan}\alpha & -& {a}^{2}{\int }_{0}^{\alpha }{\mathrm{sec}}^{3}\theta d\theta & +{a}^{2}{\int }_{0}^{\alpha }\mathrm{sec}\theta d\theta \\ =& {a}^{2}\mathrm{sec}\alpha \mathrm{tan}\alpha & -& I& +{a}^{2}{\int }_{0}^{\alpha }\mathrm{sec}\theta d\theta \end{array}$

After integrating by parts, and using trigonometric identities, we’ve ended up with an expression involving the original integral. In cases like this we must now rearrange the equation so that the original integral is on one side only

 $I$ $=\frac{{a}^{2}}{2}\left(\mathrm{sec}\left(\alpha \right)\mathrm{tan}\left(\alpha \right)+\underset{0}{\overset{\alpha }{\int }}\mathrm{sec}\left(\theta \right)d\theta \right)$ $=\frac{{a}^{2}}{2}\left(\mathrm{sec}\left(\alpha \right)\mathrm{tan}\left(\alpha \right)+\left[\mathrm{ln}\left(\mathrm{sec}\left(\theta \right)+\mathrm{tan}\left(\theta \right)\right){\right]}_{0}^{\alpha }\right)$ $=\frac{{a}^{2}}{2}\left(\mathrm{sec}\left(\alpha \right)\mathrm{tan}\left(\alpha \right)+{a}^{2}\mathrm{ln}\left(\mathrm{sec}\left(\alpha \right)+\mathrm{tan}\left(\alpha \right)\right)\right)$ $=\frac{{a}^{2}}{2}\left(\frac{z}{{a}^{2}}\sqrt{{a}^{2}+{z}^{2}}+\mathrm{ln}\left(\frac{z+\sqrt{{a}^{2}+{z}^{2}}}{a}\right)\right)$ $=\frac{1}{2}\left(z\sqrt{{z}^{2}+{a}^{2}}+{a}^{2}\mathrm{ln}\left(\frac{z+\sqrt{{a}^{2}+{z}^{2}}}{a}\right)\right)$

As we would expect from the integrand, this is approximately $\frac{{z}^{2}}{2}$ for large $z$ .

In some cases it is possible to do trigonometric substitution in cases when there is no $\sqrt{}$ appearing in the integral.

Example

$\int \frac{dx}{{x}^{2}+1}$

The denominator of this function is equal to $\left(\sqrt{1+{x}^{2}}{\right)}^{2}$ . This suggests that we try to substitute $x=\mathrm{tan}\left(u\right)$ and use the identity $1+{\mathrm{tan}}^{2}\left(u\right)={\mathrm{sec}}^{2}\left(u\right)$ . With this substitution, we obtain that $dx={\mathrm{sec}}^{2}\left(u\right)du$ and thus

$\int \frac{dx}{{x}^{2}+1}=\int \frac{{\mathrm{sec}}^{2}\left(u\right)}{{\mathrm{tan}}^{2}\left(u\right)+1}du$

$=\int \frac{{\mathrm{sec}}^{2}\left(u\right)}{{\mathrm{sec}}^{2}\left(u\right)}du$

$=\int du$

$=u+c$

Using the initial substitution
$u=\mathrm{arctan}\left(x\right)$
gives

$\int \frac{dx}{{x}^{2}+1}=\mathrm{arctan}\left(x\right)+C$

If the integrand contains a factor of the form $\sqrt{{x}^{2}-{a}^{2}}$ we use the substitution

$x=a\mathrm{sec}\left(\theta \right)dx=a\mathrm{sec}\left(\theta \right)\mathrm{tan}\left(\theta \right)d\theta \sqrt{{x}^{2}-{a}^{2}}=a\mathrm{tan}\left(\theta \right)$

Find $\underset{0}{\overset{z}{\int }}\frac{\sqrt{{x}^{2}-1}}{x}dx$ .

 $\underset{0}{\overset{z}{\int }}\frac{\sqrt{{x}^{2}-1}}{x}dx$ $=\underset{0}{\overset{\alpha }{\int }}\frac{\mathrm{tan}\left(\theta \right)}{\mathrm{sec}\left(\theta \right)}\mathrm{sec}\left(\theta \right)\mathrm{tan}\left(\theta \right)d\theta z>1$ $=\underset{0}{\overset{\alpha }{\int }}{\mathrm{tan}}^{2}\left(\theta \right)d\theta \alpha =\mathrm{arcsec}\left(z\right)$ $=\left[\mathrm{tan}\left(\theta \right)-\theta {\right]}_{0}^{\alpha }\mathrm{tan}\left(\alpha \right)=\sqrt{{\mathrm{sec}}^{2}\left(\alpha \right)-1}$ $=\mathrm{tan}\left(\alpha \right)-\alpha \mathrm{tan}\left(\alpha \right)=\sqrt{{z}^{2}-1}$ $=\sqrt{{z}^{2}-1}-\mathrm{arcsec}\left(z\right)$

Find $\underset{1}{\overset{z}{\int }}\frac{\sqrt{{x}^{2}-1}}{{x}^{2}}dx$ .

 $\underset{1}{\overset{z}{\int }}\frac{\sqrt{{x}^{2}-1}}{{x}^{2}}dx$ $=\underset{1}{\overset{\alpha }{\int }}\frac{\mathrm{tan}\left(\theta \right)}{{\mathrm{sec}}^{2}\left(\theta \right)}\mathrm{sec}\left(\theta \right)\mathrm{tan}\left(\theta \right)d\theta z>1$ $=\underset{0}{\overset{\alpha }{\int }}\frac{{\mathrm{sin}}^{2}\left(\theta \right)}{\mathrm{cos}\left(\theta \right)}d\theta \alpha =\mathrm{arcsec}\left(z\right)$

We can now integrate by parts

 $\underset{1}{\overset{z}{\int }}\frac{\sqrt{{x}^{2}-1}}{{x}^{2}}dx$ $=-\left[\mathrm{tan}\left(\theta \right)\mathrm{cos}\left(\theta \right){\right]}_{0}^{\alpha }+\underset{0}{\overset{\alpha }{\int }}\mathrm{sec}\left(\theta \right)d\theta$ $=-\mathrm{sin}\left(\alpha \right)+\left[\mathrm{ln}\left(\mathrm{sec}\left(\theta \right)+\mathrm{tan}\left(\theta \right)\right){\right]}_{0}^{\alpha }$ $=\mathrm{ln}\left(\mathrm{sec}\left(\alpha \right)+\mathrm{tan}\left(\alpha \right)\right)-\mathrm{sin}\left(\alpha \right)$ $=\mathrm{ln}\left(z+\sqrt{{z}^{2}-1}\right)-\frac{\sqrt{{z}^{2}-1}}{z}$

Evaluate the following using an appropriate trigonometric substitution.

You are watching: Calculus/Integration techniques/Trigonometric Substitution. Info created by THVinhTuy selection and synthesis along with other related topics.

Rate this post