Integral of $$$- 6 x \cos{\left(4 x \right)}$$$

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

Solution

Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=-6$$$ and $$$f{\left(x \right)} = x \cos{\left(4 x \right)}$$$:

$${\color{red}{\int{\left(- 6 x \cos{\left(4 x \right)}\right)d x}}} = {\color{red}{\left(- 6 \int{x \cos{\left(4 x \right)} d x}\right)}}$$

For the integral $$$\int{x \cos{\left(4 x \right)} d x}$$$, use integration by parts $$$\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}$$$.

Let $$$\operatorname{u}=x$$$ and $$$\operatorname{dv}=\cos{\left(4 x \right)} dx$$$.

Then $$$\operatorname{du}=\left(x\right)^{\prime }dx=1 dx$$$ (steps can be seen ») and $$$\operatorname{v}=\int{\cos{\left(4 x \right)} d x}=\frac{\sin{\left(4 x \right)}}{4}$$$ (steps can be seen »).

So,

$$- 6 {\color{red}{\int{x \cos{\left(4 x \right)} d x}}}=- 6 {\color{red}{\left(x \cdot \frac{\sin{\left(4 x \right)}}{4}-\int{\frac{\sin{\left(4 x \right)}}{4} \cdot 1 d x}\right)}}=- 6 {\color{red}{\left(\frac{x \sin{\left(4 x \right)}}{4} - \int{\frac{\sin{\left(4 x \right)}}{4} d x}\right)}}$$

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

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

Let $$$u=4 x$$$.

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

The integral becomes

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

Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=\frac{1}{4}$$$ and $$$f{\left(u \right)} = \sin{\left(u \right)}$$$:

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

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

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

Recall that $$$u=4 x$$$:

$$- \frac{3 x \sin{\left(4 x \right)}}{2} - \frac{3 \cos{\left({\color{red}{u}} \right)}}{8} = - \frac{3 x \sin{\left(4 x \right)}}{2} - \frac{3 \cos{\left({\color{red}{\left(4 x\right)}} \right)}}{8}$$

Therefore,

$$\int{\left(- 6 x \cos{\left(4 x \right)}\right)d x} = - \frac{3 x \sin{\left(4 x \right)}}{2} - \frac{3 \cos{\left(4 x \right)}}{8}$$

Simplify:

$$\int{\left(- 6 x \cos{\left(4 x \right)}\right)d x} = - \frac{3 \left(4 x \sin{\left(4 x \right)} + \cos{\left(4 x \right)}\right)}{8}$$

Add the constant of integration:

$$\int{\left(- 6 x \cos{\left(4 x \right)}\right)d x} = - \frac{3 \left(4 x \sin{\left(4 x \right)} + \cos{\left(4 x \right)}\right)}{8}+C$$

Answer

$$$\int \left(- 6 x \cos{\left(4 x \right)}\right)\, dx = - \frac{3 \left(4 x \sin{\left(4 x \right)} + \cos{\left(4 x \right)}\right)}{8} + C$$$A