𝑢-Substitution

In terms of symbolic manipulation, integration is much, much harder — if not impossible — compared to differentiation. As such, whenever we divine integrals, we must always do so gently and carefully. Fortunately, there are a few methods that can help us accomplish the task. One such method is the method of substitution. To illustrate this method, consider the following problem:

problem. Evaluate the indefinite integral:

x3(x4+2)5dx \int x^3(x^4 + 2)^5 dx

On its face, it looks like we can apply the power rule backwards. The trouble, however, is that fifth power. Expanding the (x4+2)5{(x^4+2)^5} is messy.1

The idea is to first define a new function for the messiest term:

u=x4+2 u = x^4 + 2

Then we differentiate:

d(u)=d(x4+2)du=4x3 dx \begin{aligned} d(u) &= d(x^4 + 2) \\ du &= 4x^3~dx \end{aligned}

We can then substitute to simplify the indefinite integral. First, since u=x4+2,{u = x^4 + 2,} we substitute:

x3(x4+2)5 dx=(x4+2)5x3 dx=u5x3 dx \begin{aligned} \int x^3(x^4+2)^5~dx &= \int \textcolor{firebrick}{(x^4 + 2)}^5 x^3~dx\\ &= \textcolor{firebrick}{u}^5 x^3~dx \end{aligned}

Next, given that du=4x3 dx,{du = 4x^3~dx,} we know that:

du4=x3 dx \dfrac{du}{4} = x^3~dx

Thus:

x3(x4+2)5 dx=(x4+2)5x3 dx=u514 du \begin{aligned} \int x^3(x^4+2)^5~dx &= \int \textcolor{firebrick}{(x^4 + 2)}^5 \textcolor{teal}{x^3~dx}\\ &= \textcolor{firebrick}{u}^5 \cdot \textcolor{teal}{\dfrac{1}{4}~du} \end{aligned}

Thus, we have the integral:

u5 du4 \int \dfrac{u^5~du}{4}

This is much easier to integrate:

u5 du4=124u6+C \int \dfrac{u^5~du}{4} = \dfrac{1}{24} u^6 + C

Now we have to change back to our original variable x.{x.} Since we substituted u=x4+2,{u = x^4 + 2,} we have:

x3(x4+2)5 dx=124(x4+2)6+C \int x^3(x^4 + 2)^5~dx = \dfrac{1}{24}(x^4 + 2)^6 + C

Premonitory Substitution

Sometimes, the substitution method is either (1) too long to perform, or (2) doesn't appear to yield further progress. For example, consider the following problem:

problem. Evaluate the indefinite integral:

x dx1+x2 \int \dfrac{x~dx}{\sqrt{1+x^2}}

In this case, let's substitute 1+x2:{1+x^2:}

u=1+x2 u = 1+x^2

Differentiating, we get:

d(u)=d(1+x2)du=2x dx \begin{aligned} d(u) &= d(1+x^2) \\ du &= 2x~dx \end{aligned}

Expressing x dx{x~dx} in terms of du:{du:}

du2=x dx \dfrac{du}{2} = x~dx

And substituting all our findings:

du2u=12duu \int \dfrac{\dfrac{du}{2}}{\sqrt{u}} = \int \dfrac{1}{2} \cdot \dfrac{du}{\sqrt{u}}

This doesn't seem to have helped. We've gotten an integral that looks just as nasty as the original. Fortunately, there's a modified version of the subsitution we can use — premonitory substitution. The idea is that we first look at the integral:

x dx1+x2 \int \dfrac{x~dx}{\sqrt{1+x^2}}

We easily see that the troublesome part is that radicand in the bottom, so we make a guess, or premonition, that the substituted form will look something like:

(1+x2)12 (1+x^2)^{\frac{1}{2}}

With this guess, we just differentiate and see if it works:

ddx[(1+x2)12]=12(1+x2)12(2x)=x1+x2 \begin{aligned} \dfrac{d}{dx} [(1+x^2)^{\frac{1}{2}}] &= \dfrac{1}{2}(1+x^2)^{- \frac{1}{2}}(2x) \\[1em] &= \dfrac{x}{\sqrt{1+x^2}} \end{aligned}

Lo and behold, there's our original expression. The answer is thus:

x dx1+x2=x1+x2+C \int \dfrac{x~dx}{\sqrt{1+x^2}} = \dfrac{x}{\sqrt{1+x^2}} + C

Let's look at another example:

e6x dx \int e^{6x}~dx

We start with a guess for the answer:

e6x e^{6x}

If we differentiate this answer:

ddx(e6x)=6e6x \dfrac{d}{dx}(e^{6x}) = 6e^{6x}

Just looking at this derivative, all we have to do is get rid of the 6.{6.} Thus, the answer is:

e6x dx=16e6x+C \int e^{6x}~dx = \dfrac{1}{6}e^{6x} + C

Let's look at another example:

problem. Evaluate the indefinite integral:

xex2 dx \int xe^{-x^2}~dx

Let's start with a guess:

