Kim’s Math NotesCourse index

The Fundamental Theorem of Calculus and Accumulation Functions

How do I differentiate an integral with a variable upper limit?

Use F(x)=∫axf(t)dt as the amount so far, write F′(x)=f(x) (the Fundamental Theorem), and differentiate with a moving upper end.

t left in, or the long way

Common mistake F′(x)=t2+5; or work out the integral first.

Correction Put x where t was: F′(x)=x2+5. No integrating: one line.

The area so far

Let's make it concrete. Take the rate f of t equals t plus one, and start piling up at zero. Stop at two, and you get a trapezoid with sides one and three, width two. Average the sides, times the width: four. Slide the right wall out to four.

That adds a trapezoid with sides three and five, width two: eight more.

Watch this part of the concept lesson

Read the rest of this scene

Four plus eight, twelve. Now stop at any x. Same trapezoid: it has sides one and x plus one, and width x. Multiply it out: x squared over two, plus x. That's the area so far, from zero up to x.

That's our F of x. In symbols: F of x is the integral from zero to x of f of t, d t. The t runs along the bottom; x is where we stop. Now graph F itself, on its own axes. It passes through two comma four, and four comma twelve: the exact areas we just found.

As x slides forward, the area piles up with it. That's why F is called an accumulation function. Quick check. Take the derivative of F: x plus one. That's our rate line, f. Coincidence? Hold that thought.

Why F prime equals f

Now, why? Keep F of x, the area under f from zero up to x. Here it's the purple area. Nudge the right wall a tiny bit further, to x plus h. F of x plus h is the same purple area, plus one new strip. Subtract F of x.

The purple part cancels, and only the strip is left. By strip, I mean a very thin slice, just h wide, almost a rectangle. Zoom in on that strip. Since f is rising here, the shortest height is on the left, f of x, and the tallest is on the right, f of x plus h. So the strip is trapped between two rectangles.

The short rectangle is less than or equal to the strip, which is less than or equal to the tall one.

Watch this part of the concept lesson

Read the rest of this scene

Divide all three pieces by the width, h. The short one becomes f of x, the middle becomes this difference quotient, and the tall one becomes f of x plus h. Recognize the middle? As h goes to zero, it's the definition of the derivative, F prime of x. But why does the middle have to land on f of x?

Because f is continuous, as h shrinks, f of x plus h slides right down to f of x. Both outside pieces go to f of x, so the middle is squeezed: F prime of x equals f of x. How fast is the area growing right now? Exactly as fast as the curve is tall at the moving edge.

Any starting point a

What if the integral doesn't start at zero, but at some fixed number a? Area from zero to x: F of x. Area from zero to a: F of a. Since a never moves, that's just a fixed number. Chop the zero-to-a piece off the zero-to-x area, and what's left is the area from a to x.

Why the variable t inside? Because x is already taken: it's the moving end. And the variable inside never changes the number: from a to b, f of x d x and f of t d t give the same value.

Watch this part of the concept lesson

Read the rest of this scene

Now take d d x of both sides of the green line. F of x gives f of x, and F of a, a fixed number, gives zero. So, if f is continuous, the derivative of the integral from a to x of f of t d t is f of x, for any fixed start a. That's the Fundamental Theorem of Calculus, this part of it: an integral with a moving end, differentiated, gives back the height. No formula for the area?

It doesn't matter. The derivative of the integral from zero to x of e to the negative t squared is e to the negative x squared.

When the top end is x squared

Now the twist: the derivative of the integral from zero to x squared of t plus one, d t. The top end is x squared, not x. What changes? Name the pieces first. Inside, f of t equals t plus one. The top end is x squared.

With F, the area from zero, this is the area up to x squared minus the area up to zero: F of x squared minus F of zero.

Watch this part of the concept lesson

Read the rest of this scene

Differentiate both sides. F of x squared needs the chain rule: F prime of x squared, times two x. F of zero is a number, so zero. And F prime is f, so that's f of x squared times two x: x squared plus one, times two x. Check it with our area formula.

