Integrals Involving Trig Functions

Integration by Parts and Substitution Rule will not help if we directly apply them to integrals like $$$\int{{\cos}}^{{5}}{\left({x}\right)}{d}{x}$$$. Because if $$${u}={\cos{{\left({x}\right)}}}$$$ then $$${d}{u}={\sin{{\left({x}\right)}}}{d}{x}$$$. In order to integrate powers of cosine, we would need an extra $$${\sin{{\left({x}\right)}}}$$$ factor. Similarly, a power of sine would require an extra $$${\cos{{\left({x}\right)}}}$$$ factor. Thus, here we separate one cosine factor and convert the remaining factor to the expression involving sine.

Example 1. Find $$$\int{{\cos}}^{{5}}{\left({x}\right)}{d}{x}$$$.

Rewrite integral as $$$\int{{\left({{\cos}}^{{2}}{\left({x}\right)}\right)}}^{{2}}{\cos{{\left({x}\right)}}}{d}{x}$$$. Now take advantage of the trigonometric identity $$${{\cos}}^{{2}}{\left({x}\right)}={1}-{{\sin}}^{{2}}{\left({x}\right)}$$$.

Integral can be rewritten as $$$\int{{\left({1}-{{\sin}}^{{2}}{\left({x}\right)}\right)}}^{{2}}{\cos{{\left({x}\right)}}}{d}{x}$$$. Now substitution $$${u}={\sin{{\left({x}\right)}}}$$$ will work, because $$${d}{u}={\cos{{\left({x}\right)}}}{d}{x}$$$ and cosine term will disappear.

$$$\int{{\left({1}-{{\sin}}^{{2}}{\left({x}\right)}\right)}}^{{2}}{\cos{{\left({x}\right)}}}{d}{x}=\int{{\left({1}-{{u}}^{{2}}\right)}}^{{2}}{d}{u}=\int{\left({1}-{2}{{u}}^{{2}}+{{u}}^{{4}}\right)}{d}{u}=$$$

$$$={u}-\frac{{2}}{{3}}{{u}}^{{3}}+\frac{{1}}{{5}}{{u}}^{{5}}+{C}={\sin{{\left({x}\right)}}}-\frac{{2}}{{3}}{{\sin}}^{{3}}{\left({x}\right)}+\frac{{1}}{{5}}{{\sin}}^{{5}}{\left({x}\right)}+{C}$$$.

Example 2. Find $$$\int{{\cos}}^{{4}}{\left({x}\right)}{{\sin}}^{{3}}{\left({x}\right)}{d}{x}$$$.

Here we apply same technique: since exponent of sine is odd, we strip out one sine.

$$$\int{{\cos}}^{{4}}{\left({x}\right)}{{\sin}}^{{3}}{\left({x}\right)}{d}{x}=\int{{\cos}}^{{4}}{\left({x}\right)}{{\sin}}^{{2}}{\left({x}\right)}{\sin{{\left({x}\right)}}}{d}{x}=\int{{\cos}}^{{4}}{\left({x}\right)}{\left({1}-{{\cos}}^{{2}}{\left({x}\right)}\right)}{\sin{{\left({x}\right)}}}{d}{x}$$$.

Let $$${u}={\cos{{\left({x}\right)}}}$$$ then $$${d}{u}=-{\sin{{\left({x}\right)}}}{d}{x}$$$ or $$$-{d}{u}={\sin{{\left({x}\right)}}}{d}{x}$$$.

So, integral can be rewritten as $$$\int{{u}}^{{4}}{\left({1}-{{u}}^{{2}}\right)}{\left(-{d}{u}\right)}=\int{\left({{u}}^{{6}}-{{u}}^{{4}}\right)}{d}{u}=\frac{{1}}{{7}}{{u}}^{{7}}-\frac{{1}}{{5}}{{u}}^{{5}}+{C}=$$$

$$$=\frac{{1}}{{7}}{{\cos}}^{{7}}{\left({x}\right)}-\frac{{1}}{{5}}{{\cos}}^{{5}}{\left({x}\right)}+{C}$$$.

Let's summarize this strategy. Suppose you have integral $$$\int{{\sin}}^{{{n}}}{\left({x}\right)}{{\cos}}^{{m}}{\left({x}\right)}{d}{x}$$$. If $$${n}$$$ is odd you strip out one sine, convert the rest of expression to the expression containing cosines and make substitution $$${u}={\cos{{\left({x}\right)}}}$$$. Similarly if $$${m}$$$ is odd you strip out one cosine, convert the rest of expression tothe expression containing sines and make substitution $$${u}={\sin{{\left({x}\right)}}}$$$. If both $$${m}$$$ and $$${n}$$$ are odd, you can choose either method.

However, this strategy fails if both $$${m}$$$ and $$${n}$$$ are even. In this case you should use double angle formulas:

Example 3. Evaluate $$$\int{{\sin}}^{{4}}{\left({x}\right)}{{\cos}}^{{2}}{\left({x}\right)}{d}{x}$$$.

Rewriting integral and using double angle formulas yields $$$\int{{\sin}}^{{4}}{\left({x}\right)}{{\cos}}^{{2}}{\left({x}\right)}{d}{x}=\int{{\left({{\sin}}^{{2}}{\left({x}\right)}\right)}}^{{2}}{{\cos}}^{{2}}{\left({x}\right)}{d}{x}=\int{{\left(\frac{{1}}{{2}}{\left({1}-{\cos{{\left({2}{x}\right)}}}\right)}\right)}}^{{2}}\cdot\frac{{1}}{{2}}{\left({1}+{\cos{{\left({2}{x}\right)}}}\right)}{d}{x}=$$$

$$$=\frac{{1}}{{8}}\int{\left({1}-{2}{\cos{{\left({2}{x}\right)}}}+{{\cos}}^{{2}}{\left({2}{x}\right)}\right)}{\left({1}+{\cos{{\left({2}{x}\right)}}}\right)}{d}{x}=\frac{{1}}{{8}}\int{\left({1}-{\cos{{\left({2}{x}\right)}}}-{{\cos}}^{{2}}{\left({2}{x}\right)}+{{\cos}}^{{3}}{\left({2}{x}\right)}\right)}{d}{x}=$$$

Now, use double and triple angle formulas for cosine.

$$$=\frac{{1}}{{8}}\int{\left({1}-{\cos{{\left({2}{x}\right)}}}-\frac{{1}}{{2}}{\left({1}+{\cos{{\left({4}{x}\right)}}}\right)}+\frac{{1}}{{4}}{\left({\cos{{\left({6}{x}\right)}}}+{3}{\cos{{\left({2}{x}\right)}}}\right)}\right)}{d}{x}=$$$

$$$=\frac{{1}}{{32}}\int{\left({2}-{\cos{{\left({2}{x}\right)}}}-{2}{\cos{{\left({4}{x}\right)}}}+{\cos{{\left({6}{x}\right)}}}\right)}{d}{x}=$$$

$$$=\frac{{1}}{{32}}{\left({2}{x}-\frac{{1}}{{2}}{\sin{{\left({2}{x}\right)}}}-\frac{{1}}{{2}}{\sin{{\left({4}{x}\right)}}}+\frac{{1}}{{6}}{\sin{{\left({6}{x}\right)}}}\right)}+{C}$$$.

Note, that we could integrate $$${{\cos}}^{{3}}{\left({2}{x}\right)}$$$ without using triple angle formula, we could use technique for odd powers.

In general if we have products of sines and cosines in which both exponents are even we will need to use double angle formulas at least once to obtain expression that we can integrate. The larger the exponents the more times we well need to use the formulas and hence problem becomes messier.

Sometimes, we will run into cases when we have product of sines or cosines with different arguments. In this case we need formulas to convert product into sum.

Example 4. Find $$$\int{\sin{{\left({3}{x}\right)}}}{\sin{{\left({8}{x}\right)}}}{d}{x}$$$.

$$$\int{\sin{{\left({3}{x}\right)}}}{\sin{{\left({8}{x}\right)}}}{d}{x}=\frac{{1}}{{2}}\int{\left({\cos{{\left({3}{x}-{8}{x}\right)}}}-{\cos{{\left({3}{x}+{8}{x}\right)}}}\right)}{d}{x}=\frac{{1}}{{2}}\int{\left({\cos{{\left(-{5}{x}\right)}}}-{\cos{{\left({11}{x}\right)}}}\right)}{d}{x}=$$$