ex2 e^{-x^2}

Differentiating this guess:

ddxex2=ex2(2x) \dfrac{d}{dx}e^{-x^2} = e^{-x^2}(-2x)

Examining this derivative, we see that we're off by a factor of 2.{-2.} So, we have the derivative:

xex2 dx=12ex2+C \int xe^{-x^2}~dx = - \dfrac{1}{2} e^{-x^2} + C

Let's look at another problem.

problem. Evaluate the indefinite integral:

sinxcosx dx \int \sin x \cos x ~dx

We begin with a guess.

sin2x \sin^2 x

Then we differentiate:

ddxsin2x=2sinxcosx \dfrac{d}{dx} \sin^2 x = 2 \sin x \cos x

We see that we're off by a factor of 2,{2,} so our answer is:

sinxcosx dx=12sin2x+C \int \sin x \cos x~dx = \dfrac{1}{2}\sin^2 x + C

This problem, however, could've been approached differently and yielded a different answer. If our guess were instead:

cos2x \cos^2x

we would've gotten the derivative:

ddxcos2x=2cosx(sinx) \dfrac{d}{dx} \cos^2x = 2 \cos x(- \sin x)

Thus, another answer is:

sinxcosx dx=12cos2x+C \int \sin x \cos x~dx = -\dfrac{1}{2} \cos^2x + C

This is interesting. How are we getting two different answers? It turns out that these two answers are actually just different forms of the answer. If we set the answers equal to one another:

12sin2x+C1=12cos2x+C2(12sin2x+C1)(12cos2x+C2)=012sin2x+C1+12cos2xC2=012sin2x+12cos2x+C1C2=012(sin2x+cos2x)+C1C2=012(1)+C1C2=0C1C2=12 \begin{aligned} \dfrac{1}{2} \sin^2 x + C_1 &= -\dfrac{1}{2} \cos^2 x + C_2 \\[1em] \left(\dfrac{1}{2} \sin^2 x + C_1\right) - \left(-\dfrac{1}{2} \cos^2 x + C_2\right) &= 0 \\[1em] \dfrac{1}{2} \sin^2 x + C_1 + \dfrac{1}{2} \cos^2 x - C_2 &= 0 \\[1em] \dfrac{1}{2} \sin^2 x + \dfrac{1}{2} \cos^2 x + C_1 - C_2 &= 0 \\[1em] \dfrac{1}{2}(\sin^2 x + \cos^2 x) + C_1 - C_2 &= 0 \\[1em] \dfrac{1}{2}(1) + C_1 - C_2 &= 0 \\[1em] C_1 - C_2 &= -\dfrac{1}{2} \\[1em] \end{aligned}

The difference between the two answers is a constant. In other words, the only difference between these two answers is their constant C.{C.} This tells us that the two formulas:

(1a)    sinxcosx dx=12cos2x+C(1b)    sinxcosx dx=12sin2x+C \begin{aligned} &(\text{1a})~~~~\int \sin x \cos x~dx = -\dfrac{1}{2} \cos^2x + C \\[1.5em] &(\text{1b})~~~~\int \sin x \cos x~dx = \dfrac{1}{2}\sin^2 x + C \end{aligned}

are different forms of the answer, merely differing from one another by 12.{-\dfrac{1}{2}.}

Here's another example:

problem. Evaluate the indefinite integral:

dxxlnx \int \dfrac{dx}{x \ln x}

Here, we might be tempted to make a guess, but this is best solved with just plain substitution. Remember, premonitory substitution is what we use when it's apparent that plain substitution doesn't work. Recall what we said earlier about integration: We must take care when integrating.

Do not rush into premonitory substitution. Here, a clear substitution is:

u=lnx u = \ln x

The differential here is simpler:

du=dxx du = \dfrac{dx}{x}

Applying the substitution:

dxxlnx=1lnx1u  dxxdu=duu \begin{aligned} \int \dfrac{dx}{x \ln x} &= \int \underbrace{\dfrac{1}{\ln x}}_{\dfrac{1}{u}} ~\cdot~ \underbrace{\dfrac{dx}{x}}_{\normalsize du} \\[4em] &= \int \dfrac{du}{u} \end{aligned}

Evaluating the substituted integral:

duu=lnu+C \int \dfrac{du}{u} = \ln u + C

Re-substituting:

duu=lnu+C=ln(lnx)+C \begin{aligned} \int \dfrac{du}{u} &= \ln u + C \\[1em] &= \ln (\ln x) + C \end{aligned}

Thus, we have the answer:

dxxlnx=ln(lnx)+C \int \dfrac{dx}{x \ln x} = \ln (\ln x) + C

Or more correctly:

dxxlnx=lnlnx+C \int \dfrac{dx}{x \ln x} = \ln\lvert \ln x \rvert + C

Footnotes

  1. It comes out to: x20+10x16+40x12+80x8+80x4+32{ x^{20} + 10x^{16} + 40x^{12} + 80x^8 + 80x^4 + 32 }