Unit 6 · Topic 6.14

Choose an integration technique

Builds on basic antiderivatives, substitution and algebraic rewrites. 14 minutes.

  1. Example 1Recognize a direct antiderivative
  2. Example 2Choose substitution when it fits
  3. Example 3Choose an algebraic rewrite
  4. Example 4Choose among the remaining methods in your course
  5. Example 5Carry the chosen method through correctly

Topics 6.8 to 6.10 give three ways to find an antiderivative: the table of basic antiderivatives, substitution and a rewrite of the integrand. BC adds integration by parts and partial fractions (topics 6.11 and 6.12). An integral does not name its method, and a method used where it does not fit gives a wrong answer or none. This topic shows how to choose a method from the integrand, in what order to try them, and how to finish and check the work.

The integrand shows the method

Top: the graph of an integrand whose denominator is x squared plus 1, for x from −3 to 3. Buttons make its numerator 1, 2x or x squared. With the numerator 1, the graph is a bell that rises to 1 at x = 0. With 2x, it falls to −1 at x = −1, passes through the origin and rises to 1 at x = 1. With x squared, it is 0 at x = 0 and rises toward 1 on both sides. Below: a teal candidate antiderivative, arctan x, ln of (x squared plus 1) or x minus arctan x, with twelve short dashes on it whose slopes are the heights of the integrand. Each dash is orange where the teal curve runs along it. A button makes ln of (x squared plus 1) the candidate for every numerator. With the numerator 1, every dash then turns red, and a red dashed curve on the top graph shows the slope of that candidate, 2x over (x squared plus 1).

Figure 1The top graph is the integrand, a fraction with the denominator \(x^2+1\), and the teal curve below is a candidate antiderivative. The dashes on it have the heights of the integrand as slopes: orange where the curve runs along them, red where its slope differs. A red dashed curve on the top graph shows the slope of a candidate that does not fit.

In Figure 1, the top graph is the integrand \(\frac{1}{x^2+1}\). The teal curve below is a candidate, a function that may be an antiderivative of the integrand. Each short dash on the teal curve has the height of the integrand at its input as its slope. A function is an antiderivative exactly when its slope equals the integrand at every input of an interval (topic 6.8). A correct candidate therefore runs along every dash, so every dash is orange.

The integrand \(\frac{1}{x^2+1}\) matches a row of the table of basic antiderivatives (topic 6.8), so its antiderivatives are \(\cb{\arctan x}+C\). Use the buttons under Figure 1 to change the numerator. The denominator stays the same, but each new numerator needs a different method.

When the numerator is \(2x\), it is the derivative of the denominator \(x^2+1\). Substitution (topic 6.9) with \(u=x^2+1\), so that \(du=2x\,dx\), turns the integral into \(\int\frac{du}{u}\), which is \(\ln|u|+C\). Since \(u\ge 1\), the absolute value can be left out, and the teal curve is \(\cb{\ln\left(x^2+1\right)}\).

With the numerator \(x^2\), the top and the bottom have the same degree, so divide (topic 6.10). Because \(x^2=\left(x^2+1\right)-1\),

\[\frac{x^2}{x^2+1}=1-\frac{1}{x^2+1}\]

and the table gives the teal curve \(\cb{x-\arctan x}\). For each numerator, the teal curve runs along every dash.

Two of these three methods reverse derivative rules. The table reverses the basic derivatives, since on an interval a known derivative \(F'\) has the antiderivatives \(F+C\). Substitution reverses the chain rule. If \(F'=f\), the chain rule gives