$$$=\frac{{1}}{{2}}\int{\left({\cos{{\left({5}{x}\right)}}}-{\cos{{\left({11}{x}\right)}}}\right)}{d}{x}=\frac{{1}}{{2}}{\left(\frac{{1}}{{5}}{\sin{{\left({5}{x}\right)}}}-\frac{{1}}{{11}}{\sin{{\left({11}{x}\right)}}}\right)}$$$.

Now, let's switch attention to products of secants and tangents.

All of the above techniques with small changes can be applied to such integrals.

Trigonometric identity states that $$${{\cos}}^{{2}}{\left({x}\right)}+{{\sin}}^{{2}}{\left({x}\right)}={1}$$$. Dividing both sides by $$${{\cos}}^{{2}}{\left({x}\right)}$$$ gives $$${1}+{{\tan}}^{{2}}{\left({x}\right)}={{\sec}}^{{2}}{\left({x}\right)}$$$.

If we use substitution $$${u}={\tan{{\left({x}\right)}}}$$$ then $$${d}{u}={{\sec}}^{{2}}{\left({x}\right)}{d}{x}$$$. If we use substitution $$${u}={\sec{{\left({x}\right)}}}$$$ then $$${d}{u}={\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}{d}{x}$$$.

Let's summarize this. Consider integral $$$\int{{\tan}}^{{n}}{\left({x}\right)}{{\sec}}^{{m}}{\left({x}\right)}{d}{x}$$$.

If $$${m}$$$ is even then we can strip out 2 secants, convert the rest into tangents and use substitution $$${u}={\tan{{\left({x}\right)}}}$$$.

If $$${n}$$$ is odd and we have at least one secant then we can strip out one secant and one tangent, convert rest of expression into secants and use substitution $$${u}={\sec{{\left({x}\right)}}}$$$.

If above two conditions hold simultaneously, we can use either method. But it is easier to convert term with the smallest exponent.

Example 5. Evaluate $$$\int{{\sec}}^{{9}}{\left({x}\right)}{{\tan}}^{{3}}{\left({x}\right)}{d}{x}$$$.

Rewrite integral $$$\int{{\sec}}^{{8}}{\left({x}\right)}{{\tan}}^{{2}}{\left({x}\right)}{\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}{d}{x}=\int{{\sec}}^{{8}}{\left({x}\right)}{\left({{\sec}}^{{2}}{\left({x}\right)}-{1}\right)}{\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}{d}{x}$$$.

Make substitution $$${u}={\sec{{\left({x}\right)}}}$$$ then $$${d}{u}={\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}{d}{x}$$$.

And integral can be rewritten as $$$\int{{u}}^{{8}}{\left({{u}}^{{2}}-{1}\right)}{d}{u}=\int{\left({{u}}^{{10}}-{{u}}^{{8}}\right)}{d}{u}=\frac{{1}}{{11}}{{u}}^{{11}}-\frac{{1}}{{9}}{{u}}^{{9}}+{C}=$$$

$$$=\frac{{1}}{{11}}{{\sec}}^{{11}}{\left({x}\right)}-\frac{{1}}{{9}}{{\sec}}^{{9}}{\left({x}\right)}+{C}$$$.

Example 6. Evaluate $$$\int{{\sec}}^{{4}}{\left({x}\right)}{{\tan}}^{{4}}{\left({x}\right)}{d}{x}$$$.

Power of secant is even, so strip out two secants and rewrite remaining secants in terms of tangents:

$$$\int{{\sec}}^{{2}}{\left({x}\right)}{{\tan}}^{{4}}{\left({x}\right)}{{\sec}}^{{2}}{\left({x}\right)}{d}{x}=\int{\left({1}+{{\tan}}^{{2}}{\left({x}\right)}\right)}{{\tan}}^{{4}}{\left({x}\right)}{{\sec}}^{{2}}{\left({x}\right)}{d}{x}$$$.

Let $$${u}={\tan{{\left({x}\right)}}}$$$ then $$${d}{u}={{\sec}}^{{2}}{\left({x}\right)}{d}{x}$$$, so integral can be rewritten as

$$$\int{\left({1}+{{u}}^{{2}}\right)}{{u}}^{{4}}{d}{u}=\int{\left({{u}}^{{6}}+{{u}}^{{4}}\right)}{d}{u}=\frac{{1}}{{7}}{{u}}^{{7}}+\frac{{1}}{{5}}{{u}}^{{5}}+{C}=\frac{{1}}{{7}}{{\tan}}^{{7}}{\left({x}\right)}+\frac{{1}}{{5}}{{\tan}}^{{5}}{\left({x}\right)}+{C}$$$.

