Unit 5, lesson 60

Other Integration Techniques and Symbolic Tools

How to guess an antiderivative's form and solve for its coefficients, when a differential binomial has an elementary antiderivative, and how to use tables and computer algebra safely.

  • Theory part 119
  • Practice part 120
  • Integration Techniques

By now you have substitution, integration by parts, trigonometric methods and partial fractions. Real problems still produce integrals that fit none of them neatly, and some have no formula at all. This page collects the remaining tools, from smart guessing to tables and computer algebra, plus the one habit that keeps all of them honest. Differentiate your answer.

Key terms

Undetermined coefficients in antiderivatives

Definition When the form of an antiderivative is known except for some constants, you can write that form with unknown coefficients, differentiate it, and match coefficients with the integrand. The standard case is this. If pp is a polynomial of degree nn and a≠0a \neq 0, then

∫p(x)eax dx=q(x)eax+C,\int p(x) e^{ax} \, dx = q(x) e^{ax} + C,

where qq is the unique polynomial of degree nn with q′(x)+a q(x)=p(x)q'(x) + a\,q(x) = p(x) for all xx. Similarly, for real aa and bb not both zero,

∫eaxcos⁡(bx) dx=eax(Acos⁡(bx)+Bsin⁡(bx))+C\int e^{ax} \cos(bx) \, dx = e^{ax} \left(A \cos(bx) + B \sin(bx)\right) + C

for suitable constants AA and BB, and the same form works for eaxsin⁡(bx)e^{ax} \sin(bx).

In plain words If you know what shape the answer must have, write that shape with letters for the unknown numbers and let differentiation tell you the numbers. It replaces repeated integration by parts with a little algebra.

Example To integrate x2exx^2 e^x, try (Ax2+Bx+C0)ex(Ax^2 + Bx + C_0)e^x. Its derivative is

(Ax2+(2A+B)x+(B+C0))ex.\left(Ax^2 + (2A + B)x + (B + C_0)\right)e^x.

Matching with x2exx^2 e^x gives A=1A = 1, 2A+B=02A + B = 0 and B+C0=0B + C_0 = 0, so B=−2B = -2 and C0=2C_0 = 2. Hence

∫x2ex dx=(x2−2x+2)ex+C.\int x^2 e^x \, dx = (x^2 - 2x + 2)e^x + C.

Differential binomials

Definition A differential binomial is an integral of the form

∫xm(a+bxn)p dx,\int x^m (a + b x^n)^p \, dx,

where mm, nn and pp are rational numbers, n≠0n \neq 0, and aa and bb are nonzero real constants, considered on an interval where the integrand is defined. A classical theorem says the antiderivative is an elementary function if and only if at least one of the three numbers

p,m+1n,m+1n+pp, \qquad \frac{m + 1}{n}, \qquad \frac{m + 1}{n} + p

is an integer. In the three cases the substitutions x=tNx = t^N (with NN a common denominator of mm and nn), a+bxn=tsa + b x^n = t^s, and ax−n+b=tsa x^{-n} + b = t^s (with ss the denominator of pp) turn the integrand into a rational function of tt.

In plain words For integrals made of a power of xx times a power of a two term sum, a quick integer test tells you whether a formula exists at all, and if so, which substitution finds it.

Example In the integral of x31+x2x^3 \sqrt{1 + x^2} you have m=3m = 3, n=2n = 2, p=12p = \frac{1}{2}, and m+1n=2\frac{m + 1}{n} = 2 is an integer. The theorem’s substitution is 1+x2=t21 + x^2 = t^2, and here the plain u=1+x2u = 1 + x^2 is even quicker. Put u=1+x2u = 1 + x^2, so x dx=du2x \, dx = \frac{du}{2} and x2=u−1x^2 = u - 1. Then

∫x31+x2 dx=12∫(u−1)u1/2 du=15(1+x2)5/2−13(1+x2)3/2+C.\int x^3 \sqrt{1 + x^2} \, dx = \frac{1}{2} \int (u - 1) u^{1/2} \, du = \frac{1}{5}(1 + x^2)^{5/2} - \frac{1}{3}(1 + x^2)^{3/2} + C.

