Integral of $$$a^{2} \cos{\left(x \right)} - x^{2}$$$ with respect to $$$x$$$

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

Solution

Integrate term by term:

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

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

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

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

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

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

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

Therefore,

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

Add the constant of integration:

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

Answer

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


Please try a new game Rotatly