Integral of $$$\tan{\left(x \right)} \sec^{p}{\left(x \right)}$$$ with respect to $$$x$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \tan{\left(x \right)} \sec^{p}{\left(x \right)}\, dx$$$.
Solution
Let $$$u=\sec{\left(x \right)}$$$.
Then $$$du=\left(\sec{\left(x \right)}\right)^{\prime }dx = \tan{\left(x \right)} \sec{\left(x \right)} dx$$$ (steps can be seen »), and we have that $$$\tan{\left(x \right)} \sec{\left(x \right)} dx = du$$$.
Thus,
$${\color{red}{\int{\tan{\left(x \right)} \sec^{p}{\left(x \right)} d x}}} = {\color{red}{\int{u^{p - 1} d u}}}$$
Apply the power rule $$$\int u^{n}\, du = \frac{u^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$ with $$$n=p - 1$$$:
$${\color{red}{\int{u^{p - 1} d u}}}={\color{red}{\frac{u^{\left(p - 1\right) + 1}}{\left(p - 1\right) + 1}}}={\color{red}{\frac{u^{p}}{p}}}$$
Recall that $$$u=\sec{\left(x \right)}$$$:
$$\frac{{\color{red}{u}}^{p}}{p} = \frac{{\color{red}{\sec{\left(x \right)}}}^{p}}{p}$$
Therefore,
$$\int{\tan{\left(x \right)} \sec^{p}{\left(x \right)} d x} = \frac{\sec^{p}{\left(x \right)}}{p}$$
Add the constant of integration:
$$\int{\tan{\left(x \right)} \sec^{p}{\left(x \right)} d x} = \frac{\sec^{p}{\left(x \right)}}{p}+C$$
Answer
$$$\int \tan{\left(x \right)} \sec^{p}{\left(x \right)}\, dx = \frac{\sec^{p}{\left(x \right)}}{p} + C$$$A