integral from -pi to pi of x*sin(2*x)
1) Let's integrate: ∫-ππx·sin(2x)dx
⇥For x·sin(2x), we use integration by parts: ∫u1·v2'dx = u1·v2 -∫u1'·v2dx, with u1 = x and v2' = sin(2x)
⇥So the value of u1' is 1
⇥1.1) Let's compute the integral v2': ∫sin(2x)dx
⇥To use the known integral of sin(u), let u = 2x. Then du = 2dx, so dx = 12·du
⇥We use ∫sin(u)du = -cos(u), then substitute u = 2x back
⇥ⓘ The derivative of -cos(2x)2 is sin(2x), so -cos(2x)2 is an antiderivative of sin(2x): ∫sin(2x)dx = -cos(2x)2
⇥ -cos(2x)2
⇥So the value of v2 is -cos(2x)2
⇥1.2) Let's calculate u1·v2 -∫u1'·v2dx: x·(-cos(2x)2) -∫(-cos(2x)2)dx
⇥For the math expression: cos(2x)2, since (sin(a))' = a'*cos(a), we try differentiating sin(2x)
⇥1.3) Let's differentiate: ddx(sin(2x))
⇥Apply the differentiation rule: ddx(sin(f)) = ddx(f)·cos(f) with f = 2x
⇥ⓘ The derivative of sin(x) is cos(x): ddx(sin(2x)) = ddx(2x)·cos(2x)
⇥ ddx(2x)·cos(2x)
⇥ⓘ A constant factor stays in front of the derivative, (k*u)' = k*u': ddx(2x) = 2
⇥ 2·cos(2x)
⇥The computed derivative matches the original math expression up to a constant factor. Therefore, the integral is:
⇥ⓘ The derivative of 14·sin(2x) is cos(2x)2, so 14·sin(2x) is an antiderivative of cos(2x)2: -∫(-cos(2x)2)dx = 14·sin(2x)
⇥ -x·cos(2x)2 + 14·sin(2x)
⇥ⓘ Multiplying a fraction by a term multiplies its numerator: 14·sin(2x) = 1·sin(2x)4 = sin(2x)4■To add fractions, put them over the same denominator, then add the numerators: -x·cos(2x)2 + sin(2x)4 = 2·(-x·cos(2x)) + sin(2x)4
⇥ 2·(-x·cos(2x)) + sin(2x)4
⇥ⓘ The minus sign is placed in front of the product: 2·(-x) = -2x
⇥ -2x·cos(2x) + sin(2x)4
Then you can continue the integral computation:
ⅰ ∫x·sin(2x)dx = -2x·cos(2x) + sin(2x)4
▷ -2x·cos(2x) + sin(2x)4
2) Let's evaluate for the interval [-π, π]: sin(2π) -2π·cos(2π)4 -sin(2·(-π)) -2·(-π)·cos(2·(-π))4
ⓘ cos and sin are periodic with period 2π: sin(2π) = sin(0), cos(2π) = cos(0), sin(2·(-π)) = sin(0), cos(2·(-π)) = cos(0)■Two minus signs cancel out: -2·(-π) = 2π
sin(0) -2π·cos(0)4 -sin(0) + 2π·cos(0)4
ⓘ The sine is the y-coordinate (vertical axis) of the point reached on the unit circle after a rotation of 0 radians from the horizontal axis pointing to the right, this is a remarkable value: sin(0) = 0■The cosine is the x-coordinate (horizontal axis) of the point reached on the unit circle after a rotation of 0 radians from the horizontal axis pointing to the right, this is a remarkable value: cos(0) = 1■Multiplying by 1 changes nothing: 2π·1 = 2π
0 -2π4 -0 + 2π4
ⓘ Adding 0 changes nothing: 0 -2π = -2π, 0 + 2π = 2π■Like terms are grouped by adding their coefficients: -2π4 -2π4 = -π
▶Integral:   -π
3) The numeric value of: -π equals:
▷ ≈ -3.1416