By contrast, the integrand 1+x3\sqrt{1 + x^3} has m=0m = 0, n=3n = 3, p=12p = \frac{1}{2}, and the three numbers 12\frac{1}{2}, 13\frac{1}{3} and 56\frac{5}{6} are not integers. It has no elementary antiderivative.

Reduction strategies

Definition A reduction formula expresses an integral InI_n that depends on an integer nn in terms of integrals of the same kind with smaller index, such as In−1I_{n-1} or In−2I_{n-2}. It is usually found by integration by parts. For example, for every integer n≥2n \ge 2,

∫sin⁡nx dx=−1nsin⁡n−1xcos⁡x+n−1n∫sin⁡n−2x dx.\int \sin^n x \, dx = -\frac{1}{n} \sin^{n-1} x \cos x + \frac{n - 1}{n} \int \sin^{n-2} x \, dx.

Repeating the formula lowers the index until only the integral of 11 or of sin⁡x\sin x remains, and those are easy.

In plain words Instead of attacking a high power head on, find a rule that knocks the power down by one or two, then use it again and again.

Example On [0,π2][0, \frac{\pi}{2}] the boundary term sin⁡n−1xcos⁡x\sin^{n-1} x \cos x is 00 at both ends, so for n≥2n \ge 2

∫0π/2sin⁡nx dx=n−1n∫0π/2sin⁡n−2x dx.\int_0^{\pi/2} \sin^n x \, dx = \frac{n-1}{n} \int_0^{\pi/2} \sin^{n-2} x \, dx.

Therefore

∫0π/2sin⁡4x dx=34⋅12⋅∫0π/2dx=38⋅π2=3π16.\int_0^{\pi/2} \sin^4 x \, dx = \frac{3}{4} \cdot \frac{1}{2} \cdot \int_0^{\pi/2} dx = \frac{3}{8} \cdot \frac{\pi}{2} = \frac{3\pi}{16}.

Tables of integrals

Definition A table of integrals is a list of antiderivative formulas, each valid under stated conditions on its parameters and on the variable, such as

∫duu2+a2=1aarctan⁡ua+C,a≠0.\int \frac{du}{u^2 + a^2} = \frac{1}{a} \arctan \frac{u}{a} + C, \qquad a \neq 0.

To use an entry, bring your integral into the exact form of the entry by algebra or by a substitution u=g(x)u = g(x), include the factor du=g′(x) dxdu = g'(x)\,dx, and check that the stated conditions hold.

In plain words A table is a catalogue of finished answers. Most of the work is reshaping your integral until it matches one of them exactly.

Example To integrate 1/(4x2+9)1/(4x^2 + 9), put u=2xu = 2x, so du=2 dxdu = 2 \, dx and 4x2+9=u2+324x^2 + 9 = u^2 + 3^2. The entry with a=3a = 3 gives

∫dx4x2+9=12∫duu2+9=16arctan⁡2x3+C.\int \frac{dx}{4x^2 + 9} = \frac{1}{2} \int \frac{du}{u^2 + 9} = \frac{1}{6} \arctan \frac{2x}{3} + C.

Computer algebra

Definition A computer algebra system is software that manipulates expressions exactly, with symbols and rational numbers rather than decimal approximations. For an integrand built from elementary functions it can search for an elementary antiderivative, and for large classes of integrands it can decide that none exists. Its output is an antiderivative on some set of xx values that it chooses, often under unstated assumptions about parameters (for example that a parameter is positive) and with branches of logarithms or roots that may not match your interval.

In plain words These programs are fast and usually right, but they answer the question they think you asked. Read the answer with the same care you would give a table entry.

Example Asked to integrate sin⁡xcos⁡x\sin x \cos x, one system may print 12sin⁡2x\frac{1}{2}\sin^2 x, another −12cos⁡2x-\frac{1}{2}\cos^2 x, and another −14cos⁡2x-\frac{1}{4}\cos 2x. All three are correct, because

12sin⁡2x−(−12cos⁡2x)=12,12sin⁡2x−(−14cos⁡2x)=14\frac{1}{2}\sin^2 x - \left(-\frac{1}{2}\cos^2 x\right) = \frac{1}{2}, \qquad \frac{1}{2}\sin^2 x - \left(-\frac{1}{4}\cos 2x\right) = \frac{1}{4}

