Build a total from a rate
If \(Q(t)\) is an amount at time \(t\), its rate of change is the derivative \(Q'(t)\) (topic 4.1). Often only the rate is known, as from a speedometer. This topic finds the change in the amount, and then the amount, from the graph of its rate.
The change is the signed area under the rate
A curve Q prime that rises from left to right. The interval from a to b under it is cut into n equal pieces. On each piece, a teal rectangle reaches up to the curve at the left end of the piece, and a faint rectangle on top of it reaches the height of the curve at the right end. Below, a number line has a teal bar from the lower sum, the total area of the teal rectangles, to the upper sum, which adds the faint rectangles, and a chalk tick above it at the area under the curve. A slider sets n from 1 to 24, and the bar shrinks around the tick as n grows.
At a constant rate, the change is the rate times the time. Water that flows into a tank at 3 liters per minute adds 12 liters in 4 minutes. On a graph of the rate, 12 is the area of a rectangle with height 3 and width 4. A negative rate makes the amount decrease, and its rectangle lies below the axis, so area below the axis counts as negative. The area above the axis minus the area below it is the signed area.
When the rate varies, cut the time from a start \(a\) to an end \(b\) into \(n\) pieces of equal width \(\Delta t\). If \(Q'\) is continuous, the Extreme Value Theorem (topic 5.2) gives it a least value \(m\) and a greatest value \(M\) on each piece. In Figure 1, \(Q'\) rises, so \(m\) is its height at the left end of a piece and \(M\) at the right end. The teal rectangle on each piece is \(m\) tall, and the faint one above it reaches \(M\).
Because \(Q\) has a derivative at every time from \(a\) to \(b\), it is continuous there (topic 2.4). By the Mean Value Theorem (topic 5.1), the change in \(Q\) over a piece is therefore \(Q'(c)\,\Delta t\) for some time \(c\) in the piece. This change lies between \(m\,\Delta t\) and \(M\,\Delta t\), since \(m\le Q'(c)\le M\). The signed area over the piece lies between the same two numbers, because the curve stays between the heights \(m\) and \(M\) there.
Over all \(n\) pieces, the change and the signed area from \(a\) to \(b\) are sums of these. Both therefore lie between the lower sum, the area of the teal rectangles, and the upper sum, which adds the faint ones.
Add pieces with the slider under Figure 1. The teal bar, which spans these sums, shrinks around the chalk tick. Slid sideways, the faint rectangles stack into one column \(\Delta t\) wide and \(Q'(b)-Q'(a)\) tall, so the upper sum exceeds the lower sum by \(\big[Q'(b)-Q'(a)\big]\,\Delta t\). As \(n\) grows, \(\Delta t=\frac{b-a}{n}\) approaches 0, and so does this difference. The change and the signed area lie on every bar, so they differ by less than any positive number, and they are equal.
If \(Q'\) falls, \(m\) and \(M\) trade ends, and the argument is the same. If \(Q'\) rises and falls a finite number of times, the argument applies between its turns, and the results add. Topic 6.7 proves the result for every continuous rate.
The change \(Q(b)-Q(a)\) is therefore the signed area between the graph of \(Q'\) and the \(t\)-axis from \(a\) to \(b\). This result is the Net Change Theorem. The signed area is called the definite integral of \(Q'\) from \(a\) to \(b\):
The numbers \(a\) and \(b\) are its bounds, also called limits of integration. Its integrand is \(Q'(t)\), and \(dt\) names the variable. The integral has the units of \(Q'\) times the units of \(t\), as each rectangle does: liters per minute times minutes are liters.
To read an integral from a graph, split the interval where the graph crosses the axis. If the graph is made of segments and arcs of circles, geometry gives the area of each piece.
From the change to the amount
Above, a curve Q prime that is positive, then negative, then positive again. The region under it from a fixed start a to an orange edge b is shaded, teal above the axis and red below it. Below, the graph of the amount Q, with a faint dashed line at the height Q(a) and an orange arrow beside b that rises from Q(a) to Q(b). One button moves b to the end and splits the arrow at the zeros of Q prime into a green rise, a red fall and a green rise. Another adds a red dashed amount that jumps up at one time and has the same slope as Q everywhere else, with a red arrow for its change, which is longer than the orange arrow by the jump.
In Figure 2, the upper graph is a rate \(Q'\), and the lower graph is the amount \(\cb{Q}\). The shaded region runs from \(a\) to the orange line at \(\cy{b}\), its moving edge. The orange arrow rises from \(Q(a)\), on the faint dashed line, to \(Q(b)\). Move \(\cy{b}\) to the right. While \(Q'>0\), the region gains teal area and the arrow grows, and while \(Q'<0\), it gains red area and the arrow shrinks.
The arrow is the change, not the amount. Adding \(Q(a)\) to both sides of \(Q(b)-Q(a)=\int_a^b Q'(t)\,dt\) shows that the amount at \(b\) is the amount at \(a\) plus the integral. The rate cannot supply \(Q(a)\), because amounts that differ by a constant have the same rate, so a problem must give it.
The Mean Value Theorem step needs \(Q\) to have a derivative at every time from \(a\) to \(b\). Press Make the amount jump under Figure 2. The red dashed amount jumps at one time, as a sand pile does when a truck dumps a load. Elsewhere its rate is \(Q'\), yet once \(\cy{b}\) passes the jump, its red arrow is longer than the orange one. No area under \(Q'\) records the jump.
Net change and total change
The integral counts area below the axis as negative, so gains and losses cancel. It gives the net change, such as the displacement of a moving object, its change in position. The total change, or total accumulation, such as the distance that the object travels, counts every region as positive.
Press Split at the zeros of \(Q'\) under Figure 2. The edge moves to the end, and the arrow splits into one arrow for each piece between \(a\), the zeros of \(Q'\) and \(\cy{b}\). Each new arrow is green where \(Q\) rises and red where it falls. The net change is the green lengths minus the red ones. The total change adds all the lengths, so the two are equal only when no arrow is red.
Where \(Q'<0\), the absolute value \(|Q'(t)|=-Q'(t)\) is positive. The graph of \(|Q'|\) is therefore the graph of \(Q'\) with its parts below the axis flipped above it. Its signed area adds the areas of all the pieces, so the total change is \(\int_a^b|Q'(t)|\,dt\). For a velocity, it is the integral of the speed.
Example 1
Represent change as a definite integral
A solar farm produces energy at the rate of \(P(t)=5t\) megawatts, where \(t\) is the number of hours after 7 a.m. Write a definite integral for the energy that the farm produces from 9 a.m. to 1 p.m., give its units, and evaluate it.
Solution
The energy changes at the rate \(P\), which is continuous, so the energy produced is the integral of \(P\). Its bounds are values of \(t\): 9 a.m. is \(t=2\), and 1 p.m. is \(t=6\). Megawatts times hours are megawatt-hours, so the energy is \(\int_2^6 5t\,dt\) megawatt-hours.
Under the line \(P=5t\), the region from 2 to 6 is a trapezoid with parallel sides \(P(2)=10\) and \(P(6)=30\), 4 hours apart:
The farm produces 80 megawatt-hours.
Example 2
Read signed area from a rate graph
The graph of \(T'\) in Figure 3 consists of a semicircle and two line segments. It is the rate, in degrees Celsius per minute, at which the temperature \(T\) of a liquid changes for \(0\le t\le 9\). Find \(T(9)-T(0)\). Is the liquid warmer at \(t=0\) or at \(t=9\)?
The graph of T prime from t = 0 to t = 9: a semicircle of radius 2 above the axis from (0, 0) to (4, 0), then line segments from (4, 0) down to (6.5, −3) and up to (9, 0), with a dot at each of these four points. The half disk under the semicircle is shaded teal, and the triangle between the segments and the axis is shaded red.
Solution
The pieces of the graph meet, so \(T'\) is continuous, and \(T(9)-T(0)\) is the integral of \(T'\) from 0 to 9. From 0 to 4, the graph bounds a half disk of radius 2 above the axis, with area \(\frac12\pi\cdot 2^2=2\pi\). From 4 to 9, it bounds a triangle below the axis with base 5 and depth 3, whose area \(\frac{15}{2}\) counts as negative:
Because \(\pi<3.75\), \(2\pi\) is less than \(\frac{15}{2}\), so the change of \(2\pi-\frac{15}{2}\) degrees Celsius is negative, and the liquid is warmer at \(t=0\).
Example 3
Recover a final amount
A grain silo holds 500 tons of grain at time \(t=0\). For \(0\le t\le 10\), grain flows out of the silo at the rate of \(R(t)=6+2t\) tons per hour, with \(t\) in hours. How many tons of grain are in the silo at \(t=10\)?
Solution
Let \(G(t)\) be the grain in the silo, in tons. Grain leaves, so \(G'(t)=-R(t)\), which is continuous. The amount at the end is the amount at the start plus the change:
Under the line \(R=6+2t\), the region from 0 to 10 is a trapezoid with parallel sides \(R(0)=6\) and \(R(10)=26\), so its area is \(\frac{6+26}{2}\cdot 10=160\). The graph of \(-R\) bounds the same trapezoid, flipped below the axis, so the integral is \(-160\):
The silo holds 340 tons.
Example 4
Distinguish net change from total accumulation
A particle moves along a line with velocity \(v(t)=10-2t\) meters per second for \(0\le t\le 8\). Find the displacement of the particle and the total distance that it travels.
Solution
Velocity is the rate of change of position, and \(v\) is continuous. It changes sign at \(t=5\), so the particle moves forward and then back. From 0 to 5, the graph of \(v\) bounds a triangle above the axis with base 5 and height \(v(0)=10\), of area 25. From 5 to 8, it bounds a triangle below the axis with base 3 and depth \(|v(8)|=6\), of area 9. The displacement counts the second area as negative:
The distance counts both areas as positive, since it ignores direction:
The particle ends 16 meters from its start and travels 34 meters.
Each example is one of the four skills of topic 6.1 in Which & Why: AP Calculus.