## Average values of a function

Average velocity

We have seen in our discussion of velocities and displacements that

As you may remember, we called this the displacement.
We also discussed average velocities as a motivation for an eventual definition of the derivative (and "instantaneous rates"), and you hopefully remember that

Putting these two ideas together leads to the conclusion that

Average value of a function
In general, following much the same idea as above, we will define the average value of a function on an interval as:

What is the meaning of this expression, and why does it correspond to our intuitive idea of what the average value of a function means? To understand this, note that the average of n numbers, is

To make some sense of the expression for the average value of the function f, suppose we sample values that it takes at a few equally spaced points in the interval [a,b], . Then the spacing of the points is and

From the spacing between the values of x, we notice that

We thus conclude that

As the number of sample points gets larger ( ), this sum approaches the definite integral, so that, in this limit,

Example 1: Average Day length

The length of a day varies over the seasons, with some very short and some very long days. This is a cyclic phenomenon, which repeats itself year in and year out. We can describe day length approximately by a simple formula involving the periodic function sin(t). We can then use this formula to determine average day length over a given period of time, for example, over a month, a season, or over part of the year.
Suppose that at days after a Spring Equinox, the length of time from sunrise to sunset (in hours) is:

We will use this expression to determine the average length of the day during the spring and summer. Before doing so, let us see why this expression is a reasonable description of day length.

### For your consideration:

1. What is the length of the shortest day, according to this expression and when does it occur ? (i.e. for what value of t?)

2. What is the length of the longest day, and when does it occur?

3. What is the day length when ? Why is this day called the Equinox ?

4. For what value of t does the cyclic pattern of day length start to repeat itself?

We can now determine the average length of a day during the spring and summer. Assuming that spring and summer are half a year, i.e 365/2 = 182 days, we are to calculate the following integral:

Using the expression for in this integral, we find that

### For your consideration:

1. Verify the final step by expanding and performing the necessary calculation.

2. What would be the average day length over one month (i.e. over 1/12 of a year)?

Example 2: Average Power in an Electric Circuit

In an AC ("alternating current") electric circuit, the current is oscillatory, i.e. it is given by the expression

where A is the amplitude and the frequency. Most common household currents are 60 cycles per second. We will use this to determine how the average power over one cycle is related to the amplitude of the current.

Power in a circuit is defined as follows:

So, using the above formula

### For your consideration:

1. Sketch the current as a function of time for several cycles. Show when the maximal and minimal values of the current occur.

2. Sketch the power as a function of time for several cycles. Hint: Can the power ever be negative ? At what times is the power zero ? What is the maximal value of the power ?

3. If the frequency of the oscillation is , how long is one cycle?

4. Calculate the average value of the current over one cycle. Show that you get zero.

5. Now explain WHY the average of the current over one cycle is zero. Use your sketch in (1) and a geometric argument, if you like.

6. Do you expect that the average power over one cycle will also be zero ? Why or why not? Explain, again using your sketch in part (2).

We will now compute the average power over one cycle, i.e for . To do so, we compute the following integral:

This integral involves the square of trigonometric function, for which no antiderivative exists as is, but we can use the following

Trick:

Plugging this in, we find that

Simplifying the above algebraically, we arrive at