Read an accumulation function
An accumulation function starts at a number and adds signed area. For a function \(f\) that is continuous on an interval containing \(a\), and a number \(k\), let
for \(x\) in the interval. For \(x>a\), the integral is the signed area between the graph of \(f\) and the \(t\)-axis from \(a\) to \(x\). At \(x=a\), the region has no width, so \(G(a)=k\). A quantity with the value \(k\) at time \(a\) and the rate of change \(f(t)\) has the value \(G(x)\) at time \(x\) (topic 6.1).
A problem often gives \(f\) only by its graph. This topic reads the values of \(G\), where it increases and decreases, its extreme values and its concavity from \(f\).
Values from signed area
A curve f that starts high, dips below the axis between two crossings and rises above it again. The region under it from a dashed line at a to an orange line at x is shaded, teal above the axis and red below it. Below, the graph of G starts at the height k, below its own axis. It rises to a peak where the curve crosses the axis going down, falls to a valley where the curve crosses the axis going up, and rises again to its highest value at the right end. It is green where it rises and red where it falls, and it crosses its own axis three times, at inputs where the curve is not zero. A button raises k, and the graph of G moves up and no longer crosses its axis.
In Figure 1, the orange line at \(x\) is the moving edge of the shaded region. The lower graph gives \(G(x)\) for each position of the edge. By topic 6.1, the signed area counts the teal parts of the region as positive and the red parts as negative. \(G(x)\) is therefore \(k\) plus the teal area minus the red area.
To find a value, split the region at each input where the graph of \(f\) crosses the axis or changes its formula. If the graph is made of line segments and parts of circles, geometry gives the area of each piece. The pieces fill the region without overlapping, so their signed areas add up to its signed area.
Move \(x\) to the right. While the edge crosses a teal part, the signed area grows and the lower graph rises. While it crosses a red part, the signed area shrinks and the lower graph falls. Each value of \(G\) is the value before it plus the signed area of the new piece, a running total.
If \(x<a\), the integral runs from \(a\) back to \(x\). By definition, swapping the bounds of an integral changes its sign:
To the left of \(a\), area above the axis therefore lowers \(G\), and area below the axis raises it.
Where the accumulation rises, falls and turns
Since \(f\) is continuous and \(k\) is a constant, the Fundamental Theorem of Calculus, Part 1 (topic 6.4), gives \(G'(x)=f(x)\) on the interval. The height of the graph of \(f\) at \(x\) is the slope of the graph of \(G\) there.
By the Increasing/Decreasing Test (topic 5.3), \(G\) increases on each interval where \(f>0\) and decreases on each interval where \(f<0\). In Figure 1, the lower graph is green where the curve lies above the axis and red where it lies below. What decides is the sign of \(f\), not whether its graph rises or falls.
A function may also add a differentiable term \(p(x)\) to the integral. The slope of \(p(x)+\int_a^x f(t)\,dt\) is \(p'(x)+f(x)\), so the sign of this sum decides where the function increases and decreases.
A critical point of \(G\) is an input inside its domain where \(G'\) is 0 or does not exist (topic 5.2). Because \(G'=f\) exists at every input, the critical points of \(G\) are the zeros of \(f\). By the First Derivative Test (topic 5.4), \(G\) has a local maximum at a zero where \(f\) changes from positive to negative. It has a local minimum where \(f\) changes from negative to positive, and neither where \(f\) keeps its sign. AP problems call these local extrema relative extrema. In Figure 1, the peak and the valley of the lower graph are at the two inputs where the curve crosses the axis.
On a closed interval, \(G\) is continuous because it is differentiable. By the Extreme Value Theorem (topic 5.2), it has an absolute maximum and an absolute minimum there. By the Candidates Test (topic 5.5), each occurs at a candidate, an end of the interval or a zero of \(f\). Compare the values of \(G\) at the candidates, each found from signed areas. An end can give the largest value: in Figure 1, the right end of the lower graph is higher than its peak.
The height \(f(x)\) is the slope of \(G\), not its value. Where \(f\) is zero, the graph of \(G\) has a horizontal tangent line, at whatever height \(G\) has. \(G\) is zero where the integral from \(a\) to \(x\) equals \(-k\), so its zeros depend on \(k\). In Figure 1, the curve meets its axis twice and the lower graph meets its own axis three times, at other inputs.
Use the button under Figure 1 to raise \(k\). The lower graph moves up by the same amount everywhere. It still turns at the zeros of \(f\), but it no longer meets its axis.
How the accumulation bends
A wavy curve f that rises to a peak, falls below the axis to a low point and rises again. An orange line at x reaches from the axis to the curve. Below, the graph of G with an orange tangent line at its point at x, whose slope is the height of the curve at x. The graph of G is green where the curve rises and red where the curve falls, so it changes color at the inputs of the peak and of the low point of the curve.
A graph is concave up on an interval where its slope increases and concave down where its slope decreases (topic 5.6). The slope of \(G\) is \(f\). \(G\) is therefore concave up where \(f\) is increasing and concave down where \(f\) is decreasing.
In Figure 2, the orange tangent line on the lower graph has the slope \(\cy{f(x)}\). Move \(x\) to the right. While the curve rises, the tangent line turns counterclockwise and the lower graph is green. While the curve falls, the tangent line turns clockwise and the lower graph is red. At the start, \(f\) is positive and decreasing, so \(G\) rises and is concave down. The sign of \(f\) decides whether \(G\) rises. Whether \(f\) rises or falls decides how \(G\) bends.
A point of inflection of \(G\) is a point where its concavity changes (topic 5.6). It occurs where \(f\) changes from increasing to decreasing, or back, such as at the peak of the curve in Figure 2. There \(G\) rises fastest, which is not where \(G\) is largest.
If \(f\) is differentiable, \(G''=f'\), and the Concavity Test (topic 5.6) gives the same intervals. If the graph of \(f\) is made of line segments, \(G\) is concave up along each rising segment and concave down along each falling one. Where a rising segment meets a falling one, \(G''\) does not exist, but the concavity changes, so \(G\) has a point of inflection there.
Example 1
Calculate an accumulation value
The graph of the continuous function \(f\) in Figure 3 consists of two line segments and a semicircle. Let \(g(x)=5+\displaystyle\int_2^x f(t)\,dt\). Find \(g(6)\) and \(g(0)\).
The graph of f from t = 0 to t = 6: a horizontal segment at height −3 from 0 to 2, a segment up to (4, 0), and a semicircle of radius 1 above the axis from 4 to 6, with dots at (0, −3), (2, −3), (4, 0) and (6, 0). The region between the graph and the axis from 2 to an orange line at x is shaded, teal above the axis and red below it. At the start, x is 6.
Solution
The starting value is \(g(2)=5\), because the region from 2 to 2 has no width. For \(g(6)\), split the region from 2 to 6 at \(t=4\), where the graph meets the axis. From 2 to 4, it is a triangle below the axis with base 2 and height 3, which counts as negative. From 4 to 6, it is a semicircle of radius 1 above the axis:
For \(g(0)\), the integral runs from 2 back to 0, so its sign reverses. From 0 to 2, the region is a rectangle below the axis with width 2 and height 3, so \(\int_0^2 f(t)\,dt=-6\) and
Example 2
Find where the accumulation increases or decreases
Let \(h(x)=\displaystyle\int_0^x \sqrt{t^2+16}\,dt-5x\). Find the intervals on which \(h\) is increasing and the intervals on which \(h\) is decreasing.
Solution
The integrand is continuous for every \(t\), because \(t^2+16>0\). By the Fundamental Theorem, Part 1, the integral has the derivative \(\sqrt{x^2+16}\), and the term \(-5x\) has the derivative \(-5\):
Both \(\sqrt{x^2+16}\) and 5 are positive, and squaring keeps the order of positive numbers, so \(h'(x)<0\) exactly when \(x^2+16<25\), that is, when \(x^2<9\):
By the Increasing/Decreasing Test, \(h\) is decreasing on \([-3,3]\) and increasing on \((-\infty,-3]\) and on \([3,\infty)\).
Example 3
Find extrema of the accumulation
The graph of the continuous function \(f\) in Figure 4 consists of six line segments. Let \(F(x)=\displaystyle\int_0^x f(t)\,dt\) for \(0\le x\le 8\). Where does \(F\) have relative extrema? Find the absolute maximum and minimum values of \(F\).
The graph of f from t = 0 to t = 8, made of line segments through (0, 3), (2, 0), (3, −2), (4, 0), (5, −2), (6, 0) and (8, 6), with a dot at each point. The region between the graph and the axis is shaded: a teal triangle from 0 to 2, red triangles from 2 to 4 and from 4 to 6 that meet at the axis at t = 4, and a teal triangle from 6 to 8.
Solution
Because \(f\) is continuous, \(F'=f\), so the critical points of \(F\) are 2, 4 and 6, the zeros of \(f\). The graph of \(f\) crosses the axis downward at 2 and upward at 6. By the First Derivative Test, \(F\) has a local maximum at \(x=2\) and a local minimum at \(x=6\). At 4, the graph touches the axis without crossing it, so \(F\) has neither. The ends 0 and 8 give no local extremum, because \(F\) has values on only one side of each.
\(F\) is continuous on \([0,8]\), so by the Candidates Test its absolute extrema are among its values at 0, 2, 4, 6 and 8. Each triangle has base 2, so its area is its height. The running total from \(F(0)=0\) gives
The absolute maximum is 5, at \(x=8\), and the absolute minimum is \(-1\), at \(x=6\).
Example 4
Determine the accumulation's concavity
Let \(Q(x)=\displaystyle\int_0^x t\,e^{-t}\,dt\). Find the intervals on which \(Q\) is concave up and the intervals on which \(Q\) is concave down, and find the \(x\)-coordinate of each point of inflection.
Solution
The integrand is continuous for every \(t\), so \(Q'(x)=x\,e^{-x}\). The integrand is also differentiable, so the product rule gives
The factor \(e^{-x}\) is positive, so \(Q''\) has the sign of \(1-x\). By the Concavity Test, \(Q\) is concave up on \((-\infty,1)\) and concave down on \((1,\infty)\). The concavity changes at \(x=1\), where \(Q\) is continuous, so \(Q\) has a point of inflection at \(x=1\).
Example 5
Distinguish the graph's height from accumulated area
Let \(R(x)=\displaystyle\int_1^x (2t-8)\,dt\). Find each value of \(x\) at which the graph of \(R\) has a horizontal tangent line, and each value of \(x\) at which \(R(x)=0\).
Solution
The integrand is continuous, so \(R'(x)=2x-8\), and the tangent line is horizontal only where \(2x-8=0\), at \(x=4\).
The zeros of \(R\) depend on signed area, not on the height \(2x-8\). \(R(1)=0\), because the region from 1 to 1 has no width. The line \(y=2t-8\) lies below the axis from 1 to 4 and above it from 4 to 7. It is at \(-6\) when \(t=1\) and at 6 when \(t=7\), so each region is a triangle with base 3 and height 6:
Because \(R'<0\) for \(x<4\) and \(R'>0\) for \(x>4\), \(R\) decreases on \((-\infty,4]\) and increases on \([4,\infty)\). It is therefore 0 at most once on each side of 4, and its zeros are \(x=1\) and \(x=7\).
Each example is one of the five skills of topic 6.5 in Which & Why: AP Calculus.