Free AP Calculus AB Integration and Accumulation of Change

AP Calculus AB · Integration and Accumulation of Change · free lesson

The Fundamental Theorem and Accumulation Functions

The idea, then worked examples solved step by step, then practice questions whose numbers change every time you try them.

The idea

A function made by an area

So far a definite integral ∫abf(t) dt\int_a^b f(t)\,dt has been one number: the signed area between the graph of ff and the axis from aa to bb (area above the axis counts positive, area below counts negative). Now keep the left end fixed and let the right end move. Each value of the right end xx gives a number, so the integral becomes a function of xx:

Definition.

An accumulation function is a function defined by an integral with a variable upper limit:

g(x)=∫axf(t) dt\begin{aligned} g(x) &= \int_a^x f(t)\,dt \end{aligned}

g(x)g(x) is the signed area under the graph of ff from t=at = a to t=xt = x. The letter tt is only the variable of integration; the input of gg is the upper limit xx. At the starting point, g(a)=∫aaf(t) dt=0g(a) = \int_a^a f(t)\,dt = 0: no width, no area.

Take the function ff whose graph is drawn below, on 0≤t≤80 \le t \le 8. It is made of three line segments and a semicircle: from (0,0)(0, 0) up to (2,2)(2, 2), level at height 2 to (3,2)(3, 2), down to (4,0)(4, 0), and then a semicircle of radius 2 with center (6,0)(6, 0) below the axis. Let g(x)=∫0xf(t) dtg(x) = \int_0^x f(t)\,dt. Watch the shaded area grow as xx moves from 0 to 8: blue area adds to gg, red area takes away.

Each value of gg is an area of a simple shape. Find them in order, adding piece by piece:

xxNew piece from the last xxIts signed areag(x)g(x)
0none00
2triangle, base 2, height 22222
3rectangle, width 1, height 22244
4triangle, base 1, height 21155
6quarter circle of radius 2, below the axis−1π-{1}\pi5−1π≈1.858{5} - {1}\pi \approx {1.858}
8another quarter circle, below the axis−1π-{1}\pi5−2π≈−1.283{5} - {2}\pi \approx {-1.283}

The triangle's area is 12(base)(height)\frac{1}{2}(\text{base})(\text{height}), and a quarter of a circle of radius 2 has area 14π(2)2=1π\frac{1}{4}\pi (2)^2 = {1}\pi. Notice what the numbers do: gg grows while ff is above the axis, is largest at x=4x = 4, where the graph of ff crosses down, and shrinks after it. The graph of gg (blue) draws itself next to ff (red):

The Fundamental Theorem of Calculus

How fast does gg grow? Move xx a little to the right, by a small width hh. The area gains a thin strip that is almost a rectangle of width hh and height f(x)f(x). So g(x+h)−g(x)≈f(x) hg(x + h) - g(x) \approx f(x)\,h, and the rate of growth g(x+h)−g(x)h\frac{g(x + h) - g(x)}{h} is close to f(x)f(x). As h→0h \to 0 the strip becomes exactly such a rectangle, and the rate becomes f(x)f(x).

Drag the width hh down toward 0: the strip's area divided by its width, g(x+h)−g(x)h\frac{g(x + h) - g(x)}{h}, closes in on f(x)f(x), wherever xx is. That is the theorem.

Rule.

The Fundamental Theorem of Calculus (accumulation form). If ff is continuous on an interval containing aa, then g(x)=∫axf(t) dtg(x) = \int_a^x f(t)\,dt is differentiable there, and

g′(x)=ddx∫axf(t) dt=f(x)\begin{aligned} g'(x) &= \frac{d}{dx}\int_a^x f(t)\,dt = f(x) \end{aligned}

The derivative of the accumulated area is the height of the graph at the moving end. Then g′′(x)=f′(x)g''(x) = f'(x) wherever ff is differentiable.

