Unit 6 · Topic 6.4

Differentiate accumulation

Builds on the definite integral as signed area and the chain rule. 12 minutes.

  1. Example 1Differentiate an accumulation with a variable endpoint
  2. Example 2Include the chain-rule factor
  3. Example 3Handle two moving endpoints
  4. Example 4Use graph or table values in the derivative

An accumulation function adds up a rate. For a continuous function \(f\) and a fixed number \(a\), the accumulation function

\[\cb{F(x)=\int_a^x f(t)\,dt}\]

gives the signed area between the graph of \(f\) and the \(t\)-axis from \(a\) to \(x\). Area below the axis counts as negative. The integrand uses the letter \(t\), because \(x\) names the moving bound.

This topic asks how fast \(F\) changes when \(x\) moves.

The rate is the height at the moving edge

A wavy curve f that dips below the axis between about 3.2 and 5.4. The region under it from a fixed start a to an orange edge x is shaded, teal above the axis and red below it, and a thin strip of width h sits just right of the edge, green where f is positive and red where it is negative. Below, a second graph plots the signed area F of x against x, with a faint line through the points at x and x plus h and an orange tangent line at x.

Figure 1The shaded region runs from \(a\) to \(x\), and it is red where it lies below the axis, because area there counts as negative. The lower graph plots the signed area \(F(x)\). A change \(h\) in \(x\) adds a strip, green where \(f>0\) and red where \(f<0\).

In Figure 1, the orange line at \(x\) is the moving edge of the region. Move \(x\) to the right by a small amount \(h\). The region gains a thin strip, and the signed area of that strip is the change in \(F\):

\[F(x+h)-F(x)=\int_x^{x+h} f(t)\,dt\]

The strip is almost a rectangle of width \(h\) and height \(f(x)\), so its signed area is close to \(f(x)\,h\). Divide by \(h\):

\[\frac{F(x+h)-F(x)}{h}\approx f(x)\]

If \(f\) is continuous, the Extreme Value Theorem gives \(f\) a smallest height \(m\) and a largest height \(M\) on the strip. The signed area of the strip lies between \(m\,h\) and \(M\,h\), so the quotient lies between \(m\) and \(M\). As \(h\) approaches 0, the strip shrinks to \(x\), so \(m\) and \(M\) approach \(f(x)\) because \(f\) is continuous. By the Squeeze Theorem, the quotient approaches \(f(x)\) too. For \(h<0\), the strip lies to the left of \(x\), and the same argument holds.

The limit of the quotient is the derivative, so \(F'(x)=f(x)\). This result is the Fundamental Theorem of Calculus, Part 1, which some books call the Second Fundamental Theorem. It means that \(F\) is an antiderivative of \(f\), even when no formula for one is known.

In the lower graph, the faint line through the points at \(x\) and \(x+h\) has the quotient as its slope. Narrow the strip in Figure 1. The faint line turns onto the orange tangent line, whose slope is the height \(f(x)\).

The argument needs \(f\) to be continuous at \(x\). Use the button under Figure 1 to put a jump in \(f\) at \(t=c\). Then move the edge onto the jump. The edge splits into two red lines, because \(f\) has different heights on the two sides of \(c\). In the lower graph, \(F\) has no break at \(c\), but two red lines with different slopes meet there, so \(F'(c)\) does not exist.

The fixed bound \(a\) does not appear in the rate. A different \(a\) moves the graph of \(F\) up or down, which changes the amount but not the slopes.

When the bounds move in other ways

If \(x\) is the lower bound, swap the bounds first. By definition, swapping the bounds of an integral changes its sign:

\[\int_x^b f(t)\,dt=-\int_b^x f(t)\,dt\]

The derivative is therefore the negative of the integrand at \(x\). When the lower bound moves to the right by \(h\), the region loses a strip of signed area about \(f(x)\,h\) at its left end.

If the upper bound is a function \(u(x)\), the integral is the accumulation function evaluated at \(u(x)\):

\[\int_a^{u(x)} f(t)\,dt=F\big(u(x)\big)\]

The chain rule and \(F'=f\) give its derivative, \(f\big(u(x)\big)\,u'(x)\). The area grows at the rate \(f(u)\) for each unit that the edge moves, and the edge moves \(u'(x)\) units for each unit of \(x\).

If both bounds move, the area from \(v(x)\) to \(u(x)\) is the area from \(a\) to \(u(x)\) minus the area from \(a\) to \(v(x)\):

\[\begin{aligned}\int_{v(x)}^{u(x)} f(t)\,dt&=\int_a^{u(x)} f(t)\,dt\\&\quad-\int_a^{v(x)} f(t)\,dt\\&=F\big(u(x)\big)-F\big(v(x)\big)\end{aligned}\]

Each part follows the chain rule, so the derivative is \(f\big(u(x)\big)\,u'(x)-f\big(v(x)\big)\,v'(x)\), the upper term minus the lower term. In Figure 2, a change \(h\) in \(x\) moves the upper bound about \(u'(x)\,h\) and the lower bound about \(v'(x)\,h\). The region gains the green strip and loses the red strip.

A curve above the axis. The region under it runs from an orange lower bound v of x to an orange upper bound u of x, and the two bounds move at different speeds as x changes. A green strip sits just right of the upper bound and a red strip just right of the lower bound.

Figure 2Both bounds move with \(x\). A change \(h\) in \(x\) adds the green strip at the upper bound and removes the red strip at the lower bound.

Example 1

Differentiate an accumulation with a variable endpoint

Let \(G(x)=\displaystyle\int_1^x \sqrt{t^4+9}\,dt\) and \(H(x)=\displaystyle\int_x^4 \sqrt{t^2+9}\,dt\). Find \(G'(2)\) and \(H'(0)\).

Solution

Both integrands are continuous for every \(t\). In \(G\), the moving bound \(x\) is the upper bound, so \(G'(x)\) is the integrand at \(x\):

\[\begin{aligned}G'(x)&=\sqrt{x^4+9}\\G'(2)&=\sqrt{2^4+9}=5\end{aligned}\]

In \(H\), the moving bound is the lower bound, so the derivative is the negative of the integrand at \(x\):

\[\begin{aligned}H'(x)&=-\sqrt{x^2+9}\\H'(0)&=-\sqrt{0^2+9}=-3\end{aligned}\]

Neither integrand has an antiderivative that you can find with the methods of this course, and the theorem does not need one.

Example 2

Include the chain-rule factor

Let \(P(x)=\displaystyle\int_0^{x^2} e^{-t^2}\,dt\). Find \(P'(x)\) and \(P'(1)\).

Solution

The integrand is continuous for every \(t\). The upper bound is \(u(x)=x^2\), and \(u'(x)=2x\). The derivative is the integrand at \(u(x)\) times \(u'(x)\):

\[P'(x)=e^{-\left(x^2\right)^2}\cdot 2x=2x\,e^{-x^4}\]

At \(x=1\), the derivative is

\[P'(1)=2e^{-1}=\frac{2}{e}\]

Example 3

Handle two moving endpoints

Let \(y=\displaystyle\int_{x^2}^{3x}\frac{dt}{1+t^2}\). Find \(\dfrac{dy}{dx}\) at \(x=1\).

Solution

The integrand is continuous for every \(t\). The upper bound is \(u=3x\), with \(u'=3\), and the lower bound is \(v=x^2\), with \(v'=2x\). The lower term is subtracted, because a lower bound that moves to the right removes area:

\[\begin{aligned}\frac{dy}{dx}&=\cy{\frac{1}{1+(3x)^2}}\cdot 3-\cy{\frac{1}{1+\left(x^2\right)^2}}\cdot 2x\\&=\frac{3}{1+9x^2}-\frac{2x}{1+x^4}\end{aligned}\]

At \(x=1\), the bounds are 1 and 3, so

\[\left.\frac{dy}{dx}\right|_{x=1}=\frac{3}{10}-\frac{2}{2}=-\frac{7}{10}\]

The rate is negative, because at \(x=1\) the lower bound removes area faster than the upper bound adds it.

Example 4

Use graph or table values in the derivative

The graph of \(f\) in Figure 3 consists of line segments. Let \(K(x)=\displaystyle\int_x^{3x-1} f(t)\,dt\). Find \(K'(2)\).

The graph of f, made of line segments through (0, 3), (1, 5), (2, 4), (3, 1), (4, −2), (5, −4) and (6, −1), with a dot on each point. The region from x to 3x − 1 is shaded, teal above the axis and red below it. At x = 2 the bounds are at 2 and 5, where orange lines mark the heights f(2) = 4 and f(5) = −4.

Figure 3The dots mark the ends of the segments. The shaded region runs from \(x\) to \(3x-1\), and the orange lines mark the heights of \(f\) at the two bounds.

Solution

The segments meet at the dots, so \(f\) is continuous. At \(x=2\), the upper bound \(3x-1\) equals 5, and its derivative is 3. The lower bound \(x\) equals 2, and its derivative is 1.

Read \(f(5)=-4\) and \(f(2)=4\) from the graph. The derivative is the upper term minus the lower term:

\[\begin{aligned}K'(2)&=\cy{f(5)}\cdot 3-\cy{f(2)}\cdot 1\\&=(-4)(3)-4=-16\end{aligned}\]

No area is read. The derivative uses only the heights of \(f\) at the two bounds, and a table of values of \(f\) gives them in the same way.

Each example is one of the four skills of topic 6.4 in Which & Why: AP Calculus.