Integral of $$$\frac{\cos^{3}{\left(x \right)}}{\sin{\left(x \right)}}$$$

The calculator will find the integral/antiderivative of $$$\frac{\cos^{3}{\left(x \right)}}{\sin{\left(x \right)}}$$$, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as $$$dx$$$, $$$dy$$$ etc.
Leave empty for autodetection.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\int \frac{\cos^{3}{\left(x \right)}}{\sin{\left(x \right)}}\, dx$$$.

Solution

Multiply the numerator and denominator by one sine and write everything else in terms of the cosine, using the formula $$$\sin^2\left(\alpha \right)=-\cos^2\left(\alpha \right)+1$$$ with $$$\alpha=x$$$:

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

Let $$$u=\cos{\left(x \right)}$$$.

Then $$$du=\left(\cos{\left(x \right)}\right)^{\prime }dx = - \sin{\left(x \right)} dx$$$ (steps can be seen »), and we have that $$$\sin{\left(x \right)} dx = - du$$$.

Therefore,

$${\color{red}{\int{\frac{\sin{\left(x \right)} \cos^{3}{\left(x \right)}}{1 - \cos^{2}{\left(x \right)}} d x}}} = {\color{red}{\int{\left(- \frac{u^{3}}{1 - u^{2}}\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{u^{3}}{1 - u^{2}}$$$:

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

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^{3}}{1 - u^{2}} d u}}} = - {\color{red}{\int{\left(- u + \frac{u}{1 - u^{2}}\right)d u}}}$$

Integrate term by term:

$$- {\color{red}{\int{\left(- u + \frac{u}{1 - u^{2}}\right)d u}}} = - {\color{red}{\left(- \int{u d u} + \int{\frac{u}{1 - u^{2}} d u}\right)}}$$

Apply the power rule $$$\int u^{n}\, du = \frac{u^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$ with $$$n=1$$$:

$$- \int{\frac{u}{1 - u^{2}} d u} + {\color{red}{\int{u d u}}}=- \int{\frac{u}{1 - u^{2}} d u} + {\color{red}{\frac{u^{1 + 1}}{1 + 1}}}=- \int{\frac{u}{1 - u^{2}} d u} + {\color{red}{\left(\frac{u^{2}}{2}\right)}}$$

Let $$$v=1 - u^{2}$$$.

Then $$$dv=\left(1 - u^{2}\right)^{\prime }du = - 2 u du$$$ (steps can be seen »), and we have that $$$u du = - \frac{dv}{2}$$$.

So,

$$\frac{u^{2}}{2} - {\color{red}{\int{\frac{u}{1 - u^{2}} d u}}} = \frac{u^{2}}{2} - {\color{red}{\int{\left(- \frac{1}{2 v}\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}$$$:

$$\frac{u^{2}}{2} - {\color{red}{\int{\left(- \frac{1}{2 v}\right)d v}}} = \frac{u^{2}}{2} - {\color{red}{\left(- \frac{\int{\frac{1}{v} d v}}{2}\right)}}$$

The integral of $$$\frac{1}{v}$$$ is $$$\int{\frac{1}{v} d v} = \ln{\left(\left|{v}\right| \right)}$$$:

$$\frac{u^{2}}{2} + \frac{{\color{red}{\int{\frac{1}{v} d v}}}}{2} = \frac{u^{2}}{2} + \frac{{\color{red}{\ln{\left(\left|{v}\right| \right)}}}}{2}$$

Recall that $$$v=1 - u^{2}$$$:

$$\frac{u^{2}}{2} + \frac{\ln{\left(\left|{{\color{red}{v}}}\right| \right)}}{2} = \frac{u^{2}}{2} + \frac{\ln{\left(\left|{{\color{red}{\left(1 - u^{2}\right)}}}\right| \right)}}{2}$$

Recall that $$$u=\cos{\left(x \right)}$$$:

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

Therefore,

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

Add the constant of integration:

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

Answer

$$$\int \frac{\cos^{3}{\left(x \right)}}{\sin{\left(x \right)}}\, dx = \left(\frac{\ln\left(\left|{\cos^{2}{\left(x \right)} - 1}\right|\right)}{2} + \frac{\cos^{2}{\left(x \right)}}{2}\right) + C$$$A


Please try a new game Rotatly