are constants. Likewise an answer of ln⁡x\ln x for the integral of 1/x1/x is fine for x>0x > 0 but needs to be read as ln⁡∣x∣\ln \lvert x \rvert on (−∞,0)(-\infty, 0).

Non-elementary antiderivatives

Definition The elementary functions are those built from constants and xx using finitely many arithmetic operations, roots, exponentials, logarithms, trigonometric functions, inverse trigonometric functions and compositions. Some elementary functions have no elementary antiderivative. Examples are

e−x2,sin⁡xx,1ln⁡x,1+x3.e^{-x^2}, \qquad \frac{\sin x}{x}, \qquad \frac{1}{\ln x}, \qquad \sqrt{1 + x^3}.

They still have antiderivatives on any interval where they are continuous. By the fundamental theorem of calculus, if ff is continuous on an interval II and c∈Ic \in I, then the function

F(x)=∫cxf(t) dt,x∈I,F(x) = \int_c^x f(t) \, dt, \qquad x \in I,

satisfies F′(x)=f(x)F'(x) = f(x) for every x∈Ix \in I.

In plain words “No formula” does not mean “no antiderivative”. The antiderivative exists, it just cannot be written with the usual functions, so you name it as an integral and compute its values numerically.

Example Define

F(x)=∫0xe−t2 dt.F(x) = \int_0^x e^{-t^2} \, dt.

Then F′(x)=e−x2F'(x) = e^{-x^2} for every real xx, and numerical integration gives F(1)≈0.7468F(1) \approx 0.7468. A multiple of this function is so useful in probability that it has its own name, the error function

erf⁡(x)=2πF(x).\operatorname{erf}(x) = \frac{2}{\sqrt{\pi}} F(x).

Differentiation check

Definition A function FF is an antiderivative of ff on an interval II if F′(x)=f(x)F'(x) = f(x) for every x∈Ix \in I. If FF and GG are both antiderivatives of ff on the same interval, then F−GF - G is constant there.

In plain words Whatever method or tool produced an answer, differentiate it. If you get the integrand back on the whole interval you care about, the answer is right, and it can differ from anyone else’s correct answer only by a constant.

Example Suppose you claim that for x>0x > 0

∫ln⁡x dx=xln⁡x−x+C.\int \ln x \, dx = x \ln x - x + C.

Differentiating gives

ddx(xln⁡x−x)=ln⁡x+x⋅1x−1=ln⁡x,\frac{d}{dx}(x \ln x - x) = \ln x + x \cdot \frac{1}{x} - 1 = \ln x,

so the claim holds on (0,∞)(0, \infty).

Check yourself

  1. Use undetermined coefficients to find ∫xe2x dx\int x e^{2x} \, dx.
Show the answer

Try (Ax+B)e2x(Ax + B)e^{2x}. Its derivative is (2Ax+A+2B)e2x(2Ax + A + 2B)e^{2x}, so 2A=12A = 1 and A+2B=0A + 2B = 0. That gives A=12A = \frac{1}{2}, B=−14B = -\frac{1}{4}, and the answer (x2−14)e2x+C\left(\frac{x}{2} - \frac{1}{4}\right)e^{2x} + C.

  1. Does ∫x1+x3 dx\int x \sqrt{1 + x^3} \, dx have an elementary antiderivative?
Show the answer

No. Here m=1m = 1, n=3n = 3, p=12p = \frac{1}{2}, and the numbers p=12p = \frac{1}{2}, m+1n=23\frac{m+1}{n} = \frac{2}{3} and 23+12=76\frac{2}{3} + \frac{1}{2} = \frac{7}{6} are not integers.

  1. A tool returns −12cos⁡2x-\frac{1}{2}\cos^2 x for ∫sin⁡xcos⁡x dx\int \sin x \cos x \, dx. Check it by differentiation.
Show the answer

The chain rule gives

ddx(−12cos⁡2x)=−cos⁡x⋅(−sin⁡x)=sin⁡xcos⁡x,\frac{d}{dx}\left(-\frac{1}{2}\cos^2 x\right) = -\cos x \cdot (-\sin x) = \sin x \cos x,

so it is a correct antiderivative on all of R\mathbb{R}.

How this lesson connects