Note, that there are a couple of exceptions to above rules and all these cases should be integrated differently.

Let's see how to handle situtations when power of tangent is odd, and there is no secant.

Example 7. $$$\int{\tan{{\left({x}\right)}}}{d}{x}$$$

Recall that $$${\tan{{\left({x}\right)}}}=\frac{{\sin{{\left({x}\right)}}}}{{\cos{{\left({x}\right)}}}}$$$, so substitution $$${u}={\cos{{\left({x}\right)}}}$$$ works. In this case $$${d}{u}=-{\sin{{\left({x}\right)}}}{d}{x}$$$ or $$${\sin{{\left({x}\right)}}}{d}{x}=-{d}{u}$$$.

So, $$$\int{\tan{{\left({x}\right)}}}{d}{x}=\int\frac{{{\sin{{\left({x}\right)}}}}}{{{\cos{{\left({x}\right)}}}}}{d}{x}=\int\frac{{1}}{{u}}{\left(-{d}{u}\right)}=-{\ln}{\left|{u}\right|}+{C}=-{\ln}{\left|{\cos{{\left({x}\right)}}}\right|}+{C}=$$$

$$$={\ln}{\left|{\sec{{\left({x}\right)}}}\right|}+{C}$$$.

Example 8. Find $$$\int{{\tan}}^{{3}}{\left({x}\right)}{d}{x}$$$.

To solve such integrands we need to manipulate integrand:

$$$\int{{\tan}}^{{3}}{\left({x}\right)}{d}{x}=\int{\tan{{\left({x}\right)}}}{{\tan}}^{{2}}{\left({x}\right)}{d}{x}=\int{\tan{{\left({x}\right)}}}{\left({{\sec}}^{{2}}{\left({x}\right)}-{1}\right)}{d}{x}=$$$

$$$=\int{\tan{{\left({x}\right)}}}{{\sec}}^{{2}}{\left({x}\right)}{d}{x}-\int{\tan{{\left({x}\right)}}}{d}{x}$$$.

First integral can be integrated with the subsitution $$${u}={\tan{{\left({x}\right)}}}$$$, second integral was found in example 7.

Therefore, $$$\int{{\tan}}^{{3}}{\left({x}\right)}{d}{x}=\frac{{1}}{{2}}{{\tan}}^{{2}}{\left({x}\right)}+{\ln}{\left|{\cos{{\left({x}\right)}}}\right|}+{C}$$$.

In general, if you have have integral $$$\int{{\tan}}^{{n}}{\left({x}\right)}{d}{x}$$$ where $$${n}$$$ is positive odd integer and $$${n}\ne{1}$$$, then you strip out two tangents and rewrite it as in example above.

$$$\int{{\tan}}^{{n}}{x}{d}{x}=\int{{\tan}}^{{{n}-{2}}}{\left({x}\right)}{{\tan}}^{{2}}{\left({x}\right)}{d}{x}=\int{{\tan}}^{{{n}-{2}}}{\left({x}\right)}{\left({{\sec}}^{{2}}{\left({x}\right)}-{1}\right)}{d}{x}=$$$

$$$=\int{{\tan}}^{{{n}-{2}}}{\left({x}\right)}{{\sec}}^{{2}}{\left({x}\right)}{d}{x}-\int{{\tan}}^{{{n}-{2}}}{d}{x}$$$.

First integral can be found with the above methods (substitution $$${u}={\tan{{\left({x}\right)}}}$$$ then $$${d}{u}={{\sec}}^{{2}}{\left({x}\right)}{d}{x}$$$).

$$$\int{{\tan}}^{{{n}-{2}}}{\left({x}\right)}{{\sec}}^{{2}}{\left({x}\right)}{d}{x}=\int{{u}}^{{{n}-{2}}}{d}{u}=\frac{{{{u}}^{{{n}-{1}}}}}{{{n}-{1}}}+{C}=\frac{{1}}{{{n}-{1}}}{{\tan}}^{{{n}-{1}}}{\left({x}\right)}+{C}$$$.

Second integral $$$\int{{\tan}}^{{{n}-{2}}}{\left({x}\right)}{d}{x}$$$ can be treated same way as $$$\int{{\tan}}^{{n}}{\left({x}\right)}{d}{x}$$$ because if $$${n}$$$ is odd then $$${n}-{2}$$$ is also odd.

