Integration by Substitution

Integration by substitution is a technique used to simplify an integral by introducing a suitable substitution.

How substitution simplifies integration

Integration by substitution is a technique used to simplify an integral by introducing a suitable substitution. When the integral is not straightforward to compute, this method proves highly useful as it allows rewriting the integral of a function $f ( x )$ in terms of a new variable $u$, simplifying the computation:

\[\int f ( g ( x ) ) g^{'} ( x ) d x = \int f ( u ) d u\]

The process involves the following steps:

  • Introduce a change of variable by defining $u = g ( x )$, where $g ( x )$ is an appropriately chosen function.
  • Compute the differential transformation, given by $d u = g^{‘} ( x ) d x .$
  • Rewrite the integral in terms of $u$, replacing $x$ and $d x$ accordingly, to obtain an equivalent expression that is often more straightforward to solve.
  • Once the integral is evaluated, revert to the original variable $x$ to express the final result in its initial form.
The key insight is that substitution reverses the chain rule: recognizing this connection makes it easier to identify when and how to apply the technique.

The method of substitution is a direct consequence of the chain rule for derivatives. If $F ( x ) = H ( g ( x ) )$, then by the chain rule:

\[F^{'} ( x ) = H^{'} ( g ( x ) ) g^{'} ( x ) .\]

Therefore, whenever an integrand has the form $H^{‘} ( g ( x ) ) g^{‘} ( x )$ it is the derivative of the composite function $H ( g ( x ) )$. Integration by substitution simply reverses this process by introducing $u = g ( x )$, reducing the integral to:

\[\int H^{'} ( u ) d u = H ( u ) + c .\]

Recognizing when to use substitution

Before proceeding to concrete examples, it is useful to understand when a substitution is likely to be effective. The technique is most natural when the integrand contains a composite function. In many cases, the integral has the general form:

\[f ( g ( x ) ) g^{'} ( x )\]

or differs from it only by a constant factor. When this pattern appears, choosing $u = g ( x )$ simplifies the expression by reducing the composite structure to a single variable. A common signal is the presence of expressions such as $( a x + b )^{n}$, $\sqrt{a x + b}$, $ln ⁡ ( a x + b )$ or $e^{a x + b}$. In these cases, the inner linear function $a x + b$ is often a natural candidate for substitution. Similarly, in rational expressions of the form:

\[\frac{g^{'} ( x )}{g ( x )}\]

the derivative of the denominator suggests the substitution $u = g ( x )$.

In practice, the key idea is to look for an inner expression whose derivative also appears, exactly or up to a multiplicative constant, elsewhere in the integrand. When such a relationship is present, substitution typically transforms the integral into a simpler and more manageable form.

Substitution patterns

   
\(\int f ( g ( x ) ) g^{'} ( x ) d x\) \(u = g ( x )\)
\(\int ( a x + b )^{n} d x\) \(u = a x + b\)
\(\int e^{a x + b}\) \(u = a x + b\)
\(\int ln ⁡ ( a x + b ) d x\) \(u = a x + b\)
\(\int \frac{g^{'} ( x )}{g ( x )} d x\) \(u = g ( x )\)

Example 1

Let’s consider the following integral:

\[\int ( 2 x + 1 )^{3} d x\]

Let $u = 2 x + 1$, which simplifies the exponentiation. Differentiating both sides with respect to $x$ we have: \(d u = 2 d x\)

Solving for $d x$ we obtain: \(d x = \frac{d u}{2}\)


Expressing the integral entirely in terms of $u$:

\[\int u^{3} \cdot \frac{d u}{2} = \frac{1}{2} \int u^{3} d u\]

We now proceed to solve the integral in $u$, which has been reduced to a basic integral of the form $x^{a}$. We obtain:

\[\frac{1}{2} \cdot \frac{u^{4}}{4} + c = \frac{1}{8} u^{4} + c\]

Substituting back $u = 2 x + 1$, we get the final solution:

\[\frac{1}{8} ( 2 x + 1 )^{4} + c\]

Example 2

Let’s consider another example by evaluating the following integral.

\[\int \frac{1}{3 x - 5} d x\]

Let $u = 3 x - 5$, which simplifies the denominator. Differentiating both sides with respect to $x$, we have: \(d u = 3 d x\)

Solving for $d x$, we obtain: \(d x = \frac{d u}{3}\)


Expressing the integral entirely in terms of $u$:

\[\int \frac{1}{u} \cdot \frac{d u}{3} = \frac{1}{3} \int \frac{d u}{u}\]

We now proceed to solve the integral in $u$, which has been reduced to a basic integral of the form $1 / x$. We obtain:

\[\frac{1}{3} ln ⁡ | u | + c\]

Substituting back $u = 3 x - 5$, we get the final result:

\[\frac{1}{3} ln ⁡ | 3 x - 5 | + c\]
As shown in the examples above, integration by substitution is an effective technique, but selecting the right substitution requires practice and the ability to recognize the structure of the integrand.

Example 3

Let’s consider another example by evaluating the following integral: \(\int x sin ⁡ ( x^{2} ) d x\)


At first, identifying an appropriate substitution to facilitate the evaluation of the integral may not be straightforward. However, we will proceed systematically to transform the given integral into a more manageable form and obtain the desired result. Let $u = x^{2}$, which simplifies the argument of the sine function. Differentiating both sides with respect to $x$, we get: \(d u = 2 x d x\)

Solving for $d x$ we obtain: \(d x = \frac{d u}{2 x}\)


Rewriting everything in terms of $u$, and since $d u = 2 x d x$, we have:

\[\int x sin ⁡ ( u ) \cdot \frac{d u}{2 x} = \frac{1}{2} \int sin ⁡ ( u ) d u\]

We now proceed to solve the integral in $u$, which has been reduced to a basic integral of the form $sin ⁡ u$:

\[\int sin ⁡ u d u = - cos ⁡ u\]

Thus:

\[\frac{1}{2} ( - cos ⁡ u ) + c = - \frac{1}{2} cos ⁡ u + c\]

Substituting back $u = x^{2}$, we obtain the final result:

\[- \frac{1}{2} cos ⁡ ( x^{2} ) + c\]

Example 4

Let’s consider the following integral: \(\int cos ⁡ x \sqrt{sin ⁡ x} d x\)


Let $u = sin ⁡ x$, which simplifies the square root term. Differentiating both sides with respect to $x$, we get:

\[d u = cos ⁡ x d x\]

Since $d u = cos ⁡ x d x$, we can directly substitute into the integral.


Substituting $u = sin ⁡ x$ and $d u = cos ⁡ x d x$ directly into the integral, we obtain:

\[\int \sqrt{u} d u = \int u^{1 / 2} d u\]

We have thus transformed the integral into a simple form of the type $x^{a}$.


We now proceed to compute the integral:

\[\int u^{1 / 2} d u = \frac{u^{3 / 2}}{\frac{3}{2}} = \frac{2}{3} u^{3 / 2} + c\]

Substituting back $u = sin ⁡ x$, we obtain the final result:

\[\frac{2}{3} ( sin ⁡ x )^{3 / 2} + c\]

Trigonometric substitutions

Let’s make things a bit more challenging and analyze the case where it is convenient to perform a trigonometric substitution to simplify an integral involving polynomial, rational, or algebraic expressions. This step is less intuitive; however, understanding it allows us to reduce seemingly more complex integrals to a simplified form. In general, this type of substitution is particularly useful when the integral contains a polynomial expression that can be rewritten using the fundamental trigonometric identity:

\[sin^{2} ⁡ x + cos^{2} ⁡ x = 1\]

which can be expressed in the following forms:

\[cos^{2} ⁡ x & = 1 - sin^{2} ⁡ x \\ sec^{2} ⁡ x & = 1 + tan^{2} ⁡ x \\ tan^{2} ⁡ x & = sec^{2} ⁡ x - 1\]

To simplify an integral, choose an appropriate substitution based on the expression present in the function:

  • If the function contains $1 - x^{2}$, use $x = sin ⁡ u$.
  • If the function contains $1 + x^{2}$, use $x = tan ⁡ u$.
  • If the function contains $x^{2} - 1$, use $x = sec ⁡ u$.
A complete and systematic discussion of trigonometric substitution, including the geometric rationale and fully worked examples, is presented in the dedicated section Trigonometric Substitution for Integrals.

Example 5

Let’s consider the following integral:

\[\int \frac{1}{\sqrt{9 - x^{2}}} d x\]

A common substitution for expressions of the form $a^{2} - x^{2}$ is in this case:

\[x = 3 sin ⁡ u\]

Differentiating both sides:

\[d x = 3 cos ⁡ u d u\]

Substituting $x = 3 sin ⁡ u$ in the denominator:

\[\sqrt{9 - x^{2}} = \sqrt{9 - 9 sin^{2} ⁡ u} = \sqrt{9 ( 1 - sin^{2} ⁡ u )}\]

By the fundamental property of trigonometry, we have:

\[sin^{2} ⁡ x + cos^{2} ⁡ x = 1\]

We obtain:

\[\sqrt{9 ( 1 - sin^{2} ⁡ u )} = \sqrt{9 cos^{2} ⁡ u} = 3 cos ⁡ u\]

Thus, the integral transforms into:

\[\int \frac{3 cos ⁡ u d u}{3 cos ⁡ u} = \int d u = u + c\]
Note that this step assumes $cos ⁡ u \geq 0$, which holds since the substitution $x = 3 sin ⁡ u$ implies $u \in [ - \pi / 2 , \pi / 2 ]$.

From our substitution $x = 3 sin ⁡ u$, we solve for $u$. By applying the inverse sine function arcsin, we obtain:

\[u = arcsin ⁡ ( \frac{x}{3} )\]

Thus, the final result is:

\[arcsin ⁡ ( \frac{x}{3} ) + c\]

Substitution rule for definite integrals

When applying the substitution rule to evaluate definite integrals, it is crucial to adjust the limits of integration accordingly. The new limits must correspond to the substituted variable rather than the original one. If the limits are not changed, the evaluation of the definite integral will yield an incorrect result. We have:

\[\int_{a}^{b} f ( g ( x ) ) g^{'} ( x ) d x = \int_{g ( a )}^{g ( b )} f ( u ) d u\]

Example 6

Evaluate the definite integral:

\[\int_{0}^{1} x cos ⁡ ( x^{2} ) d x\]

Using the substitution $u = x^{2}$, we get: \(d u = 2 x d x d x = \frac{d u}{2 x}\)


The next step is to determine the transformed limits of integration. This is done by substituting the original limits into the chosen substitution equation to express them in terms of the new variable. When $x = 0$, then $u = 0^{2} = 0$. When $x = 1$, then $u = 1^{2} = 1$. Note that in this case the limits happen to coincide with the original ones, but this is not generally the case. We obtain:

\[\int_{0}^{1} x cos ⁡ ( x^{2} ) d x = \int_{0}^{1} cos ⁡ u \cdot \frac{d u}{2}\]

We have: \(\frac{1}{2} \int_{0}^{1} cos ⁡ u d u\)

Next, we proceed with solving the integral by computing its exact value. \(\frac{1}{2} sin ⁡ u |_{0}^{1}\) \(\frac{1}{2} ( sin ⁡ 1 - sin ⁡ 0 ) = \frac{1}{2} ( sin ⁡ 1 )\)

Thus, the final result is:

\[\frac{sin ⁡ ( 1 )}{2}\]

Selected references