Insight Things

A scientific blog revealing the hidden links which shape our world

Integration by Substitution – Why it works!

Integration by substitution (often referred to as u-substitution) is quite hard to understand. Most people just follow their proven recipe when performing this kind of integration. In contrast to that doing, I want to illustrate why the steps of u-integration are necessary. Therefore we will develop the idea slowly by giving simple examples which illustrate what works and what doesn’t.

What integration by substitution gives you

Say, you wanted to tackle an integral like the following:

\displaystyle \int x \sqrt{x-1}\, dx

You cannot integrate because the radical prevents you from doing so: Neither are you able to integrate the whole product nor does rearranging the term helps you. With u=x-1 however the term in the radical disappears. So substitue x=u+1. Now you have to deal with the expression

\displaystyle \int (u+1) \times \sqrt{(u+1)-1}\, dx=\int (u+1) \times \sqrt{u}\, dx=\int \sqrt{u^{3}}+\sqrt{u}\, dx

This is obviously easy to integrate. We obtain the solution

\displaystyle \int \sqrt{u^{3}}+\sqrt{u}\, du=\frac{2u^{\frac{5}{2}}}{5}+\frac{2u^{\frac{3}{2}}}{3}+c

in which we can substitute back u=x-1  to receive the solution of the integral from the beginning of the section:

\displaystyle \int x \times \sqrt{x-1}\, dx=\frac{2(x-1)^{\frac{5}{2}}}{5}+\frac{2(x-1)^{\frac{3}{2}}}{3}+c

Take a look at the following picture. It clearly shows how substituting shifted the graph horizontally.

Comparing the original to the substituted function

Comparing the original to the substituted function

As you already have guessed, the integrals of both functions are identical. They only differ in location, but we fixed this by substituting backwars in the end. However, this procedure of simply replacing a term does not work always! (see next section)

Substituting dx – The missing factor!

Actually we omitted the substitution of dx up to this point. Instead we just replaced dx  by du which is inaccurate and works only in some special cases of integration by substitution. Let’s consider another example and try to integrate 2xe^{x^2}. By the inverse chain rule, it is obvious that

\displaystyle \int 2xe^{x^2}\, dx=e^{x^2}+c

But making use of the substitution u=x^2 and, hence, x=\sqrt{u} we obtain

\displaystyle \int 2\sqrt{u}e^{u}\, du

which will not lead to the desired result. So what is the probleme, here? If you have a look into the picture below then you will agree that the shape of the function is changed by substitution. The original function is much more bent upwards than the substituted version. When comparing the function values for x or u respectively, you observe that the range 0<x\leq 0.4 is compressed to a much smaller range of u while the substituted function is horizontally spread out compared to the original graph. This is also reflected in the density bar.

How transformation affects the shape of a function

How transformation affects the shape of a function

Of course, different shapes lead to different areas below the functions’ graphs. To overcome this issue, we need to rectify the bottom graph’s integral. That is, for each slice at a low value of x we need to “virtually add” some area below the graph and vice versa. The approach is to multiply by the density dx/du which is high if x “moves faster” than u and the other way around. Hence,

\displaystyle x'(u)=\frac{dx}{du}=\frac{d}{du} \left(\sqrt{u} \right)=\frac{1}{2\sqrt{u}}

and so

\displaystyle \int 2xe^{x^2}\, dx=\int 2\sqrt{u}e^{u} \left ( \frac{dx}{du}\right ) \, du

\displaystyle \int 2\sqrt{u}e^{u} \left ( \frac{dx}{du}\right ) \, du=\int 2\sqrt{u}e^{u} \frac{1}{2\sqrt{u}}\, du=\int e^{u} \, du

\displaystyle \int e^{u} \, du=e^{u}+c=e^{x^2}+c

Note that most people would use the following inaccurate (but very handy) mnemonic to directly substitute dx:

\displaystyle \frac{dx}{du}=\frac{1}{2\sqrt{u}} \iff dx=\frac{1}{2\sqrt{u}}

Or if it is easier in your case, you can differentiate du/dx, reflect about y=x and then substitute for x:

\displaystyle \frac{dx}{du}= \frac{1}{\frac{du}{dx}} \iff dx=\frac{1}{2\sqrt{u}}

A final example

Integration by substitution often doesn’t work solely. I will show you an example which will involve integration by parts as well. Further, the example will illustrate how to work with limits directly instead of performing backwards-substitution in the end. Here we go!

\displaystyle A=\int\limits_{0}^{1} e^{\sqrt{x+1}}\, dx

We simplify using u(x)=\sqrt{x+1}  to transform the limits and its inverse x(u)=u^{2}-1  to transform the integrand.

\displaystyle A=\int\limits_{\sqrt{0+1}}^{\sqrt{1+1}} e^{\sqrt{(u^{2}-1)+1}}\, dx

Simplifying and substituting dx=x'(u)\, du=2u\, du gives:

\displaystyle A=\int\limits_{1}^{\sqrt{2}} e^{u}\times 2u \, du

Integration by parts comes in here:

\displaystyle A=\left[e^{u}\, 2u \right]_{1}^{\sqrt{2}}- \int\limits_{1}^{\sqrt{2}} e^{u}\times 2 \, du=\left[2u\, e^{u} - 2e^{u}\right]_{1}^{\sqrt{2}}

\displaystyle A=2e^{\sqrt{2}} (\sqrt{2}-1)-2e^{\sqrt{1}} (\sqrt{1}-1)=2e^{\sqrt{2}} (\sqrt{2}-1)

You could also have substituted backwards as usual using the fact that u=\sqrt{x+1}  to obtain the indefinite integral:

\displaystyle 2u\, e^{u}-2e^{u}=2e^{u}(u-1)=2e^{\sqrt{x+1}}(\sqrt{x+1}-1)+c

I hope you now agree that integration by substitution (alias u-substitution) is an easy, logical and helpful thing 🙂

4 Comments

  1. I really like this explanation. Why my students ask “why does substitution work” I always show the examples of definite integrals where the dx is a constant multiple of du, and then I say “it’s a little different when the differentials are more complicated. The axes are scaled, just by variable amounts”. I’ve been looking for a visual representation for a minute, but this is the first I’ve actually found.

    Hope you don’t mind me sending my students here. Thanks for the work you put into developing this!

  2. Awesome explanation I had asked this to my teachers for which i was given the answer it comes back to the original form at last. Math stack exchange is awesome which brought me here

Leave a Reply

Your email address will not be published.

*

© 2024 Insight Things

Theme by Anders NorenUp ↑