This approach on each step reduces power of tangent by 2.

Example 9. Evaluate $$$\int{\sec{{\left({x}\right)}}}{d}{x}$$$.

This seems to be an easy integral, but we can't integrate it directly. Again, we need to manipulate integrand:

$$$\int{\sec{{\left({x}\right)}}}{d}{x}=\int\frac{{{\sec{{\left({x}\right)}}}{\left({\sec{{\left({x}\right)}}}+{\tan{{\left({x}\right)}}}\right)}}}{{{\sec{{\left({x}\right)}}}+{\tan{{\left({x}\right)}}}}}{d}{x}=\int\frac{{{{\sec}}^{{2}}{\left({x}\right)}+{\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}}}{{{\tan{{\left({x}\right)}}}+{\sec{{\left({x}\right)}}}}}{d}{x}$$$

Now, let $$${u}={\tan{{\left({x}\right)}}}+{\sec{{\left({x}\right)}}}$$$ then $$${d}{u}={{\sec}}^{{2}}{\left({x}\right)}+{\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}{d}{x}$$$, so integral can be rewritten as

$$$\int\frac{{{d}{u}}}{{u}}={\ln}{\left|{u}\right|}+{C}={\ln}{\left|{\tan{{\left({x}\right)}}}+{\sec{{\left({x}\right)}}}\right|}+{C}$$$.

$$$\int{\sec{{\left({x}\right)}}}{d}{x}={\ln}{\left|{\tan{{\left({x}\right)}}}+{\sec{{\left({x}\right)}}}\right|}+{C}$$$.

Example 10. Evaluate $$$\int{{\sec}}^{{3}}{\left({x}\right)}{d}{x}$$$.

Again we try the same trick as in example 8:

$$$\int{{\sec}}^{{3}}{\left({x}\right)}{d}{x}=\int{\sec{{\left({x}\right)}}}{{\sec}}^{{2}}{\left({x}\right)}{d}{x}=\int{\sec{{\left({x}\right)}}}{\left({{\tan}}^{{2}}{\left({x}\right)}+{1}\right)}{d}{x}=$$$

$$$=\int{\sec{{\left({x}\right)}}}{{\tan}}^{{2}}{\left({x}\right)}{d}{x}+\int{\sec{{\left({x}\right)}}}{d}{x}$$$

Second integral was found in example 9. However, first integral can't be found using above techniques.

Let's try integration by parts. Let $$${u}={\tan{{\left({x}\right)}}}$$$ and $$${d}{v}={\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}{d}{x}$$$ then $$${d}{u}={{\sec}}^{{2}}{\left({x}\right)}{d}{x}$$$ and $$${v}=\int{\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}{d}{x}={\sec{{\left({x}\right)}}}$$$.

So, $$$\int{\sec{{\left({x}\right)}}}{{\tan}}^{{2}}{\left({x}\right)}{d}{x}={\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}-\int{{\sec}}^{{3}}{\left({x}\right)}{d}{x}$$$.

Now plug this value into above equation:

$$$\int{{\sec}}^{{3}}{\left({x}\right)}{d}{x}={\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}-\int{{\sec}}^{{3}}{\left({x}\right)}{d}{x}+\int{\sec{{\left({x}\right)}}}{d}{x}$$$.

This can be rewritten as $$${2}\int{{\sec}}^{{3}}{\left({x}\right)}{d}{x}={\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}+\int{\sec{{\left({x}\right)}}}{d}{x}$$$.

Or $$${2}\int{{\sec}}^{{3}}{\left({x}\right)}{d}{x}={\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}+{\ln}{\left|{\sec{{\left({x}\right)}}}+{\tan{{\left({x}\right)}}}\right|}+{C}_{{1}}$$$.

Finally, $$$\int{{\sec}}^{{3}}{\left({x}\right)}=\frac{{1}}{{2}}{\left({\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}+{\ln}{\left|{\sec{{\left({x}\right)}}}+{\tan{{\left({x}\right)}}}\right|}\right)}+{C}$$$ where $$${C}=\frac{{1}}{{2}}{C}_{{1}}$$$.

All of the above techniques also applicable to the integrals of form $$$\int{{\cot}}^{{n}}{\left({x}\right)}{{\csc}}^{{m}}{\left({x}\right)}{d}{x}$$$.

