For , find and .
Replace the square with the power-reduction identity. Squares of sine and cosine cannot be integrated directly with the power rule, but they linearise:
This comes from rearranged, and it is the standard first move for or .
Split the resulting integral.
Integrate each piece. The second needs the factor for the inner :
Differentiate as well, using the chain rule. Writing :
where the last step uses the double-angle identity .
Check the antiderivative by differentiating it back.
Numerically at : the derivative of the antiderivative is and . The average value also matches the known mean of over a period, namely .
Need to solve a different problem like this? Open the solver →