integral from-pi to pi of x*sin(n*x)
1) The math expression: contains several variables so the variable: x is chosen for integral computation
Let's integrate:
For , we use integration by parts: , with u1 = and v2' =
Thus, is
2) Let's compute the integral v2' :
For the math expression: , we know the derivative formula: , so we try differentiating with cos
3) Let's perform the differentiation:
We differentiate using: (where f = )
You observe that the computed derivative and the original math expression are the same, except for a coefficient. So the integral is:
So the value of is
4) Let's compute the integral :
For the math expression: , we know the derivative formula: , so we try differentiating with sin
5) Let's differentiate:
Apply the differentiation rule: with f =
The computed derivative matches the original math expression up to a constant factor. Therefore, the integral is:
▷
The parameter n is real and constant during integration; this antiderivative applies under the condition
For n = 0, the integrand is identically zero: the integral is 0
6) Let's evaluate for the interval :
ℹ = ‖ =
ℹ = ‖ =
ℹ = ‖ =
▶Integral: