1. Home
  2. Blog
  3. Derivative of an integral

The derivative of an integral with x in the limits

To differentiate ∫axf(t)dt when f is continuous, put x in place of t in the integrand: the derivative is f(x). If the upper limit is a function g(x), multiply by g′(x), and if both limits depend on x, subtract the lower limit's term from the upper limit's: f(g(x))g′(x)−f(h(x))h′(x).

Part 1 of the Fundamental Theorem

If f is continuous on an open interval that contains a, then the accumulation function

F(x)=∫axf(t)dt

is differentiable on that interval, and

F′(x)=f(x)
  • t is a dummy variable. The integration uses it up; the answer is a function of x alone.
  • The constant a does not appear in the answer. Moving the lower limit adds a constant to F, and a constant differentiates to zero.
  • No antiderivative is needed. The theorem works just as well for sintt, which has no antiderivative built from the usual functions, as it does for t2.

Why it is true

  1. Moving the upper limit from x to x+h adds one thin strip of area: F(x+h)−F(x)=∫xx+hf(t)dt
  2. By the Mean Value Theorem for Integrals, that strip equals a rectangle whose height is a value of f inside it: for some ch between x and x+h, ∫xx+hf(t)dt=f(ch)h
  3. Divide by h: F(x+h)−F(x)h=f(ch).
  4. As h→0, ch is squeezed onto x. Since f is continuous, f(ch)→f(x), and that limit is F′(x).

In words: the area grows at a rate equal to the height of the graph at the moving edge.

When the upper limit is a function of x

If G(x)=∫ag(x)f(t)dt, then G is the accumulation function F above, evaluated at g(x): G(x)=F(g(x)). The chain rule gives

G′(x)=F′(g(x))g′(x)=f(g(x))g′(x)

Substitute the upper limit into the integrand, then multiply by the derivative of the upper limit.

Worked example

Find G′(x) for G(x)=∫1xsinttdt, where x>0.

  1. The upper limit is g(x)=x, so g′(x)=12x.
  2. Substitute it into the integrand: f(x)=sinxx.
  3. Multiply: G′(x)=sinxx·12x=sinx2x

No antiderivative of sintt was needed, which is fortunate, since none can be written in terms of the usual functions.

When both limits depend on x

Split the integral at any constant c in an interval where f is continuous and that contains both limits, so that each piece has a constant lower limit:

∫h(x)g(x)f(t)dt=∫cg(x)f(t)dt−∫ch(x)f(t)dt

Each piece is the case above, so

ddx∫h(x)g(x)f(t)dt=f(g(x))g′(x)−f(h(x))h′(x)
  • The constant c has vanished, so you never have to choose one. The split only shows where the formula comes from.
  • A constant limit has derivative 0, so its term drops out. With only the lower limit moving, the derivative is −f(h(x))h′(x): the minus sign belongs to the lower limit.
  • The formula needs f continuous on an interval containing every value the two limits take. If the integrand blows up between the limits, the integral is improper and this is not the tool.

Worked example

Find H′(x) for H(x)=∫x23xcos(t2)dt, and its value at x=0.

  1. Upper limit: g(x)=3x, so g′(x)=3, and the integrand there is cos(9x2).
  2. Lower limit: h(x)=x2, so h′(x)=2x, and the integrand there is cos(x4).
  3. Upper term minus lower term: H′(x)=3cos(9x2)−2xcos(x4)
  4. At x=0: H′(0)=3cos0−0=3.

Each limit brings its own derivative as a factor, and the lower limit's term is subtracted. Two slips are the usual ones. One is substituting the limits into the integrand and stopping, which loses g′(x) and h′(x). The other is adding the lower limit's term when it should be subtracted.

When x is inside the integrand as well

Everything above assumes the integrand contains t only. If x appears inside too, move it out first. While t runs between the limits, x stays fixed, so for the integral it is a constant:

K(x)=∫1xxet2dt=x∫1xet2dt

That is a product, and the product rule comes before Part 1:

K′(x)=∫1xet2dt+xex2

The first term stays an integral. Nothing asks for it to be evaluated, and it could not be in elementary terms anyway.

Check your understanding

No calculator needed.

  1. Find ddx∫2xln(1+t2)dt.
  2. Find ddx∫05xesintdt.
  3. True or false: if a and b are constants, the derivative of ∫abf(t)dt with respect to x is f(b)−f(a). Explain.
  4. Find ddx∫ex5lntdt.
  5. Let H(x)=∫xx3cos(πt)dt. Find H′(1).
  6. To differentiate ∫x2sinxf(t)dt, where f is continuous everywhere, one student splits the integral at t=0 and another at t=7. Which of them gets the right derivative, and why?
  7. Let G(x)=∫0xxcostdt. Find G′(x), and explain why xcosx is not the answer.
Show the answers
  1. ln(1+x2). The integrand is continuous everywhere and the upper limit is plain x, so Part 1 applies directly: replace t by x.
  2. 5esin5x. Substitute 5x for t, then multiply by the derivative of the upper limit, which is 5.
  3. False: the derivative is 0. With two constant limits the integral is a single number, and a number does not change with x. The expression f(b)−f(a) mixes up the two parts of the theorem: Part 2 evaluates the integral as F(b)−F(a), with an antiderivative F, not with f.
  4. −xex. Only the lower limit moves, so the derivative is −ln(ex)·ex=−xex. As a check, tlnt−t is an antiderivative of lnt, and differentiating [tlnt−t]ex5 gives the same.
  5. −2. H′(x)=cos(πx3)·3x2−cos(πx)·1, so H′(1)=3cosπ−cosπ=−3+1=−2.
  6. Both, and they get the same answer, f(sinx)cosx−2xf(x2). Moving the split point from 0 to 7 changes each piece by the same constant, ∫07f(t)dt, and a constant differentiates to 0.
  7. G′(x)=sinx+xcosx. Since x is constant while t varies, G(x)=x∫0xcostdt=xsinx, and the product rule gives two terms. The answer xcosx differentiates only the integral, treating the factor x in front as if it did not change.

Practise it

The free CEGEP Calculus II worksheet on the definite integral and the Fundamental Theorem has a sheet of Part 1 derivatives, including an upper limit of x3 and x as the lower limit, alongside Part 2, Riemann sums and average value. For the chain rule itself, the Calculus I differentiation rules worksheet is the place to start.

Want one-on-one help with this? I offer CEGEP Science calculus and linear algebra tutoring in Montreal, in person or online. Sessions start with a short written diagnostic, and a written recap goes to whoever books after every session.

Practise with a free worksheet

Ready to improve your grades?

WhatsApp is the way to reach me — tell me the course you're taking and what you're stuck on, and we'll sort out a first session from there.

Message Me on WhatsApp

or send a message

I reply within a day, usually sooner. Your details are used only to answer you — see the Privacy Policy.

Private math & science tutoring in Montreal, QC — Westmount · Outremont · Town of Mount Royal · Hampstead · Côte-Saint-Luc · NDG · Nuns' Island · West Island — and online across Quebec.

Chat with Marius