Integral of (x^2+2x)*cos(x) dx
The solution
Detail solution
-
There are multiple ways to do this integral.
Method #1
-
Rewrite the integrand:
(x2+2x)cos(x)=x2cos(x)+2xcos(x)
-
Integrate term-by-term:
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=x2 and let dv(x)=cos(x).
Then du(x)=2x.
To find v(x):
-
The integral of cosine is sine:
∫cos(x)dx=sin(x)
Now evaluate the sub-integral.
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=2x and let dv(x)=sin(x).
Then du(x)=2.
To find v(x):
-
The integral of sine is negative cosine:
∫sin(x)dx=−cos(x)
Now evaluate the sub-integral.
-
The integral of a constant times a function is the constant times the integral of the function:
∫(−2cos(x))dx=−2∫cos(x)dx
-
The integral of cosine is sine:
∫cos(x)dx=sin(x)
So, the result is: −2sin(x)
-
The integral of a constant times a function is the constant times the integral of the function:
∫2xcos(x)dx=2∫xcos(x)dx
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=x and let dv(x)=cos(x).
Then du(x)=1.
To find v(x):
-
The integral of cosine is sine:
∫cos(x)dx=sin(x)
Now evaluate the sub-integral.
-
The integral of sine is negative cosine:
∫sin(x)dx=−cos(x)
So, the result is: 2xsin(x)+2cos(x)
The result is: x2sin(x)+2xsin(x)+2xcos(x)−2sin(x)+2cos(x)
Method #2
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=x(x+2) and let dv(x)=cos(x).
Then du(x)=2x+2.
To find v(x):
-
The integral of cosine is sine:
∫cos(x)dx=sin(x)
Now evaluate the sub-integral.
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=2x+2 and let dv(x)=sin(x).
Then du(x)=2.
To find v(x):
-
The integral of sine is negative cosine:
∫sin(x)dx=−cos(x)
Now evaluate the sub-integral.
-
The integral of a constant times a function is the constant times the integral of the function:
∫(−2cos(x))dx=−2∫cos(x)dx
-
The integral of cosine is sine:
∫cos(x)dx=sin(x)
So, the result is: −2sin(x)
-
Now simplify:
x2sin(x)+22xsin(x+4π)+22cos(x+4π)
-
Add the constant of integration:
x2sin(x)+22xsin(x+4π)+22cos(x+4π)+constant
The answer is:
x2sin(x)+22xsin(x+4π)+22cos(x+4π)+constant
The answer (Indefinite)
[src]
/
|
| / 2 \ 2
| \x + 2*x/*cos(x) dx = C - 2*sin(x) + 2*cos(x) + x *sin(x) + 2*x*cos(x) + 2*x*sin(x)
|
/
∫(x2+2x)cos(x)dx=C+x2sin(x)+2xsin(x)+2xcos(x)−2sin(x)+2cos(x)
The graph
−2+sin(1)+4cos(1)
=
−2+sin(1)+4cos(1)
Use the examples entering the upper and lower limits of integration.