AP® CALCULUS AB & BC · UNIT 6

The Fundamental Theorem of Calculus and Accumulation Functions

Build an accumulation function from a rate or graph. Use the Fundamental Theorem of Calculus to find its slope and the chain rule to handle moving bounds.

Topic 6.4 study notes7 worked examples · 9 practice questionsUpdated 11 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. What Topic 6.4 asks you to do

A definite integral with a moving endpoint defines a function. The function’s value measures signed accumulation from a fixed start, and its derivative gives the instantaneous rate of that accumulation.

AP Calculus AB & BC · Topic 6.4. Define an accumulation function with an integral. Then use the Fundamental Theorem of Calculus to differentiate it. If a bound depends on the input, use the chain rule.

2. Define an accumulation function

Let f be continuous on an interval containing the fixed input a. For each x in that interval, define

A(x)=∫axf(t)dt.
  • Start. A(a)=0 because both bounds are a.
  • Orientation. When x<a, reverse the bounds and change the sign.
  • Variable. t varies inside the integral. The input x determines where the integral ends.

If f is a rate of change and the quantity at a is Q(a), add that initial value to the net change.

Q(x)=Q(a)+∫axf(t)dt

The integral has units of rate times input. If the rate is in liters per minute and the input is in minutes, the accumulated change is in liters.

3. Find its derivative

The Fundamental Theorem of Calculus gives the derivative of A at every interior input in the continuity interval.

A′(x)=f(x)
ddx[∫axf(t)dt]=f(x)

To see why, take a nonzero increment h with x+h in the interval. Let ΔA=A(x+h)−A(x). Subtracting the two accumulation values leaves the signed contribution over the short interval.

ΔAh=1h∫xx+hf(t)dt

This quotient is the average value of f over the short interval, including when h<0 because both the integral and the width reverse sign. By continuity, the average approaches f(x) as h→0. At a domain endpoint, use the available one-sided approach.

Value, slope, and concavity
ExpressionWhat to read
A(x)Net signed area from a to x.
A′(x)Height f(x) at the moving endpoint.
A″(x)Slope f′(x) where f is differentiable.

4. Apply the chain rule to moving bounds

Let u=u(x) be the upper bound and v=v(x) the lower bound. Assume the bounds are differentiable and f is continuous on an interval containing them.

Only the upper bound moves

Define A(x)=∫au(x)f(t)dt. Evaluate f at the upper bound and multiply by the derivative of that bound.

A′(x)=f(u)u′(x)

Only the lower bound moves

Define A(x)=∫v(x)af(t)dt. Reversing the bounds introduces the minus sign.

A′(x)=−f(v)v′(x)

Both bounds move

For A(x)=∫v(x)u(x)f(t)dt, write H(s)=∫asf(t)dt using a common fixed start a in the continuity interval.

A(x)=H(u)−H(v)
A′(x)=f(u)u′(x)−f(v)v′(x)

The same formula applies if the bounds cross. If both bounds are fixed and the integrand depends only on t, the integral is constant with respect to x.

5. Worked examples with graphs

Example 1 · Differentiate at a moving endpoint

Let G(x)=∫2xt2dt. Find G(2), G′(x), and G′(3).

1 · Read the starting value

At x=2, the bounds coincide.

G(2)=0

2 · Use the endpoint to find the slope

The integrand is continuous, and the derivative of the upper bound x is 1.

G′(x)=x2
G′(3)=32=9

Example 2 · Apply the chain rule to an upper bound

Find B′(x) for B(x)=∫0x2sin(t)dt.

1 · Identify the moving bound

The upper bound is u(x)=x2. Its derivative is u′(x)=2x. The integrand at that bound is sin(x2).

2 · Multiply the two factors

B′(x)=2xsin(x2)

The sine receives the upper-bound value. The factor 2x measures how fast that bound moves.

Example 3 · Handle a moving lower bound

Differentiate C(x)=∫x35etdt.

1 · Reverse the bounds

C(x)=−∫5x3etdt

The moving bound is now on top and the whole expression has a minus sign.

2 · Differentiate the upper bound

Evaluate the exponential at x3 and multiply by 3x2. Carry the minus sign from the reversal.

C′(x)=−3x2ex3

Example 4 · Differentiate when both bounds move

Let D(x)=∫x22xcos(t)dt. Find D′(x).

1 · Split at a common fixed start

Let H(s)=∫0scos(t)dt. Then

D(x)=H(2x)−H(x2).

2 · Differentiate each term

The upper bound contributes 2cos(2x). The lower bound contributes 2xcos(x2) before subtraction.

D′(x)=2cos(2x)−2xcos(x2)

Example 5 · Compare the accumulated value and slope

Let f(t)=t2−4 and A(x)=∫0xf(t)dt. Find A(3) and A′(3).

1 · Differentiate by the theorem

A′(x)=x2−4
A′(3)=9−4=5

2 · Use the fixed starting value

The polynomial below has derivative x2−4 and is zero at x=0, so it agrees with A. Two functions with the same derivative on an interval differ by a constant.