F of x squared is x to the fourth over two, plus x squared. Its derivative is two x cubed plus two x. It's the same. So here's the rule whenever the top is a function of x: plug the top into f, then multiply by the top's derivative. And if both ends move? Same move: F of the top minus F of the bottom.

Differentiate: f of u times u prime, minus f of v times v prime. Two terms, one move.

Example 1: value, slope, tangent line

Example one. F of x is the integral from two to x of the square root of t squared plus five, d t. Find F of two, F prime of two, the tangent line at x equals two, and F double prime of two. Part a. The plan: same ends give zero area. The theorem gives F prime in one step. Then a point and a slope give the line.

F of two runs from two to two: zero width, so zero area. The square root of t squared plus five is continuous everywhere, so the theorem applies. F prime of x equals the square root of x squared plus five.

Watch this part of the concept lesson

Read the rest of this scene

Write this line before any numbers. Now plug in two: the square root of nine, three. So the point is two comma zero, and the slope is three. Point-slope form: y equals zero plus three times x minus two. Part b. F double prime is the derivative of F prime.

So start from F prime of x, x squared plus five to the one half. Chain rule: one half, times x squared plus five to the negative one half, times two x. That cleans up to x over the square root of x squared plus five. At two, it's two over the square root of nine: two thirds. Two more accumulation functions like this are in your workbook, problems two and four.

Example 2: a moving top end

Example two, A. P. style. g of x is the integral from one to x squared of one over one plus t, d t. What is g prime of one? The AP exam often names it g. Same idea as our F.

The plan: name f first, set up F of x squared minus F of one, then differentiate both sides.

Watch this part of the concept lesson

Read the rest of this scene

Here f of t is one over one plus t, and the top end is x squared. With F the area from zero, g of x is F of x squared minus F of one. Differentiate both sides: f of x squared, times two x. F of one is a number, so zero. Plug x squared in for t: one over one plus x squared, times two x.

At x equals one, it's one half times two: one. So the answer is B. Choice A, one half, is what you get if you forget the two x. In the workbook the top keeps changing: sine x, three x, x cubed. Problems one, three, five, and six.

Name f first, every time.

Trap 1: the leftover t

Here's a rushed answer. F of x is the integral from two to x of root t squared plus five. And someone writes F prime of x equals root t squared plus five. The t never got swapped: inside, t has to become the moving end, x. So F prime of x equals root x squared plus five.

Watch this part of the concept lesson

Trap 2: don't integrate it

Another rushed start: you see the derivative of the integral from two to x of root t squared plus five, and you try to integrate root t squared plus five by hand first. Don't. If f is continuous, the derivative undoes the integral in one line. Root x squared plus five. No integrating at all.

Watch this part of the concept lesson

Trap 3: the missing 2x

Third one, with a moving top: the derivative of the integral from zero to x squared of t plus one. Plug in x squared, and stop: x squared plus one. The top is x squared, so the chain rule hands you its derivative. Plug the top in, times its derivative: x squared plus one, times two x.

Watch this part of the concept lesson

Worked examples

Example 1

Let F(x)=∫2xt2+5dt. Find F(2), F′(2), a tangent line, and F′′(2).
(a) Find F(2) and F′(2). Write the tangent line at x=2.
(b) Find F′′(2).
Hint

Same ends give 0. Write g′(x)=f(x) first.

Answer and solution
  1. F(2)=0, F′(2)=3, y=3(x−2)
  2. 23
  1. g(2)=∫22t2+5dt=0
  2. t2+5 is continuous, so g′(x)=x2+5 and g′(2)=3.
  3. (a) Tangent line: y=0+3(x−2), so y=3(x−2).
  4. g′′(x)=xx2+5→g′′(2)=23

Example 2

g(x)=∫1x211+tdt. g′(1) is
  1. 12
  2. 1
  3. 2
  4. ln2
Hint

