A weather app says the average temperature in Denver between 6 a.m. and 6 p.m. on a winter day was 46°F. But the temperature changed every second, so how can anyone "average" infinitely many readings? And if you know only how fast something is changing (a speedometer, a faucet, a download), how do you find how much has built up? Integrals answer both questions, and this page shows you how to use them in context.
Average Value of a Function
When you average five quiz scores, you add them and divide by 5. A function has infinitely many values on an interval, so "add them up" becomes an integral, and "divide by how many" becomes "divide by the length of the interval."
Why does this work? Pick $n$ evenly spaced $x$-values with spacing $\Delta x=\frac{b-a}{n}$. Their average is $\frac{1}{n}\sum f(x_i)=\frac{1}{b-a}\sum f(x_i)\,\Delta x$. As $n$ grows, that sum becomes a Riemann sum, and in the limit it becomes the integral.
Rearranged, the formula says $\int_a^b f(x)\,dx = f_{\text{avg}}\cdot(b-a)$. The area under the curve equals the area of a rectangle whose height is the average value.
Temperature T rises from 30°F at 6 a.m. to 54°F at 6 p.m. The rectangle of height 46°F, the average temperature (dashed line), has the same area as the region under the curve.
Average value from a graph
When the graph is made of lines, you don't need antiderivatives. The integral is signed area: area above the $x$-axis counts as positive and area below counts as negative. Use rectangles and triangles, add the signed areas, then divide by the length.
Piecewise linear graph of f on [0, 5]: horizontal at y = 2 until x = 2, then it drops to (5, −4), crossing the x-axis at (3, 0). The area above the axis (5) counts as positive and the area below (4) as negative.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Find the average value of $f(x)=x^2$ on the interval $[0, 3]$. Write the formula for the average value of a function before you substitute.
Find the average value of $f(x)=x^2$ on the interval $[0, 3]$. Write the formula for the average value of a function before you substitute.
The graph of a continuous function $f$ on $[0, 6]$ consists of a horizontal segment from $(0, 4)$ to $(2, 4)$ followed by a segment from $(2, 4)$ to $(6, -2)$. (a) Find…
The graph of a continuous function $f$ on $[0, 6]$ consists of a horizontal segment from $(0, 4)$ to $(2, 4)$ followed by a segment from $(2, 4)$ to $(6, -2)$.
(a) Find the average value of $f$ on $[0, 6]$.
(b) Find the average value of $f$ on $[2, 6]$.
(c) Explain why the integral over $[0, 6]$ is not the same as the area between the graph and the $x$-axis.
The average temperature of 46°F is not just a number on a page. A continuous temperature curve that starts at 30°F and ends at 54°F must actually pass through 46°F at some moment. That is the idea behind the next theorem.
Why is it true? A continuous function on $[a, b]$ has a minimum $m$ and a maximum $M$. The rectangle of height $m$ is no bigger than the area under the curve, and the rectangle of height $M$ is no smaller. So $m\le f_{\text{avg}}\le M$. The Intermediate Value Theorem says $f$ takes every value between $m$ and $M$, including $f_{\text{avg}}$.
Graph of y = √x on [0, 9]. The rectangle of height 2 (the average value) has the same area as the region under the curve, and the curve reaches that height at c = 4, the value the theorem guarantees.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Let $f(x)=3x^2-2x$. (a) Find the average value of $f$ on $[1, 3]$. (b) Find the value of $c$ in $(1, 3)$ guaranteed by the Mean Value Theorem for Integrals, such that…
Let $f(x)=3x^2-2x$.
(a) Find the average value of $f$ on $[1, 3]$.
(b) Find the value of $c$ in $(1, 3)$ guaranteed by the Mean Value Theorem for Integrals, such that $f(c)$ equals that average value. Give an exact value.
A rate tells you how fast something changes, and integrating the rate adds up all the little changes. The Fundamental Theorem of Calculus says exactly this.
The integral only gives how much the quantity changed. To get how much there is, you must add the starting amount. The units of the integral are (rate units) $\times$ (input units): gallons per minute times minutes gives gallons.
Rate S′(t) = 60 + 12t, from 60 subscribers per week at t = 0 to 180 at t = 10. The shaded area, 1,200 subscribers, is the net change; the initial amount is added to it.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
The amount of water $W(t)$, in gallons, in a tank satisfies $W'(t)=4t$ gallons per minute for $0\le t\le 5$, where $t$ is in minutes. There are $20$ gallons in the tank…
The amount of water $W(t)$, in gallons, in a tank satisfies $W'(t)=4t$ gallons per minute for $0\le t\le 5$, where $t$ is in minutes. There are $20$ gallons in the tank at $t=0$. How many gallons are in the tank at $t=5$? Use the Net Change Theorem.
Motion along a line is the most famous net-change problem. If $x(t)$ is position, $v(t)=x'(t)$ is velocity, and $a(t)=v'(t)$ is acceleration, then each quantity is the accumulation of the one after it.
Velocity is signed. Positive velocity means moving in the positive direction (right) and negative means moving left. So displacement can be positive, negative, or zero. If $\int_a^b v\,dt<0$, the particle ends to the left of where it started.
Position of a car along a line: it starts at x(0) = 5, moves left to x(2) = −11, where it turns around, and returns to the right to x(3) = −4. It ends left of where it started, so its net displacement is negative.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
A particle moves along a horizontal line with velocity $v(t)=t^2-4t+3$, in feet per second, for $t\ge 0$. Find the particle's displacement on the interval $0\le t\le 2$.…
A particle moves along a horizontal line with velocity $v(t)=t^2-4t+3$, in feet per second, for $t\ge 0$. Find the particle's displacement on the interval $0\le t\le 2$. Does the particle end to the right or to the left of where it started?
A skateboarder moves along a straight path with velocity $v(t)=2t+1$, in feet per second. Her position at $t=0$ is $x(0)=-3$ feet. Find her position $x(4)$ at $t=4$…
A skateboarder moves along a straight path with velocity $v(t)=2t+1$, in feet per second. Her position at $t=0$ is $x(0)=-3$ feet. Find her position $x(4)$ at $t=4$ seconds.
If a car drives 5 miles east and 5 miles back west, its displacement is $0$, but the odometer reads 10 miles. The odometer adds up all motion regardless of direction, so it uses speed, which is $|v(t)|$.
To compute $\int|v|$, find where $v(t)=0$, build a sign chart, and integrate each piece separately, making the negative pieces positive.
Velocity v(t) = t² − 6t + 8 (ft/s) on [0, 5]. It changes sign at t = 2 and t = 4. The signed areas are +20/3, −4/3 and +4/3: the part below the axis subtracts from displacement but adds to total distance.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
A particle moves along the $x$-axis with velocity $v(t)=t^2-5t+4$, in meters per second, for $0\le t\le 5$. Its position at $t=0$ is $x(0)=2$ meters. (a) Find the…
A particle moves along the $x$-axis with velocity $v(t)=t^2-5t+4$, in meters per second, for $0\le t\le 5$. Its position at $t=0$ is $x(0)=2$ meters.
(a) Find the displacement of the particle on $[0, 5]$ and its position at $t=5$.
A particle moves along the $x$-axis with acceleration $a(t)=6t-12$, in meters per second squared. At $t=0$, its velocity is $v(0)=9$ m/s and its position is $x(0)=0$.…
A particle moves along the $x$-axis with acceleration $a(t)=6t-12$, in meters per second squared. At $t=0$, its velocity is $v(0)=9$ m/s and its position is $x(0)=0$.
(a) Find $v(t)$ and $x(t)$.
(b) At what times in $(0, 4)$ does the particle change direction?
(c) Find the displacement and the total distance traveled on $[0, 4]$.
(d) Find the average velocity and the average speed on $[0, 4]$, and explain why they differ.
Many AP problems describe something that flows in and flows out: water in a tank, people in a park, cars on a highway. If $R(t)$ is the rate in and $D(t)$ is the rate out, the amount $A(t)$ changes at the net rate $R(t)-D(t)$.
Inflow rate R(t) = 14 − 2t (decreasing) and outflow rate D(t) = 2t + 2 (increasing), in gal/hr, for 0 ≤ t ≤ 6. They cross at t = 3: before that R > D and the barrel fills; after that R < D and it drains.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
At a state park, people enter at a rate $E(t)=120-10t$ people per hour and leave at a rate $L(t)=20t$ people per hour, for $0\le t\le 8$, where $t$ is the number of…
At a state park, people enter at a rate $E(t)=120-10t$ people per hour and leave at a rate $L(t)=20t$ people per hour, for $0\le t\le 8$, where $t$ is the number of hours after the park opens. There are $200$ people in the park at $t=0$.
(a) How many people are in the park at $t=8$?
(b) At what time $t$ is the number of people in the park greatest, and how many people are in the park then? Justify.
(Calculator active) A tank initially holds $30$ gallons of water. For $0\le t\le 10$ minutes, water flows in at rate $R(t)=5+4\sin(0.7t)$ gallons per minute and flows…
(Calculator active) A tank initially holds $30$ gallons of water. For $0\le t\le 10$ minutes, water flows in at rate $R(t)=5+4\sin(0.7t)$ gallons per minute and flows out at rate $D(t)=3+0.4t$ gallons per minute.
(a) Write an expression for $A(t)$, the number of gallons in the tank at time $t$, and find $A(10)$.
(b) Is the amount of water in the tank increasing or decreasing at $t=8$? Justify.
(c) At what time $t$ in $[0, 10]$ is the amount of water in the tank least? Justify your answer, including a check of the endpoints, and give that minimum amount.
Sometimes you don't have a formula, only a table of measurements. You can still estimate integrals with a trapezoidal sum: on each subinterval, the area is (average of the two heights) $\times$ (width). Unequal widths are fine, since each trapezoid uses its own width.
Velocity data (t in s): v(0)=1, v(2)=5, v(5)=7, v(9)=−3, joined by line segments. Each trapezoid uses its own width; the area above the t-axis (blue) adds and the small region below the axis (orange) subtracts.
Notice that the average acceleration is just the average rate of change of $v$. In general, the average value of a derivative is an average rate of change.
Average values also combine across subintervals. If $a<b<c$, then $\int_a^c f=\int_a^b f+\int_b^c f$. Each average value is weighted by the length of its interval.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
A particle moves along the $x$-axis with differentiable velocity $v(t)$, in feet per second. Values of $v$ are recorded at the following times. | $t$ (s) | 0 | 2 | 5 | 8…
A particle moves along the $x$-axis with differentiable velocity $v(t)$, in feet per second. Values of $v$ are recorded at the following times.
$t$ (s)
0
2
5
8
12
$v(t)$ (ft/s)
3
5
$-1$
$-4$
2
(a) Use a trapezoidal sum with the four subintervals given to approximate $\int_0^{12} v(t)\,dt$. Interpret its meaning, with units.
(b) Approximate the average velocity on $[0, 12]$.
(c) The particle's position at $t=0$ is $x(0)=4$ feet. Approximate $x(12)$.
(d) Explain why $v(t)=0$ for at least two values of $t$ in $(0, 12)$.
(e) Find the average acceleration of the particle on $[2, 5]$.
The function $f$ is continuous on $[1, 5]$. The average value of $f$ on $[1, 5]$ is $7$, and the average value of $f$ on $[1, 3]$ is $4$. (a) Find $\int_3^5 f(x)\,dx$…
The function $f$ is continuous on $[1, 5]$. The average value of $f$ on $[1, 5]$ is $7$, and the average value of $f$ on $[1, 3]$ is $4$.
(a) Find $\int_3^5 f(x)\,dx$ and the average value of $f$ on $[3, 5]$.
(b) Suppose $f$ is differentiable with continuous derivative on $[1, 5]$, with $f(1)=2$ and $f(5)=14$. Find the average value of $f'$ on $[1, 5]$ and explain the connection with the average rate of change of $f$.
(c) For $h(x)=3x^2$, verify this connection on $[1, 5]$ by computing both quantities.
Back to the start: Denver's average of 46°F came from $\frac{1}{12}\int_0^{12}T(t)\,dt$. The rectangle with that height has the same area as the region under the temperature curve, and the Mean Value Theorem for Integrals says the real temperature hit 46°F at some moment.
Time to practice! 3 of the 4 level medium exercises in this section