A(x)=x33−4x
A(3)=9−12=−3

3 · Connect the two graphs

The net area at 3 is negative and the slope there is positive. On the whole real line, A increases for x<−2 and for x>2. At x=−2, A′ switches from positive to negative, giving a local maximum. At x=2, it switches from negative to positive, giving a local minimum.

Integrand f and signed area

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −3 −2 −1 0 1 2 3 t −4 −2 0 2 4 6 8 f t ( )
Hatched shading from 0 to 2 contributes negatively. Blue shading from 2 to 3 contributes positively. The dot at t=3 has height 5.

Accumulation A and its tangent

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −3 −2 −1 0 1 2 3 x −6 −4 −2 0 2 4 6 A x ( )
The dot at x=3 is at height −3. The dashed tangent there has slope 5. The flat points at x=−2 and x=2 match zeros of f.

Example 6 · Build an accumulation function from a rate

A tank starts with 20 liters. During the first 4 minutes its inflow is r(t)=4−t liters per minute. Write its volume V(t). Find the volume and the rate at t=3.

1 · Add net change to the initial volume

V(t)=20+∫0t(4−s)ds

The input t sets the upper bound. The variable s runs through the times being added.

2 · Read the accumulated change

The first three minutes give a trapezoid with endpoint rates 4 and 1 and width 3.

V(3)=20+34+12
V(3)=27.5L

3 · Read the instantaneous rate

By the Fundamental Theorem, V′(t)=4−t. At t=3, the volume increases at 1 liter per minute.

Inflow over the first three minutes

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0 1 2 3 4 t   ( m i n ) 0 1 2 3 4 r t ( )   ( L   p e r   m i n )
The shaded trapezoid adds 7.5L. The endpoint height gives the rate at t=3.

6. Practice with step-by-step solutions

Problem 1

Differentiate G(x)=∫3xt3dt.

Show solution 1

Solution

The integrand is continuous and the upper bound is x.

G′(x)=x3

Problem 2

Find the derivative of B(x)=∫1x2etdt.

Show solution 2

Solution

Evaluate the exponential at x2 and multiply by 2x.

B′(x)=2xex2

Problem 3

For x>0, differentiate C(x)=∫x4cos(t)dt.

Show solution 3

Solution

The moving lower bound gives a minus sign. Multiply the cosine at x by the derivative of x.

C′(x)=−cos(x)2x

Problem 4

Find the local extrema of g(x)=∫0x(t−2)(t+1)dt.

Show solution 4

Solution

g′(x)=(x−2)(x+1)

The derivative is positive before −1, negative between −1 and 2, and positive after 2. This gives a local maximum at −1 and a local minimum at 2.

Problem 5

Let A(x)=∫2x3dt. Find A(0) and A′(0).

Show solution 5

Solution

The interval runs backward from 2 to 0. The ordinary rectangle has area 6, so the signed value is −6.

A(0)=−6
A′(0)=3

Problem 6

Let D(x)=∫x22xcos(t)dt. Find D(2) and D′(2).

Show solution 6

Solution

Both bounds equal 4 at x=2, so D(2)=0. The upper bound moves at rate 2, and the lower bound moves at rate 4.

D′(2)=(2−4)cos(4)
D′(2)=−2cos(4)

7. Check your setup and preview Topic 6.7

  • Mark the fixed start and every moving bound before taking the derivative.
  • Evaluate the integrand at each moving bound, multiply by that bound’s derivative, and subtract the lower contribution.
  • Use signed area for an accumulation value and the integrand’s height for the slope when the upper bound is x.
  • State the quantity and units in context. An accumulated volume is measured in liters and its slope is measured in liters per minute.
Preview the evaluation theorem and fixed-bound practice

Topic 6.7 uses an antiderivative F with F′=f to compute a fixed-bound integral of a continuous function.

∫abf(x)dx=F(b)−F(a)

Example 7 · Evaluate an integral with fixed bounds

Use an antiderivative to evaluate ∫14(2x+3)dx.

1 · Find an antiderivative

F(x)=x2+3x

Its derivative is 2x+3, the integrand.

2 · Subtract the endpoint values

∫14(2x+3)dx=F(4)−F(1)
F(4)−F(1)=28−4=24

Problem 7

Evaluate ∫03(x2+2x)dx.

Show solution 7

Solution

An antiderivative is F(x)=x33+x2. Subtract its value at 0 from its value at 3.

F(3)−F(0)=18

Problem 8

Evaluate ∫141xdx.

Show solution 8

Solution

On the positive interval, use F(x)=ln(x).

F(4)−F(1)=ln(4)

Problem 9

Evaluate ∫0πsin(x)dx.

Show solution 9

Solution

Use F(x)=−cos(x). Its endpoint values are F(π)=1 and F(0)=−1.

F(π)−F(0)=2

8. Continue Unit 6

Topic 6.3 explains the definite integral as a limit. Topic 6.5 uses the integrand to study the behavior of accumulation functions. Topic 6.7 develops evaluation with antiderivatives.