Indeed, since $$${{\cos}}^{{2}}{\left({x}\right)}+{{\sin}}^{{2}}{\left({x}\right)}={1}$$$ then dividing both sided of identity by $$${{\sin}}^{{2}}{\left({x}\right)}$$$ yields $$${{\cot}}^{{2}}{\left({x}\right)}+{1}={{\csc}}^{{2}}{\left({x}\right)}$$$ which is similar to tangents and secants.

Some of the ideas of this note can be applied to the quotient of trigs.

Example 11. Evaluate $$$\int\frac{{{{\sin}}^{{5}}{\left({x}\right)}}}{{{{\cos}}^{{3}}{\left({x}\right)}}}{d}{x}$$$.

We sine has odd power, so we can strip one sine and convert rest to cosines:

$$$\int\frac{{{{\sin}}^{{5}}{\left({x}\right)}}}{{{{\cos}}^{{3}}{\left({x}\right)}}}{d}{x}=\int\frac{{{{\sin}}^{{4}}{\left({x}\right)}}}{{{{\cos}}^{{3}}{\left({x}\right)}}}{\sin{{\left({x}\right)}}}{d}{x}=\int\frac{{{{\left({1}-{{\cos}}^{{2}}{\left({x}\right)}\right)}}^{{2}}}}{{{{\cos}}^{{3}}{\left({x}\right)}}}{\sin{{\left({x}\right)}}}{d}{x}$$$.

Let $$${u}={\cos{{\left({x}\right)}}}$$$ then $$${d}{u}=-{\sin{{\left({x}\right)}}}{d}{x}$$$ or $$${\sin{{\left({x}\right)}}}{d}{x}=-{d}{u}$$$ and integral can be rewritten as

$$$\int\frac{{{{\left({1}-{{u}}^{{2}}\right)}}^{{2}}}}{{{{u}}^{{3}}}}{\left(-{d}{u}\right)}=\int\frac{{{2}{{u}}^{{2}}-{1}-{{u}}^{{4}}}}{{{{u}}^{{3}}}}{d}{u}=\int{\left({2}{{u}}^{{-{1}}}-{{u}}^{{-{3}}}-{u}\right)}{d}{u}=$$$

$$$={2}{\ln}{\left|{u}\right|}+\frac{{1}}{{2}}{{u}}^{{-{2}}}-\frac{{1}}{{2}}{{u}}^{{2}}+{C}={2}{\ln}{\left|{\cos{{\left({u}\right)}}}\right|}+\frac{{1}}{{2}}{{\sec}}^{{2}}{\left({x}\right)}-\frac{{1}}{{2}}{{\cos}}^{{2}}{\left({x}\right)}+{C}$$$.

However, in general it is much more difficult to integrate quotient. For example $$$\int\frac{{{{\cos}}^{{4}}{\left({x}\right)}}}{{{{\sin}}^{{5}}{\left({x}\right)}}}{d}{x}$$$ is very hard, because we can't strip out sine (it is in denominator and for substitution we need sine in numerator). Even power of cosine doesn't allow to strip out cosine. Even if we convert somehow sines to cosines (or vice versa), integral is still very difficult to evaluate.

At the end of this note, let's make a quick summary of how to solve trigonometric integrals.

  1. Important thing is that you should know integrals of basic trigs (sines, cosines, tangent etc). This will allow to recognize parts of integrand and make correct substitution. For example, $$$\int{\sec{{\left({x}\right)}}}{{\tan}}^{{2}}{\left({x}\right)}{d}{x}$$$ implicitly contains $$${\sec{{\left({x}\right)}}}{\tan{{\left({x}\right)}}}{d}{x}$$$ which is derivative of $$${\sec{{\left({x}\right)}}}$$$. Without knowing it, we could incorrectly perform integration by parts. Also without knowing that integral of sine is minus cosine and integral of cosine is sine we wouldn't be able to strip them out.
  2. Take advantage of trigonometric identities, double angle formulas and formulas that convert product of trigs into sum. Simplify integral as much as possible until you can evaluate it. It may appear that some non-standard approach is required, as with $$$\int{\sec{{\left({x}\right)}}}{d}{x}$$$ (we multiplied numerator and denominator by same expression and then performed simple manipulations).
  3. Practice, practice and once more practice. Above two tips will be mastered only if you practice. Try one approach, if it doesn't work - try another. If you tried everything, there is, for sure, another method to try.