Dodges

A great part of the labour of integrating things consists in licking them into some shape that can be integrated. The books—and by this is meant the serious books—on the Integral Calculus are full of plans and methods and dodges and artifices for this kind of work. The following are a few of them.

Integration by Parts

This name is given to a dodge, the formula for which is \[ \bbox[#F2F2F2,5px,border:2px solid black]{\int u\, dx = ux – \int x\, du + C.}\] It is useful in some cases that you can’t tackle directly, for it shows that if in any case \(\int x\, du\) can be found, then \(\int u\, dx\) can also be found. The formula can be deduced as follows. From , we have, \[d(ux) = u\, dx + x\, du,\] which may be written \[u(dx) = d(ux) – x\, du,\] which by direct integration gives the above expression.

Examples

Example 1
Find \(\int w \cdot \sin w\, dw\).
Solution
Write \(u = w\), and for \(\sin w \cdot dw\) write \(dx\). We shall then have \(du = dw\), while \(\int \sin w \cdot dw = -\cos w = x\).

Putting these into the formula, we get \[\begin{aligned} \int w \cdot \sin w\, dw &= w(-\cos w) – \int -\cos w\, dw \\ &=-w \cos w + \sin w + C.\end{aligned}\]

 
Example 2
Find \(\int x e^x\, dx\).
Solution

Write \[\begin{aligned} u &= x, & e^x\, dx&=dv; \\ du &= dx, & v &=e^x, \end{aligned}\]

\[\begin{aligned} \text{and} \quad \int x e^x\, dx &= x e^x – \int e^x\, dx \quad \text{(by the formula)} \\ &= x e^x – e^x = e^x(x-1) + C. \end{aligned}\]

Example 3
Try \(\int \cos^2 \theta\, d\theta\).
Solution
\[\begin{aligned} u &= \cos \theta, &\cos \theta\, d\theta &= dv. \\ du&= -\sin \theta\, d\theta, & v &=\sin \theta, \end{aligned}\]

\[\begin{aligned} \int \cos^2 \theta\, d\theta &= \cos \theta \sin \theta+ \int \sin^2 \theta\, d\theta \\ &= \frac{2 \cos\theta \sin\theta}{2} +\int(1-\cos^2 \theta)\, d\theta \\ &= \frac{\sin 2\theta}{2} + \int d\theta – \int \cos^2 \theta\, d\theta.\end{aligned}\]

\[\begin{aligned} 2 \int \cos^2 \theta\, d\theta &= \frac{\sin 2\theta}{2} + \theta \\ \int \cos^2 \theta\, d\theta &= \frac{\sin 2\theta}{4} + \frac{\theta}{2} + C. \end{aligned}\]

Example 4
Find \(\int x^2 \sin x\, dx\).
Solution

\[\begin{aligned} x^2 &= u, & \sin x\, dx &= dv; \\ du &= 2x\, dx, & v &= -\cos x, \end{aligned}\]

\[\int x^2 \sin x\, dx = -x^2 \cos x + 2 \int x \cos x\, dx.\]

Now find \(\int x \cos x\, dx\), integrating by parts (as in Example 1 above): \[\int x \cos x\, dx = x \sin x + \cos x+C.\]

Hence \[\begin{aligned} \int x^2 \sin x\, dx &= -x^2 \cos x + 2x \sin x + 2 \cos x + C’ \\ &= 2 \left[ x \sin x + \cos x \left(1 – \frac{x^2}{2}\right) \right] +C’.\end{aligned}\]

Example 5
Find \(\int \sqrt{1-x^2}\, dx\).
Solution

\[\begin{aligned} u &= \sqrt{1-x^2},\quad dx=dv; \\ du &= -\frac{x\, dx}{\sqrt{1-x^2}} \end{aligned}\]

and \(x=v\); so that \[\int \sqrt{1-x^2}\, dx=x \sqrt{1-x^2} + \int \frac{x^2\, dx}{\sqrt{1-x^2}}.\]

Here we may use a little dodge, for we can write \[\int \sqrt{1-x^2}\, dx = \int \frac{(1-x^2)\, dx}{\sqrt{1-x^2}} = \int \frac{dx}{\sqrt{1-x^2}} – \int \frac{x^2\, dx}{\sqrt{1-x^2}}.\]

Adding these two last equations, we get rid of \(\int \dfrac{x^2\, dx}{\sqrt{1-x^2}}\), and we have \[2 \int \sqrt{1-x^2}\, dx = x\sqrt{1-x^2} + \int \frac{dx}{\sqrt{1-x^2}}.\]

Do you remember meeting \(\dfrac {dx}{\sqrt{1-x^2}}\)? it is got by differentiating \(y=\arcsin x\) (see Chapter 15); hence its integral is \(\arcsin x\), and so \[\int \sqrt{1-x^2}\, dx = \frac{x \sqrt{1-x^2}}{2} + \tfrac{1}{2} \arcsin x +C.\]

You can try now some exercises by yourself; you will find some at the end of this chapter.

Substitution. This is the same dodge as explained in Chapter 9. Let us illustrate its application to integration by a few examples.

Example 1
\(\int \sqrt{3+x}\, dx\).
Solution

Let \[\begin{aligned} 3+x &= u, \quad dx = du;\\ \int u^{\frac{1}{2}}\, du &= \tfrac{2}{3} u^{\frac{3}{2}} = \tfrac{2}{3}(3+x)^{\frac{3}{2}}. \end{aligned}\]

Example 2
\(\int \dfrac{dx}{e^x+e^{-x}}\).
Solution
Let \[\begin{aligned} e^x = u,\quad \frac{du}{dx} = e^x,\quad\text{and}\quad dx = \frac{du}{e^x}; \\ \int \frac{dx}{e^x+e^{-x}} = \int \frac{du}{e^x(e^x+e^{-x})} = \int \frac{du}{u\left(u + \dfrac{1}{u}\right)} = \int \frac{du}{u^2+1}. \end{aligned}\]

\(\dfrac{du}{1+u^2}\) is the result of differentiating \(\arctan x\).

Hence the integral is \(\arctan e^x\).

Example 3
\(\int \dfrac{dx}{x^2+2x+3} = \int \dfrac{dx}{x^2+2x+1+2} = \int \dfrac{dx}{(x+1)^2+(\sqrt 2)^2}\).
Solution

Let \[ x+1=u,\quad dx=du;\]

then the integral becomes \(\int \dfrac{du}{u^2+(\sqrt2)^2}\); but \(\dfrac{du}{u^2+a^2}\) is the result of differentiating \(u=\dfrac{1}{a} \arctan \dfrac{u}{a}\).

Hence one has finally \(\dfrac{1}{\sqrt2} \arctan \dfrac{x+1}{\sqrt 2}\) for the value of the given integral.

Formulae of Reduction are special forms applicable chiefly to binomial and trigonometrical expressions that have to be integrated, and have to be reduced into some form of which the integral is known.

Rationalization, and Factorization of Denominator are dodges applicable in special cases, but they do not admit of any short or general explanation. Much practice is needed to become familiar with these preparatory processes.

The following example shows how the process of splitting into partial fractions, which we learned in Chapter 13, can be made use of in integration.

Take[2] \(\int \dfrac{dx}{x^2+2x-3}\); if we split \(\dfrac{1}{x^2+2x-3}\) into partial fractions, this becomes:
\begin{align*}
\dfrac{1}{4} \left[\int \dfrac{dx}{x-1} – \int \dfrac{dx}{x+3} \right]=&\dfrac{1}{4}\left[\ln|x-1|-\ln|x+3|\right]+C\\
=&\dfrac{1}{4} \ln\left| \dfrac{x-1}{x+3}\right|+C.
\end{align*}

Pitfalls

A beginner is liable to overlook certain points that a practised hand would avoid; such as the use of factors that are equivalent to either zero or infinity, and the occurrence of indeterminate quantities such as \(\tfrac{0}{0}\). There is no golden rule that will meet every possible case. Nothing but practice and intelligent care will avail. An example of a pitfall which had to be circumvented arose in Chapter 18, when we came to the problem of integrating \(x^{-1}\, dx\).

Triumphs

By triumphs must be understood the successes with which the calculus has been applied to the solution of problems otherwise intractable. Often in the consideration of physical relations one is able to build up an expression for the law governing the interaction of the parts or of the forces that govern them, such expression being naturally in the form of a differential equation, that is an equation containing differential coefficients with or without other algebraic quantities. And when such a differential equation has been found, one can get no further until it has been integrated. Generally it is much easier to state the appropriate differential equation than to solve it:—the real trouble begins then only when one wants to integrate, unless indeed the equation is seen to possess some standard form of which the integral is known, and then the triumph is easy. The equation which results from integrating a differential equation is called1 its “solution”; and it is quite astonishing how in many cases the solution looks as if it had no relation to the differential equation of which it is the integrated form. The solution often seems as different from the original expression as a butterfly does from the caterpillar that it was. Who would have supposed that such an innocent thing as \[\dfrac{dy}{dx} = \dfrac{1}{a^2-x^2}\] could blossom out into \[y = \dfrac{1}{2a} \ln \left|\dfrac{a+x}{a-x}\right| + C?\] yet the latter is the solution of the former.

As a last example, let us work out the above together.

By partial fractions, \[\begin{aligned} \frac{1}{a^2-x^2} &= \frac{1}{2a(a+x)} + \frac{1}{2a(a-x)}, \\ dy &= \frac {dx}{2a(a+x)}+ \frac{dx}{2a(a-x)}, \\ y &= \frac{1}{2a} \left( \int \frac{dx}{a+x} + \int \frac{dx}{a-x} \right)  \\ &= \frac{1}{2a} \left(\ln |a+x| – \ln |a-x| \right) \\ &= \frac{1}{2a} \ln \left|\frac{a+x}{a-x}\right| + C.\end{aligned}\] Not a very difficult metamorphosis!

There are whole treatises, such as Boole’s Differential Equations, devoted to the subject of thus finding the “solutions” for different original forms.


Exercises XIX

(1) Find \(\int \sqrt {a^2 – x^2}\, dx\).  (2) Find \(\int x \ln x\, dx\).
(3) Find \(\int x^a \ln x\, dx\). (4) Find \(\int e^x \cos e^x\, dx\).
(5) Find \(\int \dfrac{1}{x} \cos (\ln x)\, dx\). (6) Find \(\int x^2 e^x\, dx\).
(7) Find \(\int \dfrac{(\ln x)^a}{x}\, dx\). (8) Find \(\int \dfrac{dx}{x \ln x}\).
(9) Find \(\int \dfrac{5x+1}{x^2 +x-2}\, dx\). (10) Find \(\int \dfrac{(x^2 -3)\, dx}{x^3 – 7x+6}\).
(11) Find \(\int \dfrac{b\, dx}{x^2 -a^2}\). (12) Find \(\int \dfrac{4x\, dx}{x^4 -1}\).
(13) Find \(\int \dfrac{dx}{1-x^4}\). (14) Find \(\int \dfrac{dx}{x \sqrt {a-bx^2}}\).

 

Answers to Exercises
(1) \(\dfrac{x\sqrt{a^2 – x^2}}{2} + \dfrac{a^2}{2} \sin^{-1} \dfrac{x}{a} + C\). (2) \(\dfrac{x^2}{2}(\ln x – \tfrac{1}{2}) + C\).
(3) \(\dfrac{x^{a+1}}{a + 1} \left(\ln x – \dfrac{1}{a + 1}\right) + C\). (4) \(\sin {e}^x + C\).
(5) \(\sin(\ln x) + C\). (6) \({e}^x (x^2 – 2x + 2) + C\).
(7) \(\dfrac{1}{a + 1} (\ln x)^{a+1} + C\). (8) \(\ln|\ln x| + C\).

(9) \(2\ln|x – 1| + 3\ln|x + 2| + C\).

(10) \(\frac{1}{2} \ln|x – 1| + \frac{1}{5} \ln|x – 2| + \frac{3}{10} \ln|x + 3| + C\).

(11) \(\dfrac{b}{2a} \ln\left| \dfrac{x – a}{x + a}\right| + C\).

(12) \(\ln \left|\dfrac{x^2 – 1}{x^2 + 1}\right| + C\).

(13) \(\frac{1}{4} \ln \left|\dfrac{1 + x}{1 – x}\right| + \frac{1}{2} \arctan x + C\).

(14) \(\dfrac{1}{\sqrt{a}} \ln \dfrac{\sqrt{a} – \sqrt{a – bx^2}}{x\sqrt{a}}\)+C. (Let \(\dfrac{1}{x} = v\); then, in the result, let \(\sqrt{v^2 – \dfrac{b}{a}} = v – u\).) You had better differentiate now the answer and work back to the given expression as a check.


  1. This means that the actual result of solving it is called its “solution.” But many mathematicians would say, with Professor Forsyth, “every differential equation is considered as solved when the value of the dependent variable is expressed as a function of the independent variable by means either of known functions, or of integrals, whether the integrations in the latter can or cannot be expressed in terms of functions already known.”↩︎

2.The book gives a different example, which requires using complex numbers. Here we are using a simpler example.