Skip to content
ihateDesmos

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.

−3−2−1123−110
Open in calculator
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.

  1. 1
    Use the identity: sin²x = (1 − cos 2x)/2.
  2. 2
    Split it: ∫(1/2) dx − (1/2) ∫cos 2x dx.
  3. 3
    The first part is x/2.
  4. 4
    The second part is (1/2) · sin(2x)/2 = sin(2x)/4.
  5. 5
    So 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.

−3−2.5−2−1.5−1−0.50.511.522.53−2−1.5−1−0.50.511.52

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.

Checking the integral
xsin²xSlope of the answer
−2.510.3486090.348609
−1.570.9999990.999999
−0.6280.3451890.345189
000
0.9420.6540540.654054
1.880.9074010.907401
2.510.3486090.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.

Open the integral calculator