By definition, the average value of the function equals to
For the first integral, we write , and use the substitution , for which ; we note that the endpoints and become and , respectively. So,
For the second integral, we use the trigonometric identity to get
Therefore,
- The average value of the function =