For the gg above: g′(1)=f(1)=1g'(1) = f(1) = {1}, and g′(5)=f(5)=−3g'(5) = f(5) = {-\sqrt{3}}, a negative rate, since at x=5x = 5 the moving end is adding area below the axis. g′′(x)=f′(x)g''(x) = f'(x) is the slope of the graph of ff: on 3<x<43 < x < 4 the segment falls 2 for each 1 across, so g′′(3.5)=−2g''(3.5) = -2. Read the three letters this way: gg is an area, g′g' is a height of ff, g′′g'' is a slope of ff.

The theorem needs no formula for the area. For example, cos⁡(t2)\cos(t^2) has no antiderivative made of the usual functions, yet ddx∫1xcos⁡(t2) dt=cos⁡(x2)\frac{d}{dx}\int_1^x \cos(t^2)\,dt = \cos(x^2) at once. The lower limit aa does not appear in the answer: moving it adds a constant to gg, and a constant has derivative 0.

When the upper limit is a function of x

If the upper limit is u(x)u(x) instead of xx, then ∫au(x)f(t) dt\int_a^{u(x)} f(t)\,dt is g(u(x))g(u(x)), a composite function. By the chain rule its derivative is g′(u(x)) u′(x)=f(u(x)) u′(x)g'(u(x))\,u'(x) = f(u(x))\,u'(x): put the upper limit into ff, then multiply by the derivative of the upper limit.

Rule.
ddx∫au(x)f(t) dt=f(u(x)) u′(x)\begin{aligned} \frac{d}{dx}\int_a^{u(x)} f(t)\,dt &= f(u(x))\,u'(x) \end{aligned}

For H(x)=∫0x31+t2 dtH(x) = \int_0^{x^3} \sqrt{1 + t^2}\,dt, here f(t)=1+t2f(t) = \sqrt{1 + t^{2}} and u(x)=x3u(x) = x^{3}, with u′(x)=3x2u'(x) = {3x^{2}}. So

H′(x)=f(x3)⋅3x2=31+x6x2\begin{aligned} H'(x) &= f(x^3) \cdot {3x^{2}} = {3\sqrt{1 + x^{6}}x^{2}} \end{aligned}

and H′(1)=32H'(1) = {3\sqrt{2}}. When both limits move, split at a fixed number aa: ∫v(x)u(x)f(t) dt=∫au(x)f(t) dt−∫av(x)f(t) dt\int_{v(x)}^{u(x)} f(t)\,dt = \int_a^{u(x)} f(t)\,dt - \int_a^{v(x)} f(t)\,dt, so its derivative is f(u(x)) u′(x)−f(v(x)) v′(x)f(u(x))\,u'(x) - f(v(x))\,v'(x).

Note.

On the AP exam the usual slips are: leaving out the factor u′(x)u'(x) of the chain rule; writing f(u(x))−f(a)f(u(x)) - f(a), as if the lower limit were put in too; integrating ff when the question asks for the derivative; and taking g′′(c)g''(c) to be f′′(c)f''(c), when it is f′(c)f'(c). In a free response, state the theorem in one line: "g′(x)=f(x)g'(x) = f(x) by the Fundamental Theorem of Calculus", then read the value off the graph.

Worked examples

Worked examples

Each example is one kind of question the AP exam asks about accumulation functions. Two facts do all the work: g(x)=∫axf(t) dtg(x) = \int_a^x f(t)\,dt is a signed area, and g′(x)=f(x)g'(x) = f(x) by the Fundamental Theorem of Calculus (with the chain rule when the upper limit is a function of xx). Every number in the working is found by the engine.

Example.

1. Values of g, g' and g'' from a graph. The graph of ff on −2≤t≤6-2 \le t \le 6, shown below, is made of a semicircle and two line segments. The semicircle has center (0,0)(0, 0) and radius 2 and lies above the axis; the segments join (2,0)(2, 0) to (4,−2)(4, -2) and (4,−2)(4, -2) to (6,0)(6, 0). Let g(x)=∫−2xf(t) dtg(x) = \int_{-2}^x f(t)\,dt. Find g(2)g(2), g(5)g(5), g′(1)g'(1) and g′′(5)g''(5).

