Introduction (indefinite integrals) Before stating the result
rigorously, consider a simple case using
indefinite integrals. Compute \int(2x^3+1)^7(x^2)\,dx. Set u=2x^3+1. This means \frac{du}{dx}=6x^2, or as a
differential form, du=6x^2\,dx. Now: \begin{aligned} \int(2x^3 +1)^7(x^2)\,dx &= \frac{1}{6}\int\underbrace{(2x^3+1)^{7}}_{u^{7}}\underbrace{(6x^2)\,dx}_{du} \\ &= \frac{1}{6}\int u^{7}\,du \\ &= \frac{1}{6}\left(\frac{1}{8}u^{8}\right)+C \\ &= \frac{1}{48}(2x^3+1)^{8}+C, \end{aligned} where C is an arbitrary
constant of integration. 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. \frac{d}{dx}\left[\frac{1}{48}(2x^3+1)^{8}+C\right] = \frac{1}{6}(2x^3+1)^{7}(6x^2) = (2x^3+1)^7(x^2). For definite integrals, the limits of integration must also be adjusted, but the procedure is mostly the same.
Statement for definite integrals Let g:[a,b]\to I be a
differentiable function with a
continuous derivative, where I \subset \mathbb{R} is an
interval. Suppose that f:I\to\mathbb{R} is a
continuous function. Then: \int_a^b f(g(x))\cdot g'(x)\, dx = \int_{g(a)}^{g(b)} f(u)\ du. In Leibniz notation, the substitution u=g(x) yields: \frac{du}{dx} = g'(x). Working heuristically with
infinitesimals yields the equation du = g'(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 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.
Proof Integration by substitution can be derived from the
fundamental theorem of calculus as follows. Let f and g be two functions satisfying the above hypothesis that f is continuous on I and g' is integrable on the closed interval [a,b]. Then the function f(g(x))\cdot g'(x) is also integrable on [a,b]. Hence the integrals \int_a^b f(g(x))\cdot g'(x)\ dx and \int_{g(a)}^{g(b)} f(u)\ du 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 \circ g is then defined. Since g is differentiable, combining the
chain rule and the definition of an antiderivative gives: (F \circ g)'(x) = F'(g(x)) \cdot g'(x) = f(g(x)) \cdot g'(x). Applying the
fundamental theorem of calculus twice gives: \begin{align} \int_a^b f(g(x)) \cdot g'(x)\ dx &= \int_a^b (F \circ g)'(x)\ dx \\ &= (F \circ g)(b) - (F \circ g)(a) \\ &= F(g(b)) - F(g(a)) \\ &= \int_{g(a)}^{g(b)} F'(u)\, du = \int_{g(a)}^{g(b)} f(u)\, du, \end{align} which is the substitution rule.
Examples: Antiderivatives (indefinite integrals) 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 x and u is then undone.
Example 1 Consider the integral: \int x \cos(x^2+1)\ dx. Make the substitution u = x^{2} + 1 to obtain du = 2x\ dx, meaning x\ dx = \frac{1}{2}\ du. Therefore: \begin{align} \int x \cos(x^2+1) \,dx &= \frac{1}{2} \int 2x \cos(x^2+1) \,dx \\[6pt] &= \frac{1}{2} \int\cos u\,du \\[6pt] &= \frac{1}{2}\sin u + C \\[6pt] &= \frac{1}{2}\sin(x^2+1) + C, \end{align} where C is an arbitrary
constant of integration.
Example 2: Antiderivatives of tangent and cotangent The
tangent function can be integrated using substitution by expressing it in terms of the sine and cosine: \tan x = \tfrac{\sin x}{\cos x}. Using the substitution u = \cos x gives du = -\sin x\,dx and \begin{align} \int \tan x \,dx &= \int \frac{\sin x}{\cos x} \,dx \\ &= \int -\frac{du}{u} \\ &= -\ln \left|u\right| + C \\ &= -\ln \left|\cos x\right| + C \\ &= \ln \left|\sec x\right| + C. \end{align} The
cotangent function can be integrated similarly by expressing it as \cot x = \tfrac{\cos x}{\sin x} and using the substitution u = \sin{x}, du = \cos{x}\,dx: \begin{align} \int \cot x \,dx &= \int \frac{\cos x}{\sin x} \,dx \\ &= \int \frac{du}{u} \\ &= \ln \left|u\right| + C \\ &= \ln \left|\sin x\right| + C. \end{align}
Examples: Definite integrals 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.
Example 1 Consider the integral: \int_0^2 \frac{x}{\sqrt{x^2+1}} dx. Make the substitution u = x^{2} + 1 to obtain du = 2x\ dx, meaning x\ dx = \frac{1}{2}\ du. Therefore: \begin{align} \int_{x=0}^{x=2} \frac{x}{\sqrt{x^2+1}} \ dx &= \frac{1}{2} \int_{u=1}^{u=5} \frac{du}{\sqrt{u}} \\[6pt] &= \frac{1}{2} \left(2\sqrt{5}-2\sqrt{1}\right) \\[6pt] &= \sqrt{5}-1. \end{align} Since the lower limit x = 0 was replaced with u = 1, and the upper limit x = 2 with 2^{2} + 1 = 5, a transformation back into terms of x was unnecessary. ==== Example 2:
Trigonometric substitution ==== For the integral \int_0^1 \sqrt{1-x^2}\,dx, a variation of the above procedure is needed. The substitution x = \sin u implying dx = \cos u \,du is useful because \sqrt{1-\sin^2 u} = \cos u. We thus have: \begin{align} \int_0^1 \sqrt{1-x^2}\ dx &= \int_0^{\pi/2} \sqrt{1-\sin^2 u} \cos u\ du \\[6pt] &= \int_0^{\pi/2} \cos^2 u\ du \\[6pt] &= \left[\frac{u}{2} + \frac{\sin(2u)}{4}\right]_0^{\pi/2} \\[6pt] &= \frac{\pi}{4} + 0 \\[6pt] &= \frac{\pi}{4}. \end{align} The resulting integral can be computed using
integration by parts or a
double angle formula, 2\cos^{2} u = 1 + \cos (2u), 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 \pi 4. == Substitution for multiple variables ==