Integral of $$$\tan^{6}{\left(x \right)}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \tan^{6}{\left(x \right)}\, dx$$$.
Solution
Let $$$u=\tan{\left(x \right)}$$$.
Then $$$x=\operatorname{atan}{\left(u \right)}$$$ and $$$dx=\left(\operatorname{atan}{\left(u \right)}\right)^{\prime }du = \frac{du}{u^{2} + 1}$$$ (steps can be seen »).
The integral can be rewritten as
$${\color{red}{\int{\tan^{6}{\left(x \right)} d x}}} = {\color{red}{\int{\frac{u^{6}}{u^{2} + 1} d u}}}$$
Since the degree of the numerator is not less than the degree of the denominator, perform polynomial long division (steps can be seen »):
$${\color{red}{\int{\frac{u^{6}}{u^{2} + 1} d u}}} = {\color{red}{\int{\left(u^{4} - u^{2} + 1 - \frac{1}{u^{2} + 1}\right)d u}}}$$
Integrate term by term:
$${\color{red}{\int{\left(u^{4} - u^{2} + 1 - \frac{1}{u^{2} + 1}\right)d u}}} = {\color{red}{\left(\int{1 d u} - \int{u^{2} d u} + \int{u^{4} d u} - \int{\frac{1}{u^{2} + 1} d u}\right)}}$$
Apply the constant rule $$$\int c\, du = c u$$$ with $$$c=1$$$:
$$- \int{u^{2} d u} + \int{u^{4} d u} - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\int{1 d u}}} = - \int{u^{2} d u} + \int{u^{4} d u} - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{u}}$$
Apply the power rule $$$\int u^{n}\, du = \frac{u^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$ with $$$n=4$$$:
$$u - \int{u^{2} d u} - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\int{u^{4} d u}}}=u - \int{u^{2} d u} - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\frac{u^{1 + 4}}{1 + 4}}}=u - \int{u^{2} d u} - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\left(\frac{u^{5}}{5}\right)}}$$
Apply the power rule $$$\int u^{n}\, du = \frac{u^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$ with $$$n=2$$$:
$$\frac{u^{5}}{5} + u - \int{\frac{1}{u^{2} + 1} d u} - {\color{red}{\int{u^{2} d u}}}=\frac{u^{5}}{5} + u - \int{\frac{1}{u^{2} + 1} d u} - {\color{red}{\frac{u^{1 + 2}}{1 + 2}}}=\frac{u^{5}}{5} + u - \int{\frac{1}{u^{2} + 1} d u} - {\color{red}{\left(\frac{u^{3}}{3}\right)}}$$
The integral of $$$\frac{1}{u^{2} + 1}$$$ is $$$\int{\frac{1}{u^{2} + 1} d u} = \operatorname{atan}{\left(u \right)}$$$:
$$\frac{u^{5}}{5} - \frac{u^{3}}{3} + u - {\color{red}{\int{\frac{1}{u^{2} + 1} d u}}} = \frac{u^{5}}{5} - \frac{u^{3}}{3} + u - {\color{red}{\operatorname{atan}{\left(u \right)}}}$$
Recall that $$$u=\tan{\left(x \right)}$$$:
$$- \operatorname{atan}{\left({\color{red}{u}} \right)} + {\color{red}{u}} - \frac{{\color{red}{u}}^{3}}{3} + \frac{{\color{red}{u}}^{5}}{5} = - \operatorname{atan}{\left({\color{red}{\tan{\left(x \right)}}} \right)} + {\color{red}{\tan{\left(x \right)}}} - \frac{{\color{red}{\tan{\left(x \right)}}}^{3}}{3} + \frac{{\color{red}{\tan{\left(x \right)}}}^{5}}{5}$$
Therefore,
$$\int{\tan^{6}{\left(x \right)} d x} = \frac{\tan^{5}{\left(x \right)}}{5} - \frac{\tan^{3}{\left(x \right)}}{3} + \tan{\left(x \right)} - \operatorname{atan}{\left(\tan{\left(x \right)} \right)}$$
Simplify:
$$\int{\tan^{6}{\left(x \right)} d x} = - x + \frac{\tan^{5}{\left(x \right)}}{5} - \frac{\tan^{3}{\left(x \right)}}{3} + \tan{\left(x \right)}$$
Add the constant of integration:
$$\int{\tan^{6}{\left(x \right)} d x} = - x + \frac{\tan^{5}{\left(x \right)}}{5} - \frac{\tan^{3}{\left(x \right)}}{3} + \tan{\left(x \right)}+C$$
Answer
$$$\int \tan^{6}{\left(x \right)}\, dx = \left(- x + \frac{\tan^{5}{\left(x \right)}}{5} - \frac{\tan^{3}{\left(x \right)}}{3} + \tan{\left(x \right)}\right) + C$$$A