g(2)g(2) is the area from −2-2 to 2: the whole semicircle, 12π(2)2=2π\frac{1}{2}\pi(2)^2 = {2}\pi. So g(2)=2π≈6.283g(2) = {2}\pi \approx {6.283}.

g(5)g(5) adds the area from 2 to 5, which is below the axis. From 2 to 4 it is a triangle of base 2 and height 2, area 22. From 4 to 5 the segment rises from −2-2 to −1-1, so that piece is a trapezoid; easier, take the triangle from 4 to 6 (area 22) and remove the small triangle from 5 to 6 (base 1, height 1, area 12\frac{1}{2}). The piece from 4 to 5 has area 32\frac{3}{2}. Both pieces count negative:

g(5)=2π−2−32=2π−72\begin{aligned} g(5) &= {2}\pi - {2} - {\frac{3}{2}} = {2}\pi - {\frac{7}{2}} \end{aligned}

By the Fundamental Theorem, g′(1)=f(1)g'(1) = f(1), a height on the semicircle: f(1)=4−12=3f(1) = \sqrt{4 - 1^2} = {\sqrt{3}}. And g′′(5)=f′(5)g''(5) = f'(5), the slope of the segment from (4,−2)(4, -2) to (6,0)(6, 0): g′′(5)=1g''(5) = {1}.

Result.

g(2)=2πg(2) = {2}\pi, g(5)=2π−72g(5) = {2}\pi - {\frac{7}{2}}, g′(1)=3g'(1) = {\sqrt{3}}, g′′(5)=1g''(5) = {1}.

Example.

2. A derivative with no antiderivative needed. Let F(x)=∫3xt2t3+1 dtF(x) = \int_3^x \frac{t^2}{t^3 + 1}\,dt. Find F′(x)F'(x) and F′(2)F'(2).

The integrand is continuous for t>−1t > -1, an interval that contains 3 and 2. By the Fundamental Theorem, put xx in for tt:

F′(x)=x2x3+1\begin{aligned} F'(x) &= \frac{x^2}{x^3 + 1} \end{aligned}

so F′(2)=49F'(2) = {\frac{4}{9}}. The lower limit 3 plays no part. Integrating first and then differentiating would give the same answer, but it is longer and here needs a logarithm you do not need.

Result.

F′(x)=x2x3+1F'(x) = {\frac{x^{2}}{x^{3} + 1}} and F′(2)=49F'(2) = {\frac{4}{9}}.

Example.

3. The chain rule for an upper limit. Let H(x)=∫1x2cos⁡(πt) dtH(x) = \int_1^{x^2} \cos(\pi t)\,dt. Find H′(x)H'(x) and H′(3)H'(3).

The upper limit is u(x)=x2u(x) = x^{2}, with u′(x)=2xu'(x) = {2x}. Put the upper limit into the integrand, then multiply by its derivative:

H′(x)=cos⁡(πx2)⋅2x\begin{aligned} H'(x) &= \cos(\pi x^2) \cdot {2x} \end{aligned}

At x=3x = 3: u(3)=9u(3) = 9 and cos⁡(9π)=−1\cos(9\pi) = {-1}, and u′(3)=6u'(3) = {6}. So

H′(3)=(−1)(6)=−6\begin{aligned} H'(3) &= ({-1})({6}) = {-6} \end{aligned}

Forgetting the factor u′(x)u'(x) gives cos⁡(9π)=−1\cos(9\pi) = {-1}, the commonest wrong answer.

Result.

H′(x)=2xcos⁡(πx2)H'(x) = 2x\cos(\pi x^2) and H′(3)=−6H'(3) = {-6}.

Example.

4. Both limits variable. Let K(x)=∫2xx211+t2 dtK(x) = \int_{2x}^{x^2} \frac{1}{1 + t^2}\,dt. Find K′(1)K'(1).

