When Both Endpoints Move
A definite integral can represent signed accumulation over an interval. If the interval changes as \(x\) changes, then the accumulated value can change because its upper endpoint moves, its lower endpoint moves, or both happen at once.
For an integral with a variable upper endpoint, the Fundamental Theorem of Calculus gives the integrand evaluated at that endpoint, with an additional chain-rule factor if the endpoint itself changes with \(x\). A moving lower endpoint contributes too, but with the opposite sign. When both endpoints vary, the derivative combines these effects.
The Two-Bound Rule
Let \(f\) be continuous on an interval containing the endpoint values near the \(x\) under consideration. Let \(a\) and \(b\) be differentiable functions, and define
The variable \(t\) is a dummy variable of integration: it indicates the input to \(f\) and is not the variable with respect to which we differentiate. Under these conditions, the derivative is
There are two distinct ingredients in each term. First, evaluate the integrand at the endpoint. Then multiply by the derivative of that endpoint. The minus sign before the lower-bound term is not optional: it records the fact that moving the lower endpoint forward removes part of the interval of accumulation.
If the upper bound is fixed, its derivative is zero, so it contributes nothing. If the lower bound is fixed, its derivative is zero as well. When both are fixed, the integral is constant with respect to \(x\), and its derivative is zero.
Why the Formula Works
The proof uses the Fundamental Theorem of Calculus for a fixed base point, followed by the chain rule. Choose a constant \(c\) in an interval on which \(f\) is continuous, and define an accumulation function
By the Fundamental Theorem of Calculus, \(A\) is differentiable and \(A'(y)=f(y)\). Additivity of definite integrals gives an expression for the integral between the two moving endpoints:
Differentiate both terms using the chain rule. The derivative of the first is \(A'(b(x))b'(x)\), and the derivative of the second is \(A'(a(x))a'(x)\). The second term is subtracted, so its contribution remains negative. Substituting \(A'(y)=f(y)\) proves the rule:
This argument also explains why the integrand is evaluated at each endpoint separately. Each endpoint is substituted into \(f\), and each endpoint's motion is accounted for by its own chain-rule factor.
A Sign Check Before Calculating
Before using the formula, identify the upper and lower bounds and write down their derivatives. A reliable order is: upper-bound value times upper-bound rate, minus lower-bound value times lower-bound rate. The endpoint values are not subtracted in an arbitrary order; the order is determined by which endpoint is upper and which is lower.
Keep its input variable distinct from the variable of differentiation.
Write the upper bound as \(b(x)\) and the lower bound as \(a(x)\).
Use \(f(b(x))b'(x)\) for the upper bound and \(f(a(x))a'(x)\) for the lower bound.
Form \(f(b(x))b'(x)-f(a(x))a'(x)\), then simplify.
Worked Examples
Worked Example: A Sliding Interval of Fixed Width
Differentiate
Here \(f(t)=t^2+1\), the lower bound is \(a(x)=x\), and the upper bound is \(b(x)=x+2\). Their derivatives are \(a'(x)=1\) and \(b'(x)=1\). Apply the two-bound rule:
Check by evaluating the integral with an antiderivative. An antiderivative of \(t^2+1\) is \(\frac{t^3}{3}+t\), so
Therefore \(F'(x)=4x+4\), matching the result from the two-bound rule.
Worked Example: Bounds Moving at Different Rates
Differentiate
Here \(f(t)=t+1\), \(a(x)=2x\), and \(b(x)=3x\). The rates are \(a'(x)=2\) and \(b'(x)=3\). Substituting each bound into the integrand gives
Check by direct integration. An antiderivative of \(t+1\) is \(\frac{t^2}{2}+t\), so
Differentiating this expression gives \(G'(x)=5x+1\), as required. Notice that each endpoint's rate matters: the upper endpoint moves three times as fast as \(x\), while the lower endpoint moves twice as fast.
Worked Example: A Lower Bound That Moves Faster
Differentiate
The upper bound is \(b(x)=x\), and the lower bound is \(a(x)=2x\). Thus \(b'(x)=1\) and \(a'(x)=2\). Apply the rule in upper-minus-lower order:
Check by evaluating the integral. An antiderivative of \(t^2+1\) is \(\frac{t^3}{3}+t\), and therefore
Its derivative is \(-7x^2-1\), which confirms the result. The bounds happen to be in descending order when \(x>0\), but the rule still applies: the integral is signed, and the stated upper and lower bounds retain their roles.
Common Mistake: Giving the Lower Bound a Positive Sign
A frequent error is to add both endpoint contributions. For example, for \(H(x)=\int_{2x}^{x}(t^2+1)\,dt\), an incorrect calculation would be
The error is the plus sign before the lower-bound contribution. Moving the lower limit changes the integral with the opposite sign from moving the upper limit. The correct calculation is
The antiderivative check above confirms this corrected derivative. A useful safeguard is to write the complete formula with the minus sign before substituting any values, rather than trying to decide the signs after expanding.
Why the Rule Matters
When both endpoints move, the integral measures accumulation over a changing interval. Its derivative records the net effect of what enters or leaves through the endpoints. The upper endpoint adds a contribution according to the integrand's value there and its direction and rate of motion. The lower endpoint changes the integral in the opposite way.
This interpretation is consistent with signed integrals, including integrals whose bounds are written in descending order. The formula depends on the stated upper and lower limits, not on whether their numerical values happen to be ordered in the usual way for a particular \(x\). Keep the roles of the bounds clear, include both chain-rule factors, and check signs before simplifying.
Check Your Understanding
For each question, identify the endpoint contributions before simplifying.
- Differentiate \(\displaystyle \int_{x}^{x+1}(t^2+2)\,dt\) using the two-bound rule.
- For \(\displaystyle K(x)=\int_{3x}^{x}(t+4)\,dt\), which endpoint contribution has a negative sign?
- Differentiate \(\displaystyle \int_{2x}^{4x}(t^2+1)\,dt\), showing both endpoint rates.
- State the continuity and differentiability conditions needed for the two-bound rule.
- Explain why a lower bound contributes with a minus sign, using the accumulation-function proof.