### Video Transcript

Find the average value of π of π₯ is equal to the sin of π₯ minus five sin of two π₯ on the closed interval from zero to π by two.

Weβre given a function π of π₯ which is the difference between two trigonometric functions. And weβre asked to find the average value of π of π₯ on the closed interval from zero to π by two. To do this, letβs start by recalling what we mean by the average value of a function π of π₯ on a closed interval from π to π. π average is one over π minus π times the integral from π to π of π of π₯ with respect to π₯. Thereβs one important thing we need to notice about this definition however. Weβre taking the definite integral from π to π of π of π₯ with respect to π₯. So π of π₯ needs to be integrable on the entire domain of integration, in this case, the closed interval from π to π.

In this case, we donβt need to worry too much about this because π of π₯ is the difference between two trigonometric functions. We know this is continuous on its entire domain. And in this case, we can see its domain is all real values of π₯. So itβs continuous for all real values of π₯. And if itβs continuous for all real values of π₯, then itβs integrable on any interval. So in particular, itβs integrable on the closed interval from zero to π by two.

All this does is justify that our definite integral in our formula makes sense. Now all we have to do is apply this to find our value of π average. Weβll set π of π₯ to be our function sin π₯ minus five sin of two π₯, π to be zero, and π to be π by two. Now we substitute our values for π and π and our expression for π of π₯ into our formula. This gives us π average is equal to one over π by two minus zero times the integral from zero to π by two of the sin of π₯ minus five times the sin of two π₯ with respect to π₯.

And all thatβs left to do is simplify and evaluate this expression. First, π by two minus zero is equal to π by two. So our coefficient simplifies to give us one divided by π by two. However, instead of dividing by the fraction π by two, we can instead multiplied by the reciprocal. And of course, the reciprocal of π by two is two over π, so this gives us the following expression for π average.

Now all thatβs left to do is evaluate our definite integral. And we can evaluate this integral term by term by recalling one of our standard trigonometric integral results. For any real constant π not equal to zero, the integral of the sin of ππ₯ with respect to π₯ is equal to negative the cos of ππ₯ divided by π plus the constant of integration πΆ. So weβll evaluate the integral of each term separately. First, by setting π equal to one, we know the integral of the sin of ππ₯ with respect to π₯ is equal to negative the cos of π₯. Next, weβre subtracting the integral of five sin of two π₯ with respect to π₯, so weβll set π to be equal to two, giving us the integral of this is negative five times the cos of two π₯ divided by two.

And of course, weβre subtracting this value. And we donβt add a constant of integration because this is a definite integral. So we need to evaluate this at the limits of integration. So weβve now shown that π average is equal to two over π times negative cos of π₯ minus negative five times the cos of two π₯ over two evaluated at the limits of integration π₯ is equal to zero and π₯ is equal to π by two.

Before we evaluate this at the limits of integration, thereβs one piece of simplification we can do. We have negative one multiplied by negative five over two. Of course, this is just equal to positive five over two. This gives us the following expression. All thatβs left to do now is evaluate this at the limits of integration.

Evaluating our antiderivative at the limits of integration, we get two over π times negative the cos of π by two plus five cos of two times π by two all over two minus negative the cos of zero plus five times the cos of two times zero all divided by two. And we can just evaluate this expression directly. First, the cos of π by two is equal to zero. Next, two π simplifies to give us π. And the cos of π is equal to negative one. And in our final two terms, we have the cos of zero. And we know the cos of zero is equal to one.

So this entire expression simplifies to give us two over π times negative five over two plus one minus five over two. And if we calculate this expression, we see itβs equal to negative eight divided by π, which is our final answer.

Therefore, we were able to show the average value of the function π of π₯ is equal to the sin of π₯ minus five times the sin of two π₯ on the closed interval from zero to π by two is equal to negative eight divided by π.