You can put this solution on YOUR website! Integrate the function over one period and divide by the length,
Integrating from to ,
.
.
.
Integrate the square of the function over one period and divide by the length,
then take the square root,
Integrating from to ,