# Integration by substitution

In calculusintegration by substitution, also known as u-substitution, is a method for finding integrals. Using the fundamental theorem of calculus often requires finding an antiderivative. For this and other reasons, integration by substitution is an important tool in mathematics. It is the counterpart to the chain rule for differentiation.

## Substitution for a single variable

### Proposition

Let I ⊆ R be an interval and φ : [a,b] → I be a differentiable function with integrable derivative. Suppose that f : I → R is a continuous function. Then

${displaystyle int _{varphi (a)}^{varphi (b)}f(u),du=int _{a}^{b}f(varphi (x))varphi '(x),dx.}$

In Leibniz notation, the substitution u = φ(x) yields

${displaystyle {frac {du}{dx}}=varphi '(x).}$

Working heuristically with infinitesimals yields the equation

${displaystyle du=varphi '(x),dx,}$

which suggests the substitution formula above. (This equation may be put on a rigorous foundation by interpreting it as a statement about differential forms.) One may view the method of integration by substitution as a partial justification of Leibniz's notation for integrals and derivatives.

The formula is used to transform one integral into another integral that is easier to compute. Thus, the formula can be used from left to right or from right to left in order to simplify a given integral. When used in the latter manner, it is sometimes known as u-substitution or w-substitution.

### Proof

Integration by substitution can be derived from the fundamental theorem of calculus as follows. Let f and φ be two functions satisfying the above hypothesis that f is continuous on Iand φ is integrable on the closed interval [a,b]. Then the function f(φ(x))φ′(x) is also integrable on [a,b]. Hence the integrals

${displaystyle int _{varphi (a)}^{varphi (b)}f(u),du}$

and

${displaystyle int _{a}^{b}f(varphi (x))varphi '(x),dx}$

in fact exist, and it remains to show that they are equal.

Since f is continuous, it has an antiderivative F. The composite function F ∘ φ is then defined. Since φ is differentiable, combining the chain rule and the definition of an antiderivative gives

${displaystyle (Fcirc varphi )'(x)=F'(varphi (x))varphi '(x)=f(varphi (x))varphi '(x).}$

Applying the fundamental theorem of calculus twice gives

{displaystyle {egin{aligned}int _{a}^{b}f(varphi (x))varphi '(x),dx&=int _{a}^{b}(Fcirc varphi )'(x),dx\&=(Fcirc varphi )(b)-(Fcirc varphi )(a)\&=F(varphi (b))-F(varphi (a))\&=int _{varphi (a)}^{varphi (b)}f(u),du,end{aligned}}}

which is the substitution rule.

### Examples

#### Example 1: from right to left

Consider the integral

${displaystyle int _{0}^{2}xcos(x^{2}+1),dx.}$

If we apply the formula from right to left and make the substitution u = φ(x) = x2 + 1, we obtain du = 2x dx and hence x dx = ½du. Therefore

{displaystyle {egin{aligned}int _{x=0}^{x=2}xcos(x^{2}+1),dx&={frac {1}{2}}int _{u=1}^{u=5}cos(u),du\&={frac {1}{2}}(sin(5)-sin(1)).end{aligned}}}

Since the lower limit x = 0 was replaced with u = 02 + 1 = 1, and the upper limit x = 2 replaced with u = 22 + 1 = 5, a transformation back into terms of x was unnecessary.

#### Example 2: from left to right

For the integral

${displaystyle int _{0}^{1}{sqrt {1-x^{2}}},dx,}$

the formula needs to be used from left to right. The substitution x = sin(u)dx = cos(u) du is useful because ${displaystyle {sqrt {1-sin ^{2}u}}=cos(u)}$:

{displaystyle {egin{aligned}int _{0}^{1}{sqrt {1-x^{2}}},dx&=int _{0}^{pi /2}{sqrt {1-sin ^{2}u}}cos(u),du\&=int _{0}^{pi /2}cos ^{2}u,du\&=left({frac {u}{2}}+{frac {sin(2u)}{4}} ight){Bigg vert }_{0}^{pi /2}\&={frac {pi }{4}}+0={frac {pi }{4}}.end{aligned}}}

The resulting integral can be computed using integration by parts or a double angle formula followed by one more substitution. One can also note that the function being integrated is the upper right quarter of a circle with a radius of one, and hence integrating the upper right quarter from zero to one is the geometric equivalent to the area of one quarter of the unit circle, or π / 4.

#### Example 3: antiderivatives

Substitution can be used to determine antiderivatives. One chooses a relation between x and u, determines the corresponding relation between dx and du by differentiating, and performs the substitutions. An antiderivative for the substituted function can hopefully be determined; the original substitution between u and x is then undone.

Similar to our first example above, we can determine the following antiderivative with this method:

{displaystyle {egin{aligned}int xcos(x^{2}+1),dx&={frac {1}{2}}int 2xcos(x^{2}+1),dx\&={frac {1}{2}}int cos u,du\&={frac {1}{2}}sin u+C={frac {1}{2}}sin(x^{2}+1)+C,end{aligned}}}

where C is an arbitrary constant of integration.

Note that there were no integral boundaries to transform, but in the last step we had to revert the original substitution u = x2 + 1.

## Substitution for multiple variables

One may also use substitution when integrating functions of several variables. Here the substitution function (v1,...,vn) = φ(u1, ..., un) needs to be injective and continuously differentiable, and the differentials transform as

${displaystyle dv_{1}cdots dv_{n}=|det(Dphi )(u_{1},ldots ,u_{n})|,du_{1}cdots du_{n},}$

where det()(u1, ..., un) denotes the determinant of the Jacobian matrix of partial derivatives of φ at the point (u1, ..., un). This formula expresses the fact that the absolute valueof the determinant of a matrix equals the volume of the parallelotope spanned by its columns or rows.

More precisely, the change of variables formula is stated in the next theorem:

Theorem. Let U be an open set in Rn and φ : U → Rn an injective differentiable function with continuous partial derivatives, the Jacobian of which is nonzero for every x in U. Then for any real-valued, compactly supported, continuous function f, with support contained in φ(U),

${displaystyle int _{varphi (U)}f(mathbf {v} ),dmathbf {v} =int _{U}f(varphi (mathbf {u} ))left|det(Dvarphi )(mathbf {u} ) ight|,dmathbf {u} .}$

The conditions on the theorem can be weakened in various ways. First, the requirement that φ be continuously differentiable can be replaced by the weaker assumption that φ be merely differentiable and have a continuous inverse (Rudin 1987, Theorem 7.26). This is guaranteed to hold if φ is continuously differentiable by the inverse function theorem. Alternatively, the requirement that det() ≠ 0 can be eliminated by applying Sard's theorem (Spivak 1965).

For Lebesgue measurable functions, the theorem can be stated in the following form (Fremlin 2010, Theorem 263D):

Theorem. Let U be a measurable subset of Rn and φ : U → Rn an injective function, and suppose for every x in U there exists φ′(x) in Rn,n such that φ(y) = φ(x) + φ′(x)(y − x) + o(||y − x||) as y → x (here o is little-o notation). Then φ(U) is measurable, and for any real-valued function f defined on φ(U),

${displaystyle int _{varphi (U)}f(v),dv=int _{U}f(varphi (u))left|det varphi '(u) ight|,du}$

in the sense that if either integral exists (including the possibility of being properly infinite), then so does the other one, and they have the same value.

Another very general version in measure theory is the following (Hewitt & Stromberg 1965, Theorem 20.3):

Theorem. Let X be a locally compact Hausdorff space equipped with a finite Radon measure μ, and let Y be a σ-compact Hausdorff space with a σ-finite Radon measure ρ. Let φ : X → Y be a continuous and absolutely continuous function (where the latter means that ρ(φ(E)) = 0 whenever μ(E) = 0). Then there exists a real-valued Borel measurable function w on X such that for every Lebesgue integrable function f : Y → R, the function (f ∘ φ) ⋅ w is Lebesgue integrable on X, and

${displaystyle int _{Y}f(y),d ho (y)=int _{X}(fcirc varphi )(x),w(x),dmu (x).}$

Furthermore, it is possible to write

${displaystyle w(x)=(gcirc varphi )(x)}$

for some Borel measurable function g on Y.

In geometric measure theory, integration by substitution is used with Lipschitz functions. A bi-Lipschitz function is a Lipschitz function φ : U → Rn which is injective and whose inverse function φ−1 : φ(U) → U is also Lipschitz. By Rademacher's theorem a bi-Lipschitz mapping is differentiable almost everywhere. In particular, the Jacobian determinant of a bi-Lipschitz mapping det  is well-defined almost everywhere. The following result then holds:

Theorem. Let U be an open subset of Rn and φ : U → Rn be a bi-Lipschitz mapping. Let f : φ(U) → R be measurable. Then

${displaystyle int _{U}(fcirc varphi )(x)|det Dvarphi (x)|,dx=int _{varphi (U)}f(x),dx}$

in the sense that if either integral exists (or is properly infinite), then so does the other one, and they have the same value.

The above theorem was first proposed by Euler when he developed the notion of double integrals in 1769. Although generalized to triple integrals by Lagrange in 1773, and used by LegendreLaplaceGauss, and first generalized to n variables by Mikhail Ostrogradski in 1836, it resisted a fully rigorous formal proof for a surprisingly long time, and was first satisfactorily resolved 125 years later, by Élie Cartan in a series of papers beginning in the mid-1890s (Katz 1982Ferzola 1994).

## Application in probability

Substitution can be used to answer the following important question in probability: given a random variable ${displaystyle X}$ with probability density ${displaystyle p_{X}}$ and another random variable ${displaystyle Y}$ related to ${displaystyle X}$ by the equation ${displaystyle y=phi (x)}$, what is the probability density for ${displaystyle Y}$?

It is easiest to answer this question by first answering a slightly different question: what is the probability that ${displaystyle Y}$ takes a value in some particular subset ${displaystyle S}$? Denote this probability ${displaystyle P(Yin S)}$. Of course, if ${displaystyle Y}$ has probability density ${displaystyle p_{Y}}$ then the answer is

${displaystyle P(Yin S)=int _{S}p_{Y}(y),dy,}$

but this isn't really useful because we don't know ${displaystyle p_{Y}}$; it's what we're trying to find. We can make progress by considering the problem in the variable ${displaystyle X}$${displaystyle Y}$ takes a value in ${displaystyle S}$whenever ${displaystyle X}$ takes a value in ${displaystyle phi ^{-1}(S)}$, so

${displaystyle P(Yin S)=int _{phi ^{-1}(S)}p_{X}(x),dx.}$

Changing from variable ${displaystyle x}$ to ${displaystyle y}$ gives

${displaystyle P(Yin S)=int _{phi ^{-1}(S)}p_{X}(x),dx=int _{S}p_{X}(phi ^{-1}(y))left|{frac {dphi ^{-1}}{dy}} ight|,dy.}$

Combining this with our first equation gives

${displaystyle int _{S}p_{Y}(y),dy=int _{S}p_{X}(phi ^{-1}(y))left|{frac {dphi ^{-1}}{dy}} ight|,dy,}$

so

${displaystyle p_{Y}(y)=p_{X}(phi ^{-1}(y))left|{frac {dphi ^{-1}}{dy}} ight|.}$

In the case where ${displaystyle X}$ and ${displaystyle Y}$ depend on several uncorrelated variables, i.e. ${displaystyle p_{X}=p_{X}(x_{1},ldots ,x_{n})}$ and ${displaystyle y=phi (x)}$${displaystyle p_{Y}}$ can be found by substitution in several variables discussed above. The result is

${displaystyle p_{Y}(y)=p_{X}(phi ^{-1}(y))left|det Dphi ^{-1}(y) ight|.}$

## قسم الرياضيات

### التوقيت والتقويم

```

_time.start(["thetimenow"]);
```

```
```

```

```

```

```

### للتواصل

1. الهاتف : 0164044771

تحويلة: 4771

(QR Code)

mailto:mm.mousa@mu.edu.sa

### إعلانات

1- الاختبار الفصلى الثانى لمقرر التحليل العددى (يوم الاحد الموافق 3 / 7/ 1440 هـ)

2- الاختبار الفصلى الثانى لمقررحساب المتجهات (يوم الثلاثاء الموافق 5 / 7 / 1440 هـ)

الأثنين: 10 - 12

الثلاثاء: 8 - 10

الأربعاء: 8 - 10

### آلة حاسبة

```

```

### إحصائية الموقع

عدد الصفحات: 258

البحوث والمحاضرات: 155

الزيارات: 101256