Skip to content
Family Table Math

Accumulation Functions and the FTC

What if the upper limit of an integral is a variable? Then the integral becomes a function: it keeps a running total of the signed area as you move to the right. These accumulation functions lead to one of the most important results in all of mathematics, the Fundamental Theorem of Calculus, which says that integrating and differentiating undo each other.

Fix a starting point aa and define

g(x)=∫axf(t) dt.g(x) = \int_a^x f(t)\,dt .

g(x)g(x) is the signed area under ff from aa to xx. The letter tt is just a placeholder (a “dummy variable”), so it doesn’t clash with xx, which is now a limit. Two facts follow right away:

  • g(a)=∫aaf(t) dt=0g(a) = \displaystyle\int_a^a f(t)\,dt = 0.
  • If x<ax \lt a, the integral runs backwards, so g(x)=−∫xaf(t) dtg(x) = -\displaystyle\int_x^a f(t)\,dt.

If ff is continuous on an interval containing aa, then g(x)=∫axf(t) dtg(x) = \displaystyle\int_a^x f(t)\,dt is differentiable and

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

Why it works: when xx moves a tiny bit, hh, to the right, gg gains a thin strip of area that is about f(x)⋅hf(x) \cdot h. So the rate at which area accumulates is f(x) hh=f(x)\dfrac{f(x)\,h}{h} = f(x), the height of the graph.

The starting point aa doesn’t matter for the derivative: changing it only adds a constant to gg.

If the upper limit is a function u(x)u(x), use the chain rule:

ddx∫au(x)f(t) dt=f(u(x))⋅u′(x).\frac{d}{dx}\int_a^{u(x)} f(t)\,dt = f\big(u(x)\big)\cdot u'(x).

If the variable is in the lower limit, flip the limits first, which adds a negative sign:

ddx∫xbf(t) dt=ddx(−∫bxf(t) dt)=−f(x).\frac{d}{dx}\int_x^b f(t)\,dt = \frac{d}{dx}\left(-\int_b^x f(t)\,dt\right) = -f(x).

Since g′=fg' = f and g′′=f′g'' = f', the graph of ff tells you everything about gg:

On the graph of ffFor g(x)=∫axf(t) dtg(x) = \int_a^x f(t)\,dt
ff above the axis (f>0f \gt 0)gg is increasing
ff below the axis (f<0f \lt 0)gg is decreasing
ff changes from positive to negativegg has a relative maximum
ff changes from negative to positivegg has a relative minimum
ff increasinggg is concave up
ff decreasinggg is concave down
ff changes from increasing to decreasing (or back)gg has a point of inflection

Values of gg come from signed areas, often using geometry. For absolute extrema, compare gg at the critical points and at the endpoints (the Candidates Test).

Find each derivative.

(a) ddx∫1xcos⁡(t2) dt\dfrac{d}{dx}\displaystyle\int_1^x \cos(t^2)\,dt

(b) ddx∫x51+t3 dt\dfrac{d}{dx}\displaystyle\int_x^5 \sqrt{1 + t^3}\,dt

Solution.

(a) The integrand is continuous, so by the FTC the derivative is the integrand with tt replaced by xx: cos⁡(x2)\cos(x^2).

(b) The variable is the lower limit. Flip the limits:

ddx∫x51+t3 dt=ddx(−∫5x1+t3 dt)=−1+x3\frac{d}{dx}\int_x^5 \sqrt{1 + t^3}\,dt = \frac{d}{dx}\left(-\int_5^x \sqrt{1 + t^3}\,dt\right) = -\sqrt{1 + x^3}

You don’t need to (and can’t easily) find either integral. The FTC goes straight to the derivative.

Find ddx∫2x2ln⁡(1+t) dt\dfrac{d}{dx}\displaystyle\int_2^{x^2} \ln(1 + t)\,dt.

Solution. The upper limit is u(x)=x2u(x) = x^2, with u′(x)=2xu'(x) = 2x. Put uu into the integrand and multiply by u′u':

ddx∫2x2ln⁡(1+t) dt=ln⁡(1+x2)⋅2x=2xln⁡(1+x2)\frac{d}{dx}\int_2^{x^2} \ln(1 + t)\,dt = \ln(1 + x^2) \cdot 2x = 2x\ln(1 + x^2)

The graph of ff on [0,8][0, 8] is shown. It is made of a line segment, a semicircle of radius 22, and another line segment. Let g(x)=∫0xf(t) dtg(x) = \displaystyle\int_0^x f(t)\,dt.

Graph of f on the interval 0 to 8: a line from (0, 2) down to (2, 0), a semicircle of radius 2 below the axis from x = 2 to x = 6 centred at (4, 0), and a line from (6, 0) up to (8, 2). The two triangles above the axis each have area 2; the semicircle below has signed area negative 2 pi. −2 −1 1 2 1 2 3 4 5 6 7 8 2 −2π 2 y = f(t)
Signed areas under ff: positive above the axis, negative below.

(a) Find g(2)g(2), g(4)g(4), g(6)g(6), and g(8)g(8).

(b) Find g′(5)g'(5) and g′′(1)g''(1).

(c) On what intervals is gg increasing? Where does gg have relative extrema? Justify.

(d) Where is gg concave up? Where does it have a point of inflection?

(e) Find the absolute maximum and minimum values of gg on [0,8][0, 8].

Solution.

(a) Add signed areas from 00:

g(2)=2triangleg(4)=2−πminus a quarter circle, 14π(2)2=πg(6)=2−2πminus the whole half circleg(8)=2−2π+2=4−2πplus the second triangle\begin{aligned} g(2) &= 2 && \text{triangle} \\ g(4) &= 2 - \pi && \text{minus a quarter circle, } \tfrac{1}{4}\pi(2)^2 = \pi \\ g(6) &= 2 - 2\pi && \text{minus the whole half circle} \\ g(8) &= 2 - 2\pi + 2 = 4 - 2\pi && \text{plus the second triangle} \end{aligned}

(b) g′(5)=f(5)g'(5) = f(5). On the semicircle, f(t)=−4−(t−4)2f(t) = -\sqrt{4 - (t - 4)^2}, so f(5)=−3f(5) = -\sqrt{3}. And g′′(1)=f′(1)g''(1) = f'(1), the slope of the first segment, which is 0−22−0=−1\dfrac{0 - 2}{2 - 0} = -1.

(c) g′=fg' = f, which is positive on (0,2)(0, 2) and (6,8)(6, 8) and negative on (2,6)(2, 6). So gg is increasing on (0,2)(0, 2) and (6,8)(6, 8). gg has a relative maximum at x=2x = 2 because g′=fg' = f changes from positive to negative there, and a relative minimum at x=6x = 6 because g′=fg' = f changes from negative to positive there.

(d) g′′=f′g'' = f'. ff is decreasing on (0,4)(0, 4) and increasing on (4,8)(4, 8), so gg is concave down on (0,4)(0, 4) and concave up on (4,8)(4, 8). There is a point of inflection at x=4x = 4, where g′=fg' = f changes from decreasing to increasing.

(e) Candidates: the endpoints and the critical points x=2x = 2 and x=6x = 6.

xx00226688
g(x)g(x)00222−2π≈−4.2832 - 2\pi \approx -4.2834−2π≈−2.2834 - 2\pi \approx -2.283

The absolute maximum is 22 (at x=2x = 2) and the absolute minimum is 2−2π2 - 2\pi (at x=6x = 6).

Let h(x)=3+∫1xet2−1 dth(x) = 3 + \displaystyle\int_1^x e^{t^2 - 1}\,dt. Find the equation of the tangent line to hh at x=1x = 1.

Solution. h(1)=3+∫11et2−1 dt=3+0=3h(1) = 3 + \displaystyle\int_1^1 e^{t^2 - 1}\,dt = 3 + 0 = 3.

h′(x)=ex2−1h'(x) = e^{x^2 - 1} by the FTC, so h′(1)=e0=1h'(1) = e^0 = 1.

y=3+1(x−1),ory=x+2y = 3 + 1(x - 1), \quad \text{or} \quad y = x + 2

Forgetting the chain rule. ddx∫03xe−t2 dt\dfrac{d}{dx}\displaystyle\int_0^{3x} e^{-t^2}\,dt is 3e−9x23e^{-9x^2}, not e−9x2e^{-9x^2}. Whenever the limit is anything other than plain xx, multiply by its derivative.

Missing the sign when xx is the lower limit. Flip the limits first and pick up a negative sign.

Mixing up f and g in graph questions. If the graph shows ff and g(x)=∫axf(t) dtg(x) = \int_a^x f(t)\,dt, then gg increases where ff is positive, not where ff is increasing. Where ff increases, gg is concave up.

Using “g is positive” when you mean “g is increasing”. g(x)g(x) can be negative while increasing (like gg on (6,8)(6, 8) in Example 3). For increasing or decreasing, look at the sign of ff; for the value of gg, add the areas.

Weak justifications. On the AP exam, ”gg has a relative maximum at x=2x = 2” earns credit only with a reason like “because g′(x)=f(x)g'(x) = f(x) changes from positive to negative at x=2x = 2”. Saying “the graph goes down” or "f(2)=0f(2) = 0" isn’t enough.

Forgetting g(a) = 0. The accumulation starts at the lower limit, so the value there is 00 (plus any constant added outside the integral, like the 33 in Example 4).

1. (Warm-up) Find ddx∫0x(t3+1)5 dt\dfrac{d}{dx}\displaystyle\int_0^x (t^3 + 1)^5\,dt.

Solution

By the FTC, the derivative is (x3+1)5(x^3 + 1)^5.

2. (Warm-up) Let F(x)=∫x3t+1 dtF(x) = \displaystyle\int_x^3 \sqrt{t + 1}\,dt. Find F′(x)F'(x) and F(3)F(3).

Solution

F(x)=−∫3xt+1 dtF(x) = -\displaystyle\int_3^x \sqrt{t + 1}\,dt, so F′(x)=−x+1F'(x) = -\sqrt{x + 1}.

F(3)=∫33t+1 dt=0F(3) = \displaystyle\int_3^3 \sqrt{t + 1}\,dt = 0.

3. (Warm-up) For gg in Example 3, find g(1)g(1) and g′(7)g'(7).

Solution

From 00 to 11, the region under ff is a trapezoid with parallel sides f(0)=2f(0) = 2 and f(1)=1f(1) = 1 and width 11:

g(1)=2+12⋅1=1.5g(1) = \frac{2 + 1}{2} \cdot 1 = 1.5

g′(7)=f(7)=1g'(7) = f(7) = 1 (the last segment goes from (6,0)(6, 0) to (8,2)(8, 2)).

4. (Core) Find ddx∫03xe−t2 dt\dfrac{d}{dx}\displaystyle\int_0^{3x} e^{-t^2}\,dt.

Solution

With u=3xu = 3x and u′=3u' = 3:

e−(3x)2⋅3=3e−9x2e^{-(3x)^2} \cdot 3 = 3e^{-9x^2}

5. (Core) Find ddx∫xx2sin⁡t dt\dfrac{d}{dx}\displaystyle\int_x^{x^2} \sin t\,dt. (Hint: split the integral at 00.)

Solution∫xx2sin⁡t dt=∫0x2sin⁡t dt−∫0xsin⁡t dt\int_x^{x^2} \sin t\,dt = \int_0^{x^2} \sin t\,dt - \int_0^{x} \sin t\,dt

Differentiate each piece (chain rule on the first):

ddx∫xx2sin⁡t dt=sin⁡(x2)⋅2x−sin⁡x=2xsin⁡(x2)−sin⁡x\frac{d}{dx}\int_x^{x^2} \sin t\,dt = \sin(x^2)\cdot 2x - \sin x = 2x\sin(x^2) - \sin x

6. (Core) Let G(x)=4+∫2xt2+5 dtG(x) = 4 + \displaystyle\int_2^x \sqrt{t^2 + 5}\,dt. Write the equation of the tangent line to GG at x=2x = 2.

Solution

G(2)=4+0=4G(2) = 4 + 0 = 4. G′(x)=x2+5G'(x) = \sqrt{x^2 + 5}, so G′(2)=9=3G'(2) = \sqrt{9} = 3.

y=4+3(x−2)y = 4 + 3(x - 2)

7. (Core) The graph of ff is shown in Example 3, and g(x)=∫0xf(t) dtg(x) = \displaystyle\int_0^x f(t)\,dt. Is gg increasing or decreasing at x=3x = 3? Is it concave up or concave down at x=3x = 3? Give a reason for each.

Solution

g′(3)=f(3)<0g'(3) = f(3) \lt 0 (the semicircle is below the axis), so gg is decreasing at x=3x = 3.

g′′(3)=f′(3)<0g''(3) = f'(3) \lt 0 because ff is decreasing at x=3x = 3 (the semicircle is still heading down toward its lowest point at x=4x = 4). So gg is concave down at x=3x = 3.

8. (Challenge) Using the graph of ff in Example 3, let h(x)=∫2xf(t) dth(x) = \displaystyle\int_2^x f(t)\,dt. Find h(0)h(0) and h(8)h(8).

Solutionh(0)=∫20f(t) dt=−∫02f(t) dt=−2h(0) = \int_2^0 f(t)\,dt = -\int_0^2 f(t)\,dt = -2h(8)=∫26f(t) dt+∫68f(t) dt=−2π+2h(8) = \int_2^6 f(t)\,dt + \int_6^8 f(t)\,dt = -2\pi + 2

So h(0)=−2h(0) = -2 and h(8)=2−2π≈−4.283h(8) = 2 - 2\pi \approx -4.283. (Notice h(x)=g(x)−2h(x) = g(x) - 2: changing the starting point shifts the function down.)

9. (Challenge) Let g(x)=∫0x(t2−4t+3) dtg(x) = \displaystyle\int_0^x (t^2 - 4t + 3)\,dt. Find the xx-values where gg has relative extrema and points of inflection, and justify each.

Solution

By the FTC, g′(x)=x2−4x+3=(x−1)(x−3)g'(x) = x^2 - 4x + 3 = (x - 1)(x - 3).

g′g' is positive for x<1x \lt 1, negative for 1<x<31 \lt x \lt 3, and positive for x>3x \gt 3.

  • Relative maximum at x=1x = 1, because g′g' changes from positive to negative there.
  • Relative minimum at x=3x = 3, because g′g' changes from negative to positive there.

g′′(x)=2x−4g''(x) = 2x - 4, which changes from negative to positive at x=2x = 2. So gg has a point of inflection at x=2x = 2.