Integral of x^2*sin(x×pi) dx
The solution
Detail solution
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=x2 and let dv(x)=sin(πx).
Then du(x)=2x.
To find v(x):
-
Let u=πx.
Then let du=πdx and substitute πdu:
∫π2sin(u)du
-
The integral of a constant times a function is the constant times the integral of the function:
∫πsin(u)du=π∫sin(u)du
-
The integral of sine is negative cosine:
∫sin(u)du=−cos(u)
So, the result is: −πcos(u)
Now substitute u back in:
−πcos(πx)
Now evaluate the sub-integral.
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=−π2x and let dv(x)=cos(πx).
Then du(x)=−π2.
To find v(x):
-
Let u=πx.
Then let du=πdx and substitute πdu:
∫π2cos(u)du
-
The integral of a constant times a function is the constant times the integral of the function:
∫πcos(u)du=π∫cos(u)du
-
The integral of cosine is sine:
∫cos(u)du=sin(u)
So, the result is: πsin(u)
Now substitute u back in:
πsin(πx)
Now evaluate the sub-integral.
-
The integral of a constant times a function is the constant times the integral of the function:
∫(−π22sin(πx))dx=−π22∫sin(πx)dx
-
Let u=πx.
Then let du=πdx and substitute πdu:
∫π2sin(u)du
-
The integral of a constant times a function is the constant times the integral of the function:
∫πsin(u)du=π∫sin(u)du
-
The integral of sine is negative cosine:
∫sin(u)du=−cos(u)
So, the result is: −πcos(u)
Now substitute u back in:
−πcos(πx)
So, the result is: π32cos(πx)
-
Now simplify:
π3−π2x2cos(πx)+2πxsin(πx)+2cos(πx)
-
Add the constant of integration:
π3−π2x2cos(πx)+2πxsin(πx)+2cos(πx)+constant
The answer is:
π3−π2x2cos(πx)+2πxsin(πx)+2cos(πx)+constant
The answer (Indefinite)
[src]
/
| 2
| 2 2*cos(pi*x) x *cos(pi*x) 2*x*sin(pi*x)
| x *sin(x*pi) dx = C + ----------- - ------------ + -------------
| 3 pi 2
/ pi pi
π32πxsin(πx)+(2−π2x2)cos(πx)
The graph
/ 2\ / 2\
2 / 2\ 2*sin\pi / 2*cos\pi /
- --- - pi*cos\pi / + ---------- + ----------
3 pi 3
pi pi
π2sin(π2)−π32+π32cos(π2)−πcos(π2)
=
/ 2\ / 2\
2 / 2\ 2*sin\pi / 2*cos\pi /
- --- - pi*cos\pi / + ---------- + ----------
3 pi 3
pi pi
π2sin(π2)−π32+π32cos(π2)−πcos(π2)
Use the examples entering the upper and lower limits of integration.