Name f(t)=11+t; then h(x)=F(x2)−F(1).

Answer and solution

Answer B. 1

  1. h(x)=F(x2)−F(1),F′=f
  2. h′(x)=f(x2)⋅2x=11+x2⋅2x
  3. h′(1)=12⋅2=1
  4. Answer B.

Workbook

Problem 1

ddx∫23x1+t3dt=
  1. 1+27x3
  2. 31+27x3
  3. 1+x3
  4. 31+x3
Hint

f(top)×(top)′: the top is 3x.

Answer and solution

Answer B. 31+27x3

  1. f(t)=1+t3, upper end 3x.
  2. ddx∫23xf(t)dt=f(3x)⋅3=31+27x3
  3. Answer B.

Common mistake Forgetting the factor 3 from (3x)'.

Watch the worked solution to Problem 1

Problem 2

The graph of f on 0≤t≤5, made of two segments, is shown. Let g(x)=∫0xf(t)dt. Find g(4) and g′(4), and write an equation of the line tangent to the graph of g at x=4.
xy12345123456
Graph of f(x)
Hint

g(4) is the area from 0 to 4; g′(4)=f(4).

Answer and solution

Answer g(4)=8, g′(4)=4, y=8+4(x−4)

  1. g(4)=12⋅2⋅4+12⋅2⋅4=8
  2. g′(4)=f(4)=4
  3. Tangent line: y=8+4(x−4).

Common mistake Using f(4) as g(4).

Watch the worked solution to Problem 2

Problem 3

The function f is continuous, with values in the table. If G(x)=∫0x2f(t)dt, what is G′(3)?
t139
f(t)452
  1. 2
  2. 6
  3. 12
  4. 30
Hint

G′(x)=f(x2)⋅2x. Read f(9) from the table.

Answer and solution

Answer C. 12

  1. G′(x)=f(x2)⋅2x
  2. G′(3)=f(9)⋅6=2⋅6=12
  3. Answer C.

Common mistake Using f(3) instead of f(9), or forgetting the 2x.

Watch the worked solution to Problem 3

Problem 4

Let H(x)=∫1exlntdt.
  1. Find H(0).
  2. Find H′(x) in simplest form.
  3. Find H′′(0).
Hint

H′(x)=ln(ex)⋅ex. Simplify ln(ex) first.

Answer and solution
  1. 0
  2. xex
  3. 1
  1. H(0)=∫11lntdt=0
  2. H′(x)=ln(ex)⋅ex=xex
  3. H′′(x)=ex+xex→H′′(0)=1

Common mistake Leaving ln(e^x) unsimplified.

Watch the worked solution to Problem 4

Problem 5

The graph of f is shown for 0≤t≤6. Let g(x)=∫02xf(t)dt for 0≤x≤3.
xy123456-2-112
Graph of f(x)
  1. Find g(2).
  2. Find g′(2).
  3. Find the value of x, 0<x<3, where g′(x)=0.
Hint

g(2) is the area from 0 to 4. g′(x)=f(2x)⋅2.

Answer and solution
  1. 4
  2. 4
  3. 1⋅12
  1. g(2)=∫04f(t)dt=−1+1+4=4
  2. g′(x)=f(2x)⋅2→g′(2)=2f(4)=4
  3. f(2x)=0→2x=1→x=12

Common mistake Forgetting the factor 2 in g'(x) = 2 f(2x).

Watch the worked solution to Problem 5

Problem 6

Let f be continuous. If ∫0x2f(t)dt=x4+2x2 for all x, then f(4)=
  1. 6
  2. 10
  3. 20
  4. 40
Hint

Differentiate both sides: f(x2)⋅2x=4x3+4x.

Answer and solution

Answer B. 10

  1. f(x2)⋅2x=4x3+4x
  2. f(x2)=2x2+2
  3. x2=4:f(4)=8+2=10
  4. Answer B.

Common mistake Setting f(4) = 4^2 + 2(4) without the chain rule.

Watch the worked solution to Problem 6