Tutorials › Calculus I › Composed Integrands and Moving Endpoints

The Fundamental Theorem of Calculus · Tutorial 1097 of 1495

Composed Integrands and Moving Endpoints

Use the Fundamental Theorem of Calculus and the chain rule to differentiate integrals with composed integrands and moving limits.

Intermediate 9 min read

What You'll Learn

  • State the variable-endpoint formula and its continuity and differentiability requirements.
  • Evaluate a nested integrand at a moving endpoint without differentiating the integrand.
  • Include the correct chain factor for each moving endpoint.
  • Differentiate integrals with both an upper and a lower moving limit.
  • Identify and correct the error of differentiating the endpoint-evaluated integrand instead of the integral.

Why the Endpoint Matters

An integral with a moving endpoint describes accumulated signed area up to a location that changes with \(x\). Its derivative is governed by the value of the integrand at that endpoint, together with the rate at which the endpoint moves.

When the integrand contains nested expressions, it is easy to confuse two different operations: evaluating the integrand at a moving endpoint, and differentiating the integrand as a function of its own input. The variable-limit formula requires the first operation. The chain rule supplies a factor for the moving endpoint.

The Variable-Endpoint Formula

Let \(f\) be continuous on an interval containing the values of two differentiable functions \(a(x)\) and \(b(x)\). Define

$$ F(x)=\int_{a(x)}^{b(x)} f(t)\,dt. $$

The Fundamental Theorem of Calculus, together with the chain rule, gives the derivative of this accumulated quantity.

Theorem: If \(f\) is continuous and \(a\) and \(b\) are differentiable, then $$ F'(x)=f(b(x))b'(x)-f(a(x))a'(x). $$

The upper endpoint contributes the integrand evaluated there, multiplied by the upper endpoint's derivative. The lower endpoint contributes the same kind of product with a minus sign. If one endpoint is constant, its derivative is zero, so its contribution vanishes.

This formula does not require \(f\) itself to be differentiable. Continuity is enough for the Fundamental Theorem of Calculus to give a derivative for an accumulation function. In particular, a nested integrand such as \(f(t)=\sin(t^3+2)\) can be evaluated at a moving endpoint without differentiating its nested expression.

Why the Formula Works

