Calculus › Section E · Integrals › Topic E.5

Integration by substitution

Many integrals hide a reversed chain rule inside them. Renaming the inner function as u untangles them, and this one technique multiplies your integration power several-fold.

Integrals with layers

E.1 gave you antiderivatives of powers, trig basics and exponentials. But real integrands rarely arrive that politely: they come layered, like \(6x(3x^2 + 4)^4\) or \(\sin(5x)\). Each of those is secretly the output of a chain-rule differentiation, and topic C.4 told you exactly what such outputs look like: an outer function evaluated at an inner function, times the derivative of the inner. Substitution simply runs that description in reverse. The skill is spotting the layers before touching the algebra.

The pattern to hunt

The chain rule says \(\frac{d}{dx}F(g(x)) = F'(g(x))\,g'(x)\). So an antiderivative of any product having the shape of an outer function evaluated at \(g(x)\), multiplied by \(g'(x)\), is simply \(F(g(x))\). In integral form:

\int f(g(x))\,g'(x)\,dx = \int f(u)\,du = F(u) + C

after the renaming \(u = g(x)\). The integrand must contain the inner function AND its derivative (up to a constant factor). Without that derivative, the \(dx\) cannot be converted into \(du\). So the first scan of any layered integral is: can I see a function and its derivative together?

The five-step routine

Once you suspect the pattern: one, choose \(u\) equal to the inner function, typically the expression inside a power, root or trig function. Two, compute the differential \(du = g'(x)\,dx\). Three, rewrite the entire integral in terms of \(u\) and \(du\), and this is the audit step: no trace of \(x\) may remain. Four, integrate in \(u\), now usually a basic rule. Five, substitute back \(u = g(x)\) to answer in the original variable. And the standing habit from E.1 finishes the job: differentiate your answer and check it reproduces the integrand, chain factor and all.

Worked example: the power pattern

Integrate \(\int 6x\,(3x^2 + 4)^4\,dx\). The inside candidate is \(3x^2 + 4\), and its derivative is \(6x\), sitting right there in the integrand. Let \(u = 3x^2 + 4\), so \(du = 6x\,dx\), a perfect, unbroken match. The integral becomes \(\int u^4\,du = \frac{u^5}{5} + C\), and back-substituting gives

\frac{(3x^2 + 4)^5}{5} + C

Verify by differentiating: \(\frac{1}{5} \cdot 5(3x^2+4)^4 \cdot 6x = 6x(3x^2+4)^4\). Exact. When the match is this clean, substitution is three lines long.

Adjusting a constant mismatch

Usually the match is off by a constant. The repair: you may multiply the integral by a constant, and divide it back outside, because constants flow freely through integrals. Variables may not, ever: you cannot pull a leftover \(x\) through the integral sign, and if one remains after substitution, the chosen \(u\) has failed and you start over with another. So constant discrepancies are bookkeeping; variable discrepancies are dead ends. This one asymmetry, constants fine, variables fatal, decides at a glance whether your substitution can be salvaged.

Worked example: a constant to repair

Integrate \(\int x\,e^{3x^2}\,dx\). Try \(u = 3x^2\): then \(du = 6x\,dx\), and the integrand has \(x\,dx\), which is \(\frac{1}{6}\,du\). The integral becomes \(\frac{1}{6}\int e^{u}\,du = \frac{1}{6}e^{u} + C = \frac{1}{6}e^{3x^2} + C\). Differentiate to confirm: \(\frac{1}{6}e^{3x^2} \cdot 6x = x e^{3x^2}\). Correct. The factor \(\frac{1}{6}\) comes from \(du = 6x\,dx\): the integrand supplied the \(x\) but not the constant \(6\), so we divided by it outside.

The linear-inside shortcut

Linear insides are so common that they deserve their own card. For \(\int f(ax + b)\,dx\), set \(u = ax + b\), so \(dx = \frac{du}{a}\), and the answer is always \(\frac{1}{a}F(ax + b) + C\): integrate as if the inside were plain \(x\), then divide by the inside's slope. Hence \(\int \sin(5x)\,dx = -\frac{1}{5}\cos(5x) + C\) and \(\int e^{-2t}\,dt = -\frac{1}{2}e^{-2t} + C\) at sight. With practice you skip the \(u\) entirely and write these down directly, then check by differentiating.

Worked example: definite integral, limits changed

Evaluate \(\int_0^1 2x\,(x^2 + 3)^3\,dx\). The substitution \(u = x^2 + 3\) has \(du = 2x\,dx\). For a definite integral, convert the limits too: when \(x = 0\), \(u = 3\); when \(x = 1\), \(u = 4\). Then

\int_3^4 u^3\,du = \left[\frac{u^4}{4}\right]_3^4 = \frac{256 - 81}{4} = \frac{175}{4}

Changing the limits means you never return to \(x\) at all, the computation lives entirely in \(u\). The alternative is equally legal but longer: substitute back, then evaluate in \(x\). Either way, mixing \(u\)'s integrand with \(x\)'s limits, or vice versa, is the error to be vigilant against.

Symmetry shortcuts

A symmetric interval and a symmetric function are a gift. If \(f\) is even, then \(\int_{-a}^{a} f = 2\int_0^a f\), since the graph mirrors across the y-axis. If \(f\) is odd, signed areas on the two sides cancel exactly:

\int_{-a}^{a} f = 0

For instance \(\int_{-2}^{2} x^3\,dx = 0\) without computing anything, while \(\int_{-2}^{2}(x^2 + 1)\,dx = 2\int_0^2 (x^2+1)\,dx\). Spotting the parity of the integrand before computing can halve the work, or avoid it altogether. These are the even and odd functions of topic A.3: an even graph is symmetric about the y-axis, an odd graph about the origin.

Knowing when substitution cannot work

The method fails, politely, whenever the inner derivative is absent beyond repair. Try \(u = x^2\) on \(\int e^{x^2}\,dx\): \(du = 2x\,dx\), but no factor of \(x\) appears in the integrand, so \(dx\) can only be written as \(\frac{du}{2x}\), leaving a \(\frac{1}{x}\) behind: a variable mismatch, fatal as flagged above. In fact this integral has no antiderivative that can be written with the usual functions at all, a famous result. So ask the pattern question first and only then compute. Sections F and I will stock more techniques for integrals whose pattern is different, logarithmic and exponential subtleties included.

Common mistakes to avoid

The classics, all met already: forgetting the constant factor when \(du\) misses by a constant, so \(\int \sin(5x)\,dx\) becomes \(-\cos(5x)\) instead of \(-\frac{1}{5}\cos(5x)\); leaving an \(x\) behind after substitution; changing to \(u\) but keeping the old \(x\)-limits in a definite integral, or mixing \(u\)-limits with \(x\)-values; dropping the \(dx\) conversion, as if \(du\) and \(dx\) were interchangeable; and skipping the derivative check, which catches every one of these. Also: do not fabricate the matching factor, \(\int e^{x^2}\,dx\) is not \(\frac{e^{x^2}}{2x}\), there is no quotient rule for integration to make that legal.

Key takeaways

Substitution is the chain rule read backwards: when the integrand shows \(f(g(x))\,g'(x)\), rename \(u = g(x)\), convert \(dx\) via \(du = g'(x)\,dx\), and no \(x\) may survive. Constants can be adjusted; variables cannot. Linear insides just cost a division by their slope. In definite integrals, convert the limits and never look back. Symmetric intervals over even and odd integrands halve or erase the work. And the habit that ties it all together is the E.1 habit: differentiate your answer and confirm the chain rule delivers exactly the integrand you started with.

Flashcards

Flashcard

u-substitution

Rename the inner function as u

The chain rule run backwards.

Test your understanding

Question 1 of 5

Evaluate ∫ 6x(3x² + 4)⁴ dx.

Question 2 of 5

Evaluate ∫ x² cos(x³) dx.

Question 3 of 5

Evaluate ∫ sin(5x) dx.

Question 4 of 5

Evaluate ∫ from 0 to 1 of 2x(x² + 3)³ dx.

Question 5 of 5

Without computing, what is ∫ from −2 to 2 of x³ dx?

Standards: 6

← Previous topicNext topic →