Split at 0: K(x)=∫0x211+t2 dt−∫02x11+t2 dtK(x) = \int_0^{x^2} \frac{1}{1 + t^2}\,dt - \int_0^{2x} \frac{1}{1 + t^2}\,dt. Each part takes the chain rule: the upper limit x2x^{2} has derivative 2x2x, the lower limit 2x2x has derivative 2.

K′(x)=11+(x2)2⋅2x−11+(2x)2⋅2=2x1+x4−21+4x2\begin{aligned} K'(x) &= \frac{1}{1 + (x^2)^2} \cdot 2x - \frac{1}{1 + (2x)^2} \cdot 2 = {\frac{2x}{1 + x^{4}} - \frac{2}{1 + 4x^{2}}} \end{aligned}

At x=1x = 1: K′(1)=35K'(1) = {\frac{3}{5}}. The lower limit's term is subtracted: the area starts at 2x2x, so moving that end to the right takes area away.

Result.

K′(1)=35K'(1) = {\frac{3}{5}}.

Example.

5. The line tangent to an accumulation function. For the function gg of Example 1, write an equation for the line tangent to the graph of gg at x=4x = 4.

A tangent line needs a point and a slope. The point: g(4)g(4) is the semicircle minus the triangle from 2 to 4, g(4)=2π−2≈4.283g(4) = {2}\pi - {2} \approx {4.283}. The slope: g′(4)=f(4)=−2g'(4) = f(4) = {-2}, read from the graph.

y=2π−2+(−2)(x−4)\begin{aligned} y &= {2}\pi - {2} + ({-2})(x - 4) \end{aligned}

Do not swap the two: the height of ff is the slope of gg, and the area is the value of gg. In the picture, gg (blue) is drawn from its areas; the tangent line touches it at x=4x = 4, where gg is falling.

Result.

y=2π−2−2(x−4)y = {2}\pi - {2} - 2(x - 4).

Example.

6. In context, with a calculator. Rain falls into a tank at the rate r(t)=4+sin⁡(t23)r(t) = 4 + \sin\left(\frac{t^2}{3}\right) gallons per hour, tt hours after noon. At noon the tank holds 30 gallons, and no water leaves it. (a) Write an expression for W(x)W(x), the number of gallons in the tank at time xx. (b) Find W′(2)W'(2) and say what it means. (c) Find W(3)W(3).

(a) The water at time xx is the starting 30 gallons plus what has come in since noon:

W(x)=30+∫0xr(t) dt\begin{aligned} W(x) &= 30 + \int_0^x r(t)\,dt \end{aligned}

(b) By the Fundamental Theorem, W′(x)=r(x)W'(x) = r(x) (the constant 30 has derivative 0). So W′(2)=r(2)=4+sin⁡(43)≈4.972W'(2) = r(2) = 4 + \sin\left(\frac{4}{3}\right) \approx {4.972}. At 2 p.m. the amount of water in the tank is increasing at about 4.9724.972 gallons per hour.

(c) This needs the calculator's integral: W(3)=30+∫03r(t) dtW(3) = 30 + \int_0^3 r(t)\,dt, and the calculator gives ∫03r(t) dt≈13.545\int_0^3 r(t)\,dt \approx {13.545}, so W(3)≈43.545W(3) \approx {43.545} gallons. Write the integral down before the number: the setup is part of the answer.

Result.

W(x)=30+∫0xr(t) dtW(x) = 30 + \int_0^x r(t)\,dt; W′(2)≈4.972W'(2) \approx {4.972} gallons per hour; W(3)≈43.545W(3) \approx {43.545} gallons.

Practice

Answer AP-style questions on the fundamental theorem and accumulation functions. Each answer is checked, with the full solution, and every try brings new numbers. Practice needs a free account: it keeps your progress.

Practise the fundamental theorem and accumulation functions with new numbers