In calculus, integration by substitution, also known as u-substitution, reverse chain rule or change of variables, is a method for evaluating integrals and antiderivatives. It is the counterpart to the chain rule for differentiation, and can loosely be thought of as using the chain rule "backwards."
Before stating the result rigorously, consider a simple case using indefinite integrals.
Compute
Set
u=2x3+1.
C
This procedure is frequently used, but not all integrals are of a form that permits its use. In any event, the result should be verified by differentiating and comparing to the original integrand.For definite integrals, the limits of integration must also be adjusted, but the procedure is mostly the same.
Let
g:[a,b]\toI
I\subsetR
f:I\toR
In Leibniz notation, the substitution
u=g(x)
The formula is used to transform one integral into another integral that is easier to compute. Thus, the formula can be read from left to right or from right to left in order to simplify a given integral. When used in the former manner, it is sometimes known as u-substitution or w-substitution in which a new variable is defined to be a function of the original variable found inside the composite function multiplied by the derivative of the inner function. The latter manner is commonly used in trigonometric substitution, replacing the original variable with a trigonometric function of a new variable and the original differential with the differential of the trigonometric function.
Integration by substitution can be derived from the fundamental theorem of calculus as follows. Let
f
g
f
I
g'
[a,b]
f(g(x)) ⋅ g'(x)
[a,b]
Since
f
F
F\circg
g
Applying the fundamental theorem of calculus twice gives:which is the substitution rule.
Substitution can be used to determine antiderivatives. One chooses a relation between
x
u,
dx
du
x
u
Consider the integral:Make the substitution to obtain
du=2x dx,
C
The tangent function can be integrated using substitution by expressing it in terms of the sine and cosine:
\tanx=\tfrac{\sinx}{\cosx}
Using the substitution
u=\cosx
du=-\sinxdx
The cotangent function can be integrated similarly by expressing it as
\cotx=\tfrac{\cosx}{\sinx}
u=\sin{x},du=\cos{x}dx
When evaluating definite integrals by substitution, one may calculate the antiderivative fully first, then apply the boundary conditions. In that case, there is no need to transform the boundary terms. Alternatively, one may fully evaluate the indefinite integral (see above) first then apply the boundary conditions. This becomes especially handy when multiple substitutions are used.
Consider the integral:Make the substitution to obtain
du=2x dx,
x=0
u=1,
x=2
22+1=5,
x
For the integrala variation of the above procedure is needed. The substitution
x=\sinu
dx=\cosudu
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
\tfrac\pi4.
One may also use substitution when integrating functions of several variables.
Here, the substitution function needs to be injective and continuously differentiable, and the differentials transform as:where denotes the determinant of the Jacobian matrix of partial derivatives of at the point . This formula expresses the fact that the absolute value of 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:
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. This is guaranteed to hold if is continuously differentiable by the inverse function theorem. Alternatively, the requirement that can be eliminated by applying Sard's theorem.
For Lebesgue measurable functions, the theorem can be stated in the following form:
Another very general version in measure theory is the following:
In geometric measure theory, integration by substitution is used with Lipschitz functions. A bi-Lipschitz function is a Lipschitz function which is injective and whose inverse function 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 is well-defined almost everywhere. The following result then holds:
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 Legendre, Laplace, and Gauss, and first generalized to variables by Mikhail Ostrogradsky 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.
Substitution can be used to answer the following important question in probability: given a random variable with probability density and another random variable such that for injective (one-to-one) what is the probability density for ?
It is easiest to answer this question by first answering a slightly different question: what is the probability that takes a value in some particular subset ? Denote this probability Of course, if has probability density, then the answer is:but this is not really useful because we do not know it is what we are trying to find. We can make progress by considering the problem in the variable . takes a value in whenever takes a value in so:
Changing from variable to gives:Combining this with our first equation gives:so:
In the case where and depend on several uncorrelated variables (i.e., and
y=\phi(x)
pY