MATH1231 2,935 words·15 min read

Integration Techniques

Table of procedures and examples for matching integrals to basic formulas

2.1 Trigonometric Integrals#

Sine and cosine#

These integrals are of the form

∫cos⁡mxsin⁡nxdx,\int{\cos^m{x} \sin^n{x}dx},

where mm and nn are non-negative integers. There are two cases:
(i). either mm or nn (or both) are odd;
(ii). both mm and nn are even.

For (i). suppose that mm is odd. Then, we can use the substitution u=sin⁡xu = \sin{x} with the identity

sin⁡2x+cos⁡2x=1\sin^2{x} + \cos^2{x} = 1

to evaluate the integral.
Example. Evaluate the integral ∫cos⁡3xsin⁡4xdx\int{\cos^3{x} \sin^4{x}dx}
We use the substitution u=sin⁡x,du=cos⁡xdxu = \sin{x}, du = \cos{x} dx to yield

∫cos⁡3xsin⁡4xdx=∫cos⁡2xsin⁡4xcos⁡xdx=∫(1−sin⁡2x)sin⁡4xcos⁡xdx=∫(1−u2)u4du=∫u4−u6du=u55−u77+C=sin⁡5x5−sin⁡7x7+C\begin{align*} \int{\cos^3{x} \sin^4{x}dx} &= \int{\cos^2{x} \sin^4{x} \cos{x}dx} \\ &= \int{(1-\sin^2{x}) \sin^4{x}\cos{x}dx} \\ &= \int{(1-u^2)u^4du} \\ &= \int{u^4-u^6}du \\ &= \frac{u^5}{5} - \frac{u^7}{7} + C \\ &= \frac{\sin^5{x}}{5} - \frac{\sin^7{x}}{7} + C \end{align*}

If nn is odd then we use the substitution u=cos⁡xu = \cos{x}. If both nn and mm are odd, then either substitution will work.

Example. Evaluate the integral ∫cos⁡6xsin⁡5xdx\int{\cos^6{x} \sin^5{x}dx}.
This time we use u=cos⁡x,du=−sin⁡xdxu = \cos{x}, du = -\sin{x}dx.

∫cos⁡6xsin⁡5xdx=−∫cos⁡6xsin⁡4x(−sin⁡x)dx=−∫cos⁡6x(1−cos⁡2x)2(−sin⁡x)dx=−∫u6(1−u2)2du=−∫u6−2u8+u10du=−(u77−2u99+u1111)+C=−cos⁡7x7+2cos⁡9x9−cos⁡11x11+C\begin{align*} \int{\cos^6{x} \sin^5{x}dx} &= -\int{\cos^6{x} \sin^4{x} (-\sin{x})dx} \\ &= -\int{\cos^6{x} (1-\cos^2{x})^2 (-\sin{x})dx} \\ &= -\int{u^6(1-u^2)^2du} \\ &= -\int{u^6-2u^8+u^{10}}du \\ &= -(\frac{u^7}{7} - \frac{2u^9}{9} + \frac{u^{11}}{11}) + C \\ &= -\frac{\cos^7{x}}{7} + \frac{2\cos^9{x}}{9} - \frac{\cos^{11}{x}}{11} + C \end{align*}

For (ii). where both mm and nn are even we use an entirely different approach. This time we use the identities

cos⁡2x=1+cos⁡2x2 and sin⁡2x=1−cos⁡2x2\begin{align*} \cos^2{x}= \frac{1+\cos{2x}}{2} && \text{ and } & &\sin^2{x}= \frac{1-\cos{2x}}{2} \end{align*}

to change the integrals into the form

∫cos⁡k2xdx.\int{\cos^k{2x}dx}.

We can then repeat the methods of either case until the integral in the sum is easy to compute.

Example. Evaluate ∫sin⁡2xcos⁡4xdx\int{\sin^2{x}\cos^4{x}dx}.
Using the identities,

∫sin⁡2xcos⁡4x dx=∫(1−cos⁡2x2)(1+cos⁡2x2)2 dx=18∫(1−cos⁡2x)(1+cos⁡2x)2 dx=18∫1+cos⁡2x−cos⁡22x−cos⁡32x dx=x8+sin⁡2x16−18∫cos⁡22x dx−18∫cos⁡32x dx.\begin{aligned}\int \sin^2 x \cos^4 x \, dx &= \int \left( \frac{1 - \cos 2x}{2} \right) \left( \frac{1 + \cos 2x}{2} \right)^2 \, dx \\&= \frac{1}{8} \int (1 - \cos 2x)(1 + \cos 2x)^2 \, dx \\&= \frac{1}{8} \int 1 + \cos 2x - \cos^2 2x - \cos^3 2x \, dx \\&= \frac{x}{8} + \frac{\sin 2x}{16} - \frac{1}{8} \int \cos^2 2x \, dx - \frac{1}{8} \int \cos^3 2x \, dx. \end{aligned}

The first integrand of is an even power of cos⁡2x\cos 2x and is evaluated using the first identity:

∫cos⁡22x dx=12∫1+cos⁡4x dx=x2+sin⁡4x8+C1.\begin{aligned}\int \cos^2 2x \, dx &= \frac{1}{2} \int 1 + \cos 4x \, dx \\&= \frac{x}{2} + \frac{\sin 4x}{8} + C_1.\end{aligned}

The second integrand of (2.3) is an odd power of cos⁡2x\cos 2x. The substitution

u=sin⁡2x,du=2cos⁡2x dxu = \sin 2x, \qquad du = 2 \cos 2x \, dx

gives

∫cos⁡32x dx=12∫(1−sin⁡22x)2cos⁡2x dx=12∫1−u2 du=u2−u36+C2=sin⁡2x2−sin⁡32x6+C2.\begin{aligned}\int \cos^3 2x \, dx &= \frac{1}{2} \int (1 - \sin^2 2x)2 \cos 2x \, dx \\&= \frac{1}{2} \int 1 - u^2 \, du \\&= \frac{u}{2} - \frac{u^3}{6} + C_2 \\&= \frac{\sin 2x}{2} - \frac{\sin^3 2x}{6} + C_2.\end{aligned}

Thus we obtain

∫sin⁡2xcos⁡4x dx=x8+sin⁡2x16−x16−sin⁡4x64−sin⁡2x16+sin⁡32x48+C=x16−sin⁡4x64+sin⁡32x48+C.\begin{aligned}\int \sin^2 x \cos^4 x \, dx &= \frac{x}{8} + \frac{\sin 2x}{16} - \frac{x}{16} - \frac{\sin 4x}{64} - \frac{\sin 2x}{16} + \frac{\sin^3 2x}{48} + C \\&= \frac{x}{16} - \frac{\sin 4x}{64} + \frac{\sin^3 2x}{48} + C.\end{aligned}

Integrating multiple angles of sine and cosine#

These integrals consist of integrals in the form:

∫cos⁡mxsin⁡nxdx,∫cos⁡mxcos⁡nx or ∫sin⁡mxsin⁡nx,\begin{align*} \int{\cos{mx}\sin{nx}dx}, && \int{\cos{mx}\cos{nx}} && \text{ or } &&\int{\sin{mx}\sin{nx}}, \end{align*}

where mm and nn are real numbers.

Note

Lemma
Suppose that AA and BB are real numbers. Then,

sin⁡Acos⁡B=12(sin⁡(A+B)+sin⁡(A−B))cos⁡Acos⁡B=12(cos⁡(A−B)+cos⁡(A+B))sin⁡Asin⁡B=12(cos⁡(A−B)−cos⁡(A+B))\begin{aligned} \sin A \cos B &= \frac{1}{2}(\sin(A + B) + \sin(A - B)) \\ \cos A \cos B &= \frac{1}{2}(\cos(A - B) + \cos(A + B)) \\ \sin A \sin B &= \frac{1}{2}(\cos(A - B) - \cos(A + B)) \end{aligned}

Example. Evaluate ∫cos⁡5xcos⁡3xdx.\int{\cos{5x}\cos{3x}dx.}
Using the identity,

∫cos⁡5xcos⁡3x dx=12∫cos⁡(5x−3x)+cos⁡(5x+3x) dx=12∫cos⁡(2x)+cos⁡(8x) dx=sin⁡2x4+sin⁡8x16+C.\begin{aligned} \int \cos 5x \cos 3x \, dx &= \frac{1}{2} \int \cos(5x - 3x) + \cos(5x + 3x) \, dx \\ &= \frac{1}{2} \int \cos(2x) + \cos(8x) \, dx \\ &= \frac{\sin 2x}{4} + \frac{\sin 8x}{16} + C. \end{aligned}

Example. Evaluate ∫0πsin⁡3xsin⁡x dx\int_{0}^{\pi}{\sin{3x}\sin{x}\,dx}.
Using the third identity with A=3xA = 3x and B=xB = x,

∫0πsin⁡3xsin⁡x dx=12∫0πcos⁡(3x−x)−cos⁡(3x+x) dx=12∫0πcos⁡2x−cos⁡4x dx=12[sin⁡2x2−sin⁡4x4]0π=12(0−0)=0.\begin{align*} \int_{0}^{\pi}{\sin{3x}\sin{x}\,dx} &= \frac{1}{2}\int_{0}^{\pi}{\cos(3x-x) - \cos(3x+x)\,dx} \\ &= \frac{1}{2}\int_{0}^{\pi}{\cos{2x} - \cos{4x}\,dx} \\ &= \frac{1}{2}\left[\frac{\sin{2x}}{2} - \frac{\sin{4x}}{4}\right]_{0}^{\pi} \\ &= \frac{1}{2}(0 - 0) \\ &= 0. \end{align*}

Therefore, the integral is 00 — no heavy algebra required. In fact, ∫0πsin⁡mxsin⁡nx dx=0\int_{0}^{\pi}{\sin{mx}\sin{nx}\,dx} = 0 whenever mm and nn are distinct positive integers (and the same happens for cos⁡mxcos⁡nx\cos{mx}\cos{nx}); basically the two waves are "orthogonal" over a full period, which is the starting point of Fourier series in second year. Checking whether the multiple-angle terms vanish at the limits before grinding through the algebra can save you a lot of time in an exam.

