130. Rational Functions.

After integrating polynomials it is natural to turn our attention next to rational functions. Let us suppose \(R(x)\) to be any rational function expressed in the standard form of § 117, viz. as the sum of a polynomial \(\Pi(x)\) and a number of terms of the form \(A/(x – \alpha)^{p}\).

We can at once write down the integrals of the polynomial and of all the other terms except those for which \(p = 1\), since \[\int \frac{A}{(x – \alpha)^{p}}\, dx = -\frac{A}{p – 1}\, \frac{1}{(x – \alpha)^{p-1}},\] whether \(\alpha\) be real or complex ( § 117).

The terms for which \(p = 1\) present rather more difficulty. It follows immediately from Theorem (6) of § 113 that \[\begin{equation*} \int F’\{f(x)\}\, f'(x)\, dx = F\{f(x)\}. \tag{3} \end{equation*}\] In particular, if we take \(f(x) = ax + b\), where \(a\) and \(b\) are real, and write \(\phi(x)\) for \(F(x)\) and \(\psi(x)\) for \(F'(x)\), so that \(\phi(x)\) is an integral of \(\psi(x)\), we obtain \[\begin{equation*} \int \psi(ax + b)\, dx = \frac{1}{a}\phi(ax + b). \tag{4} \end{equation*}\]

Thus, for example, \[\int \frac{dx}{ax + b} = \frac{1}{a} \log|ax + b|,\] and in particular, if \(\alpha\) is real, \[\int \frac{dx}{x – \alpha} = \log|x – \alpha|.\] We can therefore write down the integrals of all the terms in \(R(x)\) for which \(p = 1\) and \(\alpha\) is real. There remain the terms for which \(p = 1\) and \(\alpha\) is complex.

In order to deal with these we shall introduce a restrictive hypothesis, viz. that all the coefficients in \(R(x)\) are real. Then if \(\alpha = \gamma + \delta i\) is a root of \(Q(x) = 0\), of multiplicity \(m\), so is its conjugate \(\bar{\alpha} = \gamma – \delta i\); and if a partial fraction \(A_{p}/(x – \alpha)^{p}\) occurs in the expression of \(R(x)\), so does \(\bar{A}_{p}/(x – \bar{\alpha})^{p}\), where \(\bar{A}_{p}\) is conjugate to \(A_{p}\). This follows from the nature of the algebraical processes by means of which the partial fractions can be found, and which are explained at length in treatises on Algebra.1

Thus, if a term \((\lambda + \mu i)/(x – \gamma – \delta i)\) occurs in the expression of \(R(x)\) in partial fractions, so will a term \((\lambda – \mu i)/(x – \gamma + \delta i)\); and the sum of these two terms is \[\frac{2\{\lambda(x – \gamma) – \mu\delta\}}{(x – \gamma)^{2} + \delta^{2}}.\] This fraction is in reality the most general fraction of the form \[\frac{Ax + B}{ax^{2} + 2bx + c},\] where \(b^{2} < ac\). The reader will easily verify the equivalence of the two forms, the formulae which express \(\lambda\), \(\mu\), \(\gamma\), \(\delta\) in terms of \(A\), \(B\), \(a\), \(b\), \(c\) being \[\lambda = A/2a,\quad \mu = -D/(2a\sqrt{\Delta}),\quad \gamma = -b/a,\quad \delta = \sqrt{\Delta}/a,\] where \(\Delta = ac – b^{2}\), and \(D = aB – bA\).

