Exercise

$\int\left(x^2+x\right)\cdot\cos\left(x\right)$

Step-by-step Solution

1

We can solve the integral $\int\left(x^2+x\right)\cos\left(x\right)dx$ by applying the method of tabular integration by parts, which allows us to perform successive integrations by parts on integrals of the form $\int P(x)T(x) dx$. $P(x)$ is typically a polynomial function and $T(x)$ is a transcendent function such as $\sin(x)$, $\cos(x)$ and $e^x$. The first step is to choose functions $P(x)$ and $T(x)$

$\begin{matrix}P(x)=\left(x^2+x\right) \\ T(x)=\cos\left(x\right)\end{matrix}$
2

Derive $P(x)$ until it becomes $0$

$0$
3

Integrate $T(x)$ as many times as we have had to derive $P(x)$, so we must integrate $\cos\left(x\right)$ a total of $3$ times

$-\sin\left(x\right)$
4

With the derivatives and integrals of both functions we build the following table

$\begin{matrix}\mathrm{Derivatives} & \mathrm{Sign} & \mathrm{Integrals} \\ & & \cos\left(x\right) \\ x^2+x & + & \sin\left(x\right) \\ 2x+1 & - & -\cos\left(x\right) \\ 2 & + & -\sin\left(x\right) \\ 0 & & \end{matrix}$
5

Then the solution is the sum of the products of the derivatives and the integrals according to the previous table. The first term consists of the product of the polynomial function by the first integral. The second term is the product of the first derivative by the second integral, and so on.

$\left(x^2+x\right)\sin\left(x\right)+\left(2x+1\right)\cos\left(x\right)-2\sin\left(x\right)$
6

Multiply the single term $\sin\left(x\right)$ by each term of the polynomial $\left(x^2+x\right)$

$x^2\sin\left(x\right)+x\sin\left(x\right)+\left(2x+1\right)\cos\left(x\right)-2\sin\left(x\right)$
7

Solve the product $\left(2x+1\right)\cos\left(x\right)$

$x^2\sin\left(x\right)+x\sin\left(x\right)+2x\cos\left(x\right)+\cos\left(x\right)-2\sin\left(x\right)$
8

As the integral that we are solving is an indefinite integral, when we finish integrating we must add the constant of integration $C$

$x^2\sin\left(x\right)+x\sin\left(x\right)+2x\cos\left(x\right)+\cos\left(x\right)-2\sin\left(x\right)+C_0$

Final answer to the exercise

$x^2\sin\left(x\right)+x\sin\left(x\right)+2x\cos\left(x\right)+\cos\left(x\right)-2\sin\left(x\right)+C_0$

Try other ways to solve this exercise

  • Choose an option
  • Integrate by partial fractions
  • Integrate by substitution
  • Integrate by parts
  • Integrate using tabular integration
  • Integrate by trigonometric substitution
  • Weierstrass Substitution
  • Integrate using trigonometric identities
  • Integrate using basic integrals
  • Product of Binomials with Common Term
  • Load more...
Can't find a method? Tell us so we can add it.
Symbolic mode
Text mode
Go!
1
2
3
4
5
6
7
8
9
0
a
b
c
d
f
g
m
n
u
v
w
x
y
z
.
(◻)
+
-
×
◻/◻
/
÷
2

e
π
ln
log
log
lim
d/dx
Dx
|◻|
θ
=
>
<
>=
<=
sin
cos
tan
cot
sec
csc

asin
acos
atan
acot
asec
acsc

sinh
cosh
tanh
coth
sech
csch

asinh
acosh
atanh
acoth
asech
acsch

Your Personal Math Tutor. Powered by AI

Available 24/7, 365 days a year.

Complete step-by-step math solutions. No ads.

Access in depth explanations with descriptive diagrams.

Choose between multiple solving methods.

Download unlimited solutions in PDF format.

Premium access on our iOS and Android apps.

Join 1M+ students worldwide in problem solving.

Choose the plan that suits you best:
Pay $39.97 USD securely with your payment method.
Please hold while your payment is being processed.

Create an Account