Integrating powers of tan⁡\tan and sec⁡\sec#

This section is too easy so imma just paste an image
Identities tan² x + 1 = sec² x, d(tan x)/dx = sec² x, and d(sec x)/dx = tan x sec x

2.2 Reduction Formulae#

For non-obvious trigonometric reductions, you're more likely to just use integration by parts.

A reduction formula expresses an integral InI_n that depends on a parameter nn in terms of a 'smaller' integral of the same type (usually In−1I_{n-1} or In−2I_{n-2}). Once you have one, big powers get knocked down step by step until you land on a base case like I0I_0 or I1I_1, which has to be computed directly. Occasionally an identity alone does the job, as in the first example below; every other derivation in this section needs integration by parts.

Example. Suppose that In=∫0π/4tan⁡nx dxI_n = \int_{0}^{\pi/4}{\tan^n{x}\,dx} whenever n≥0n \geq 0. Show that

In=1n−1−In−2∀n≥2,I_n = \frac{1}{n-1} - I_{n-2} \quad \forall n \geq 2,

and hence evaluate ∫0π/4tan⁡6x dx\int_{0}^{\pi/4}{\tan^6{x}\,dx}.
By the identity tan⁡2x=sec⁡2x−1\tan^2{x} = \sec^2{x} - 1,

In=∫0π/4tan⁡n−2xtan⁡2x dx=∫0π/4tan⁡n−2x(sec⁡2x−1) dx=∫0π/4tan⁡n−2xsec⁡2x dx−∫0π/4tan⁡n−2x dx=[tan⁡n−1xn−1]0π/4−In−2=1n−1−In−2,\begin{align*} I_n &= \int_{0}^{\pi/4}{\tan^{n-2}{x}\tan^2{x}\,dx} \\ &= \int_{0}^{\pi/4}{\tan^{n-2}{x}(\sec^2{x}-1)\,dx} \\ &= \int_{0}^{\pi/4}{\tan^{n-2}{x}\sec^2{x}\,dx} - \int_{0}^{\pi/4}{\tan^{n-2}{x}\,dx} \\ &= \left[\frac{\tan^{n-1}{x}}{n-1}\right]_{0}^{\pi/4} - I_{n-2} \\ &= \frac{1}{n-1} - I_{n-2}, \end{align*}

where the first integral was done by inspection, since it is of the form ∫un−2 du\int{u^{n-2}\,du} with u=tan⁡xu = \tan{x}. Now apply the formula repeatedly:

∫0π/4tan⁡6x dx=I6=15−I4=15−(13−I2)=15−13+(11−I0)=15−13+1−∫0π/4dx=15−13+1−π4=1315−π4.\begin{align*} \int_{0}^{\pi/4}{\tan^6{x}\,dx} &= I_6 \\ &= \frac{1}{5} - I_4 \\ &= \frac{1}{5} - \left(\frac{1}{3} - I_2\right) \\ &= \frac{1}{5} - \frac{1}{3} + \left(\frac{1}{1} - I_0\right) \\ &= \frac{1}{5} - \frac{1}{3} + 1 - \int_{0}^{\pi/4}{dx} \\ &= \frac{1}{5} - \frac{1}{3} + 1 - \frac{\pi}{4} \\ &= \frac{13}{15} - \frac{\pi}{4}. \end{align*}

Therefore, ∫0π/4tan⁡6x dx=1315−π4\int_{0}^{\pi/4}{\tan^6{x}\,dx} = \frac{13}{15} - \frac{\pi}{4}. It is important to remember that the base case I0I_0 must be evaluated directly, since the reduction formula is only valid when n≥2n \geq 2.

Powers of sine and cosine#

Note

Theorem (Reduction formula for sin⁡n\sin^n)
Suppose that In=∫sin⁡nx dxI_n = \int{\sin^n{x}\,dx} whenever n≥0n \geq 0. Then

In=−sin⁡n−1xcos⁡xn+n−1nIn−2∀n≥2.I_n = -\frac{\sin^{n-1}{x}\cos{x}}{n} + \frac{n-1}{n}I_{n-2} \quad \forall n \geq 2.

Proof. Apply integration by parts with

u=sin⁡n−1xv=−cos⁡xu′=(n−1)sin⁡n−2xcos⁡xv′=sin⁡x.\begin{align*} u &= \sin^{n-1}{x} && v = -\cos{x} \\ u' &= (n-1)\sin^{n-2}{x}\cos{x} && v' = \sin{x}. \end{align*}

Then

In=∫sin⁡n−1xsin⁡x dx=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2xcos⁡xcos⁡x dx=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2x(1−sin⁡2x) dx=−sin⁡n−1xcos⁡x+(n−1)In−2−(n−1)In,\begin{align*} I_n &= \int{\sin^{n-1}{x}\sin{x}\,dx} \\ &= -\sin^{n-1}{x}\cos{x} + (n-1)\int{\sin^{n-2}{x}\cos{x}\cos{x}\,dx} \\ &= -\sin^{n-1}{x}\cos{x} + (n-1)\int{\sin^{n-2}{x}(1-\sin^2{x})\,dx} \\ &= -\sin^{n-1}{x}\cos{x} + (n-1)I_{n-2} - (n-1)I_n, \end{align*}

using cos⁡2x=1−sin⁡2x\cos^2{x} = 1 - \sin^2{x} in the third line. Gathering the InI_n terms on the left-hand side gives

nIn=−sin⁡n−1xcos⁡x+(n−1)In−2,nI_n = -\sin^{n-1}{x}\cos{x} + (n-1)I_{n-2},

and dividing both sides by nn gives the result. ■\blacksquare

Basically, you peel one factor of sin⁡x\sin{x} off to integrate by parts, and the Pythagorean identity smuggles InI_n back onto the right-hand side; "solving for the integral" is what produces the formula. It is the same trick used for ∫excos⁡x dx\int{e^x\cos{x}\,dx}. Swapping the roles of sin⁡\sin and cos⁡\cos gives the analogous formula

∫cos⁡nx dx=cos⁡n−1xsin⁡xn+n−1n∫cos⁡n−2x dx\boxed{\int{\cos^n{x}\,dx} = \frac{\cos^{n-1}{x}\sin{x}}{n} + \frac{n-1}{n}\int{\cos^{n-2}{x}\,dx}}

Over [0,π2][0, \frac{\pi}{2}] the boundary term vanishes at both ends (since sin⁡0=0\sin{0} = 0 and cos⁡π2=0\cos{\frac{\pi}{2}} = 0), so both formulae collapse to

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

and identically for cos⁡nx\cos^n{x}.

Example. Evaluate ∫0π/2sin⁡5x dx\int_{0}^{\pi/2}{\sin^5{x}\,dx}.
Applying the boxed formula twice,

∫0π/2sin⁡5x dx=45∫0π/2sin⁡3x dx=45⋅23∫0π/2sin⁡x dx=815[−cos⁡x]0π/2=815(0−(−1))=815.\begin{align*} \int_{0}^{\pi/2}{\sin^5{x}\,dx} &= \frac{4}{5}\int_{0}^{\pi/2}{\sin^3{x}\,dx} \\ &= \frac{4}{5}\cdot\frac{2}{3}\int_{0}^{\pi/2}{\sin{x}\,dx} \\ &= \frac{8}{15}\Big[-\cos{x}\Big]_{0}^{\pi/2} \\ &= \frac{8}{15}(0-(-1)) \\ &= \frac{8}{15}. \end{align*}

Therefore, ∫0π/2sin⁡5x dx=815\int_{0}^{\pi/2}{\sin^5{x}\,dx} = \frac{8}{15}; notice how the odd power stops at the base case I1I_1, which is integrated directly.

Example. Find ∫sin⁡4x dx\int{\sin^4{x}\,dx}.
The reduction formula gives

I4=−sin⁡3xcos⁡x4+34I2I2=−sin⁡xcos⁡x2+12I0=−sin⁡xcos⁡x2+x2.\begin{align*} I_4 &= -\frac{\sin^3{x}\cos{x}}{4} + \frac{3}{4}I_2 \\ I_2 &= -\frac{\sin{x}\cos{x}}{2} + \frac{1}{2}I_0 \\ &= -\frac{\sin{x}\cos{x}}{2} + \frac{x}{2}. \end{align*}

Substituting I2I_2 into I4I_4,

∫sin⁡4x dx=−sin⁡3xcos⁡x4+34(−sin⁡xcos⁡x2+x2)+C=−sin⁡3xcos⁡x4−3sin⁡xcos⁡x8+3x8+C.\begin{align*} \int{\sin^4{x}\,dx} &= -\frac{\sin^3{x}\cos{x}}{4} + \frac{3}{4}\left(-\frac{\sin{x}\cos{x}}{2} + \frac{x}{2}\right) + C \\ &= -\frac{\sin^3{x}\cos{x}}{4} - \frac{3\sin{x}\cos{x}}{8} + \frac{3x}{8} + C. \end{align*}

This is exactly what the double-angle identities of 2.1 would give (up to trig identities), but with far less algebra; for something like sin⁡8x\sin^8{x} the reduction formula is basically the only sane option.

Two-parameter reduction formulae#

Some reduction formulae carry two parameters instead of one.

Note

Theorem
Suppose that Im,n=∫0π/2cos⁡mxsin⁡nx dxI_{m,n} = \int_{0}^{\pi/2}{\cos^m{x}\sin^n{x}\,dx} whenever mm and nn are nonnegative integers. Then

