A. Integration by parts
Recall the rule (f(x)g(x))' = f'(x)g(x) + f(x)g'(x). Now suppose that we try to find the indefinite integral
where can be written in the form f(x)g'(x). It may perhaps be easier to find
\int g(x)f'(x)\,dxthan to find
By linearity,
\int (f(x)g(x))'\,dx = \int f'(x)g(x)\,dx + \int f(x)g'(x)\,dx,or
f(x)g(x) = \int f'(x)g(x)\,dx + \int h(x)\,dx,i.e.,
\int h(x)\,dx = f(x)g(x) - \int f'(x)g(x)\,dx.Thus an indefinite integral of is found by subtracting from an indefinite integral of f'(x)g(x).
Examples
Let , . Then f'(x) = 1, g'(x) = \sin x, and substituting gives
\begin{aligned} \int x \sin x\,dx &= -x\cos x - \int(-\cos x)\,dx\\ &= -x\cos x + \int \cos x\,dx \\ &= -x\cos x + \sin x. \end{aligned}Let , . Then f'(x) = \dfrac{1}{x}, g'(x) = 1, and
Sometimes it is necessary to perform the procedure several times. It often happens that the original integral will recur with a coefficient other than 1, in which case we can solve for it. For instance, consider Let , . Then
In , let , . Then e^x \cos x = h(x)k'(x), and we have
Thus
Solving for , we find
Note. If at the second stage we had used e^x \cos x = h(x)k'(x) with , , the resulting equation would have been a trivial identity; thus if such an equation results, one should attempt a different decomposition.
B. Integration by substitution
Certain integrals become much simpler if one variable is replaced by a new one. Here one uses in place of the old variable a new one which is, in the range of integration, a strictly increasing or decreasing differentiable function of the old one. If is the new variable and the old one, we then have u'(x) = \dfrac{1}{x'(u)}, from the differentiation of inverse functions.
Suppose we are to find an indefinite integral . That is, we are to find a function such that F'(x) = f(x). It may be that is a strictly increasing or decreasing differentiable function of some new variable , say , such that , which we shall call , is a simpler function to integrate. Then we might try to find a function such that G'(u) = g(u). If is the inverse function to , we might try as an answer to our original problem. But
H'(x) = G'(u(x)) \cdot u'(x) = g(u(x)) \cdot u'(x) = f(x) \cdot u'(x),which differs from by the factor u'(x) = \dfrac{1}{x'(u)}. Therefore let us try instead to find a function such that G'(u) = g(u) \cdot x'(u). Then set . We have then
F'(x) = G'(u(x)) \cdot u'(x) = g(u) \cdot x'(u) \cdot u'(x) = g(u) = f(x),or is a function of the desired type.
There is a formal device for remembering this calculation, as follows: in , write . If , then
Of course, the answer on the right is a function of , for which we must then substitute in terms of . Note that the integral on the right is just \int g(u)x'(u)\,du, or our . Several examples will illustrate the technique.
Examples
Let , . Then x'(u) = \dfrac{1}{u}. We must then find
Our desired indefinite integral is thus .
Let (this is possible, since is only defined if ). Then
u = \arcsin x,\qquad x'(u) = \cos u,and , since when is in the range of . Thus we must find
\begin{aligned} \int \frac{\sin^3 u}{\cos u}\cdot \cos u\,du &= \int \sin^3 u\,du\\ &= \int \sin u(1-\cos^2 u)\,du \\ &= -\cos u - \int \cos^2 u \sin u\,du. \end{aligned}Now let . Then v'(u) = -\sin u, u'(v) = -\dfrac{1}{\sin u}, and we have, at least for ,
\begin{aligned} \int \cos^2 u \sin u\,du &= \int v^2 \cdot \sin u \cdot \left(-\frac{1}{\sin u}\right)dv \\ &= -\frac{1}{3}v^3 \\ &= -\frac{1}{3}\cos^3 u. \end{aligned}Hence
and
\begin{aligned} \int \frac{x^3}{\sqrt{1-x^2}}\,dx &= \frac{\cos^3(\arcsin x)}{3} - \cos(\arcsin x) \\ &= \frac{(1-x^2)^{3/2}}{3} - \sqrt{1-x^2}. \end{aligned}Since this function does have as derivative whenever , we have not lost anything at those points in the process, such as (**), where we might have done so.
C. Partial fractions
Suppose we want to find an indefinite integral of , where and are polynomials (such functions are called rational functions). We may assume that the degree of (the highest power of appearing) is less than the degree of ; for if not, we can divide by and get
where is a polynomial and , the remainder in the division of by , is of degree less than that of . Suppose also that we can factor into products of polynomials of the forms and , . (It is always possible to do this, although it is usually difficult to determine the 's, 's and 's.) Once this factorization is accomplished, we begin a procedure which enables us to integrate .
What we do is to separate the factors of the above forms in and try to write as a sum of quotients of polynomials. The denominators will be the separate factors of and the numerators will have degrees less than those of the denominators. If a factor or divides more than once, say times, we have to allow for terms, one having the factor as denominator to each of the powers . In each of these terms, it is still sufficient to assume that the numerator is a constant or of degree one (in case the denominator is a power of ). For instance, if we had something of the form
we could divide by to get a quotient of degree 1 and a remainder of degree at most 1. Then
so that the expression is reduced to the form which we shall consider.
Let . Let . Then has degree less than , and we can write , where some of the 's may be 0. Now we try to write
\begin{aligned} \frac{f(x)}{g(x)} = &\frac{A_{1,1}}{x-a_1} + \frac{A_{1,2}}{(x-a_1)^2} + \dots + \frac{A_{1,m_1}}{(x-a_1)^{m_1}} \\ &+ \frac{A_{2,1}}{x-a_2} + \dots + \frac{A_{r,m_r}}{(x-a_r)^{m_r}}\\ &+ \frac{B_{1,1}x+C_{1,1}}{x^2+b_1x+c_1} + \dots + \frac{B_{1,n_1}x+C_{1,n_1}}{(x^2+b_1x+c_1)^{n_1}} \\ &+ \dots + \frac{B_{s,n_s}x+C_{s,n_s}}{(x^2+b_sx+c_s)^{n_s}}. \end{aligned}Here the are unknowns, and there are
of them in all. If we put the right-hand side of the equation over a common denominator, this denominator is . Therefore the numerator must be ; so the constant term of the numerator must be , the coefficient of must be , etc. This gives us equations in the unknowns , which we solve. Substituting these solutions in the right-hand side of the equation, it remains only to integrate that expression term-wise. Now
\begin{aligned} &\int \frac{1}{x-a}\,dx = \log(x-a); \\ &\int \frac{1}{(x-a)^n}\,dx = \frac{-1}{n-1}\cdot\frac{1}{(x-a)^{n-1}}, \quad n>1. \end{aligned}Since , , we can substitute for and assume that is simply of the form , .
\begin{aligned} &\int \frac{x}{x^2+c}\,dx = \frac{1}{2}\log(x^2+c); \\ &\int \frac{1}{x^2+c}\,dx = \frac{1}{\sqrt{c}}\arctan\left(\frac{x}{\sqrt{c}}\right);\\ &\int \frac{x}{(x^2+c)^n}\,dx = \frac{-1}{2(n-1)}\cdot\frac{1}{(x^2+c)^{n-1}}, \quad n>1; \end{aligned}and
can be handled by the substitution , or
Examples
Then
or
Then , , , , and
Write
We get the equations
They give:
Thus we must find
\begin{aligned} \frac{7}{9}&\int \frac{1}{x-1}\,dx - \frac{7}{9}\int \frac{x}{x^2+2}\,dx - \frac{7}{9}\int \frac{1}{x^2+2}\,dx \\ &\qquad- \frac{7}{3}\int \frac{x}{(x^2+2)^2}\,dx + \frac{5}{3}\int \frac{1}{(x^2+2)^2}\,dx\\ &= \frac{7}{9}\log(x-1) - \frac{7}{18}\log(x^2+2) - \frac{7}{9\sqrt{2}}\arctan\frac{x}{\sqrt{2}} \\ &\qquad + \frac{7}{6}\cdot\frac{1}{x^2+2} + \frac{5}{3}\int \frac{1}{(x^2+2)^2}\,dx. \end{aligned}In the last integral, let . Then x'(u) = \sqrt{2}\sec^2 u, and we must find
or
Now , or . Thus we must find
\begin{aligned} \frac{1}{4\sqrt{2}}\int (1+\cos 2u)\,du &= \frac{1}{4\sqrt{2}}u + \frac{1}{8\sqrt{2}}\sin 2u\\ &= \frac{1}{4\sqrt{2}}\arctan\frac{x}{\sqrt{2}} + \frac{1}{4\sqrt{2}}\cdot\frac{\tan u}{\sec^2 u} \\ &= \frac{1}{4\sqrt{2}}\arctan\frac{x}{\sqrt{2}} + \frac{1}{4\sqrt{2}}\cdot\frac{\frac{x}{\sqrt{2}}}{\frac{x^2}{2}+1}\\ &= \frac{1}{4\sqrt{2}}\arctan\frac{x}{\sqrt{2}} + \frac{1}{4}\cdot\frac{x}{x^2+2}. \end{aligned}The complete answer is then
\begin{aligned} \frac{7}{9}&\log(x-1) - \frac{7}{18}\log(x^2+2) - \frac{7}{9\sqrt{2}}\arctan\frac{x}{\sqrt{2}} \\ &+ \frac{7}{6}\cdot\frac{x}{x^2+2} + \frac{5}{12\sqrt{2}}\arctan\frac{x}{\sqrt{2}} + \frac{5}{12}\cdot\frac{x}{x^2+2}. \end{aligned}By a suitable substitution, one can reduce integrals of rational functions in and to the problem of integrating rational functions of a new variable . The trick is to let . Then , and
x'(u) = \frac{2}{1+u^2}.Also,
and
\begin{aligned} \cos x &= 2\cos^2\frac{x}{2} - 1 \\ &= \frac{2}{1+\tan^2\frac{x}{2}} - 1 \\ &= \frac{2}{1+u^2} - 1 \\ &= \frac{1-u^2}{1+u^2}. \end{aligned}Thus, for instance,
Now , and we can apply the technique of partial fractions to complete the work.
Exercises
Courant: p. 225, ex. 1-11; p. 234, ex. 1-14.
Oakley: p. 100, ex. 1-12.
Sherwood and Taylor, Calculus, 1st ed.: pp. 202, 206, 215, 218, 222, 229, 231, 377, 380.