Skip to main content

Substitution

Substitution is the most common integral technique in elementary calculus. Recall what we mentioned in common integrals that we use uu and du\mathrm{d}u instead of xx and dx\mathrm{d}x, and this is because uu may represent an entire function, not just a single variable. We will tackle with this more specifically in this section.

The Substitution Rule

We will start with this integral question:

3x2sinx3 dx= ?\int{3x^2\sin{x^3}}\ \mathrm{d}x=\ ?

Note that there is an product, which is beyond all common integrals, so we need to simplify to an easier form. An example is below:

Solution

Let: u=x3u=x^3

dudx=3x2du=3x2 dx\begin{align*} \frac{\mathrm{d}u}{\mathrm{d}x}&=3x^2\\ \color{red}{\mathrm{d}u}&=\color{red}{3x^2\ \mathrm{d}x}\\ \end{align*}

Plug in back to the question:

3x2sinx3 dx=sinu du=sinu du=cosu+C=cosx3+C\begin{align*} \int{\color{red}{3x^2}}\sin{x^3}\ \color{red}{\mathrm{d}x}&=\int{\sin{u}}\ \color{red}{\mathrm{d}u}\\ &=\int{\sin{u}}\ \mathrm{d}u\\ &=-\cos{u}+C\\ &=-\cos{x^3}+C \end{align*}

Hence:

3x2sinx3 dx=cosx3+C\int{3x^2\sin{x^3}}\ \mathrm{d}x=-\cos{x^3}+C \tag*{$\blacksquare$}

By replacing the variable xx into a function of uu, we can simplify the overall question to a common integral. As you can see, this is a method we inversely use the Chain Rule, and generally, it is called:

The substitution rule

Given a differenciable function u=g(x)u=g(x), and ff is continuous on its interval, then:

f(g(x))g(x) dx=f(u) du\int{f\left(g\left(x\right)\right)g'(x)}\ \mathrm{d}x=\int{f\left(u\right)}\ \mathrm{d}u
Definite Integral

In the case of Definite Integral, the bound should also changes, as:

abf(g(x))g(x) dx=g(a)g(b)f(u) du\int_{a}^{b}{f\left(g\left(x\right)\right)g'(x)}\ \mathrm{d}x=\int_{g(a)}^{g(b)}{f\left(u\right)}\ \mathrm{d}u

Direct Substitution

Direct Substitution is a method created by the author himself. It simplify the process of substitution without write out uu and du\mathrm{d}u. I will show this with an example:

3x2sinx3 dx= ?\int{3x^2\sin{x^3}}\ \mathrm{d}x=\ ?

This time, let's try what I called Direct Substituton:

Direct Substitution Approach

After analyze, we want to substitute x3x^3. All we need to do is substitude dx\mathrm{d}x to a fraction where the top is dx3\mathrm{d}x^3 and the bottom is the derivative of x3x^3 based on xx, as:

3x2sinx3 dx=3x2sinx3 d(x3)3x2=sinx3 d(x3)\int{3x^2\sin{x^3}}\ \mathrm{d}x=\int{\cancel{3x^2}\sin{x^3}}\ \frac{\mathrm{d}(x^3)}{\cancel{3x^2}}=\int{\sin{x^3}}\ \mathrm{d}(x^3)

And all we need is to consider x3x^3 as uu and integrate normally:

    sinx3 d(x3)=cosx3+C\implies \int{\sin{x^3}}\ \mathrm{d}(x^3)=-\cos{x^3}+C

More importantly, for definite integral, it doesn't need to change bounds, as:

ab3x2sinx3 dx=absinx3 d(x3)=cosx3ab=cosb3+cosa3\int_{a}^{b}3x^2\sin{x^3}\ \mathrm{d}x=\int_{a}^{b}{\sin{x^3}}\ \mathrm{d}(x^3)=-\cos{x^3}\big|_{a}^{b}=-\cos{b^3}+\cos{a^3}
Direct Substitution

In general, if we want to substitude ax+bax+b or term that can cancel the other one, we may use direct substitution

f(x)g(x)Substitude dx=f(x)g(x) d(g(x))g(x)\int{{f(x)}\underbrace{g(x)}_{\text{Substitude}}}\ \mathrm{d}x=\int{f(x)g(x)}\ \frac{\mathrm{d}(g(x))}{g'(x)}

Back Substitution

For some integrals, after we made the uu substitution, we might need to express xx as a function of uu. See more example in Integral with √(ax+b).

Trigonometry Substitution