In the first articles of the chapter the integral answered the question of how much has built up. The same number has two more meanings: the area of a figure on the graph, also when the curve crosses the axis, and the average value of a quantity over any interval.
An integral adds up thin strips “height × width”, and on the graph this sum shows as the area under the curve. The area divided by the length of the interval gives the average value: the average stock, the average demand, the average price. On the exam this comes as:
the average over a few months;
the cost of a plot or a part under a curve;
the area between two graphs.
Over 10 months a warehouse first fills up and then empties. The stock in tonnes after t months is I(t)=t⋅(10−t). At the start and at the end it is 0, in the middle, at t=5, it is largest: 25 tonnes. The storage fee depends on the average stock over these 10 months.
How many tonnes were in the warehouse on average?
Two quick answers are tempting, but wrong:
the average of start and end, 20+0=0: the warehouse was almost never empty;
the value in the middle, 25: that much was there only for a single moment.
The integral gives the answer: on average about 16.67 tonnes were in the warehouse. The first two sections show how it gets there.
Area and sign
The average stock starts from the area under the stock curve, so area comes first.
What you need from the previous article. The integral (“Integral”) ∫abf(x)dx adds up thin strips “height f(x) × width” from a to b. On the graph this is the area under the curve. It is computed with an antiderivative F: a function whose derivative (its rate of change) is f, F′=f. Then ∫abf(x)dx=F(b)−F(a). Where this rule comes from, and the table of antiderivatives: “The integral: how much builds up when only the rate is known”.
The letter of the variable does not matter: for time it is t, for a length x, the calculation is the same.
For the warehouse, a strip one month wide and as high as the stock means “tonnes × months”. The integral ∫010I(t)dt adds such strips over all 10 months. Multiply out the bracket: I(t)=10t−t2. By the table row ∫xαdx=α+1xα+1:
10t gives 10⋅2t2=5t2;
t2 gives 3t3.
So F(t)=5t2−3t3. Substitute the limits:
F(10)=5⋅100−31000=500−333.33=166.67;
F(0)=0−0=0.
∫010(10t−−t2)dt==F(10)−−F(0)==166.67−−0==166.67
tonne-months. This is the area under the parabola of the stock.
A stock is never less than zero, but a function can be. Where the curve lies below the x-axis, the strip height f(x) is negative, and “height × width” is negative too.
Take the line f(x)=x−2. At x=1 the height is 1−2=−1, and a strip 0.5 wide gives −1⋅0.5=−0.5.
That is why the integral over a piece below the axis is negative. On [0,2] the line x−2 lies below the axis. Let us compute the integral step by step:
Antiderivative term by term: x gives 2x2, −2 gives −2x, together F(x)=2x2−2x.
Upper limit: F(2)=24−4=2−4=−2.
Lower limit: F(0)=0, the integral is F(2)−F(0)=−2−0=−2.
The figure itself is a triangle with legs 2 along the axis and 2 downwards, its area is 22⋅2=2. The integral gave the same number with a minus sign.
If the curve crosses the axis, the pluses and minuses cancel each other. On [2,4] the same line is above the axis, the integral is F(4)−F(2)=(8−8)−(2−4)=2. Over all of [0,4] the integral is −2+2=0, while the figure covers 2+2=4.
So the area (“Flächeninhalt”) of the figure between the curve and the axis is computed piece by piece:
find the zeros of f between a and b;
cut the interval at these zeros;
compute the integral of each piece;
drop the minus of each piece and add.
A number without its minus is called the absolute value and is written between vertical bars: ∣−2∣=2, ∣2∣=2. For a curve with one zero c between a and b:
A==∫acf(x)dx++∫cbf(x)dx,f(c)==0
If the curve lies above the axis on all of [a,b], the area is the integral itself: A=∫abf(x)dx. That is the case for the warehouse: the stock is never negative, and the area under its curve is 166.67.
The average value: the height of a rectangle with the same area
Back to the warehouse. The average of numbers is computed like this: the sum divided by how many there are. The stock at the end of each month gives 10 numbers: 9, 16, 21, 24, 25, 24, 21, 16, 9, 0. Their sum is 165, the average 165/10=16.5 tonnes.
Each of these numbers can be read as a strip 1 month wide. Then the sum 165 is the area of all the strips in tonne-months, and 10 is the length of the interval in months. The average is the area of the strips divided by the length of the interval. Let us compare strips of different widths, from wide to narrow:
Step 1 of 3Five strips of two months
The stock is read every two months, at the end of each piece: I(2)=16, I(4)=24, I(6)=24, I(8)=16, I(10)=0. The last strip is empty. Each is 2 months wide. The figure shows four rectangles, and together their area is (16+24+24+16+0)⋅2=80⋅2=160 tonne-months.
The height of each strip is the stock at the end of the month: 9, 16, 21, 24, 25, 24, 21, 16, 9. At the end of month 10 the stock is 0, and the last strip is empty. Each is 1 month wide, so the area of all the strips is 9+16+21+24+25+24+21+16+9+0=165 tonne-months.
The thinner the strips, the closer their area comes to the area under the parabola itself. That is the integral 166.67 from the section “Area and sign”.
The same three areas, divided by 10 months:
Stock read
Numbers
Their average
Area of the strips
Area / 10 months
every two months
5
80/5=16
80⋅2=160
16
every month
10
165/10=16.5
165⋅1=165
16.5
infinitely thin strips
integral 166.67
16.67
The thinner the strips, the closer their area comes to the integral 166.67. So the exact average is
Iˉ==10166.67==16.67 tonnes
The bar over the letter means “average”. The rule for any interval from a to b: the integral over the interval divided by its length b−a. This is the average value (“Durchschnittswert”) of the function:
fˉ=b−a1∫abf(t)dt
Multiply both sides by b−a: you get fˉ⋅(b−a)=∫abf(t)dt. On the left is the area of a rectangle of height fˉ over the same interval, on the right the area under the curve. The average value is the height of the rectangle whose area equals the area under the curve. For the warehouse, a rectangle 16.67 high and 10 wide has the area 166.67, like the figure under the parabola.
Three checks of the answer:
unit: tonne-months divided by months give tonnes, the unit of the function itself;
the average lies between the smallest and the largest value of the function: 0≤16.67≤25;
the value in the middle (25) and the average of the ends (0): for a straight line they always agree with the average, for a curve like this parabola they may not.
On the sheet this isI(T)=T1∫0TI(t)dt, where the bar over I means “average”: the same formula, but only for the interval from 0 to T. The warehouse is exactly such a case, T=10. If the interval does not start at zero, you divide by b−a.
Average value of a quantity over an interval
For the warehouse the average was taken over the whole function, all 10 months. In the exam task the function describes a year, but the average is asked only for part of it:
Exam-style task
Die monatliche Nachfrage nach Speiseeis (in 1000 Stück) wird im Jahresverlauf, 0≤t≤12, durch N(t)=−2t2+17t+35 beschrieben, t in Monaten seit Jahresbeginn. Wie hoch ist die durchschnittliche monatliche Nachfrage von t=4 bis t=10?
a)41
b)44
c)50
d)48
e)46
How to spot it: you are asked for the average over an interval (“average monthly demand”), and this interval, from 4 to 10, is shorter than the one on which the function is given (“over the year”).
The demand changes all the time, so there is no single product “demand × months”. As with the warehouse, you add up strips “demand × time”: that is the integral, in thousand pieces × months. Dividing by the length of the interval gives thousand pieces again. The limits come from the question, not from the description of the function: the function describes the whole year, but the average is needed only from t=4 to t=10.
Step 1 of 4Take the interval from the question
The question: “from t=4 to t=10”, so a=4 and b=10. The length is 10−4=6 months.
The statement 0≤t≤12 only says where the function is defined. It does not enter the calculation.
Term by term, by the row ∫xαdx=α+1xα+1:
−2t2 gives −32t3;
17t gives 217t2;
35 gives 35t.
Together F(t)=−32t3+217t2+35t.
F(10)=−666.67+850+350=533.33.
F(4)=−42.67+136+140=233.33.
The integral is 533.33−233.33=300 thousand pieces × months: the area under the curve between 4 and 10.
Nˉ=6300=50 thousand pieces, option c.
Check: on the interval the demand lies between N(10)=5 and the largest value N(4.25)=71.125≈71.13. 50 lies between them.
A shop's revenue t months after opening is f(t)=20⋅et/5 thousand € per month.
What is the average revenue over the first 5 months?
Taking the revenue at the start or at the end will not work: it rises the whole time, and the average lies somewhere between those values.
Interval: “the first 5 months” means a=0 and b=5, length 5.
For numbers like e1 at the end of the calculation you need the ex key on the calculator (e≈2.718). For ekt the antiderivative is k1⋅ekt: when you differentiate, the factor k comes out in front, and k1 cancels it. Dividing by k is explained in the article “Integral with an inner function and an unknown limit of integration”.
Here k=51, so k1=5. With the factor 20: F(t)=20⋅5⋅et/5=100⋅et/5.
Upper limit: F(5)=100⋅e1=271.83.
Lower limit: F(0)=100⋅e0=100, because e0=1. Here F(0) is not zero.
The integral is 271.83−100=171.83, the average 171.83/5=34.37 thousand €.
Check: the revenue grows from f(0)=20 to f(5)=54.37, and 34.37 lies between them. The average of the ends, 220+54.37=37.18, is larger: the curve lies below the straight line joining its ends.
The price of a raw material in € per kilogram from month 2 to month 8 is P(t)=t2−14t+50.
Find the average price.
The price at the start and at the end will not do: in between it first falls and then rises again.
Interval: a=2, b=8, length 8−2=6.
Antiderivative term by term: F(t)=3t3−7t2+50t.
Limits: F(8)=170.67−448+400=122.67, F(2)=2.67−28+100=74.67, the integral is 122.67−74.67=48.
Find the average price and check whether it lies between the smallest and the largest price on the interval.
Your turn2 of 2
The number of users of an app (in thousands) grows as u(t)=5⋅et/4, t in months since launch. Find the average number of users over the first 7 months. Round to two decimal places.
Piecewise function
Exam-style task
Beim Öffnen der Stadiontore warten 590 Fans vor dem Einlass. Die Schlange wird in den ersten 5 Minuten linear kürzer, bis noch 180 Fans warten, und danach mit einem anderen Tempo linear bis auf null in Minute 14. Wie viele Fans stehen in diesen 14 Minuten im Mittel in der Schlange? Runden Sie auf zwei Nachkommastellen.
a)385.00
b)590.00
c)237.78
d)237.50
e)195.36
How to spot it: you are asked for an average (“on average”), and the quantity is given in two pieces: first the queue gets shorter linearly, “then, at a different pace, linearly”. There is no single straight line for all 14 minutes.
So the area is built from pieces:
work out each piece separately;
add the areas;
divide once by the whole length.
Here both pieces are “linear”, that is, straight lines. The area under a straight line is a trapezoid, and you can find it without an antiderivative. Let the line go from height p to height q. In the middle of the piece it is at height 2p+q. As far as the line is above this height in one half of the piece, it is below it in the other half. So the average height of the piece is 2p+q, and the area is “average of the two heights × width”. If a piece is given by a formula such as t2, it is not a straight line, and its area comes from the antiderivative.
Step 1 of 4Cut at the change point
The pace changes in minute 5, when 180 fans are still waiting. The pieces: [0,5], where a straight line falls from 590 to 180, and [5,14], where a straight line falls from 180 to 0. The second piece is 14−5=9 minutes long.
Trapezoid: 2590+180⋅5=385⋅5=1925 fan-minutes. That is the unit of the area in the figure: the number of fans times the minutes. Check with the antiderivative: the line falls by 5590−180=82 fans per minute, so f(t)=590−82t with the antiderivative 590t−41t2; at t=5 that is 2950−1025=1925, at t=0 zero.
A trapezoid, here even a triangle, because the queue goes down to zero: 2180+0⋅9=90⋅9=810.
Check with the integral. The line falls by 9180=20 fans per minute. Its area is ∫514(180−20(t−5))dt=180⋅9−20⋅281=1620−810=810.
141925+810=142735=195.36 fans, option e.
Check: the average lies between the shortest queue, 0, and the longest, 590. Option d, 2385+90=237.50, averages the averages of the two pieces as if they were equally long: a trap from the list below.
Visitors are coming into a museum hall: in the first 4 hours the number of people in the hall rises evenly from 20 to 80, then in 1 hour it falls evenly to 40.
How many people were in the hall on average over these 5 hours?
Averaging the two pieces equally will not work: they differ in length, and the short one must not count as much as the long one.
Cut at the change point: the pieces [0,4] with heights 20 and 80 and [4,5] with heights 80 and 40.
First piece: 220+80⋅4=50⋅4=200 person-hours.
Second piece: 280+40⋅1=60 person-hours.
Average: 5200+60=5260=52 people.
The averages of the pieces are 50 and 60, their simple average is 55. It is larger than 52: the short second piece (1 hour) would get the same weight as the long first one (4 hours).
There are 400 people in the queue at a till. In 6 minutes the queue shrinks evenly to 100, then in 4 minutes to 0.
How many people were in the queue on average over these 10 minutes?
The pieces differ in length: if you average them equally, the short one gets too much weight.
Pieces: [0,6] with heights 400 and 100, [6,10] with heights 100 and 0.
Areas: 2400+100⋅6=1500 and 2100+0⋅4=200 person-minutes.
Add the areas and divide by the whole length.
Average value traps
Taking the whole interval of the function instead of the interval in the question. In the method's task this is ∫012Ndt/12=492/12=41, option a. The temptation: the statement names the year first, 0≤t≤12. To catch it: the limits are in the sentence with the question, next to the word “average”.
Dividing by the upper limit instead of the length.300/10=30 instead of 300/6=50. The temptation: the formula on the sheet divides by T, and from zero T is both the upper limit and the length. To catch it: divide by b−a.
Not dividing at all. The integral 300 is measured in thousand pieces × months, it is not a demand. To catch it: the average cannot be larger than the largest value, but 300>71.
Taking the average of the ends or the value in the middle.271+5=38 or N(7)=56. The temptation: for a straight line both numbers are right. To catch it: if the function contains t2 or et, it is not a straight line, and you need the integral.
Answering with the largest value. For the warehouse this is 25 instead of 16.67, for the stadium 590 instead of 195.36. The temptation: the question is about the stock, and the largest value is the most visible number in the statement. To catch it: if the function is not constant, the average is smaller than the largest value.
Averaging the averages of the pieces. In the stadium task the averages of the pieces are 51925=385 and 9810=90, and their simple average is 237.50 instead of 195.36. The temptation: “the average of the averages” sounds like an average. But the pieces last 5 and 9 minutes, and their averages cannot be given equal weight. To catch it: first the areas, then one division by the whole length.
On the sheet:I(T)=T1∫0TI(t)dt, only from zero; for [a,b] you divide by b−a. Antiderivatives: ∫xαdx=α+1xα+1 and ∫exdx=ex. The factor k1 for ekt and the trapezoid under a straight line you remember yourself.
Formula sheet and what to memorise
For the average the sheet has a ready line, but only for an interval starting at zero. The rule for pieces below the axis is not on the sheet.
On the formula sheet:
the average value I(T)=T1∫0TI(t)dt and the basic integrals ∫xαdx=α+1xα+1, ∫exdx=ex: first get the integral from the basic integrals, then divide by the length of the interval; I(T) on the sheet is the article's fˉ with a=0 and b=T.
Remember yourself:
the integral is signed area: a piece below the axis counts with a minus;
the area of a figure whose curve crosses the axis: cut at the zeros, add the absolute values of the pieces;
average on [a,b]: fˉ=b−a1∫abf(t)dt, divide by the length b−a, not by b;
piecewise function: add the areas of the pieces, divide once by the whole length; under a straight line the area is a trapezoid, average of the two heights × width;
for ekt the antiderivative is k1⋅ekt, and F(0)=k1, not 0.
You are asked for the average over an interval, which may start somewhere other than zero. The average fˉ is the integral from a to b divided by the length of the interval: the height of a rectangle with the same area.
fˉ==b−a1∫abf(t)dt
Trap:taking the whole interval of the function or dividing by the upper limit b; divide by b−a.