Tutorials › AP Calculus › Back-Substitution in Definite Integrals

Antiderivatives and Substitution · Tutorial 505 of 999

Back-Substitution in Definite Integrals

Find an antiderivative in the substituted variable, return to the original variable, and use the original limits to evaluate a definite integral.

Intermediate 9 min read

What You'll Learn

  • Set up a substitution while keeping the original limits of integration.
  • Find an antiderivative in the substituted variable and convert it back to the original variable.
  • Apply the original limits only after back-substitution.
  • Justify the method using the chain rule and the Fundamental Theorem of Calculus.
  • Recognize and correct the error of mixing substituted-variable antiderivatives with original-variable limits.

Why Back-Substitution Matters

A substitution can turn a complicated integrand into a familiar one. For a definite integral, there are two consistent ways to finish: change the limits to match the substituted variable, or return the antiderivative to the original variable and use the original limits. This tutorial focuses on the second approach.

The key is to keep the variable and the limits together. If the antiderivative is written in terms of \(x\), evaluate it at the original \(x\)-limits. Do not use the original limits on an expression that is still written in the substituted variable.

Core rule: After using substitution to find an antiderivative in \(u\), replace \(u\) with its expression in \(x\). Then evaluate the resulting antiderivative using the original \(x\)-limits.

The Method and Its Justification

Suppose the integrand can be written as \(h(g(x))g'(x)\), and let \(H\) be an antiderivative of \(h\), so that \(H'(u)=h(u)\). The substitution \(u=g(x)\) turns the integrand into \(h(u)\,du\). An antiderivative in the new variable is \(H(u)\). To use the original limits, substitute \(g(x)\) back into this antiderivative, giving \(H(g(x))\).

Why does this give the correct antiderivative in \(x\)? The chain rule gives

$$ \frac{d}{dx}H(g(x)) = H'(g(x))g'(x) = h(g(x))g'(x). $$

Thus \(H(g(x))\) is an antiderivative of the original integrand. If the integrand is continuous on \([a,b]\) and \(g\) and \(H\) are differentiable as needed, the Fundamental Theorem of Calculus then gives the definite integral as the value of this antiderivative at \(b\) minus its value at \(a\).

Theorem: If \(H'(u)=h(u)\) and the original integrand is \(h(g(x))g'(x)\) on \([a,b]\), then $$ \int_a^b h(g(x))g'(x)\,dx = H(g(b))-H(g(a)). $$ Equivalently, find \(H(u)\), substitute \(g(x)\) back to obtain \(H(g(x))\), and evaluate at the original limits \(a\) and \(b\).

This result follows from the chain rule and the Fundamental Theorem of Calculus, not from a special rule for guessing the new bounds. The substitution helps find the antiderivative; after returning to \(x\), the ordinary definite-integral evaluation rule applies.

A Reliable Sequence of Steps

1
Choose the substitution.
Set \(u=g(x)\) so the integrand and its differential become simpler. Keep track of how \(du\) relates to the original differential.
2
Integrate in the new variable.
Find an antiderivative \(H(u)\) of the resulting expression in \(u\).
3
Back-substitute.
Replace every \(u\) in \(H(u)\) with its expression in \(x\), giving \(H(g(x))\).
4
Apply the original limits.
Evaluate \(H(g(x))\) at the original upper and lower \(x\)-limits, then subtract lower from upper.

At each stage, note which variable is being used. The differential \(du\) belongs to the substituted integral, and the original limits belong to an antiderivative written in \(x\). This bookkeeping prevents a common mismatch.

Worked Example: A Trigonometric Integrand

Evaluate \(\int_0^1 2x\cos(x^2)\,dx\) by back-substitution.

Step 1: Substitute. Let \(u=x^2\). Then \(du=2x\,dx\), so the integral becomes \(\int \cos u\,du\) while we find an antiderivative.

Step 2: Integrate in \(u\). Since the derivative of \(\sin u\) is \(\cos u\), an antiderivative is \(\sin u\).

$$ \int \cos u\,du=\sin u. $$

Step 3: Substitute back. Since \(u=x^2\), the antiderivative in the original variable is \(\sin(x^2)\).

Step 4: Apply the original limits. The original interval is \(0\leq x\leq 1\), so evaluate at \(x=1\) and \(x=0\):

$$ \int_0^1 2x\cos(x^2)\,dx = \sin(1^2)-\sin(0^2) = \sin 1-\sin 0 = \sin 1. $$

Check: Differentiating the returned antiderivative gives \(\frac{d}{dx}\sin(x^2)=\cos(x^2)\cdot 2x=2x\cos(x^2)\), the original integrand. The limits were applied to the expression in \(x\), as required.

Worked Example: A Logarithmic Antiderivative

Evaluate \(\int_0^2 \frac{x}{x^2+1}\,dx\) by back-substitution.

Step 1: Substitute and account for the factor. Let \(u=x^2+1\). Then \(du=2x\,dx\), so \(x\,dx=\frac12du\). The transformed integrand for finding the antiderivative is \(\frac{1}{2u}\,du\).

$$ \int \frac{x}{x^2+1}\,dx = \frac12\int\frac{1}{u}\,du. $$

Step 2: Integrate in \(u\). Because \(u=x^2+1\) is positive for every real \(x\), the logarithmic antiderivative can be written as \(\frac12\ln u\).

