What the integral measures: area and average value

27 min · 2 drills

In the textbook: Ch. 4.3 Anwendungen von Integralen4.1 Stammfunktionen und Integrale

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, 0+02=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=xα+1α+1:

  • 10t gives 10⋅t22=5t2;
  • t2 gives t33.

So F(t)=5t2−t33. Substitute the limits:

  • F(10)=5⋅100−10003=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:

  1. Antiderivative term by term: x gives x22, −2 gives −2x, together F(x)=x22−2x.
  2. Upper limit: F(2)=42−4=2−4=−2.
  3. 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 2⋅22=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.

Line f(x) = x − 2: compare the piece below and the piece above the axis; in the integral they cancel, in the area they add up0124−2−12x−2+2f(x) = x − 2strip below the axis gives −0.5integral 0, area 4

So the area (“Flächeninhalt”) of the figure between the curve and the axis is computed piece by piece:

  1. find the zeros of f between a and b;
  2. cut the interval at these zeros;
  3. compute the integral of each piece;
  4. 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:

Stock I(t) = t · (10 − t): compare wide strips, narrow strips and the area under the parabola; the thinner the strips, the closer their area comes to it0151091625t, monthsstock, tonnesI(t) = t · (10 − t)
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 same three areas, divided by 10 months:

Stock readNumbersTheir averageArea of the stripsArea / 10 months
every two months580/5=1680⋅2=16016
every month10165/10=16.5165⋅1=16516.5
infinitely thin stripsintegral 166.6716.67

The thinner the strips, the closer their area comes to the integral 166.67. So the exact average is

Iˉ=166.6710=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ˉ=1b−a∫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.

Stock over 10 months: compare the area under the parabola with the rectangle over the same interval051016.6725t, monthsstock, tonnesarea 166.67 tonne-monthsheight 16.67 tonnesI(t) = t · (10 − t)height = average 16.67 tonnes

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 is I‾(T)=1T∫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?

  1. a)41
  2. b)44
  3. c)50
  4. d)48
  5. 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.

Demand N(t): compare the area under the curve between 4 and 10 with the rectangle over the same interval0471055071t, monthsdemand N, 1000 piecesN(t)length 6 months
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.

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.

  1. Interval: “the first 5 months” means a=0 and b=5, length 5.
  2. 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 1k⋅ekt: when you differentiate, the factor k comes out in front, and 1k cancels it. Dividing by k is explained in the article “Integral with an inner function and an unknown limit of integration”.
  3. Here k=15, so 1k=5. With the factor 20: F(t)=20⋅5⋅et/5=100⋅et/5.
  4. Upper limit: F(5)=100⋅e1=271.83.
  5. Lower limit: F(0)=100⋅e0=100, because e0=1. Here F(0) is not zero.
  6. The integral is 271.83−100=171.83, the average 171.83/5=34.37 thousand €.
  7. Check: the revenue grows from f(0)=20 to f(5)=54.37, and 34.37 lies between them. The average of the ends, 20+54.372=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.

  1. Interval: a=2, b=8, length 8−2=6.
  2. Antiderivative term by term: F(t)=t33−7t2+50t.
  3. 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.
  4. 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.

  1. a)385.00
  2. b)590.00
  3. c)237.78
  4. d)237.50
  5. 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:

  1. work out each piece separately;
  2. add the areas;
  3. 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 p+q2. 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 p+q2, 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.

Queue in two pieces: compare the two areas under the pieces with the rectangle over all 14 minutes, its height is the mean number of waiting fans0145905180t, minutesfanschange: 180 fans
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.

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.

  1. Cut at the change point: the pieces [0,4] with heights 20 and 80 and [4,5] with heights 80 and 40.
  2. First piece: 20+802⋅4=50⋅4=200 person-hours.
  3. Second piece: 80+402⋅1=60 person-hours.
  4. Average: 200+605=2605=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.

  1. Pieces: [0,6] with heights 400 and 100, [6,10] with heights 100 and 0.
  2. Areas: 400+1002⋅6=1500 and 100+02⋅4=200 person-minutes.
  3. 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 ∫012N dt/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. 71+52=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 19255=385 and 8109=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)=1T∫0TI(t) dt, only from zero; for [a,b] you divide by b−a. Antiderivatives: ∫xα dx=xα+1α+1 and ∫ex dx=ex. The factor 1k 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)=1T∫0TI(t) dt and the basic integrals ∫xα dx=xα+1α+1, ∫ex dx=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ˉ=1b−a∫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 1k⋅ekt, and F(0)=1k, not 0.

In short

  • The average value

    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ˉ=1b−a∫abf(t) dt

    Trap: taking the whole interval of the function or dividing by the upper limit b; divide by b−a.

Average and area are drilled together in the trainer “Applications of integrals”. When the area is paid for, a conversion of units joins the integral: that is the article “Area under a curve in m², ha and dm²”.

Now practise it

What the integral measures: area and average value

Trainer · Integral calculus

Practise
Next: Area under a curve in m², ha and dm²
0/2

Was this article helpful?