Im,n={(m−1m+n)Im−2,nprovided that m≥2(n−1m+n)Im,n−2provided that n≥2.I_{m,n} = \begin{cases} \left(\dfrac{m-1}{m+n}\right)I_{m-2,n} & \text{provided that } m \geq 2 \\[2ex] \left(\dfrac{n-1}{m+n}\right)I_{m,n-2} & \text{provided that } n \geq 2. \end{cases}

Proof. For the first formula, apply integration by parts with

u=cos⁡m−1xv=sin⁡n+1xn+1u′=−(m−1)cos⁡m−2xsin⁡xv′=sin⁡nxcos⁡x.\begin{align*} u &= \cos^{m-1}{x} && v = \frac{\sin^{n+1}{x}}{n+1} \\ u' &= -(m-1)\cos^{m-2}{x}\sin{x} && v' = \sin^n{x}\cos{x}. \end{align*}

Then

Im,n=[cos⁡m−1xsin⁡n+1xn+1]0π/2+m−1n+1∫0π/2cos⁡m−2xsin⁡n+2x dx=m−1n+1∫0π/2cos⁡m−2xsin⁡nx(1−cos⁡2x) dx=m−1n+1Im−2,n−m−1n+1Im,n,\begin{align*} I_{m,n} &= \left[\frac{\cos^{m-1}{x}\sin^{n+1}{x}}{n+1}\right]_{0}^{\pi/2} + \frac{m-1}{n+1}\int_{0}^{\pi/2}{\cos^{m-2}{x}\sin^{n+2}{x}\,dx} \\ &= \frac{m-1}{n+1}\int_{0}^{\pi/2}{\cos^{m-2}{x}\sin^{n}{x}(1-\cos^2{x})\,dx} \\ &= \frac{m-1}{n+1}I_{m-2,n} - \frac{m-1}{n+1}I_{m,n}, \end{align*}

since the boundary term vanishes at both ends and sin⁡2x=1−cos⁡2x\sin^2{x} = 1 - \cos^2{x}. Gathering the Im,nI_{m,n} terms to the left (the same trick as the sine formula) gives

m+nn+1Im,n=m−1n+1Im−2,n,\frac{m+n}{n+1}I_{m,n} = \frac{m-1}{n+1}I_{m-2,n},

and multiplying both sides by n+1m+n\frac{n+1}{m+n} gives the first formula. The second formula is proved similarly. ■\blacksquare

Example. Evaluate ∫0π/2cos⁡4xsin⁡6x dx\int_{0}^{\pi/2}{\cos^4{x}\sin^6{x}\,dx}.
Use the first formula to reduce mm, then the second to reduce nn:

∫0π/2cos⁡4xsin⁡6x dx=I4,6=310I2,6=310⋅18I0,6=310⋅18⋅56I0,4=310⋅18⋅56⋅34I0,2=310⋅18⋅56⋅34⋅12I0,0=3256⋅π2=3π512.\begin{align*} \int_{0}^{\pi/2}{\cos^4{x}\sin^6{x}\,dx} &= I_{4,6} \\ &= \frac{3}{10}I_{2,6} \\ &= \frac{3}{10}\cdot\frac{1}{8}I_{0,6} \\ &= \frac{3}{10}\cdot\frac{1}{8}\cdot\frac{5}{6}I_{0,4} \\ &= \frac{3}{10}\cdot\frac{1}{8}\cdot\frac{5}{6}\cdot\frac{3}{4}I_{0,2} \\ &= \frac{3}{10}\cdot\frac{1}{8}\cdot\frac{5}{6}\cdot\frac{3}{4}\cdot\frac{1}{2}I_{0,0} \\ &= \frac{3}{256}\cdot\frac{\pi}{2} \\ &= \frac{3\pi}{512}. \end{align*}

Therefore, the integral equals 3π512\frac{3\pi}{512}. Do not forget that the recursion bottoms out at I0,0=∫0π/2dx=π2I_{0,0} = \int_{0}^{\pi/2}{dx} = \frac{\pi}{2}, which must be evaluated directly. As a sanity check, the substitution x↦π2−xx \mapsto \frac{\pi}{2} - x swaps sin⁡\sin and cos⁡\cos, so Im,n=In,mI_{m,n} = I_{n,m}; evaluating ∫0π/2cos⁡6xsin⁡4x dx\int_{0}^{\pi/2}{\cos^6{x}\sin^4{x}\,dx} gives the same 3π512\frac{3\pi}{512}.

Reduction formulae beyond trigonometry#

Nothing about reduction formulae is specifically trigonometric; any integrand with a power of nn in it is fair game, and exam questions like using exe^x or ln⁡x\ln{x} here.

Example. Suppose that In=∫01xne−x dxI_n = \int_{0}^{1}{x^n e^{-x}\,dx}. Show that

In=nIn−1−1e∀n≥1,I_n = nI_{n-1} - \frac{1}{e} \quad \forall n \geq 1,

and hence evaluate ∫01x3e−x dx\int_{0}^{1}{x^3 e^{-x}\,dx}.
Integration by parts with u=xnu = x^n, v=−e−xv = -e^{-x}, u′=nxn−1u' = nx^{n-1} and v′=e−xv' = e^{-x} gives

In=[−xne−x]01+n∫01xn−1e−x dx=−1e+nIn−1,\begin{align*} I_n &= \Big[-x^n e^{-x}\Big]_{0}^{1} + n\int_{0}^{1}{x^{n-1}e^{-x}\,dx} \\ &= -\frac{1}{e} + nI_{n-1}, \end{align*}

as required. The base case is

I0=∫01e−x dx=[−e−x]01=1−1e.\begin{align*} I_0 &= \int_{0}^{1}{e^{-x}\,dx} \\ &= \Big[-e^{-x}\Big]_{0}^{1} \\ &= 1 - \frac{1}{e}. \end{align*}

Now iterate upwards:

I1=I0−1e=1−2eI2=2I1−1e=2−5eI3=3I2−1e=6−16e.\begin{align*} I_1 &= I_0 - \frac{1}{e} = 1 - \frac{2}{e} \\ I_2 &= 2I_1 - \frac{1}{e} = 2 - \frac{5}{e} \\ I_3 &= 3I_2 - \frac{1}{e} = 6 - \frac{16}{e}. \end{align*}

Therefore, ∫01x3e−x dx=6−16e\int_{0}^{1}{x^3 e^{-x}\,dx} = 6 - \frac{16}{e}.

A reduction formula for powers of sec⁡\sec#

This one connects back to the tan⁡\tan and sec⁡\sec section of 2.1; powers of sec⁡\sec appear constantly after a x=atan⁡θx = a\tan{\theta} substitution (see 2.3), so it is worth knowing how to derive this.

Example. Show that if In=∫sec⁡nx dxI_n = \int{\sec^n{x}\,dx}, then

In=sec⁡n−2xtan⁡xn−1+n−2n−1In−2∀n≥2,I_n = \frac{\sec^{n-2}{x}\tan{x}}{n-1} + \frac{n-2}{n-1}I_{n-2} \quad \forall n \geq 2,

and hence find ∫sec⁡4x dx\int{\sec^4{x}\,dx}.
Write sec⁡nx=sec⁡n−2xsec⁡2x\sec^n{x} = \sec^{n-2}{x}\sec^2{x} and integrate by parts with

u=sec⁡n−2xv=tan⁡xu′=(n−2)sec⁡n−2xtan⁡xv′=sec⁡2x,\begin{align*} u &= \sec^{n-2}{x} && v = \tan{x} \\ u' &= (n-2)\sec^{n-2}{x}\tan{x} && v' = \sec^2{x}, \end{align*}

where u′u' comes from ddxsec⁡x=sec⁡xtan⁡x\frac{d}{dx}\sec{x} = \sec{x}\tan{x}; differentiating a power of sec⁡\sec conveniently keeps everything in powers of sec⁡\sec and tan⁡\tan. Then

In=sec⁡n−2xtan⁡x−(n−2)∫sec⁡n−2xtan⁡2x dx=sec⁡n−2xtan⁡x−(n−2)∫sec⁡n−2x(sec⁡2x−1) dx=sec⁡n−2xtan⁡x−(n−2)In+(n−2)In−2.\begin{align*} I_n &= \sec^{n-2}{x}\tan{x} - (n-2)\int{\sec^{n-2}{x}\tan^2{x}\,dx} \\ &= \sec^{n-2}{x}\tan{x} - (n-2)\int{\sec^{n-2}{x}(\sec^2{x}-1)\,dx} \\ &= \sec^{n-2}{x}\tan{x} - (n-2)I_n + (n-2)I_{n-2}. \end{align*}

Gathering the InI_n terms gives

(n−1)In=sec⁡n−2xtan⁡x+(n−2)In−2,(n-1)I_n = \sec^{n-2}{x}\tan{x} + (n-2)I_{n-2},

and dividing by n−1n-1 gives the formula. Applying it with n=4n = 4,

∫sec⁡4x dx=sec⁡2xtan⁡x3+23∫sec⁡2x dx=sec⁡2xtan⁡x3+2tan⁡x3+C.\begin{align*} \int{\sec^4{x}\,dx} &= \frac{\sec^2{x}\tan{x}}{3} + \frac{2}{3}\int{\sec^2{x}\,dx} \\ &= \frac{\sec^2{x}\tan{x}}{3} + \frac{2\tan{x}}{3} + C. \end{align*}

Therefore, ∫sec⁡4x dx=13sec⁡2xtan⁡x+23tan⁡x+C\int{\sec^4{x}\,dx} = \frac{1}{3}\sec^2{x}\tan{x} + \frac{2}{3}\tan{x} + C.

As a short remark: reduction formulae are the key ingredient in a famous proof that π\pi is irrational. Assuming π=pq\pi = \frac{p}{q} for positive integers pp and qq, one defines In=q2nn!∫−π/2π/2(π24−x2)ncos⁡x dxI_n = \frac{q^{2n}}{n!}\int_{-\pi/2}^{\pi/2}{\left(\frac{\pi^2}{4} - x^2\right)^n \cos{x}\,dx}, proves the reduction formula In=(4n−2)q2In−1−q4π2In−2I_n = (4n-2)q^2 I_{n-1} - q^4\pi^2 I_{n-2} by two applications of integration by parts, and deduces by induction that every InI_n is an integer. But since ann!→0\frac{a^n}{n!} \to 0, we also get 0<In<10 < I_n < 1 for large nn — a contradiction. This is [X] (extension) material, so it is not examinable.

2.3 Trigonometric and Hyperbolic Substitutions#

There is no systematic way of finding the right substitution for a general integral; however, integrals containing the square root of a quadratic (i.e. surds of the form ±x2±a2\sqrt{\pm x^2 \pm a^2}) almost always yield to a trigonometric or hyperbolic substitution. The table below tells you which one to try.

Expression in integrand Trigonometric substitution Hyperbolic substitution
a2−x2\sqrt{a^2 - x^2} x=asin⁡θx = a\sin{\theta} x=atanh⁡θx = a\tanh{\theta}
a2+x2\sqrt{a^2 + x^2} x=atan⁡θx = a\tan{\theta} x=asinh⁡θx = a\sinh{\theta}
x2−a2\sqrt{x^2 - a^2} x=asec⁡θx = a\sec{\theta} x=acosh⁡θx = a\cosh{\theta}

Basically, each substitution is chosen so that a Pythagorean-type identity turns the expression under the root into a perfect square:

a2−a2sin⁡2θ=a2cos⁡2θ,a2+a2tan⁡2θ=a2sec⁡2θ,a2cosh⁡2θ−a2=a2sinh⁡2θ.\begin{align*} a^2 - a^2\sin^2{\theta} = a^2\cos^2{\theta}, && a^2 + a^2\tan^2{\theta} = a^2\sec^2{\theta}, && a^2\cosh^2{\theta} - a^2 = a^2\sinh^2{\theta}. \end{align*}

Whether the trigonometric or hyperbolic option is faster depends on the particular integral, but in general the trigonometric ones are favoured because once the integration is done in θ\theta, it is easier to restate the answer in terms of xx (you just draw a right triangle).

Example. Evaluate ∫1−x2 dx\int{\sqrt{1-x^2}\,dx}.
The substitution x=sin⁡θx = \sin{\theta}, dx=cos⁡θ dθdx = \cos{\theta}\,d\theta yields

∫1−x2 dx=∫1−sin⁡2θcos⁡θ dθ=∫cos⁡2θcos⁡θ dθ=∫cos⁡2θ dθ=12∫1+cos⁡2θ dθ=12(θ+sin⁡2θ2)+C=12(θ+sin⁡θcos⁡θ)+C,\begin{align*} \int{\sqrt{1-x^2}\,dx} &= \int{\sqrt{1-\sin^2{\theta}}\cos{\theta}\,d\theta} \\ &= \int{\sqrt{\cos^2{\theta}}\cos{\theta}\,d\theta} \\ &= \int{\cos^2{\theta}\,d\theta} \\ &= \frac{1}{2}\int{1+\cos{2\theta}\,d\theta} \\ &= \frac{1}{2}\left(\theta + \frac{\sin{2\theta}}{2}\right) + C \\ &= \frac{1}{2}(\theta + \sin{\theta}\cos{\theta}) + C, \end{align*}

using the double angle formulae for cos⁡\cos and then sin⁡\sin. To state the answer in terms of xx, draw a right triangle containing the angle θ\theta: since sin⁡θ=x1\sin{\theta} = \frac{x}{1}, put xx on the side opposite θ\theta and 11 on the hypotenuse, so the adjacent side is 1−x2\sqrt{1-x^2} by Pythagoras. Reading off the triangle, θ=sin⁡−1x\theta = \sin^{-1}{x} and cos⁡θ=1−x2\cos{\theta} = \sqrt{1-x^2}, hence

∫1−x2 dx=12(sin⁡−1x+x1−x2)+C.\int{\sqrt{1-x^2}\,dx} = \frac{1}{2}\left(\sin^{-1}{x} + x\sqrt{1-x^2}\right) + C.

This triangle trick is how you convert back at the end of almost every trigonometric substitution, so make sure you are comfortable with it.

Example. Evaluate ∫dx(4+x2)3/2\int{\frac{dx}{(4+x^2)^{3/2}}}.
Since (4+x2)3/2=(4+x2)3(4+x^2)^{3/2} = (\sqrt{4+x^2})^3, this is still a surd of a quadratic in disguise, so we use x=2tan⁡θx = 2\tan{\theta}, dx=2sec⁡2θ dθdx = 2\sec^2{\theta}\,d\theta together with tan⁡2θ+1=sec⁡2θ\tan^2{\theta} + 1 = \sec^2{\theta}:

∫dx(4+x2)3/2=∫2sec⁡2θ dθ(4tan⁡2θ+4)3=∫2sec⁡2θ dθ(2sec⁡θ)3=14∫dθsec⁡θ=14∫cos⁡θ dθ=sin⁡θ4+C.\begin{align*} \int{\frac{dx}{(4+x^2)^{3/2}}} &= \int{\frac{2\sec^2{\theta}\,d\theta}{\left(\sqrt{4\tan^2{\theta}+4}\right)^3}} \\ &= \int{\frac{2\sec^2{\theta}\,d\theta}{(2\sec{\theta})^3}} \\ &= \frac{1}{4}\int{\frac{d\theta}{\sec{\theta}}} \\ &= \frac{1}{4}\int{\cos{\theta}\,d\theta} \\ &= \frac{\sin{\theta}}{4} + C. \end{align*}

Now the triangle: tan⁡θ=x2\tan{\theta} = \frac{x}{2}, so put xx opposite, 22 adjacent, and the hypotenuse is x2+4\sqrt{x^2+4}. Thus sin⁡θ=xx2+4\sin{\theta} = \frac{x}{\sqrt{x^2+4}} and

∫dx(4+x2)3/2=x4x2+4+C.\int{\frac{dx}{(4+x^2)^{3/2}}} = \frac{x}{4\sqrt{x^2+4}} + C.

Example. Use the substitution x=3cosh⁡θx = 3\cosh{\theta} to evaluate ∫x3x2−9dx\int{\frac{x^3}{\sqrt{x^2-9}}dx}.
With x=3cosh⁡θx = 3\cosh{\theta}, dx=3sinh⁡θ dθdx = 3\sinh{\theta}\,d\theta, the identity cosh⁡2θ−sinh⁡2θ=1\cosh^2{\theta} - \sinh^2{\theta} = 1 gives x2−9=9cosh⁡2θ−9=3sinh⁡θ\sqrt{x^2-9} = \sqrt{9\cosh^2{\theta}-9} = 3\sinh{\theta}. Hence

∫x3x2−9dx=∫27cosh⁡3θ⋅3sinh⁡θ dθ3sinh⁡θ=27∫cosh⁡3θ dθ=27∫cosh⁡θ(1+sinh⁡2θ) dθ=27∫1+u2 du=27(u+u33)+C,\begin{align*} \int{\frac{x^3}{\sqrt{x^2-9}}dx} &= \int{\frac{27\cosh^3{\theta}\cdot 3\sinh{\theta}\,d\theta}{3\sinh{\theta}}} \\ &= 27\int{\cosh^3{\theta}\,d\theta} \\ &= 27\int{\cosh{\theta}(1+\sinh^2{\theta})\,d\theta} \\ &= 27\int{1+u^2\,du} \\ &= 27\left(u + \frac{u^3}{3}\right) + C, \end{align*}

where the odd power of cosh⁡\cosh was handled with the substitution u=sinh⁡θu = \sinh{\theta}, du=cosh⁡θ dθdu = \cosh{\theta}\,d\theta — exactly like odd powers of cos⁡\cos back in 2.1. Since u=sinh⁡θ=13x2−9u = \sinh{\theta} = \frac{1}{3}\sqrt{x^2-9},

∫x3x2−9dx=27(x2−93+(x2−9)3/281)+C=9x2−9+13(x2−9)3/2+C.\begin{align*} \int{\frac{x^3}{\sqrt{x^2-9}}dx} &= 27\left(\frac{\sqrt{x^2-9}}{3} + \frac{(x^2-9)^{3/2}}{81}\right) + C \\ &= 9\sqrt{x^2-9} + \frac{1}{3}(x^2-9)^{3/2} + C. \end{align*}

Notice how with hyperbolic substitutions you convert back to xx through the identity itself (sinh⁡θ=13x2−9\sinh{\theta} = \frac{1}{3}\sqrt{x^2-9}), no triangle needed. The same integral can also be done with x=3sec⁡θx = 3\sec{\theta}; it is a good exercise to check you get the same answer.

Example. Evaluate ∫dxx2−6x+13\int{\frac{dx}{\sqrt{x^2-6x+13}}}.
The quadratic does not match the table until we complete the square:

x2−6x+13=(x−3)2+4.x^2 - 6x + 13 = (x-3)^2 + 4.

This is now the a2+x2\sqrt{a^2 + x^2} pattern (with x−3x-3 playing the role of xx), so substitute x−3=2sinh⁡θx - 3 = 2\sinh{\theta}, dx=2cosh⁡θ dθdx = 2\cosh{\theta}\,d\theta:

∫dx(x−3)2+4=∫2cosh⁡θ dθ4sinh⁡2θ+4=∫2cosh⁡θ dθ2cosh⁡θ=∫dθ=θ+C=sinh⁡−1(x−32)+C.\begin{align*} \int{\frac{dx}{\sqrt{(x-3)^2+4}}} &= \int{\frac{2\cosh{\theta}\,d\theta}{\sqrt{4\sinh^2{\theta}+4}}} \\ &= \int{\frac{2\cosh{\theta}\,d\theta}{2\cosh{\theta}}} \\ &= \int{d\theta} \\ &= \theta + C \\ &= \sinh^{-1}{\left(\frac{x-3}{2}\right)} + C. \end{align*}

Using sinh⁡−1t=ln⁡(t+t2+1)\sinh^{-1}{t} = \ln\left(t + \sqrt{t^2+1}\right), the answer can also be written as ln⁡(x−3+x2−6x+13)+K\ln\left(x - 3 + \sqrt{x^2-6x+13}\right) + K. This is a case where the hyperbolic option beats the trigonometric one: x−3=2tan⁡θx - 3 = 2\tan{\theta} leads to ∫sec⁡θ dθ\int{\sec{\theta}\,d\theta}, which is doable but uglier. If the quadratic under the root has a linear term, always complete the square first; none of the standard substitutions apply until you do.

Example. Evaluate ∫01x24−x2dx\int_{0}^{1}{\frac{x^2}{\sqrt{4-x^2}}dx}.
Substitute x=2sin⁡θx = 2\sin{\theta}, dx=2cos⁡θ dθdx = 2\cos{\theta}\,d\theta, and convert the limits: when x=0x = 0, θ=0\theta = 0; when x=1x = 1, sin⁡θ=12\sin{\theta} = \frac{1}{2} so θ=π6\theta = \frac{\pi}{6}. Then

∫01x24−x2dx=∫0π/64sin⁡2θ⋅2cos⁡θ dθ2cos⁡θ=4∫0π/6sin⁡2θ dθ=2∫0π/61−cos⁡2θ dθ=2[θ−sin⁡2θ2]0π/6=2(π6−12sin⁡π3)=π3−32.\begin{align*} \int_{0}^{1}{\frac{x^2}{\sqrt{4-x^2}}dx} &= \int_{0}^{\pi/6}{\frac{4\sin^2{\theta}\cdot 2\cos{\theta}\,d\theta}{2\cos{\theta}}} \\ &= 4\int_{0}^{\pi/6}{\sin^2{\theta}\,d\theta} \\ &= 2\int_{0}^{\pi/6}{1-\cos{2\theta}\,d\theta} \\ &= 2\left[\theta - \frac{\sin{2\theta}}{2}\right]_{0}^{\pi/6} \\ &= 2\left(\frac{\pi}{6} - \frac{1}{2}\sin{\frac{\pi}{3}}\right) \\ &= \frac{\pi}{3} - \frac{\sqrt{3}}{2}. \end{align*}

Therefore, the integral equals π3−32\frac{\pi}{3} - \frac{\sqrt{3}}{2}. When substituting in a definite integral, convert the limits of integration as well; then there is no need to convert the antiderivative back to xx at all.

2.4 Integrating Rational Functions#

The punchline of this section: every rational function has an antiderivative among the elementary functions, and there is a completely systematic procedure for finding it. First, some terminology.

Note

Definition
A rational function ff is a function of the form

f(x)=p(x)q(x),f(x) = \frac{p(x)}{q(x)},

where pp and qq are polynomials. We say that ff is proper if deg⁡p<deg⁡q\deg{p} < \deg{q}, and improper if deg⁡p≥deg⁡q\deg{p} \geq \deg{q}. A quadratic polynomial is irreducible if it has no real linear factors; equivalently, ax2+bx+cax^2+bx+c is irreducible if its discriminant b2−4acb^2 - 4ac is negative.

Basically, proper means bottom-heavy (like 27\frac{2}{7}) and improper means top-heavy (like 97\frac{9}{7}); just as 97=1+27\frac{9}{7} = 1 + \frac{2}{7}, an improper rational function splits into a polynomial plus a proper part via polynomial division. Irreducible quadratics are the ones that refuse to factorise over the reals, like x2+4x^2+4 or x2+x+1x^2+x+1; they are the reason tan⁡−1\tan^{-1} shows up in the answers.

Before the general strategy, a warm-up that revises the two key tactics for irreducible quadratic denominators.

Example. Evaluate ∫xx2+2x+10dx\int{\frac{x}{x^2+2x+10}dx}.
The first tactic is to force the derivative of the denominator (2x+22x+2) onto the numerator:

∫xx2+2x+10dx=12∫2xx2+2x+10dx=12∫(2x+2)−2x2+2x+10dx=12∫2x+2x2+2x+10dx−∫dxx2+2x+10.\begin{align*} \int{\frac{x}{x^2+2x+10}dx} &= \frac{1}{2}\int{\frac{2x}{x^2+2x+10}dx} \\ &= \frac{1}{2}\int{\frac{(2x+2)-2}{x^2+2x+10}dx} \\ &= \frac{1}{2}\int{\frac{2x+2}{x^2+2x+10}dx} - \int{\frac{dx}{x^2+2x+10}}. \end{align*}

The first integral is of the form ∫g′g\int{\frac{g'}{g}} and becomes a ln⁡\ln. For the second, the second tactic: complete the square in the denominator,

x2+2x+10=(x+1)2+32.x^2+2x+10 = (x+1)^2 + 3^2.

Hence

∫xx2+2x+10dx=12∫2x+2x2+2x+10dx−∫dx(x+1)2+32=12ln⁡(x2+2x+10)−13tan⁡−1(x+13)+C.\begin{align*} \int{\frac{x}{x^2+2x+10}dx} &= \frac{1}{2}\int{\frac{2x+2}{x^2+2x+10}dx} - \int{\frac{dx}{(x+1)^2+3^2}} \\ &= \frac{1}{2}\ln{(x^2+2x+10)} - \frac{1}{3}\tan^{-1}{\left(\frac{x+1}{3}\right)} + C. \end{align*}

Every proper rational function with an irreducible quadratic denominator is integrated exactly like this; part of it becomes a ln⁡\ln and the rest becomes a tan⁡−1\tan^{-1}.

The overall strategy#

  1. If the rational function is improper, use polynomial division to write ff as a polynomial plus a proper rational function. The polynomial is trivial to integrate, so we only ever need to worry about proper rational functions.
  2. Every proper rational function can be written as a unique sum of functions of the form

A(x−a)k and Bx+C(x2+bx+c)k,\begin{align*} \frac{A}{(x-a)^k} && \text{ and } && \frac{Bx+C}{(x^2+bx+c)^k}, \end{align*}

where x2+bx+cx^2+bx+c is irreducible. This sum is called the partial fractions decomposition of ff.
3. Integrate each term of the decomposition using (after completing the square or a simple substitution) the standard formulae

∫xk dx=xk+1k+1+C,k≠−1∫g′(x)g(x)dx=ln⁡∣g(x)∣+C∫dxa2+x2=1atan⁡−1(xa)+C\begin{align*} &\boxed{\int{x^k\,dx} = \frac{x^{k+1}}{k+1} + C, \quad k \neq -1} \\ &\boxed{\int{\frac{g'(x)}{g(x)}dx} = \ln{|g(x)|} + C} \\ &\boxed{\int{\frac{dx}{a^2+x^2}} = \frac{1}{a}\tan^{-1}{\left(\frac{x}{a}\right)} + C} \end{align*}

Do not forget the factor of 1a\frac{1}{a} in front of tan⁡−1xa\tan^{-1}{\frac{x}{a}}; it is probably the single most commonly dropped term in this whole topic.

Partial fraction decompositions#

To find the decomposition of a proper rational function pq\frac{p}{q}, factorise the denominator qq as far as possible into real linear factors and real irreducible quadratic factors; the factorisation determines the form of the decomposition, and then the constants are found by algebra. There are a few cases.

Case 1: distinct linear factors. Each factor contributes one term with a constant on top:

x−3(x−1)(x−2)=Ax−1+Bx−2,x2−x+7x(2x+1)(x−3)=Ax+B2x+1+Cx−3.\begin{align*} \frac{x-3}{(x-1)(x-2)} = \frac{A}{x-1} + \frac{B}{x-2}, && \frac{x^2-x+7}{x(2x+1)(x-3)} = \frac{A}{x} + \frac{B}{2x+1} + \frac{C}{x-3}. \end{align*}

Example. Find the partial fractions decomposition of 7x−1x2−2x−3\frac{7x-1}{x^2-2x-3}.
Factorising, x2−2x−3=(x−3)(x+1)x^2-2x-3 = (x-3)(x+1), so the decomposition takes the form

7x−1(x−3)(x+1)=Ax−3+Bx+1.\frac{7x-1}{(x-3)(x+1)} = \frac{A}{x-3} + \frac{B}{x+1}.

Multiplying through by (x−3)(x+1)(x-3)(x+1) gives the polynomial identity

7x−1=A(x+1)+B(x−3)∀x∈R.7x - 1 = A(x+1) + B(x-3) \quad \forall x \in \mathbb{R}.

Since this holds for all xx, we may substitute the root of each linear factor to isolate one constant at a time:

x=3  ⟹  20=4A  ⟹  A=5x=−1  ⟹  −8=−4B  ⟹  B=2.\begin{align*} x = 3 &\implies 20 = 4A \implies A = 5 \\ x = -1 &\implies -8 = -4B \implies B = 2. \end{align*}

Hence

7x−1x2−2x−3=5x−3+2x+1,\frac{7x-1}{x^2-2x-3} = \frac{5}{x-3} + \frac{2}{x+1},

which you can (and should) verify by putting the right-hand side back over a common denominator.

Case 2: repeated linear factors. A factor (x−a)k(x-a)^k contributes kk terms, one for each power up to kk:

x2+1(x+4)3=Ax+4+B(x+4)2+C(x+4)3,x2−2(x−1)(x−2)2=Ax−1+Bx−2+C(x−2)2.\begin{align*} \frac{x^2+1}{(x+4)^3} = \frac{A}{x+4} + \frac{B}{(x+4)^2} + \frac{C}{(x+4)^3}, && \frac{x^2-2}{(x-1)(x-2)^2} = \frac{A}{x-1} + \frac{B}{x-2} + \frac{C}{(x-2)^2}. \end{align*}

Note carefully that every power of the repeated factor appears in the decomposition, not just the highest one.

Example. Find the partial fractions decomposition of x2−3x+8x(x−2)2\frac{x^2-3x+8}{x(x-2)^2}.
The decomposition takes the form

x2−3x+8x(x−2)2=Ax+Bx−2+C(x−2)2.\frac{x^2-3x+8}{x(x-2)^2} = \frac{A}{x} + \frac{B}{x-2} + \frac{C}{(x-2)^2}.

Multiplying through by x(x−2)2x(x-2)^2,

x2−3x+8=A(x−2)2+Bx(x−2)+Cx∀x∈R.x^2 - 3x + 8 = A(x-2)^2 + Bx(x-2) + Cx \quad \forall x \in \mathbb{R}.

The roots determine AA and CC:

x=2  ⟹  6=2C  ⟹  C=3x=0  ⟹  8=4A  ⟹  A=2.\begin{align*} x = 2 &\implies 6 = 2C \implies C = 3 \\ x = 0 &\implies 8 = 4A \implies A = 2. \end{align*}

There is no third root to substitute, so pick any other small integer (or compare coefficients of x2x^2):

x=1  ⟹  6=A−B+C  ⟹  B=A+C−6=−1.\begin{align*} x = 1 &\implies 6 = A - B + C \implies B = A + C - 6 = -1. \end{align*}

Hence

x2−3x+8x(x−2)2=2x−1x−2+3(x−2)2.\frac{x^2-3x+8}{x(x-2)^2} = \frac{2}{x} - \frac{1}{x-2} + \frac{3}{(x-2)^2}.

Case 3: irreducible quadratic factors. Each irreducible quadratic contributes a term with a linear numerator:

x2+x(x−1)(x2+9)=Ax−1+Bx+Cx2+9,x3−2x+4(x2+5)(x2+x+1)=Ax+Bx2+5+Cx+Dx2+x+1.\begin{align*} \frac{x^2+x}{(x-1)(x^2+9)} = \frac{A}{x-1} + \frac{Bx+C}{x^2+9}, && \frac{x^3-2x+4}{(x^2+5)(x^2+x+1)} = \frac{Ax+B}{x^2+5} + \frac{Cx+D}{x^2+x+1}. \end{align*}

The numerator over an irreducible quadratic is Bx+CBx+C, not just a constant; forgetting the BxBx is a classic mistake.

Example. Find the partial fractions decomposition of 4x2+2x+1(x+1)(x2+x+1)\frac{4x^2+2x+1}{(x+1)(x^2+x+1)}.
The quadratic x2+x+1x^2+x+1 has discriminant 1−4=−3<01 - 4 = -3 < 0, so it is irreducible and the decomposition takes the form

4x2+2x+1(x+1)(x2+x+1)=Ax+1+Bx+Cx2+x+1.\frac{4x^2+2x+1}{(x+1)(x^2+x+1)} = \frac{A}{x+1} + \frac{Bx+C}{x^2+x+1}.

Multiplying through by (x+1)(x2+x+1)(x+1)(x^2+x+1),

4x2+2x+1=A(x2+x+1)+(Bx+C)(x+1)∀x∈R.4x^2+2x+1 = A(x^2+x+1) + (Bx+C)(x+1) \quad \forall x \in \mathbb{R}.

Substituting suitable values of xx:

x=−1  ⟹  3=A  ⟹  A=3x=0  ⟹  1=A+C  ⟹  C=1−A=−2x2 coefficients  ⟹  4=A+B  ⟹  B=1.\begin{align*} x = -1 &\implies 3 = A \implies A = 3 \\ x = 0 &\implies 1 = A + C \implies C = 1 - A = -2 \\ x^2 \text{ coefficients} &\implies 4 = A + B \implies B = 1. \end{align*}

Hence

4x2+2x+1(x+1)(x2+x+1)=3x+1+x−2x2+x+1.\frac{4x^2+2x+1}{(x+1)(x^2+x+1)} = \frac{3}{x+1} + \frac{x-2}{x^2+x+1}.

Case 4: repeated irreducible quadratic factors. The pattern combines Cases 2 and 3: each power gets a linear numerator, e.g.

x2+x(x2+9)3=Ax+Bx2+9+Cx+D(x2+9)2+Ex+F(x2+9)3.\frac{x^2+x}{(x^2+9)^3} = \frac{Ax+B}{x^2+9} + \frac{Cx+D}{(x^2+9)^2} + \frac{Ex+F}{(x^2+9)^3}.

This case basically never shows up in first year (way too much arithmetic), so knowing the form is enough.

Example. Write down the form of the partial fractions decomposition of

4x4−3x2+x−9x3(x−7)(x2+3)2(x2+x+2).\frac{4x^4-3x^2+x-9}{x^3(x-7)(x^2+3)^2(x^2+x+2)}.

(No need to evaluate the constants.) The repeated linear factor x3x^3 contributes three terms, the distinct linear factor x−7x-7 contributes one, (x2+3)2(x^2+3)^2 contributes two linear-numerator terms and the irreducible x2+x+2x^2+x+2 (discriminant 1−8<01-8 < 0) contributes one:

4x4−3x2+x−9x3(x−7)(x2+3)2(x2+x+2)=Ax+Bx2+Cx3+Dx−7+Ex+Fx2+3+Gx+H(x2+3)2+Ix+Jx2+x+2,\frac{4x^4-3x^2+x-9}{x^3(x-7)(x^2+3)^2(x^2+x+2)} = \frac{A}{x} + \frac{B}{x^2} + \frac{C}{x^3} + \frac{D}{x-7} + \frac{Ex+F}{x^2+3} + \frac{Gx+H}{(x^2+3)^2} + \frac{Ix+J}{x^2+x+2},

where A,B,…,JA, B, \dots, J are real constants.

Before writing down the form of a decomposition, check that the denominator is completely factorised and that every quadratic factor really is irreducible; x2−4x^2-4 is not irreducible — it factorises as (x−2)(x+2)(x-2)(x+2) and contributes two linear terms, not a Bx+CBx+C term.

Putting it all together: two full examples#

Example. Find ∫8x3−12x2−13x−52x2−3x−2dx\int{\frac{8x^3-12x^2-13x-5}{2x^2-3x-2}dx}.
Step 1. The integrand is improper (degree 33 over degree 22), so we divide. Polynomial division gives

8x3−12x2−13x−5=4x(2x2−3x−2)−5x−5,8x^3-12x^2-13x-5 = 4x(2x^2-3x-2) - 5x - 5,

and hence

f(x)=4x−5x+52x2−3x−2.f(x) = 4x - \frac{5x+5}{2x^2-3x-2}.

Step 2. Factorise the denominator: 2x2−3x−2=(2x+1)(x−2)2x^2-3x-2 = (2x+1)(x-2), so

5x+5(2x+1)(x−2)=A2x+1+Bx−2.\frac{5x+5}{(2x+1)(x-2)} = \frac{A}{2x+1} + \frac{B}{x-2}.

Multiplying through,

5x+5=A(x−2)+B(2x+1)∀x∈R,5x+5 = A(x-2) + B(2x+1) \quad \forall x \in \mathbb{R},

and substituting the roots:

x=2  ⟹  15=5B  ⟹  B=3x=−12  ⟹  52=−52A  ⟹  A=−1.\begin{align*} x = 2 &\implies 15 = 5B \implies B = 3 \\ x = -\tfrac{1}{2} &\implies \tfrac{5}{2} = -\tfrac{5}{2}A \implies A = -1. \end{align*}

Step 3. Combining everything,

∫8x3−12x2−13x−52x2−3x−2dx=∫4x+12x+1−3x−2 dx=2x2+12ln⁡∣2x+1∣−3ln⁡∣x−2∣+C.\begin{align*} \int{\frac{8x^3-12x^2-13x-5}{2x^2-3x-2}dx} &= \int{4x + \frac{1}{2x+1} - \frac{3}{x-2}\,dx} \\ &= 2x^2 + \frac{1}{2}\ln{|2x+1|} - 3\ln{|x-2|} + C. \end{align*}

Do not forget the 12\frac{1}{2} in ∫dx2x+1=12ln⁡∣2x+1∣+C\int{\frac{dx}{2x+1}} = \frac{1}{2}\ln{|2x+1|} + C; the derivative of 2x+12x+1 is 22, not 11.

Example. Find ∫4x2−15x+29(x−5)(x2−4x+13)dx\int{\frac{4x^2-15x+29}{(x-5)(x^2-4x+13)}dx}.
The integrand is proper and the denominator is completely factorised (x2−4x+13x^2-4x+13 has discriminant 16−52=−36<016 - 52 = -36 < 0, so it is irreducible), so we go straight to the decomposition:

4x2−15x+29(x−5)(x2−4x+13)=Ax−5+Bx+Cx2−4x+13.\frac{4x^2-15x+29}{(x-5)(x^2-4x+13)} = \frac{A}{x-5} + \frac{Bx+C}{x^2-4x+13}.

Multiplying through,

4x2−15x+29=A(x2−4x+13)+(Bx+C)(x−5)∀x∈R,4x^2-15x+29 = A(x^2-4x+13) + (Bx+C)(x-5) \quad \forall x \in \mathbb{R},

and hence

x=5  ⟹  54=18A  ⟹  A=3x=0  ⟹  29=13A−5C  ⟹  C=2x2 coefficients  ⟹  4=A+B  ⟹  B=1.\begin{align*} x = 5 &\implies 54 = 18A \implies A = 3 \\ x = 0 &\implies 29 = 13A - 5C \implies C = 2 \\ x^2 \text{ coefficients} &\implies 4 = A + B \implies B = 1. \end{align*}

The first term 3x−5\frac{3}{x-5} integrates immediately to 3ln⁡∣x−5∣3\ln{|x-5|}, so we focus on the second. Writing x+2=12(2x−4)+4x + 2 = \frac{1}{2}(2x-4) + 4 to get the derivative of the denominator on top,

∫x+2x2−4x+13dx=12∫2x−4x2−4x+13dx+4∫dxx2−4x+13=12ln⁡(x2−4x+13)+4∫dx(x−2)2+32=12ln⁡(x2−4x+13)+43tan⁡−1(x−23)+C.\begin{align*} \int{\frac{x+2}{x^2-4x+13}dx} &= \frac{1}{2}\int{\frac{2x-4}{x^2-4x+13}dx} + 4\int{\frac{dx}{x^2-4x+13}} \\ &= \frac{1}{2}\ln{(x^2-4x+13)} + 4\int{\frac{dx}{(x-2)^2+3^2}} \\ &= \frac{1}{2}\ln{(x^2-4x+13)} + \frac{4}{3}\tan^{-1}{\left(\frac{x-2}{3}\right)} + C. \end{align*}

Putting everything together,

∫4x2−15x+29(x−5)(x2−4x+13)dx=3ln⁡∣x−5∣+12ln⁡(x2−4x+13)+43tan⁡−1(x−23)+C.\int{\frac{4x^2-15x+29}{(x-5)(x^2-4x+13)}dx} = 3\ln{|x-5|} + \frac{1}{2}\ln{(x^2-4x+13)} + \frac{4}{3}\tan^{-1}{\left(\frac{x-2}{3}\right)} + C.

Notice how all three standard forms (power rule aside, ln⁡\ln and tan⁡−1\tan^{-1}) show up in the one integral; that is the typical exam experience.

Example. Find ∫x2+1x2−1dx\int{\frac{x^2+1}{x^2-1}dx}.
It is tempting to jump straight to partial fractions, but the numerator and denominator have the same degree, so the integrand is improper and we must divide first:

x2+1x2−1=1+2x2−1.\frac{x^2+1}{x^2-1} = 1 + \frac{2}{x^2-1}.

Also note that x2−1x^2 - 1 is not irreducible, so no tan⁡−1\tan^{-1} will appear; instead we decompose

2(x−1)(x+1)=Ax−1+Bx+1.\frac{2}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1}.

Multiplying through, 2=A(x+1)+B(x−1)2 = A(x+1) + B(x-1); substituting x=1x = 1 gives A=1A = 1 and x=−1x = -1 gives B=−1B = -1. Hence

∫x2+1x2−1dx=∫1+1x−1−1x+1 dx=x+ln⁡∣x−1∣−ln⁡∣x+1∣+C=x+ln⁡∣x−1x+1∣+C.\begin{align*} \int{\frac{x^2+1}{x^2-1}dx} &= \int{1 + \frac{1}{x-1} - \frac{1}{x+1}\,dx} \\ &= x + \ln{|x-1|} - \ln{|x+1|} + C \\ &= x + \ln{\left|\frac{x-1}{x+1}\right|} + C. \end{align*}

An integrand whose numerator and denominator have equal degrees is still improper; always compare degrees before decomposing. Compare this with ∫dxx2+1=tan⁡−1x+C\int{\frac{dx}{x^2+1}} = \tan^{-1}{x} + C; a single sign in the denominator completely changes which standard form you land on.

2.5 Other Substitutions#

Since we can now integrate any rational function, a sound plan of attack for a 'non-standard' integral is to hunt for a substitution that converts it into the integral of a rational function. These are called rationalising substitutions. There is no recipe for choosing a good one; you develop a feel for it with practice, but the guiding principle is: substitute away the ugliest part of the integrand (a fractional power, a square root, an exponential) in one hit.

Example. Evaluate ∫dx1+x1/4\int{\frac{dx}{1+x^{1/4}}}.
The aim is to replace the fractional power x1/4x^{1/4} with something usable, so let x=u4x = u^4, dx=4u3 dudx = 4u^3\,du:

∫dx1+x1/4=∫4u31+udu,\int{\frac{dx}{1+x^{1/4}}} = \int{\frac{4u^3}{1+u}du},

which is a rational function (improper, so divide). Rather than long division, notice that

u3=(u3+1)−1=(u+1)(u2−u+1)−1,\begin{align*} u^3 &= (u^3 + 1) - 1 \\ &= (u+1)(u^2-u+1) - 1, \end{align*}

so 4u31+u=4(u2−u+1−11+u)\frac{4u^3}{1+u} = 4\left(u^2 - u + 1 - \frac{1}{1+u}\right). Consequently,

∫dx1+x1/4=4∫u2−u+1−11+u du=4(u33−u22+u−ln⁡∣1+u∣)+C=4x3/43−2x1/2+4x1/4−4ln⁡(1+x1/4)+C.\begin{align*} \int{\frac{dx}{1+x^{1/4}}} &= 4\int{u^2 - u + 1 - \frac{1}{1+u}\,du} \\ &= 4\left(\frac{u^3}{3} - \frac{u^2}{2} + u - \ln{|1+u|}\right) + C \\ &= \frac{4x^{3/4}}{3} - 2x^{1/2} + 4x^{1/4} - 4\ln{\left(1+x^{1/4}\right)} + C. \end{align*}

If several fractional powers appear, take uu to the lowest common multiple of the denominators of the exponents; e.g. for ∫x1/2x1/3+x1/4dx\int{\frac{x^{1/2}}{x^{1/3}+x^{1/4}}dx} the LCM of 2,3,42, 3, 4 is 1212, and x=u12x = u^{12} turns it into 12∫u14u+1du12\int{\frac{u^{14}}{u+1}du}, which polynomial division handles.

Example. Evaluate ∫dxe2x−1\int{\frac{dx}{\sqrt{e^{2x}-1}}}.
One option is u=exu = e^x, which leads to ∫duuu2−1\int{\frac{du}{u\sqrt{u^2-1}}} and then a u=sec⁡θu = \sec{\theta} or u=cosh⁡θu = \cosh{\theta} substitution on top — it works, but it is slow. The better approach removes the square root in the very first substitution: let u2=e2x−1u^2 = e^{2x} - 1. Differentiating both sides,

2ududx=2e2x=2(u2+1),2u\frac{du}{dx} = 2e^{2x} = 2(u^2+1),

which gives dx=u duu2+1dx = \frac{u\,du}{u^2+1}. Hence

∫dxe2x−1=∫u duu(u2+1)=∫duu2+1=tan⁡−1u+C=tan⁡−1e2x−1+C.\begin{align*} \int{\frac{dx}{\sqrt{e^{2x}-1}}} &= \int{\frac{u\,du}{u(u^2+1)}} \\ &= \int{\frac{du}{u^2+1}} \\ &= \tan^{-1}{u} + C \\ &= \tan^{-1}{\sqrt{e^{2x}-1}} + C. \end{align*}

The moral: when a square root is the ugliest thing in sight, try making the whole root your new variable.

The substitution t=tan⁡x2t = \tan{\frac{x}{2}}#

When the integrand is a rational function of sin⁡x\sin{x} and cos⁡x\cos{x} (things like 15+4cos⁡x\frac{1}{5+4\cos{x}}, where none of the 2.1 tricks apply), the half-angle substitution — sometimes called the Weierstrass substitution — is guaranteed to produce a rational function of tt.

Note

Theorem (t=tan⁡x2t = \tan{\frac{x}{2}} identities)
If t=tan⁡x2t = \tan{\frac{x}{2}}, then

sin⁡x=2t1+t2,cos⁡x=1−t21+t2,dx=2 dt1+t2.\begin{align*} \sin{x} = \frac{2t}{1+t^2}, && \cos{x} = \frac{1-t^2}{1+t^2}, && dx = \frac{2\,dt}{1+t^2}. \end{align*}

Proof. Since sec⁡2x2=1+tan⁡2x2=1+t2\sec^2{\frac{x}{2}} = 1 + \tan^2{\frac{x}{2}} = 1+t^2, we have cos⁡2x2=11+t2\cos^2{\frac{x}{2}} = \frac{1}{1+t^2}. The double angle formulae then give

sin⁡x=2sin⁡x2cos⁡x2=2tan⁡x2cos⁡2x2=2t1+t2,cos⁡x=2cos⁡2x2−1=21+t2−1=1−t21+t2,\begin{align*} \sin{x} &= 2\sin{\tfrac{x}{2}}\cos{\tfrac{x}{2}} \\ &= 2\tan{\tfrac{x}{2}}\cos^2{\tfrac{x}{2}} \\ &= \frac{2t}{1+t^2}, \\ \cos{x} &= 2\cos^2{\tfrac{x}{2}} - 1 \\ &= \frac{2}{1+t^2} - 1 \\ &= \frac{1-t^2}{1+t^2}, \end{align*}

and differentiating t=tan⁡x2t = \tan{\frac{x}{2}} gives dtdx=12sec⁡2x2=12(1+t2)\frac{dt}{dx} = \frac{1}{2}\sec^2{\frac{x}{2}} = \frac{1}{2}(1+t^2), i.e. dx=2 dt1+t2dx = \frac{2\,dt}{1+t^2}. ■\blacksquare

Basically, every trigonometric function of xx is a rational function of tan⁡x2\tan{\frac{x}{2}}, so this substitution always rationalises the integral. The price you pay is that the algebra can get heavy, so treat it as the last resort once the simpler tricks have failed.

Example. Evaluate ∫dx1+sin⁡x\int{\frac{dx}{1+\sin{x}}}.
With t=tan⁡x2t = \tan{\frac{x}{2}},

1+sin⁡x=1+2t1+t2=1+2t+t21+t2=(1+t)21+t2,1 + \sin{x} = 1 + \frac{2t}{1+t^2} = \frac{1+2t+t^2}{1+t^2} = \frac{(1+t)^2}{1+t^2},

so

∫dx1+sin⁡x=∫1+t2(1+t)2⋅2 dt1+t2=∫2 dt(1+t)2=−21+t+C=−21+tan⁡x2+C.\begin{align*} \int{\frac{dx}{1+\sin{x}}} &= \int{\frac{1+t^2}{(1+t)^2}\cdot\frac{2\,dt}{1+t^2}} \\ &= \int{\frac{2\,dt}{(1+t)^2}} \\ &= -\frac{2}{1+t} + C \\ &= -\frac{2}{1+\tan{\frac{x}{2}}} + C. \end{align*}

Notice how the 1+t21+t^2 factors cancelled; this happens a lot and is what keeps the method manageable.

Example. Evaluate ∫dx5+4cos⁡x\int{\frac{dx}{5+4\cos{x}}}.
With t=tan⁡x2t = \tan{\frac{x}{2}},

5+4cos⁡x=5(1+t2)+4(1−t2)1+t2=9+t21+t2,5 + 4\cos{x} = \frac{5(1+t^2) + 4(1-t^2)}{1+t^2} = \frac{9+t^2}{1+t^2},

so

∫dx5+4cos⁡x=∫1+t29+t2⋅2 dt1+t2=∫2 dt9+t2=23tan⁡−1(t3)+C=23tan⁡−1(13tan⁡x2)+C.\begin{align*} \int{\frac{dx}{5+4\cos{x}}} &= \int{\frac{1+t^2}{9+t^2}\cdot\frac{2\,dt}{1+t^2}} \\ &= \int{\frac{2\,dt}{9+t^2}} \\ &= \frac{2}{3}\tan^{-1}{\left(\frac{t}{3}\right)} + C \\ &= \frac{2}{3}\tan^{-1}{\left(\frac{1}{3}\tan{\frac{x}{2}}\right)} + C. \end{align*}

Therefore, the integral is 23tan⁡−1(13tan⁡x2)+C\frac{2}{3}\tan^{-1}{\left(\frac{1}{3}\tan{\frac{x}{2}}\right)} + C; the 1a\frac{1}{a} factor from the standard tan⁡−1\tan^{-1} formula strikes again.

Which substitution wins?#

Often several substitutions will work on the same integral, and part of the skill is picking the cheapest one.

Example. Evaluate ∫01x3(4+x2)5/2dx\int_{0}^{1}{\frac{x^3}{(4+x^2)^{5/2}}dx}.
The substitution table suggests x=2tan⁡θx = 2\tan{\theta} or x=2sinh⁡θx = 2\sinh{\theta}, and a rationalising substitution u2=4+x2u^2 = 4+x^2 would also work. But the humble u=4+x2u = 4 + x^2 is best here: the odd power x3=x2⋅xx^3 = x^2 \cdot x hands you the spare xx that du=2x dxdu = 2x\,dx needs, and x2=u−4x^2 = u - 4 mops up the rest. Converting the limits (x=0  ⟹  u=4x = 0 \implies u = 4, x=1  ⟹  u=5x = 1 \implies u = 5),

∫01x3(4+x2)5/2dx=12∫45u−4u5/2du=12∫45u−3/2−4u−5/2 du=12[−2u+83u3/2]45=[−1u+43u3/2]45=(−15+4155)−(−12+16)=−11155+13=25−11575.\begin{align*} \int_{0}^{1}{\frac{x^3}{(4+x^2)^{5/2}}dx} &= \frac{1}{2}\int_{4}^{5}{\frac{u-4}{u^{5/2}}du} \\ &= \frac{1}{2}\int_{4}^{5}{u^{-3/2} - 4u^{-5/2}\,du} \\ &= \frac{1}{2}\left[-\frac{2}{\sqrt{u}} + \frac{8}{3u^{3/2}}\right]_{4}^{5} \\ &= \left[-\frac{1}{\sqrt{u}} + \frac{4}{3u^{3/2}}\right]_{4}^{5} \\ &= \left(-\frac{1}{\sqrt{5}} + \frac{4}{15\sqrt{5}}\right) - \left(-\frac{1}{2} + \frac{1}{6}\right) \\ &= -\frac{11}{15\sqrt{5}} + \frac{1}{3} \\ &= \frac{25 - 11\sqrt{5}}{75}. \end{align*}

Therefore, the integral equals 25−11575\frac{25-11\sqrt{5}}{75}. For comparison: x=2tan⁡θx = 2\tan{\theta} eventually reduces the integrand to 12sin⁡3θ\frac{1}{2}\sin^3{\theta}, which needs the odd-power trick from 2.1 and a limit conversion; it gets the same answer with about triple the work. Before reaching for a trigonometric or hyperbolic substitution, check whether an ordinary uu-substitution already works; an odd power of xx next to a function of x2x^2 is the classic giveaway.

Which technique? A decision drill#

The real exam skill is not executing any single method, it is diagnosing which one applies. Cover the solutions and classify each of the following before evaluating it.

Example. Evaluate each of the following integrals.
(i). ∫x1−x2dx\int{\frac{x}{\sqrt{1-x^2}}dx}
(ii). ∫x21−x2dx\int{\frac{x^2}{\sqrt{1-x^2}}dx}
(iii). ∫x+3x2+2x+5dx\int{\frac{x+3}{x^2+2x+5}dx}
(iv). ∫sin⁡2xcos⁡3x dx\int{\sin{2x}\cos{3x}\,dx}
(v). ∫dx1+x\int{\frac{dx}{1+\sqrt{x}}}

For (i). the xx on top is (up to a constant) the derivative of 1−x21-x^2, so despite the 1−x2\sqrt{1-x^2}, no trigonometric substitution is needed — an ordinary uu-substitution does it. With u=1−x2u = 1-x^2, du=−2x dxdu = -2x\,dx:

∫x1−x2dx=−12∫u−1/2 du=−u+C=−1−x2+C.\begin{align*} \int{\frac{x}{\sqrt{1-x^2}}dx} &= -\frac{1}{2}\int{u^{-1/2}\,du} \\ &= -\sqrt{u} + C \\ &= -\sqrt{1-x^2} + C. \end{align*}

For (ii). the numerator is now x2x^2, which cannot pair up with dxdx, so the uu-substitution fails and we genuinely need x=sin⁡θx = \sin{\theta}, dx=cos⁡θ dθdx = \cos{\theta}\,d\theta:

∫x21−x2dx=∫sin⁡2θcos⁡θ dθcos⁡θ=∫sin⁡2θ dθ=12∫1−cos⁡2θ dθ=θ2−sin⁡θcos⁡θ2+C=12sin⁡−1x−12x1−x2+C,\begin{align*} \int{\frac{x^2}{\sqrt{1-x^2}}dx} &= \int{\frac{\sin^2{\theta}\cos{\theta}\,d\theta}{\cos{\theta}}} \\ &= \int{\sin^2{\theta}\,d\theta} \\ &= \frac{1}{2}\int{1-\cos{2\theta}\,d\theta} \\ &= \frac{\theta}{2} - \frac{\sin{\theta}\cos{\theta}}{2} + C \\ &= \frac{1}{2}\sin^{-1}{x} - \frac{1}{2}x\sqrt{1-x^2} + C, \end{align*}

converting back with the usual triangle (sin⁡θ=x\sin{\theta} = x, cos⁡θ=1−x2\cos{\theta} = \sqrt{1-x^2}). Compare (i) and (ii) carefully; one power of xx is the entire difference between a one-line uu-substitution and a full trigonometric substitution.

For (iii). the denominator has discriminant 4−20=−16<04 - 20 = -16 < 0, so it is an irreducible quadratic: split off the derivative of the denominator, then complete the square. Writing x+3=12(2x+2)+2x + 3 = \frac{1}{2}(2x+2) + 2 and x2+2x+5=(x+1)2+22x^2+2x+5 = (x+1)^2+2^2:

∫x+3x2+2x+5dx=12∫2x+2x2+2x+5dx+2∫dx(x+1)2+22=12ln⁡(x2+2x+5)+tan⁡−1(x+12)+C.\begin{align*} \int{\frac{x+3}{x^2+2x+5}dx} &= \frac{1}{2}\int{\frac{2x+2}{x^2+2x+5}dx} + 2\int{\frac{dx}{(x+1)^2+2^2}} \\ &= \frac{1}{2}\ln{(x^2+2x+5)} + \tan^{-1}{\left(\frac{x+1}{2}\right)} + C. \end{align*}

For (iv). this is a product of multiple angles, so use the product-to-sum lemma from 2.1 with A=2xA = 2x, B=3xB = 3x:

∫sin⁡2xcos⁡3x dx=12∫sin⁡(2x+3x)+sin⁡(2x−3x) dx=12∫sin⁡5x−sin⁡x dx=−cos⁡5x10+cos⁡x2+C.\begin{align*} \int{\sin{2x}\cos{3x}\,dx} &= \frac{1}{2}\int{\sin(2x+3x) + \sin(2x-3x)\,dx} \\ &= \frac{1}{2}\int{\sin{5x} - \sin{x}\,dx} \\ &= -\frac{\cos{5x}}{10} + \frac{\cos{x}}{2} + C. \end{align*}

For (v). the x\sqrt{x} calls for a rationalising substitution: x=u2x = u^2, dx=2u dudx = 2u\,du:

∫dx1+x=∫2u1+udu=2∫1−11+u du=2u−2ln⁡(1+u)+C=2x−2ln⁡(1+x)+C.\begin{align*} \int{\frac{dx}{1+\sqrt{x}}} &= \int{\frac{2u}{1+u}du} \\ &= 2\int{1 - \frac{1}{1+u}\,du} \\ &= 2u - 2\ln{(1+u)} + C \\ &= 2\sqrt{x} - 2\ln{\left(1+\sqrt{x}\right)} + C. \end{align*}

The pattern to internalise: look for a derivative pair (for a plain uu-substitution) first; surds of quadratics go to trigonometric or hyperbolic substitutions; rational functions go to partial fractions, dividing first if improper; products of sines and cosines go to the product-to-sum identities; fractional powers and roots go to rationalising substitutions; and a rational function of sin⁡x\sin{x} and cos⁡x\cos{x} goes to the t=tan⁡x2t = \tan{\frac{x}{2}} substitution as a last resort.