Integral of $$$\frac{1}{3 \cos{\left(x \right)} - 5}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \frac{1}{3 \cos{\left(x \right)} - 5}\, dx$$$.
Solution
Rewrite the integrand using the formula $$$\cos{\left(x \right)}=\frac{1 - \tan^{2}{\left(\frac{x}{2} \right)}}{\tan^{2}{\left(\frac{x}{2} \right)} + 1}$$$:
$${\color{red}{\int{\frac{1}{3 \cos{\left(x \right)} - 5} d x}}} = {\color{red}{\int{\frac{1}{\frac{3 \left(1 - \tan^{2}{\left(\frac{x}{2} \right)}\right)}{\tan^{2}{\left(\frac{x}{2} \right)} + 1} - 5} d x}}}$$
Let $$$u=\tan{\left(\frac{x}{2} \right)}$$$.
Then $$$x=2 \operatorname{atan}{\left(u \right)}$$$ and $$$dx=\left(2 \operatorname{atan}{\left(u \right)}\right)^{\prime }du = \frac{2}{u^{2} + 1} du$$$ (steps can be seen »).
The integral can be rewritten as
$${\color{red}{\int{\frac{1}{\frac{3 \left(1 - \tan^{2}{\left(\frac{x}{2} \right)}\right)}{\tan^{2}{\left(\frac{x}{2} \right)} + 1} - 5} d x}}} = {\color{red}{\int{\frac{2}{\left(u^{2} + 1\right) \left(\frac{3 \left(1 - u^{2}\right)}{u^{2} + 1} - 5\right)} d u}}}$$
Simplify:
$${\color{red}{\int{\frac{2}{\left(u^{2} + 1\right) \left(\frac{3 \left(1 - u^{2}\right)}{u^{2} + 1} - 5\right)} d u}}} = {\color{red}{\int{\left(- \frac{1}{4 u^{2} + 1}\right)d u}}}$$
Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=-1$$$ and $$$f{\left(u \right)} = \frac{1}{4 u^{2} + 1}$$$:
$${\color{red}{\int{\left(- \frac{1}{4 u^{2} + 1}\right)d u}}} = {\color{red}{\left(- \int{\frac{1}{4 u^{2} + 1} d u}\right)}}$$
Let $$$v=2 u$$$.
Then $$$dv=\left(2 u\right)^{\prime }du = 2 du$$$ (steps can be seen »), and we have that $$$du = \frac{dv}{2}$$$.
The integral can be rewritten as
$$- {\color{red}{\int{\frac{1}{4 u^{2} + 1} d u}}} = - {\color{red}{\int{\frac{1}{2 \left(v^{2} + 1\right)} d v}}}$$
Apply the constant multiple rule $$$\int c f{\left(v \right)}\, dv = c \int f{\left(v \right)}\, dv$$$ with $$$c=\frac{1}{2}$$$ and $$$f{\left(v \right)} = \frac{1}{v^{2} + 1}$$$:
$$- {\color{red}{\int{\frac{1}{2 \left(v^{2} + 1\right)} d v}}} = - {\color{red}{\left(\frac{\int{\frac{1}{v^{2} + 1} d v}}{2}\right)}}$$
The integral of $$$\frac{1}{v^{2} + 1}$$$ is $$$\int{\frac{1}{v^{2} + 1} d v} = \operatorname{atan}{\left(v \right)}$$$:
$$- \frac{{\color{red}{\int{\frac{1}{v^{2} + 1} d v}}}}{2} = - \frac{{\color{red}{\operatorname{atan}{\left(v \right)}}}}{2}$$
Recall that $$$v=2 u$$$:
$$- \frac{\operatorname{atan}{\left({\color{red}{v}} \right)}}{2} = - \frac{\operatorname{atan}{\left({\color{red}{\left(2 u\right)}} \right)}}{2}$$
Recall that $$$u=\tan{\left(\frac{x}{2} \right)}$$$:
$$- \frac{\operatorname{atan}{\left(2 {\color{red}{u}} \right)}}{2} = - \frac{\operatorname{atan}{\left(2 {\color{red}{\tan{\left(\frac{x}{2} \right)}}} \right)}}{2}$$
Therefore,
$$\int{\frac{1}{3 \cos{\left(x \right)} - 5} d x} = - \frac{\operatorname{atan}{\left(2 \tan{\left(\frac{x}{2} \right)} \right)}}{2}$$
Add the constant of integration:
$$\int{\frac{1}{3 \cos{\left(x \right)} - 5} d x} = - \frac{\operatorname{atan}{\left(2 \tan{\left(\frac{x}{2} \right)} \right)}}{2}+C$$
Answer
$$$\int \frac{1}{3 \cos{\left(x \right)} - 5}\, dx = - \frac{\operatorname{atan}{\left(2 \tan{\left(\frac{x}{2} \right)} \right)}}{2} + C$$$A