If in (3) we suppose \(F\{f(x)\}\) to be \(\log |f(x)|\), we obtain \[\begin{equation*} \int \frac{f'(x)}{f(x)}\, dx = \log |f(x)|; \tag{5} \end{equation*}\] and if we further suppose that \(f(x) = (x – \lambda)^{2} + \mu^{2}\), we obtain \[\int \frac{2(x – \lambda)}{(x – \lambda)^{2} + \mu^{2}}\, dx = \log\{(x – \lambda)^{2} + \mu^{2}\}.\] And, in virtue of the equations (6) of § 128 and (4) above, we have \[\int \frac{-2\delta\mu}{(x – \lambda)^{2} + \mu^{2}}\, dx = -2\delta \arctan \left(\frac{x – \lambda}{\mu}\right).\]

These two formulae enable us to integrate the sum of the two terms which we have been considering in the expression of \(R(x)\); and we are thus enabled to write down the integral of any real rational function, if all the factors of its denominator can be determined. The integral of any such function is composed of

the sum of a polynomial, a number of rational functions of the type \[-\frac{A}{p – 1}\, \frac{1}{(x – \alpha)^{p-1}},\] a number of logarithmic functions, and a number of inverse tangents.

It only remains to add that if \(\alpha\) is complex then the rational function just written always occurs in conjunction with another in which \(A\) and \(\alpha\) are replaced by the complex numbers conjugate to them, and that the sum of the two functions is a real rational function.

Example XLVIII

1. Prove that \[\int \frac{Ax + B}{ax^{2} + 2bx + c}\, dx = \frac{A}{2a} \log |X| + \frac{D}{2a \sqrt{-\Delta}} \log \left|\frac{ax + b – \sqrt{-\Delta}}{ax + b + \sqrt{-\Delta}}\right|\] (where \(X = ax^{2} + bx + c\)) if \(\Delta < 0\), and \[\int \frac{Ax + B}{ax^{2} + 2bx + c}\, dx = \frac{A}{2a} \log |X| + \frac{D}{2a \sqrt{\Delta}} \arctan \left(\frac{ax + b}{\sqrt{\Delta}}\right)\] if \(\Delta > 0\), \(\Delta\) and \(D\) having the same meanings as above.

2. In the particular case in which \(ac = b^{2}\) the integral is \[-\frac{D}{a(ax + b)} + \frac{A}{a} \log |ax + b|.\]

3. Show that if the roots of \(Q(x) = 0\) are all real and distinct, and \(P(x)\) is of lower degree than \(Q(x)\), then \[\int R(x)\, dx = \sum \frac{P(\alpha)}{Q'(\alpha)} \log |x – \alpha|,\] the summation applying to all the roots \(\alpha\) of \(Q(x) = 0\).

[The form of the fraction corresponding to \(\alpha\) may be deduced from the facts that \[\frac{Q(x)}{x – \alpha} \to Q'(\alpha),\quad (x – \alpha) R(x) \to \frac{P(\alpha)}{Q'(\alpha)},\] as \(x \to \alpha\).]

4. If all the roots of \(Q(x)\) are real and \(\alpha\) is a double root, the other roots being simple roots, and \(P(x)\) is of lower degree than \(Q(x)\), then the integral is \(A/(x – \alpha) + A’\log |x – \alpha| + \sum B\log |x – \beta|\), where \[A = -\frac{2P(\alpha)}{Q”(\alpha)},\quad A’ = \frac{2\{3P'(\alpha) Q”(\alpha) – P(a) Q”'(\alpha)\}} {3\{Q”(\alpha)\}^{2}},\quad B = \frac{P(\beta)}{Q'(\beta)},\] and the summation applies to all roots \(\beta\) of \(Q(x) = 0\) other than \(\alpha\).

5. Calculate \[\int \frac{dx}{\{(x – 1) (x^{2} + 1)\}^{2}}.\]

[The expression in partial fractions is \[\frac{1}{4(x – 1)^{2}} – \frac{1}{2(x – 1)} – \frac{i}{8(x – i)^{2}} + \frac{2 – i}{8(x – i)} + \frac{i}{8(x + i)^{2}} + \frac{2 + i}{8(x + i)},\] and the integral is \[-\frac{1}{4(x – 1)} – \frac{1}{4(x^{2} + 1)} – \tfrac{1}{2} \log |x – 1| + \tfrac{1}{4} \log (x^{2} + 1) + \tfrac{1}{4} \arctan x.]\]

6. Integrate \[\begin{gathered} \frac{x}{(x – a)(x – b)(x – c)},\quad \frac{x}{(x – a)^{2}(x – b)},\quad \frac{x}{(x – a)^{2} (x – b)^{2}},\quad \frac{x}{(x – a)^{3}},\\ \frac{x}{(x^{2} + a^{2}) (x^{2} + b^{2})},\quad \frac{x^{2}}{(x^{2} + a^{2}) (x^{2} + b)^{2}},\quad \frac{x^{2} – a^{2}}{x^{2}(x^{2} + a^{2})},\quad \frac{x^{2} – a^{2}}{x(x^{2} + a^{2})^{2}}.\end{gathered}\]

7. Prove the formulae: \[\begin{aligned}\int \frac{dx}{1 + x^{4}} = \frac{1}{4\sqrt{2}} \biggl\{ &\log \biggl(\frac{1 + x\sqrt{2} + x^{2}}{1 – x\sqrt{2} + x^{2}}\biggr) + 2\arctan \biggl(\frac{x\sqrt{2}}{1 – x^{2}}\biggr)\biggr\},\\ \int \frac{x^{2}\, dx}{1 + x^{4}} = \frac{1}{4\sqrt{2}} \biggl\{&-\log \biggl(\frac{1 + x\sqrt{2} + x^{2}}{1 – x\sqrt{2} + x^{2}}\biggr) + 2\arctan \biggl(\frac{x\sqrt{2}}{1 – x^{2}}\biggr)\biggr\},\\ \int \frac{dx}{1 + x^{2} + x^{4}} = \frac{1}{4\sqrt{3}}\biggl\{ &\sqrt{3}\log \biggl(\frac{1 + x + x^{2}}{1 – x + x^{2}}\biggr) + 2\arctan \biggl(\frac{x\sqrt{3}}{1 – x^{2}}\biggr)\biggr\}.\end{aligned}\]

 

131. Note on the practical integration of rational functions.

The analysis of § 130 gives us a general method by which we can find the integral of any real rational function \(R(x)\), provided we can solve the equation \(Q(x) = 0\). In simple cases (as in Ex. 5 above) the application of the method is fairly simple. In more complicated cases the labour involved is sometimes prohibitive, and other devices have to be used. It is not part of the purpose of this book to go into practical problems of integration in detail. The reader who desires fuller information may be referred to Goursat’s Cours d’Analyse, second ed., vol. i, pp. 246 et seq., Bertrand’s Calcul Intégral, and Dr Bromwich’s tract Elementary Integrals (Bowes and Bowes, 1911).

If the equation \(Q(x) = 0\) cannot be solved algebraically, then the method of partial fractions naturally fails and recourse must be had to other methods.2


  1. See, for example, Chrystal’s Algebra, vol. i, pp. 151–9.↩︎
  2. See the author’s tract “The integration of functions of a single variable” (Cambridge Tracts in Mathematics, No. 2, second edition, 1915). This does not often happen in practice.↩︎

$\leftarrow$ 129. Integration of polynomials Main Page 132-139. Integration of algebraical functions. Integration by rationalisation. Integration by parts $\rightarrow$