Calculus · Indefinite integrals
Rational functions can always be integrated: decompose into partial fractions, and every piece has a known antiderivative. Roots spoil this. The whole strategy for irrational integrands is one idea, applied in different disguises: find a substitution that makes the root disappear, so that what remains is a rational function. This post goes through the standard cases, explains why each substitution works, and ends with a surprising fact: some innocent-looking integrals cannot be done at all.
Throughout, \(R(x, y)\) denotes a rational function of two variables: an expression built from \(x\), \(y\) and constants using only \(+, -, \times, \div\). For example \( R(x, y) = \frac{x + y^2}{1 - xy} \). An integral such as \( \int R\big(x, \sqrt{x + 1}\big)\,dx \) then means "a rational expression in \(x\) and \(\sqrt{x + 1}\)".
Rational combinations of rational functions are rational, so once both \(x\) and the root are rational in \(t\), everything is. The only question is which substitution achieves that.
Why it works. With \( ax + b = t^n \): the root is simply \(t\), and \( x = \frac{t^n - b}{a} \), \( dx = \frac{n t^{n-1}}{a}\,dt \) are polynomials in \(t\). Everything is rational.
The second form is the first one in disguise: put \( u = x^m \), so \( du = m x^{m-1}\,dx \). The factor \(x^{m-1}\,dx\) is exactly what is needed, and the integral becomes \( \frac1m\int R\big(u, \sqrt[n]{au + b}\big)\,du \).
Several roots at once. If the integrand contains several roots of the same linear expression, say \( \sqrt[k_1]{ax + b}, \sqrt[k_2]{ax + b}, \dots \), use \( ax + b = t^n \) with \(n\) the least common multiple of \(k_1, k_2, \dots\). Then every root is a whole power of \(t\).
The same idea works for roots of a linear fraction \( \sqrt[n]{\frac{ax + b}{cx + d}} \): put \( \frac{ax + b}{cx + d} = t^n \), and \(x\) is again rational in \(t\).
Why it works. The troublesome factor \( (x - \alpha)^n \) in the denominator becomes \( t^{-n} \), so it moves to the numerator as \(t^n\). Meanwhile \( ax^2 + bx + c \), written in terms of \(x = \alpha + \frac1t\), becomes \( \frac{(\text{quadratic in } t)}{t^2} \), and its root is \( \frac{\sqrt{\text{quadratic in } t}}{|t|} \). What is left is a polynomial in \(t\) divided by the root of a quadratic in \(t\), which is exactly the type handled in Section 5 below (or, for small \(n\), a basic table integral).
It helps to split the numerator first: \( Mx + N = M(x - \alpha) + (M\alpha + N) \). This gives two integrals of the same type, with powers \(n - 1\) and \(n\).
Why it works: the Pythagorean identities turn the expression under the root into a perfect square.
\[ a^2 - a^2\sin^2 t = a^2\cos^2 t, \qquad a^2 + a^2\tan^2 t = \frac{a^2}{\cos^2 t}. \]So \( \sqrt{a^2 - x^2} = a\cos t \) (for \( -\frac\pi2 \le t \le \frac\pi2 \), where \(\cos t \ge 0\)) and \( \sqrt{a^2 + x^2} = \frac{a}{\cos t} \) (for \( |t| < \frac\pi2 \)). The result is an integral of a rational function of \(\sin t\) and \(\cos t\), which can always be done (for instance with \( \tan\frac t2 = u \)).
The third relative, which the original text does not list, is \( \sqrt{x^2 - a^2} \): there the substitution \( x = \frac{a}{\cos t} \) works, because \( \frac{a^2}{\cos^2 t} - a^2 = a^2\tan^2 t \).
For a polynomial divided by a square root of a quadratic, there is a neat shortcut that avoids trigonometry entirely.
Why this form? The derivative of \( (\text{polynomial of degree } m - 1)\cdot Q \) is \( \frac{\text{polynomial of degree } m}{Q} \), because \( Q' = \frac{2ax + b}{2Q} \). So this term can produce every part of \(P_m/Q\) except one leftover constant over \(Q\), and that is what \(\lambda\int\frac{dx}{Q}\) takes care of. The count also works out: \(m + 1\) unknowns (\(A_0, \dots, A_{m-1}, \lambda\)) for the \(m + 1\) coefficients of \(P_m\).
The remaining integral is a table integral:
\[ \int\frac{dx}{\sqrt{x^2 + k}} = \ln\big|x + \sqrt{x^2 + k}\big| + C, \qquad \int\frac{dx}{\sqrt{a^2 - x^2}} = \arcsin\frac xa + C, \]after completing the square if needed.
An expression \( x^m(a + bx^n)^p\,dx \), with rational exponents \(m, n, p\), is called a binomial differential. Whether its integral is elementary depends only on these three numbers.
Each substitution is designed so that both \(x\) and the power \((a + bx^n)^p\) become rational in \(t\). In case 2, \( (a + bx^n)^p = t^{sp} \) is a whole power of \(t\), and the integer condition makes the remaining factor \(x^m\,dx\) rational as well. Case 3 is case 2 after pulling \(x^n\) out of the bracket: \( (a + bx^n)^p = x^{np}(ax^{-n} + b)^p \).
| Integrand contains | Substitution | Why it works |
|---|---|---|
| \( \sqrt[n]{ax + b} \) | \( ax + b = t^n \) | root becomes \(t\), \(x\) is a polynomial in \(t\) |
| several roots \( \sqrt[k_i]{ax + b} \) | \( ax + b = t^n \), \(n = \text{lcm}(k_i)\) | all roots become powers of \(t\) |
| \( \frac{1}{(x - \alpha)^n\sqrt{ax^2 + bx + c}} \) | \( x - \alpha = \frac1t \) | \((x - \alpha)^n\) moves to the numerator |
| \( \sqrt{a^2 - x^2} \) | \( x = a\sin t \) | \(1 - \sin^2 = \cos^2\) |
| \( \sqrt{a^2 + x^2} \) | \( x = a\tan t \) | \(1 + \tan^2 = 1/\cos^2\) |
| \( \sqrt{x^2 - a^2} \) | \( x = a/\cos t \) | \(1/\cos^2 - 1 = \tan^2\) |
| \( \frac{P_m(x)}{\sqrt{ax^2 + bx + c}} \) | undetermined coefficients | \( (\deg m{-}1 \text{ poly})\cdot Q \) differentiates to \( \frac{\deg m \text{ poly}}{Q} \) |
| \( x^m(a + bx^n)^p \) | Chebyshev's three cases | otherwise not elementary |
Try each one before opening the solution. More solved problems from this topic are in Integrals.
\( x = t^2 \): \( \int\frac{2t^2}{1 + t^2}\,dt = \int\Big(2 - \frac{2}{1 + t^2}\Big)dt = 2\sqrt x - 2\arctan\sqrt x + C \).
\( x = \frac1t \): the integral becomes \( -\int\frac{t\,dt}{\sqrt{1 - t^2}} = \sqrt{1 - t^2} = \frac{\sqrt{x^2 - 1}}{x} + C \).
Write it as \( \int\frac{x^2 + 1}{Q}\,dx = (Ax + B)Q + \lambda\int\frac{dx}{Q} \). Then \( x^2 + 1 = 2Ax^2 + Bx + (A + \lambda) \), so \( A = \frac12, B = 0, \lambda = \frac12 \): \( \frac x2\sqrt{x^2 + 1} + \frac12\ln\big(x + \sqrt{x^2 + 1}\big) + C \).
\( m = -1, n = 2, p = -\frac12 \); \( \frac{m + 1}{n} = 0 \), case 2. With \( 1 + x^2 = t^2 \): \( \frac{dx}{x} = \frac{x\,dx}{x^2} = \frac{t\,dt}{t^2 - 1} \), so the integral is \( \int\frac{dt}{t^2 - 1} = \frac12\ln\frac{t - 1}{t + 1} = \frac12\ln\frac{\sqrt{1 + x^2} - 1}{\sqrt{1 + x^2} + 1} + C \).
(a) \( m = 2, n = 3 \): \( \frac{m + 1}{n} = 1 \), elementary; indeed it equals \( \frac29(1 + x^3)^{3/2} + C \).
(b) \( m = 0, n = 4, p = -\frac12 \): \( -\frac12, \frac14, -\frac14 \), none an integer, so not elementary (an elliptic integral).
(c) \( m = -\frac12, n = \frac14, p = \frac13 \): \( \frac{m + 1}{n} = 2 \), elementary, with \( 1 + \sqrt[4]x = t^3 \).
Two reasons: the substitution must be invertible (\( t = \arcsin\frac xa \)), and on that interval \( \cos t \ge 0 \), so \( \sqrt{a^2\cos^2 t} = a\cos t \) without an absolute value.
Every method in this post follows the same plan: choose a substitution under which the root becomes a rational expression, then integrate a rational function. Linear roots fall to \(ax + b = t^n\); quadratic roots fall to trigonometric identities or to undetermined coefficients; binomial differentials fall to one of Chebyshev's three substitutions. Chebyshev's theorem also marks where the method ends. Beyond those cases there is no substitution to find, and that is a statement about the integral itself, not about how hard we tried.
Related posts: Euler integrals (the gamma and beta functions, which describe many non-elementary integrals) and Taylor's formula.