In this page, we will discuss two important techniques for integration that are seen in 5 periods. Namely: Integration by substitution and integration by parts.

Knowledge required: Rules for derivatives (product and chain rule), basic integrals.

As a reminder, we have the following list:

f(x)\int f(x)dx
x^n\frac{x^{n+1}}{n+1}+C
\cos(x)\sin(x)+C
\sin(x)-\cos(x)+C
e^xe^x+C
a^x\frac{a^x}{\ln(a)}+C
\frac{1}{x}\ln|x|+C

Moreover, we know the following properties of integrals for any two functions f(x) and g(x) and for any constant k\in\mathbb{R}.

    \[\int f(x)\pm g(x)dx=\int f(x)dx\pm\int g(x)dx\]

    \[\int k\cdot f(x)dx=k\cdot\int f(x)dx\]

Finally, the Newton Leibniz Theorem states that for some integrable function f(x) with primitive F(x) we have:

    \[\int_a^b f(x)dx=F(b)-F(a)\]

Motivation for Integration by Substitution

When given an integral \int f(x)dx our only tool to understand the answer is whether the function appears on our list. This gives a very limited number of options to find integrals.

Integration by substitution is a method used to simplify integrals by “changing variables”. It is the analogue to the chain rule from differentiation. If a function is composed with another, substitution helps us undo the composition to integrate more easily. The goal is to obtain an easier expression to integrate.

Opening Problem: Say we are asked to find \int e^{3x}dx. This function is not on our table. However, we would possibly guess that the answer should be the same thing (after all, \int e^xdx=e^x). Then: we would say:

    \[F(x)=\int e^{3x}dx=e^{3x}+C\]

