Lably
Skip to content

Integration by substitution

Technique in integral evaluation

  • 9 min read
  • 3 chapters

Related on Lably

Through Calculus, Integral and Antiderivative

Substitution for a single variable

Introduction (indefinite integrals)

Before stating the result rigorously, consider a simple case using indefinite integrals.

Compute ∫(2x3+1)7(x2)dx.

Set u=2x3+1. This means dudx=6x2, or as a differential form, du=6x2dx. Now consider ∫u7du.:

<span class="mwe-math-element mwe-math-element-inline" typeof="mw:Extension/math" about="#mwt32" data-mw='{"name":"math","attrs":{},"body":{"extsrc":"\\begin{aligned}\n \\int(2x^3 +1)^7(x^2)\\,dx \\\\\n = \\frac{1}{6}\\int\\underbrace{(2x^3+1)^{7}}_{u^{7}}\\underbrace{(6x^2)\\,dx}_{du} \\\\\n = \\frac{1}{6}\\int u^{7}\\,du \n = \\frac{1}{6}\\left(\\frac{1}{8}u^{8}\\right)+C \\\\\n = \\frac{1}{48}(2x^3+1)^{8}+C,\n\\end{aligned}"}}' id="mwJw"><span class="mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" class="mathjax_ignore" alttext="{\displaystyle {\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}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"> <mtr> <mtd> <mo>∫<!-- ∫ --></mo> <mo stretchy="false">(</mo> <mn>2</mn> <msup> <mi>x</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>3</mn> </mrow> </msup> <mo>+</mo> <mn>1</mn> <msup> <mo stretchy="false">)</mo> <mrow class="MJX-TeXAtom-ORD"> <mn>7</mn> </mrow> </msup> <mo stretchy="false">(</mo> <msup> <mi>x</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>2</mn> </mrow> </msup> <mo stretchy="false">)</mo> <mspace width="thinmathspace"></mspace> <mi>d</mi> <mi>x</mi> </mtd> </mtr> <mtr> <mtd> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mn>1</mn> <mn>6</mn> </mfrac> </mrow> <mo>∫<!-- ∫ --></mo> <munder> <mrow class="MJX-TeXAtom-OP MJX-fixedlimits"> <munder> <mrow> <mo stretchy="false">(</mo> <mn>2</mn> <msup> <mi>x</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>3</mn> </mrow> </msup> <mo>+</mo> <mn>1</mn> <msup> <mo stretchy="false">)</mo> <mrow class="MJX-TeXAtom-ORD"> <mn>7</mn> </mrow> </msup> </mrow> <mo>⏟<!-- ⏟ --></mo> </munder> </mrow> <mrow class="MJX-TeXAtom-ORD"> <msup> <mi>u</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>7</mn> </mrow> </msup> </mrow> </munder> <munder> <mrow class="MJX-TeXAtom-OP MJX-fixedlimits"> <munder> <mrow> <mo stretchy="false">(</mo> <mn>6</mn> <msup> <mi>x</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>2</mn> </mrow> </msup> <mo stretchy="false">)</mo> <mspace width="thinmathspace"></mspace> <mi>d</mi> <mi>x</mi> </mrow> <mo>⏟<!-- ⏟ --></mo> </munder> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mi>d</mi> <mi>u</mi> </mrow> </munder> </mtd> </mtr> <mtr> <mtd> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mn>1</mn> <mn>6</mn> </mfrac> </mrow> <mo>∫<!-- ∫ --></mo> <msup> <mi>u</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>7</mn> </mrow> </msup> <mspace width="thinmathspace"></mspace> <mi>d</mi> <mi>u</mi> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mn>1</mn> <mn>6</mn> </mfrac> </mrow> <mrow> <mo>(</mo> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mn>1</mn> <mn>8</mn> </mfrac> </mrow> <msup> <mi>u</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>8</mn> </mrow> </msup> </mrow> <mo>)</mo> </mrow> <mo>+</mo> <mi>C</mi> </mtd> </mtr> <mtr> <mtd> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mn>1</mn> <mn>48</mn> </mfrac> </mrow> <mo stretchy="false">(</mo> <mn>2</mn> <msup> <mi>x</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>3</mn> </mrow> </msup> <mo>+</mo> <mn>1</mn> <msup> <mo stretchy="false">)</mo> <mrow class="MJX-TeXAtom-ORD"> <mn>8</mn> </mrow> </msup> <mo>+</mo> <mi>C</mi> <mo>,</mo> </mtd> </mtr> </mtable> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\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}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/87f3d002c9d5201110c2e7b065d71f61e353c180" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -12.338ex; width:31.382ex; height:25.843ex;" alt="{\displaystyle {\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}}}"/></span>

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. ddx[148(2x3+1)8+C]=16(2x3+1)7(6x2)=(2x3+1)7(x2). 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]→I be a differentiable function with a continuous derivative, where I⊂R is an interval. Suppose that f:I→R is a continuous function. Then: ∫abf(g(x))⋅g′(x)dx=∫g(a)g(b)f(u)du.

In Leibniz notation, the substitution u=g(x) yields: dudx=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))⋅g′(x) is also integrable on [a,b]. Hence the integrals ∫abf(g(x))⋅g′(x)dx and ∫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∘g is then defined. Since g is differentiable, combining the chain rule and the definition of an antiderivative gives: (F∘g)′(x)=F′(g(x))⋅g′(x)=f(g(x))⋅g′(x).

Applying the fundamental theorem of calculus twice gives: ∫abf(g(x))⋅g′(x)dx=∫ab(F∘g)′(x)dx=(F∘g)(b)−(F∘g)(a)=F(g(b))−F(g(a))=∫g(a)g(b)F′(u)du=∫g(a)g(b)f(u)du, 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: ∫xcos⁡(x2+1)dx. Make the substitution u=x2+1 to obtain du=2xdx, meaning xdx=12du. Therefore: ∫xcos⁡(x2+1)dx=12∫2xcos⁡(x2+1)dx=12∫cos⁡udu=12sin⁡u+C=12sin⁡(x2+1)+C, 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=sin⁡xcos⁡x.

Using the substitution u=cos⁡x gives du=−sin⁡xdx and ∫tan⁡xdx=∫sin⁡xcos⁡xdx=∫−duu=−ln⁡|u|+C=−ln⁡|cos⁡x|+C=ln⁡|sec⁡x|+C.

The cotangent function can be integrated similarly by expressing it as cot⁡x=cos⁡xsin⁡x and using the substitution u=sin⁡x,du=cos⁡xdx: ∫cot⁡xdx=∫cos⁡xsin⁡xdx=∫duu=ln⁡|u|+C=ln⁡|sin⁡x|+C.

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: ∫02xx2+1dx. Make the substitution u=x2+1 to obtain du=2xdx, meaning xdx=12du. Therefore: ∫x=0x=2xx2+1dx=12∫u=1u=5duu=12(25−21)=5−1. Since the lower limit x=0 was replaced with u=1, and the upper limit x=2 with 22+1=5, a transformation back into terms of x was unnecessary.

Example 2: Trigonometric substitution

For the integral ∫011−x2dx, a variation of the above procedure is needed. The substitution x=sin⁡u implying dx=cos⁡udu is useful because 1−sin2⁡u=cos⁡u. We thus have: ∫011−x2dx=∫0π/21−sin2⁡ucos⁡udu=∫0π/2cos2⁡udu=[u2+sin⁡(2u)4]0π/2=π4+0=π4.

The resulting integral can be computed using integration by parts or a double angle formula, 2cos2⁡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 π4.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Calculus and analysis