Integral of sin²x
Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of sin²x
∫
sin(x)2
dx =x2−sin(2x)4+C
The integral of sin²x is x/2 − sin(2x)/4 + C. The double angle identity turns the square into something you can integrate directly.
y=sin(x)2
in blue and its integral y=x2−sin(2x)4
(with C = 0) in red.How to integrate sin²x
Method: double angle identity.
- 1Use the identity: sin²x = (1 − cos 2x)/2.
- 2Split it: ∫(1/2) dx − (1/2) ∫cos 2x dx.
- 3The first part is x/2.
- 4The second part is (1/2) · sin(2x)/2 = sin(2x)/4.
- 5So the result is x/2 − sin(2x)/4 + C.
What it means
sin²x is never negative, and averages exactly 1/2 over a full cycle, which is where the x/2 term comes from. The sin(2x)/4 term is just a small wobble on top of that straight rise.
The integral from 0 to π
Using the antiderivative: F(π) − F(0) = π/2, which is about π/2. A direct numerical integration of sin²x gives π/2, which agrees.
Check by differentiating
The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.
| x | sin²x | Slope of the answer |
|---|---|---|
| −2.51 | 0.348609 | 0.348609 |
| −1.57 | 0.999999 | 0.999999 |
| −0.628 | 0.345189 | 0.345189 |
| 0 | 0 | 0 |
| 0.942 | 0.654054 | 0.654054 |
| 1.88 | 0.907401 | 0.907401 |
| 2.51 | 0.348609 | 0.348609 |
Common mistakes
- Using the power rule to get sin³x/3. The power rule needs the derivative of the inside as a factor.
Frequently asked questions
What is the integral of sin²x?
The integral of sin²x is x/2 − sin(2x)/4 + C.
What is the integral of sin²x from 0 to π?
π/2, which is about π/2.
Why is the average of sin²x equal to 1/2?
Since sin²x + cos²x = 1, and sine and cosine are the same wave shifted, each must average 1/2. This is why AC voltage has an RMS value of peak ÷ √2.
Keep going
Integrate any function
Type your own function into the integral calculator for the steps, the answer and a graph.