\[\begin{aligned}\frac{d}{dx}F\big(g(x)\big)&=F'\big(g(x)\big)\,g'(x)\\&=f\big(g(x)\big)\,g'(x)\end{aligned}\]

so the antiderivatives of \(f\big(g(x)\big)\,g'(x)\) are \(F\big(g(x)\big)+C\), the substitution rule of topic 6.9. Substitution therefore fits an integrand that is a function of an inner function \(g(x)\) times its derivative \(g'(x)\), up to a constant factor. A rewrite \(r\) changes the formula of an integrand \(f\), not its values, so \(\int r(x)\,dx\) and \(\int f(x)\,dx\) are the same family (topic 6.10). It helps when the new formula fits the table or a substitution. To choose a method, ask which rule could produce the integrand. Look for a function whose derivative already appears in it.

A method used where it does not fit still gives a formula. Make the numerator 1 again. Then use the last button to make \(\ln\left(x^2+1\right)\) the candidate for every numerator. Every dash turns red. The slope of this candidate, the red dashed curve on the top graph, is \(\cr{\frac{2x}{x^2+1}}\), which is the integrand only when the numerator is \(2x\).

An order for the methods

Try the methods in order, from the least work to the most. The first that fits is the one to use. The table comes first. Split the integral into its terms and constant factors (topic 6.8). A term that matches a row needs no other method. Substitution comes second, when the derivative of an inner function is a factor of the integrand, up to a constant.

A rewrite comes third. The rewrites of topic 6.10 are expansion, division, identities and completing the square. Each aims at a formula that fits the table or a substitution. For example, \(\cos^3 x=\left(1-\sin^2 x\right)\cos x\) fits the substitution \(u=\sin x\), because \(\cos x\) is the derivative of \(\sin x\).

BC adds two methods, which AB does not use. Integration by parts (topic 6.11) reverses the product rule, \((uv)'=u'v+uv'\). As in substitution, \(u\) is a function of \(x\) and \(du=u'(x)\,dx\), and here \(dv=v'(x)\,dx\). Integrating both sides gives \(uv=\int v\,du+\int u\,dv\), so \(\int u\,dv=uv-\int v\,du\). Parts fits a product with one factor, \(u\), that becomes simpler when you differentiate it, and another, \(dv\), that you can integrate.

Partial fractions (topic 6.12) is a rewrite for a fraction whose bottom is \((x-p)(x-q)\) with \(p\ne q\). If the top is \(mx+n\), of lower degree, the fraction becomes \(\frac{A}{x-p}+\frac{B}{x-q}\) for two constants that topic 6.12 finds. Each term has a logarithm as its antiderivative. If the top has degree 2 or more, divide first.

These two methods come last, because they take more steps and can fail where a simpler method works. Partial fractions finds \(\int\frac{2x}{x^2-1}\,dx\), but substitution with \(u=x^2-1\) gives \(\ln\left|x^2-1\right|+C\) at once. In Example 4, substitution finishes \(\int x\,e^{x^2}dx\) in one line, but parts cannot start with \(dv=e^{x^2}\,dx\), and the choice \(u=e^{x^2}\) leads to the harder \(\int x^3e^{x^2}dx\).

No formula built from the functions of this course is an antiderivative of \(e^{x^2}\) or of \(\sin\left(x^2\right)\), although both functions are continuous. Every method of this topic therefore fails on them. The function \(\int_0^x e^{t^2}\,dt\) is still an antiderivative of \(e^{x^2}\), by the Fundamental Theorem of Calculus, Part 1 (topic 6.4). A definite integral of such a function can be estimated with a Riemann sum (topic 6.2).

Finishing and checking

The work is correct only if every step keeps the integral equal to the one before. In a substitution, keep every constant factor and every sign. With \(u=x^2+1\), \(du=2x\,dx\) gives \(x\,dx=\frac12\,du\). With \(u=\cos x\), \(du=-\sin x\,dx\) gives \(\sin x\,dx=-du\). Replace every \(x\), including a leftover factor, which you write in terms of \(u\). In a definite integral, the bounds change with the variable, unless you return to \(x\) before you use them (topic 6.9). An indefinite integral ends with one constant \(C\).

If \(f\) is continuous on \([a,b]\), with an antiderivative \(F\) there, the Fundamental Theorem of Calculus, Part 2 (topic 6.7), gives \(\int_a^b f(x)\,dx\) as \(F(b)-F(a)\). Before you evaluate, find where the integrand has no value. For example, \(F(x)=-\frac1x\) is an antiderivative of \(\frac{1}{x^2}\) on each side of 0. On \([-1,1]\), the theorem does not apply, because \(\frac{1}{x^2}\) has no value at 0. The difference \(F(1)-F(-1)\) is \(-2\), but \(\frac{1}{x^2}\) is positive wherever it has a value. In BC, such an integral is improper (topic 6.13).

Three tests catch many errors. First, the derivative of a candidate must equal the integrand at every input of the interval (topic 6.8). A test at one input is not enough. In Figure 1, with the numerator \(x^2\) and the candidate \(\ln\left(x^2+1\right)\), the dashes near \(x=2\) are almost orange, since \(x^2=2x\) at \(x=2\). Second, a continuous, positive integrand on \([a,b]\), with \(a<b\), gives a positive integral, the area of a region above the axis. Third, two methods that both fit give antiderivatives that differ by a constant (topic 6.8), so a second method can check the first.

Example 1

Recognize a direct antiderivative

Evaluate \(\displaystyle\int_0^{1/2}\frac{3}{\sqrt{1-x^2}}\,dx\).

Solution

On \(\left[0,\frac12\right]\), \(1-x^2\ge\frac34\), so the integrand is continuous. The root of \(1-x^2\) suggests the substitution \(u=1-x^2\), but its derivative \(-2x\) is not a factor of the integrand. A row of the table fits instead, because the integrand is 3 times \(\frac{1}{\sqrt{1-x^2}}\), the derivative of \(\arcsin x\) (topic 6.8):

\[\begin{aligned}\int_0^{1/2}\frac{3\,dx}{\sqrt{1-x^2}}&=\Big[3\arcsin x\Big]_0^{1/2}\\&=3\cdot\frac{\pi}{6}-0=\frac{\pi}{2}\end{aligned}\]

Example 2

Choose substitution when it fits

Find \(\displaystyle\int\frac{x}{1+x^4}\,dx\).

Solution

The integrand is continuous for every \(x\), because \(1+x^4\ge 1\). No row of the table matches it. The whole bottom is a poor choice of inner function, because its derivative \(4x^3\) is not a constant multiple of the top. But \(x^4=\left(x^2\right)^2\), so the bottom is \(1+u^2\) with

\[u=x^2,\qquad du=2x\,dx\]

The top \(x\) is half of \(2x\), so \(x\,dx=\frac12\,du\). The integral in \(u\) is half the arctangent row, the first integrand of Figure 1:

\[\begin{aligned}\int\frac{x\,dx}{1+x^4}&=\frac12\int\frac{du}{1+u^2}\\&=\frac12\arctan\left(x^2\right)+C\end{aligned}\]

Example 3

Choose an algebraic rewrite

Evaluate \(\displaystyle\int_0^{\pi/4}\left(\cos x+\sin x\right)^2dx\).

Solution

The integrand is continuous for every \(x\). No row of the table matches it. The square has the inner function \(\cos x+\sin x\), but its derivative \(\cos x-\sin x\) is not a factor, so substitution does not fit. Expand the square instead. The identity \(\sin^2x+\cos^2x=1\) combines two of its terms:

\[\begin{aligned}&\left(\cos x+\sin x\right)^2\\&=\cos^2x+2\sin x\cos x+\sin^2x\\&=1+2\sin x\cos x\end{aligned}\]

By the chain rule, \(2\sin x\cos x\) is the derivative of \(\sin^2x\), so \(x+\sin^2x\) is an antiderivative:

\[\begin{aligned}&\int_0^{\pi/4}\left(1+2\sin x\cos x\right)dx\\&=\Big[x+\sin^2x\Big]_0^{\pi/4}\\&=\frac{\pi}{4}+\left(\frac{\sqrt2}{2}\right)^2-0=\frac{\pi}{4}+\frac12\end{aligned}\]

Example 4 · BC

Choose among the remaining methods in your course

Find \(\displaystyle\int x\,e^{x^2}\,dx\) and \(\displaystyle\int x\,e^{3x}\,dx\). Which of them needs integration by parts?

Solution

Integration by parts is a BC method (topic 6.11). The simpler methods come first. Both integrands are continuous for every \(x\). In \(x\,e^{x^2}\), the exponent \(x^2\) is an inner function whose derivative \(2x\) is twice the factor \(x\). Substitution therefore fits, with \(g(x)=x^2\):

\[\begin{aligned}\int x\,e^{x^2}dx&=\frac12\int e^{x^2}\cdot 2x\,dx\\&=\frac12\,e^{x^2}+C\end{aligned}\]

Parts is not needed, and with \(e^{x^2}\) as the factor to integrate it could not start, because \(e^{x^2}\) has no antiderivative that you can write. In \(x\,e^{3x}\), the derivative of the exponent is the constant 3, so a substitution for the exponent leaves the factor \(x\). This integral needs parts. Take \(u=x\), which becomes simpler when you differentiate it, and \(dv=e^{3x}\,dx\), so \(du=dx\) and \(v=\frac13e^{3x}\):

\[\begin{aligned}\int x\,e^{3x}dx&=\frac13x\,e^{3x}-\int\frac13e^{3x}dx\\&=\frac13x\,e^{3x}-\frac19e^{3x}+C\end{aligned}\]

Example 5

Carry the chosen method through correctly

Evaluate \(\displaystyle\int_1^9\frac{dx}{\sqrt{x}\left(3+\sqrt{x}\right)^2}\).

Solution

The integrand is continuous on \([1,9]\), because \(\sqrt{x}\ge 1\) there. The square has the inner function \(3+\sqrt{x}\), whose derivative \(\frac{1}{2\sqrt{x}}\) is half the factor \(\frac{1}{\sqrt{x}}\). Let

\[u=3+\sqrt{x},\qquad du=\frac{dx}{2\sqrt{x}}\]

so \(\frac{dx}{\sqrt{x}}=2\,du\). The bounds change with the variable. At \(x=1\), \(u=4\), and at \(x=9\), \(u=6\):

\[\begin{aligned}&\int_1^9\frac{dx}{\sqrt{x}\left(3+\sqrt{x}\right)^2}=\int_4^6\frac{2\,du}{u^2}\\&=\Big[-\frac{2}{u}\Big]_4^6=-\frac13+\frac12=\frac16\end{aligned}\]

Each example is one of the five skills of topic 6.14 in Which & Why: AP Calculus.