Integral of $$$\left(2 - 3 \sin^{2}{\left(x \right)}\right) \sin{\left(x \right)}$$$

The calculator will find the integral/antiderivative of $$$\left(2 - 3 \sin^{2}{\left(x \right)}\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 \left(2 - 3 \sin^{2}{\left(x \right)}\right) \sin{\left(x \right)}\, dx$$$.

Solution

Expand the expression:

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

Integrate term by term:

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

Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=3$$$ and $$$f{\left(x \right)} = \sin^{3}{\left(x \right)}$$$:

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

Strip out 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$$$:

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

So,

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

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

Integrate term by term:

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

Apply the constant rule $$$\int c\, du = c u$$$ with $$$c=1$$$:

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

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

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

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

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

Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=2$$$ and $$$f{\left(x \right)} = \sin{\left(x \right)}$$$:

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

The integral of the sine is $$$\int{\sin{\left(x \right)} d x} = - \cos{\left(x \right)}$$$:

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

Therefore,

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

Add the constant of integration:

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

Answer

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


Please try a new game Rotatly