We can take the derivative to understand whether we were right. The derivative, using the chain rule, of e^{3x} is:

    \[\frac{d}{dx}(e^{3x}+C)=(e^{3x}+C)'=3\cdot e^{3x}\]

This is almost the right answer, except with have a factor of 3 that we did not account for. Since this is a constant, we can try the primitive F(x)=\frac{1}{3}\cdot e^{3x}. Let us try finding the derivative again and see if we are right.

    \[\left(\frac{1}{3}\cdot e^{3x}+C\right)'=3\cdot\frac{1}{3}\cdot e^{3x}=e^{3x}\]

Therefore, we can conclude that:

    \[\int e^{3x}dx=\frac{1}{3}\cdot e^{3x}+C\]

Substitution is a method that helps us predict that extra step (given by the chain rule) and prepare for it accordingly.

How to Use Integration by Substitution

Given an integral of the form: \int f(g(x))g'(x)dx, integration by substitution consists on defining a new function t=g(x). We cannot just replace g(x) by t because we still have the dx factor of the integral. To fix this, we also need to substitute the dx. If we derive each side according to its own variable, we get:

    \[dt=g'(x)dx\]


Therefore, we can substitute both x and dx in the original integral to get:

    \[\int f(g(x))g'(x)dx=\int f(t)dt\]


This will result in an easier integral to use. Below is the formal statement and proof, as an optional read.

Theorem (Integration by Substitution): Let g(x) be a differentiable function and let f(u) be a continuous function where u = g(x). Then, the integral of their composite product can be expressed as:

    \[\int f\big(g(x)\big)g'(x) \, dx = \int f(u) \, du\]

Example: Find the integral \int (x+3)^5dx.

Example: Find the integral \int \cos(2x)dx.

Example: Find the integral \int \frac{x}{x+1} dx.

Not every substitution will be evident and we could also choose the wrong function to substitution. We will know this is the case if after replacing we are left somewhere with the old variable.

When Substitution is Immediate/Not Necessary

When instead of an x your variable is a translation of x, so x+k with k a constant, the substitution should be immediate.

Example: Find the integral \int \frac{x}{x+1} dx without using substitution.

Check Your Understanding (Substitution)

Integration by Parts

Just like substitution is the analogue to the chain rule, we have an analogue for the product rule. This is called integration by parts. It is used when you have an integral with a product of functions.

Theorem (Integration by Parts): If f(x) and g(x) are differentiable functions, then the integral of their product can be expressed as:

    \[\int f(x)\cdot g'(x) \, dx = f(x)g(x) - \int f'(x)\cdot g(x) \, dx\]

The way to use it is the following, look at your integral and choose what function you want to play the role of f(x) and which one plays the role of g'(x). Regardless of your choice, you will have to find f'(x) and g(x). Then, simply copy paste each function into its formula. If done correctly, you will be left with an integral that is easier.

Example: Find the integral \int x e^x dx.

Here we chose f(x) to be x because once we find its derivative, the x will disappear. Similarly, we do not want to choose g'(x) to be a function that we do not know how to integrate, so many of these examples are somewhat self-guiding.

Example: Find the integral \int x \sin(x) dx.

Example: Find the integral \int \ln(x) dx.

Special Cases of Integration by Parts

Some integrals will require you to use integration by parts twice (or even more). Otherwise, there is a common trick that is useful when the integration by parts creates an integral that is equally challenging as the first one. The examples below are meant to show you how to interact with those.

Example: Find the integral \int x^2 e^x dx using integration by parts twice.

Intuitively, as soon as we choose f(x)=x^2 we know that integration by parts will leave us with 2x in our next integral. Therefore, it should be clear that a second integration by parts will make the x disappear completely and leave us just with e^x.

Our next example is sometimes referred to as the “looping integral trick”. We recognise an expression that will recreate our original integral.

Example: Find the integral \int \sin(x) e^x dx.

Definite Integrals with Substitution and Integration by Parts

The techniques we have seen also have a counterpart when we use definite integrals (the Newton-Leibniz Theorem). For integration by parts, nothing changes. However, for substitution, the interval changes accordingly.

Theorem (Definite Integration by Substitution): If u = g(x) is a differentiable function on the interval [a, b] and f(u) is continuous, combining substitution with the Newton-Leibniz formula gives:

    \[\int_a^b f\big(g(x)\big)g'(x) \, dx = \int_{g(a)}^{g(b)} f(u) \, du\]

Example: Evaluate the definite integral \int_0^1 (2x + 1)^3 dx.

Theorem (Definite Integration by Parts): If f(x) and g(x) are differentiable functions on the closed interval [a, b], then combining integration by parts with the Newton-Leibniz formula gives:

    \[\int_a^b f(x)g'(x) \, dx = \Big[ f(x)g(x) \Big]_a^b - \int_a^b g(x)f'(x) \, dx\]

Example: Evaluate the definite integral \int_0^1 x e^x dx.

Exercises

Evaluate the following integrals using the suggested substitution t:

  1. \int (3x - 5)^{10} \, dx using the substitution t = 3x - 5
  2. \int e^{7x+2} \, dx using the substitution t = 7x+2
  3. \int \sin(4x) \, dx using the substitution t = 4x
  4. \int \frac{1}{2x+9} \, dx using the substitution t = 2x+9
  5. \int x \cdot e^{x^2} \, dx using the substitution t = x^2
  6. \int \cos(x) \cdot \sin^3(x) \, dx using the substitution t = \sin(x)
  7. \int \frac{2x}{x^2+1} \, dx using the substitution t = x^2+1
  8. \int \frac{1}{\sqrt{x+3}} \, dx using the substitution t = x+3

Evaluate these integrals by identifying the appropriate substitution yourself:

  1. \int 2x \cos(x^2) \, dx
  2. \int (x+1)(x^2+2x)^5 \, dx
  3. \int \frac{e^x}{e^x + 5} \, dx
  4. \int \frac{\ln(x)}{x} \, dx
  5. \int \sin(x) e^{\cos(x)} \, dx

Evaluate the following integrals using algebraic manipulation in the numerator (adding and subtracting the same constant) to separate the fractions.

Example Hint: For \frac{x}{x+2}, you can write \frac{x+2-2}{x+2}.

  1. \int \frac{x+1}{x+2} \, dx
  2. \int \frac{x}{x-1} \, dx
  3. \int \frac{x+3}{x+1} \, dx
  4. \int \frac{x-2}{x-3} \, dx

Evaluate the following integrals using the suggested u and dv:

  1. \int x e^{3x} dx (Let u=x, dv=e^{3x}dx)
  2. \int (2x+1) \cos(x) dx (Let u=2x+1, dv=\cos(x)dx)
  3. \int x^2 \ln(x) dx (Let u=\ln(x), dv=x^2 dx)
  4. \int \frac{\ln(x)}{x^2} dx (Let u=\ln(x), dv=x^{-2} dx)

Identify u and dv and evaluate the following:

  1. \int x \cos(2x) dx
  2. \int 2x e^{-x} dx
  3. \int \ln(2x) dx
  4. \int x^5 \ln(x) dx

Evaluate the following definite integrals using the appropriate technique (substitution or integration by parts):

  1. \int_0^2 x(x^2 + 1)^3 \, dx
  2. \int_1^e \ln(x) \, dx
  3. \int_0^{\pi/2} \sin(2x) \, dx

Evaluate the following integrals using integration by parts twice, then gather the target integral on the left-hand side to solve:

  1. \int e^x \cos(x) \, dx
  2. \int e^{2x} \sin(x) \, dx

Evaluate the following integrals by applying the integration by parts method successively two times:

  1. \int x^2 \cos(x) \, dx
  2. \int x^2 e^{-x} \, dx
error: Content is protected!