what is the integral of sin squared x

Indefinite integral

integral sin^2(x) dx = 1/2 (x - sin(x) cos(x)) + constant

Plot

Plot
Plot

Expanded form of the integral

x/2 - 1/2 sin(x) cos(x) + constant
x/2 - 1/4 sin(2 x) + constant

Reduced trigonometric form

1/4 (2 x - sin(2 x)) + constant

Alternate form of the integral

1/2 (x - 1/2 sin(2 x)) + constant
x/2 - 1/8 i e^(-2 i x) + 1/8 i e^(2 i x) + constant

Series expansion of the integral at x=0

x^3/3 - x^5/15 + (2 x^7)/315 + O(x^8)
(Taylor series)