Skip to content

Mathematics · Ch 11 — Integral Calculus

Integration of Rational Algebraic Functions

11.7.9

Integration of Rational Algebraic Functions

Rational algebraic integrands built from quadratic expressions ax2+bx+cax^2+bx+c (or their square roots) do not yield to the substitution and by-parts methods developed earlier in the chapter directly -- they need their own toolkit, organised here into four types that build on one another, one feeding into the next.

Type I. These are the six "base case" integrals built from a2±x2a^2\pm x^2 and x2±a2x^2\pm a^2, and every later type is eventually reduced to one of these six:

∫dxa2−x2=12alog⁡∣a+xa−x∣+c,∫dxx2−a2=12alog⁡∣x−ax+a∣+c,∫dxa2+x2=1atan⁡−1(xa)+c,\int\frac{dx}{a^2-x^2}=\frac1{2a}\log\left|\frac{a+x}{a-x}\right|+c,\qquad \int\frac{dx}{x^2-a^2}=\frac1{2a}\log\left|\frac{x-a}{x+a}\right|+c,\qquad \int\frac{dx}{a^2+x^2}=\frac1a\tan^{-1}\left(\frac xa\right)+c,

∫dxa2−x2=sin⁡−1(xa)+c,∫dxx2−a2=log⁡∣x+x2−a2∣+c,∫dxx2+a2=log⁡∣x+x2+a2∣+c.\int\frac{dx}{\sqrt{a^2-x^2}}=\sin^{-1}\left(\frac xa\right)+c,\qquad \int\frac{dx}{\sqrt{x^2-a^2}}=\log\left|x+\sqrt{x^2-a^2}\right|+c,\qquad \int\frac{dx}{\sqrt{x^2+a^2}}=\log\left|x+\sqrt{x^2+a^2}\right|+c.

The first two are proved by factoring the denominator as a difference of squares and splitting into partial fractions: 1a2−x2=1(a−x)(a+x)=12a[1a+x+1a−x]\dfrac1{a^2-x^2}=\dfrac1{(a-x)(a+x)}=\dfrac1{2a}\left[\dfrac1{a+x}+\dfrac1{a-x}\right], so integrating term by term gives 12a[log⁡∣a+x∣−log⁡∣a−x∣]+c=12alog⁡∣a+xa−x∣+c\dfrac1{2a}\big[\log|a+x|-\log|a-x|\big]+c=\dfrac1{2a}\log\left|\dfrac{a+x}{a-x}\right|+c; the x2−a2x^2-a^2 case runs identically, with the sign of one partial fraction flipped.

The third and fourth are proved instead by a trigonometric substitution. For ∫dxa2+x2\int\frac{dx}{a^2+x^2}, put x=atan⁡θx=a\tan\theta, so dx=asec⁡2θ dθdx=a\sec^2\theta\,d\theta and a2+x2=a2sec⁡2θa^2+x^2=a^2\sec^2\theta; the integral collapses to 1a∫dθ=1aθ+c=1atan⁡−1 ⁣(xa)+c\frac1a\int d\theta=\frac1a\theta+c=\frac1a\tan^{-1}\!\left(\frac xa\right)+c. For ∫dxa2−x2\int\frac{dx}{\sqrt{a^2-x^2}}, put x=asin⁡θx=a\sin\theta, so dx=acos⁡θ dθdx=a\cos\theta\,d\theta and a2−x2=a2cos⁡2θa^2-x^2=a^2\cos^2\theta; the acos⁡θa\cos\theta in the numerator cancels the square root exactly, leaving ∫dθ=θ+c=sin⁡−1 ⁣(xa)+c\int d\theta=\theta+c=\sin^{-1}\!\left(\frac xa\right)+c. The remaining two (via x=asec⁡θx=a\sec\theta) work the same way, both ending in ∫sec⁡θ dθ=log⁡∣sec⁡θ+tan⁡θ∣+c\int\sec\theta\,d\theta=\log|\sec\theta+\tan\theta|+c, which is converted back to xx using a right triangle with hypotenuse xx and one leg aa; absorbing the leftover −log⁡a-\log a into the constant of integration gives the tidy form log⁡∣x+x2∓a2∣+c\log\left|x+\sqrt{x^2\mp a^2}\right|+c.

