## Integrating Products and Powers of tanx and secx

### Learning Outcomes

• Solve integration problems involving products and powers of $\tan{x}$ and $\sec{x}$
• Use reduction formulas to solve trigonometric integrals

Before discussing the integration of products and powers of $\tan{x}$ and $\sec{x}$, it is useful to recall the integrals involving $\tan{x}$ and $\sec{x}$ we have already learned:

1. ${\displaystyle\int}{\sec}^{2}xdx=\tan{x}+C$
2. ${\displaystyle\int}\sec{x}\tan{x}dx=\sec{x}+C$
3. ${\displaystyle\int}\tan{x}dx=\text{ln}|\sec{x}|+C$
4. ${\displaystyle\int}\sec{x}dx=\text{ln}|\sec{x}+\tan{x}|+C$.

For most integrals of products and powers of $\tan{x}$ and $\sec{x}$, we rewrite the expression we wish to integrate as the sum or difference of integrals of the form ${\displaystyle\int}{\tan}^{j}x{\sec}^{2}xdx$ or ${\displaystyle\int}{\sec}^{j}x\tan{x}dx$. As we see in the following example, we can evaluate these new integrals by using u-substitution.  Before doing so, it is useful to note how the Pythagorean Identity implies relationships between other pairs of trigonometric functions.

### Recall: The Pythagorean Identity

For any angle $x$:

$\sin^2 x + \cos^2 x = 1$

Dividing the original equation by $\cos^2 x$ and simplifying yields an expression for $\sec^2 x$ in terms of $\tan^2 x$:

$\tan^2 x + 1 = \sec^2 x$

Subtracting both sides of the equation by $1$ yields an expression for $\tan^2 x$ in terms of $\sec^2 x$:

$\tan^2 x = \sec^2 x - 1$

### Example: Evaluating ${\displaystyle\int}{\sec}^{j}x\tan{x}dx$

Evaluate ${\displaystyle\int}{\sec}^{5}x\tan{x}dx$.

### Interactive

You can read some interesting information at this website to learn about a common integral involving the secant.

### try it

Evaluate ${\displaystyle\int}{\tan}^{5}x{\sec}^{2}xdx$.

We now take a look at the various strategies for integrating products and powers of $\sec{x}$ and $\tan{x}$.

### Problem-Solving Strategy: Integrating ${\displaystyle\int}{\tan}^{k}x{\sec}^{j}xdx$

To integrate ${\displaystyle\int}{\tan}^{k}x{\sec}^{j}xdx$, use the following strategies:

1. If $j$ is even and $j\ge 2$, rewrite ${\sec}^{j}x={\sec}^{j - 2}x{\sec}^{2}x$ and use ${\sec}^{2}x={\tan}^{2}x+1$ to rewrite ${\sec}^{j - 2}x$ in terms of $\tan{x}$. Let $u=\tan{x}$ and $du={\sec}^{2}x$.
2. If $k$ is odd and $j\ge 1$, rewrite ${\tan}^{k}x{\sec}^{j}x={\tan}^{k - 1}x{\sec}^{j - 1}x\sec{x}\tan{x}$ and use ${\tan}^{2}x={\sec}^{2}x - 1$ to rewrite ${\tan}^{k - 1}x$ in terms of $\sec{x}$. Let $u=\sec{x}$ and $du=\sec{x}\tan{x}dx$. (Note: If $j$ is even and $k$ is odd, then either strategy 1 or strategy 2 may be used.)
3. If $k$ is odd where $k\ge 3$ and $j=0$, rewrite ${\tan}^{k}x={\tan}^{k - 2}x{\tan}^{2}x={\tan}^{k - 2}x\left({\sec}^{2}x - 1\right)={\tan}^{k - 2}x{\sec}^{2}x-{\tan}^{k - 2}x$. It may be necessary to repeat this process on the ${\tan}^{k - 2}x$ term.
4. If $k$ is even and $j$ is odd, then use ${\tan}^{2}x={\sec}^{2}x - 1$ to express ${\tan}^{k}x$ in terms of $\sec{x}$. Use integration by parts to integrate odd powers of $\sec{x}$.

### Example: Integrating ${\displaystyle\int}{\tan}^{k}x{\sec}^{j}xdx$ when $j$ is Even

Evaluate ${\displaystyle\int}{\tan}^{6}x{\sec}^{4}xdx$.

### Example: Integrating ${\displaystyle\int}{\tan}^{k}x{\sec}^{j}xdx$ when $k$ is Odd

Evaluate ${\displaystyle\int}{\tan}^{5}x{\sec}^{3}xdx$.

### Example: Integrating ${\displaystyle\int}{\tan}^{k}xdx$ where $k$ is Odd and $k\ge 3$

Evaluate ${\displaystyle\int}{\tan}^{3}xdx$.

### Example: Integrating ${\displaystyle\int}{\sec}^{3}xdx$

Integrate ${\displaystyle\int}{\sec}^{3}xdx$.

### try it

Evaluate ${\displaystyle\int}{\tan}^{3}x{\sec}^{7}xdx$.

Watch the following video to see the worked solution to the above Try It

For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.

## Reduction Formulas

Evaluating ${\displaystyle\int}{\sec}^{n}xdx$ for values of $n$ where $n$ is odd requires integration by parts. In addition, we must also know the value of ${\displaystyle\int}{\sec}^{n - 2}xdx$ to evaluate ${\displaystyle\int}{\sec}^{n}xdx$. The evaluation of ${\displaystyle\int}{\tan}^{n}xdx$ also requires being able to integrate ${\displaystyle\int}{\tan}^{n - 2}xdx$. To make the process easier, we can derive and apply the following power reduction formulas. These rules allow us to replace the integral of a power of $\sec{x}$ or $\tan{x}$ with the integral of a lower power of $\sec{x}$ or $\tan{x}$.

### Rule: Reduction Formulas for ${\displaystyle\int}{\sec}^{n}xdx$ and ${\displaystyle\int}{\tan}^{n}xdx$

${\displaystyle\int}{\sec}^{n}xdx=\frac{1}{n - 1}{\sec}^{n - 2}x\tan{x}+\frac{n - 2}{n - 1}{\displaystyle\int}{\sec}^{n - 2}xdx$

${\displaystyle\int}{\tan}^{n}xdx=\frac{1}{n - 1}{\tan}^{n - 1}x-{\displaystyle\int}{\tan}^{n - 2}xdx$

The first power reduction rule may be verified by applying integration by parts. The second may be verified by following the strategy outlined for integrating odd powers of $\tan{x}$.

### Example: Revisiting ${\displaystyle\int}{\sec}^{3}xdx$

Apply a reduction formula to evaluate ${\displaystyle\int}{\sec}^{3}xdx$.

### Example: Using a Reduction Formula

Evaluate ${\displaystyle\int}{\tan}^{4}xdx$.

### try it

Apply the reduction formula to ${\displaystyle\int}{\sec}^{5}xdx$.

Watch the following video to see the worked solution to the above Try It

For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.