$$ \frac12\int\frac{1}{u}\,du = \frac12\ln u. $$

Step 3: Substitute back. Replace \(u\) by \(x^2+1\), giving \(\frac12\ln(x^2+1)\).

Step 4: Apply the original limits. Evaluate at \(x=2\) and \(x=0\):

$$ \begin{aligned} \int_0^2 \frac{x}{x^2+1}\,dx &= \frac12\ln(2^2+1)-\frac12\ln(0^2+1)\\ &= \frac12\ln 5-\frac12\ln 1\\ &= \frac12\ln 5. \end{aligned} $$

Check: Differentiating the returned antiderivative gives \(\frac12\cdot\frac{2x}{x^2+1}=\frac{x}{x^2+1}\). This matches the integrand, and the evaluation uses the original endpoints \(0\) and \(2\).

Worked Example: A Decreasing Inner Function

Evaluate \(\int_0^{\pi/2}\sin x\,e^{\cos x}\,dx\) by back-substitution.

Step 1: Substitute. Let \(u=\cos x\). Then \(du=-\sin x\,dx\), or \(\sin x\,dx=-du\). The minus sign must be included, so the expression to integrate in \(u\) is \(-e^u\,du\).

$$ \int \sin x\,e^{\cos x}\,dx = -\int e^u\,du. $$

Step 2: Integrate in \(u\). An antiderivative of \(e^u\) is \(e^u\), so an antiderivative of \(-e^u\) is \(-e^u\).

Step 3: Substitute back. Replacing \(u\) by \(\cos x\) gives \(-e^{\cos x}\).

Step 4: Apply the original limits. Use \(x=\pi/2\) for the upper limit and \(x=0\) for the lower limit:

$$ \begin{aligned} \int_0^{\pi/2}\sin x\,e^{\cos x}\,dx &= -e^{\cos(\pi/2)}-\left(-e^{\cos 0}\right)\\ &= -e^0+e^1\\ &= e-1. \end{aligned} $$

Check: The derivative of the returned antiderivative is \(\frac{d}{dx}(-e^{\cos x})=-e^{\cos x}(-\sin x)=\sin x\,e^{\cos x}\), which is the original integrand. The negative sign from \(du=-\sin x\,dx\) is reflected in the antiderivative.

A Common Bounds Mistake

The substitution variable and the original variable have different limits. If you find \(H(u)\) and have not yet substituted back, its input is \(u\), not \(x\). Applying \(x\)-limits directly to \(H(u)\) is therefore a variable mismatch.

Worked Example: Correcting a Bounds Mismatch

Consider \(\int_1^2 2x\cos(x^2)\,dx\). Let \(u=x^2\), so \(du=2x\,dx\). Integrating in \(u\) gives \(\sin u\).

Incorrect calculation: Using the original endpoints \(1\) and \(2\) directly on \(\sin u\) gives \(\sin 2-\sin 1\). This treats the original \(x\)-limits as though they were \(u\)-values.

Correction by back-substitution: Replace \(u\) with \(x^2\), then apply the original \(x\)-limits:

$$ \begin{aligned} \int_1^2 2x\cos(x^2)\,dx &= \sin(x^2)\bigg|_1^2\\ &= \sin(2^2)-\sin(1^2)\\ &= \sin 4-\sin 1. \end{aligned} $$

Check: The derivative of \(\sin(x^2)\) is \(2x\cos(x^2)\). Also, the substituted endpoint values would be \(u=1^2=1\) and \(u=2^2=4\), consistent with the corrected result. The mistaken expression used \(2\) where the corresponding substituted endpoint is \(4\).

Why the Method Is Useful

Back-substitution lets you use an antiderivative found in a convenient variable while still evaluating the definite integral with its original limits. It is especially straightforward when the substitution includes a negative differential or a constant factor: those signs and factors are handled while finding the antiderivative, and then the original endpoints are applied to the complete expression in \(x\).

Before finishing a definite integral by substitution, check three things:

  • Does the antiderivative contain only the original variable before the original limits are used?
  • Was the full differential relation, including any negative sign or constant factor, included?
  • Was the value at the lower limit subtracted from the value at the upper limit?

These checks keep the variable, differential, antiderivative, and limits consistent. The central idea is simple: integrate in whichever variable makes the work easier, but apply the original bounds only after the antiderivative has been returned to the original variable.

Check Your Understanding

For each question, keep track of which variable the antiderivative uses and which limits belong to it.

  1. For \(\int_0^1 6x^2 e^{2x^3}\,dx\), choose a substitution and state the antiderivative after returning to \(x\). What original limits will you apply?
  2. For \(\int_0^{\pi/2}\cos x\sin(\sin x)\,dx\), use \(u=\sin x\). Find an antiderivative in \(u\), substitute back, and evaluate with the original limits.
  3. In \(\int_1^3 \frac{2x}{x^2+4}\,dx\), why is it incorrect to use \(1\) and \(3\) as the endpoints of an antiderivative written in \(u=x^2+4\)?
  4. State the chain-rule calculation that explains why \(H(g(x))\) is an antiderivative of \(h(g(x))g'(x)\) when \(H'(u)=h(u)\).
  5. If \(u=g(x)\) and \(du=-f(x)\,dx\), what sign must be included when rewriting an integral containing \(f(x)\,dx\) in terms of \(du\)?

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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