A companion memory aid runs through the whole chapter: whenever the surd is a2−x2a^2-x^2, substitute x=asin⁡θx=a\sin\theta; for a2+x2a^2+x^2, substitute x=atan⁡θx=a\tan\theta; for x2−a2x^2-a^2, substitute x=asec⁡θx=a\sec\theta.

Type II. Integrals ∫dxax2+bx+c\int\frac{dx}{ax^2+bx+c} and ∫dxax2+bx+c\int\frac{dx}{\sqrt{ax^2+bx+c}} are handled by first forcing the coefficient of x2x^2 to 11 and then completing the square:

ax2+bx+c=a[(x+b2a)2+4ac−b24a2].ax^2+bx+c=a\left[\left(x+\frac b{2a}\right)^2+\frac{4ac-b^2}{4a^2}\right].

Whatever constant is left over after completing the square plays the role of "a2a^2" (or "−a2-a^2") in a Type I form, in the shifted variable x+b2ax+\frac b{2a} -- so every Type II integral reduces directly to one of the six Type I results. The only genuinely new skill is the algebra of completing the square (and, for the square-root case with a leading coefficient ≠1\ne1, factoring that coefficient out from under the radical first).

Type III. Integrals with a linear numerator, ∫px+qax2+bx+c dx\int\frac{px+q}{ax^2+bx+c}\,dx and ∫px+qax2+bx+c dx\int\frac{px+q}{\sqrt{ax^2+bx+c}}\,dx, are solved by writing the numerator as a multiple of the denominator's derivative, plus a leftover constant:

px+q=A ddx(ax2+bx+c)+B=A(2ax+b)+B,px+q=A\,\frac{d}{dx}\big(ax^2+bx+c\big)+B=A(2ax+b)+B,

and finding AA and BB by comparing coefficients of xx and of the constant term on both sides. Substituting back splits the integral into two pieces:

∫px+qax2+bx+c dx=A∫2ax+bax2+bx+c dx+B∫dxax2+bx+c.\int\frac{px+q}{ax^2+bx+c}\,dx=A\int\frac{2ax+b}{ax^2+bx+c}\,dx+B\int\frac{dx}{ax^2+bx+c}.

The first piece is an ∫f′(x)f(x) dx\int\frac{f'(x)}{f(x)}\,dx form and integrates directly to Alog⁡∣ax2+bx+c∣A\log|ax^2+bx+c|; the second piece is exactly a Type II integral, evaluated by completing the square. The square-root version runs in parallel: its first piece is an ∫f′(x)[f(x)]n dx\int f'(x)[f(x)]^{n}\,dx form with n=−12n=-\tfrac12, giving 2Aax2+bx+c2A\sqrt{ax^2+bx+c}, while its second piece is a Type II square-root integral.

Remark (substitution table). As an alternative route to the same integrals, once the quadratic surd is written as a2−x2a^2-x^2, a2+x2a^2+x^2, or x2−a2x^2-a^2 (after completing the square), it can also be attacked directly with the matching trigonometric substitution: x=asin⁡θx=a\sin\theta for a2−x2a^2-x^2, x=atan⁡θx=a\tan\theta for a2+x2a^2+x^2, and x=asec⁡θx=a\sec\theta for x2−a2x^2-a^2 -- the very substitutions used to prove the Type I square-root results.

Type IV. Integrals of the surd itself (not one over the surd), ∫a2−x2 dx\int\sqrt{a^2-x^2}\,dx, ∫x2−a2 dx\int\sqrt{x^2-a^2}\,dx, and ∫x2+a2 dx\int\sqrt{x^2+a^2}\,dx, form Result 11.3:

∫a2−x2 dx=x2a2−x2+a22sin⁡−1 ⁣(xa)+c,\int\sqrt{a^2-x^2}\,dx=\frac x2\sqrt{a^2-x^2}+\frac{a^2}2\sin^{-1}\!\left(\frac xa\right)+c,

∫x2−a2 dx=x2x2−a2−a22log⁡∣x+x2−a2∣+c,\int\sqrt{x^2-a^2}\,dx=\frac x2\sqrt{x^2-a^2}-\frac{a^2}2\log\left|x+\sqrt{x^2-a^2}\right|+c, …