integral of -2sin(x)^2 from 0 to pi
1) Let's compute the integral: ∫0π(-2·sin(x)2)dx
We reduce the square using the identity sin(x)2 = 1 -cos(2x)2
ⅰ ∫(-2·sin(x)2)dx = -∫(1 -cos(2x))dx
-∫(1 -cos(2x))dx
For the math expression: -cos(2x), since (sin(a))' = a'*cos(a), we try differentiating sin(2x)
2) Let's perform the differentiation: 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)
You observe that the computed derivative and the original math expression are the same, except for a coefficient. So the integral is:
ⅰ -∫(1 -cos(2x))dx = -(-12·sin(2x) + ∫1dx)
-(-12·sin(2x) + ∫1dx)
ⓘ Multiplying a fraction by a term multiplies its numerator: 12·sin(2x) = 1·sin(2x)2 = sin(2x)2■A minus sign before a parenthesis changes the sign of each of its terms: -(-sin(2x)2 + ∫1dx) = sin(2x)2 -∫1dx
sin(2x)2 -∫1dx
ⓘ The derivative of -x is -1, so -x is an antiderivative of -1: -∫1dx = -x
▷ sin(2x)2 -x
3) Let's evaluate over the interval [0, π]: (sin(2π)2 -π) -(sin(2·0)2 + 0)
ⓘ cos and sin are periodic with period 2π: sin(2π) = sin(0)■A minus sign before a parenthesis changes the sign of each of its terms: -(sin(2·0)2 + 0) = -sin(2·0)2 + 0
sin(0)2 -π -sin(2·0)2 + 0
ⓘ 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■A product with a zero factor is zero: 2·0 = 0■Adding 0 changes nothing: -sin(0)2 + 0 = -sin(0)2
02 -π -sin(0)2
ⓘ 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
0 -π -02
ⓘ Adding 0 changes nothing: 0 -π = -π
-π + 0
ⓘ Adding 0 changes nothing: -π + 0 = -π
▶Integral:   -π
4) The numeric value of: -π is:
▷ ≈ -3.1416