A short derivation shows both the endpoint terms and the minus sign. Choose a constant \(c\) in the interval under consideration, and define \(H(y)=\int_c^y f(t)\,dt\). By the Fundamental Theorem of Calculus, \(H'(y)=f(y)\). Reversing the limits changes the sign of an integral, so

$$ \begin{aligned} F(x) &=\int_{a(x)}^{b(x)} f(t)\,dt\\ &=\int_c^{b(x)} f(t)\,dt-\int_c^{a(x)} f(t)\,dt\\ &=H(b(x))-H(a(x)). \end{aligned} $$

Since \(H\) is differentiable and the endpoint functions are differentiable, the chain rule applies to each composition:

$$ \begin{aligned} F'(x) &=H'(b(x))b'(x)-H'(a(x))a'(x)\\ &=f(b(x))b'(x)-f(a(x))a'(x). \end{aligned} $$

The proof explains why the integrand is evaluated at the endpoints: differentiating \(H(b(x))\) uses \(H'(b(x))=f(b(x))\). It also explains why we do not differentiate \(f\) in this formula: the derivative comes from \(H\), whose derivative is \(f\).

Composed Integrands: Evaluate First

Suppose the integrand has the form \(f(t)=q(r(t))\), where \(q\) and \(r\) are functions and the composition is continuous on the required interval. The upper-endpoint contribution is

$$ f(b(x))b'(x)=q(r(b(x)))b'(x). $$

Here \(r(b(x))\) is obtained by substituting \(b(x)\) for \(t\) in the integrand. The factor \(b'(x)\) accounts for the endpoint's movement. There is no additional factor from differentiating \(r\) or \(q\), because this calculation evaluates \(f\); it does not differentiate \(f(b(x))\).

Worked Example: A Nested Integrand with a Nonlinear Upper Endpoint

Differentiate

$$ F(x)=\int_1^{x^2}\sin(t^3+2)\,dt. $$

The integrand is \(f(t)=\sin(t^3+2)\). The lower endpoint is \(a(x)=1\), so \(a'(x)=0\). The upper endpoint is \(b(x)=x^2\), so \(b'(x)=2x\).

Evaluate the integrand at the upper endpoint by substituting \(t=x^2\):

$$ f(x^2)=\sin((x^2)^3+2)=\sin(x^6+2). $$

Apply the variable-endpoint formula:

$$ \begin{aligned} F'(x) &=f(x^2)(2x)-f(1)(0)\\ &=2x\sin(x^6+2). \end{aligned} $$

As a check at \(x=1\), the formula gives \(F'(1)=2\sin 3\). The upper endpoint is moving at rate \(2\), and the integrand's value there is \(\sin 3\), so their product is \(2\sin 3\), as the formula states.

Two Moving Endpoints

When both endpoints move, each contributes its own endpoint value and chain factor. The lower endpoint's contribution is subtracted, even when its derivative is negative; the formula already accounts for that sign.

Worked Example: A Nested Integrand Between Two Moving Limits

Differentiate

$$ G(x)=\int_x^{x^2+1}\sqrt{1+t^4}\,dt. $$

Here \(f(t)=\sqrt{1+t^4}\), \(a(x)=x\), and \(b(x)=x^2+1\). Their derivatives are \(a'(x)=1\) and \(b'(x)=2x\). Evaluate the integrand at each endpoint:

$$ \begin{aligned} f(b(x))&=\sqrt{1+(x^2+1)^4},\\ f(a(x))&=\sqrt{1+x^4}. \end{aligned} $$

Substitute these values and the endpoint derivatives into the formula:

$$ \begin{aligned} G'(x) &=f(x^2+1)(2x)-f(x)(1)\\ &=2x\sqrt{1+(x^2+1)^4}-\sqrt{1+x^4}. \end{aligned} $$

For a numerical check at \(x=1\), the upper endpoint is \(2\), the lower endpoint is \(1\), and the endpoint rates are \(2\) and \(1\). Thus

$$ G'(1)=2\sqrt{1+2^4}-\sqrt{1+1^4} =2\sqrt{17}-\sqrt{2}. $$

This confirms that the upper contribution is weighted by \(2\), while the lower contribution is subtracted with weight \(1\).

Nested Endpoint Functions

The endpoint itself may also be a composition, such as \(\sin x\) or \(x^2+1\). The integrand is still evaluated at the endpoint, and the derivative of that endpoint supplies its chain factor. These are separate roles in the formula.

Worked Example: Trigonometric Endpoints and a Nested Integrand

Let

$$ K(x)=\int_{\sin x}^{x+2}e^{\cos(t^2+1)}\,dt. $$

Set \(f(t)=e^{\cos(t^2+1)}\), \(a(x)=\sin x\), and \(b(x)=x+2\). Then \(a'(x)=\cos x\) and \(b'(x)=1\). Substitution into the integrand gives

$$ \begin{aligned} f(b(x))&=e^{\cos((x+2)^2+1)},\\ f(a(x))&=e^{\cos((\sin x)^2+1)}. \end{aligned} $$

Therefore,

$$ K'(x) =e^{\cos((x+2)^2+1)} -\cos x\,e^{\cos((\sin x)^2+1)}. $$

At \(x=0\), the upper endpoint is \(2\), the lower endpoint is \(0\), and both endpoints have derivative \(1\). Substitution into the result gives

$$ K'(0)=e^{\cos(2^2+1)}-e^{\cos(0^2+1)} =e^{\cos 5}-e^{\cos 1}. $$

The nested expressions \(t^2+1\) and \(\cos(t^2+1)\) are evaluated at each endpoint. They are not differentiated when computing these endpoint contributions.

A Common Mistake: Differentiating the Wrong Quantity

Consider again \(f(t)=\sin(t^3+2)\) with the endpoint \(t=x^2\). Differentiating the integrand with respect to its input gives

$$ f'(t)=3t^2\cos(t^3+2). $$

Evaluating this derivative at \(t=x^2\) gives \(3x^4\cos(x^6+2)\). That is the value of \(f'(t)\) at \(t=x^2\), not the derivative of the integral. If we instead differentiate the endpoint-evaluated integrand \(f(x^2)=\sin(x^6+2)\), the chain rule gives

$$ \frac{d}{dx}f(x^2)=6x^5\cos(x^6+2). $$

That is the derivative of \(f(x^2)\), not the derivative of \(\int_1^{x^2}f(t)\,dt\). The integral's derivative is \(2x f(x^2)=2x\sin(x^6+2)\). For example, at \(x=1\), these three expressions are \(3\cos 3\), \(6\cos 3\), and \(2\sin 3\), respectively. They are different quantities.

Key distinction: For a variable-limit integral, evaluate the integrand at each endpoint and multiply by that endpoint's derivative. Do not differentiate the integrand as part of this step.

A Reliable Calculation Order

Writing down the endpoint roles before substituting can prevent sign and chain-factor errors. For an integral with two moving limits, use this sequence:

1
Identify the integrand and endpoints.
Write \(f(t)\), \(a(x)\), and \(b(x)\) separately.
2
Differentiate the endpoints.
Find \(a'(x)\) and \(b'(x)\), including any chain factors.
3
Evaluate the integrand at the endpoints.
Substitute \(t=b(x)\) and \(t=a(x)\) into \(f(t)\); do not differentiate \(f\).
4
Assemble and check the signs.
Use \(f(b(x))b'(x)-f(a(x))a'(x)\). The upper term is added and the lower term is subtracted.

When the Formula Applies

The stated formula applies when the integrand is a continuous function of the integration variable on an interval containing the endpoint values, and the endpoints are differentiable at the \(x\)-values in question. A nested expression is acceptable when it defines such a continuous integrand on the needed interval. Differentiability of the integrand is not required.

The central practical point is to keep the roles separate. The integrand determines the endpoint values; the endpoint functions determine the chain factors. With those roles identified, even a complicated nested integrand can be handled by the same formula.

Check Your Understanding

For each question, identify the endpoint values and endpoint derivatives before applying the formula.

  1. Differentiate \(\displaystyle \int_0^{x^3}\cos(t^2+1)\,dt\).
  2. Differentiate \(\displaystyle \int_{\cos x}^{2x}\sqrt{1+t^2}\,dt\).
  3. For \(f(t)=\ln(1+t^4)\), explain the difference between \(f'(b(x))\) and the endpoint contribution \(f(b(x))b'(x)\).
  4. State the continuity and differentiability conditions used in the variable-endpoint formula.
  5. In one sentence, explain why differentiating the integrand is not part of evaluating its contribution to the derivative of an accumulation integral.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon