Chapter VI · Derivatives and integrals

Integrating transcendental functions

§§143–147 40 min

The classes of trigonometric, inverse and logarithmic integrands that can always be integrated: products of sines and cosines, xncos⁡xx^n\cos x, rational functions of cos⁡x\cos x and sin⁡x\sin x via t=tan⁡12xt = \tan\frac12 x, and inverse functions by parts.

Why this matters

For rational and algebraical functions Hardy could give systematic theories. Transcendental functions are too varied for that (§143): ∫e−x2dx\int e^{-x^2}dx and ∫(sin⁡x)/x dx\int (\sin x)/x\,dx, for instance, cannot be expressed by elementary functions at all. What we can do is pick out classes that can always be integrated, and know the method for each. There are four: polynomials in sines and cosines of multiples of xx; such polynomials times powers of xx; rational functions of cos⁡x\cos x and sin⁡x\sin x; and integrands built from the inverse functions arcsin⁡\arcsin, arctan⁡\arctan and log⁡\log. Each class is handled by one of the tools you already have.

The idea

Sines and cosines of multiples (§144). A product such as cos⁡2xcos⁡3x\cos 2x\cos 3x has no standard form, but the product formulas turn it into a sum:

cos⁡Acos⁡B=12{cos⁡(A−B)+cos⁡(A+B)},sin⁡Asin⁡B=12{cos⁡(A−B)−cos⁡(A+B)},sin⁡Acos⁡B=12{sin⁡(A+B)+sin⁡(A−B)}.\cos A\cos B = \tfrac12\{\cos(A-B) + \cos(A+B)\}, \quad \sin A\sin B = \tfrac12\{\cos(A-B) - \cos(A+B)\}, \quad \sin A\cos B = \tfrac12\{\sin(A+B) + \sin(A-B)\}.

Applying them repeatedly, any product of powers of sines and cosines of multiples of xx becomes a sum of single terms αcos⁡kx\alpha\cos kx and βsin⁡kx\beta\sin kx, each of which integrates at once.

Powers of xx times sines and cosines (§145). Integration by parts lowers the power of xx by one each time:

∫xncos⁡x dx=xnsin⁡x−n∫xn−1sin⁡x dx,∫xnsin⁡x dx=−xncos⁡x+n∫xn−1cos⁡x dx.\int x^n\cos x\,dx = x^n\sin x - n\int x^{n-1}\sin x\,dx, \qquad \int x^n\sin x\,dx = -x^n\cos x + n\int x^{n-1}\cos x\,dx .

Rational functions of cos⁡x\cos x and sin⁡x\sin x (§146). Here is the substitution that makes them rational: t=tan⁡12xt = \tan\tfrac12x. It is not a trick pulled from a hat. It is the rational parametrisation of the circle from §137, the lines through (−1,0)(-1, 0), in disguise.

Explore Why t=tan⁡12xt = \tan\frac12 x rationalises cos⁡x\cos x and sin⁡x\sin x

Try this. The point P=(cos⁡θ,sin⁡θ)P = (\cos\theta, \sin\theta) is on the unit circle, and the line from S=(−1,0)S = (-1, 0) through PP has slope tt. Move tt and compare the angle θ\theta at the centre with the angle at SS. Where does the line cross the yy-axis?

x2+y2=1x^2 + y^2 = 1 cut by the line y=t(x+1)y = t(x+1)
xy
  • the conic
  • fixed point (ξ, η)
  • line of slope t
  • the other intersection P(t)
x=1−t21+t2,y=2t1+t2x = \dfrac{1-t^2}{1+t^2},\quad y = \dfrac{2t}{1+t^2}. At t=0.6t = 0.6, P=(0.4706, 0.8824)P = (0.4706,\ 0.8824). The angle at the centre is θ=1.081\theta = 1.081, the angle at (−1,0)(-1,0) is half of it, and tan⁡12θ=0.6=t\tan\tfrac12\theta = 0.6 = t.
What to notice

The angle at SS is always exactly half the angle at the centre (the inscribed angle theorem), so the slope is t=tan⁡12θt = \tan\frac12\theta, and the line meets the yy-axis at height tt. The coordinates of PP are the rational functions cos⁡θ=(1−t2)/(1+t2)\cos\theta = (1-t^2)/(1+t^2), sin⁡θ=2t/(1+t2)\sin\theta = 2t/(1+t^2) from the conic lesson. As θ→±π\theta \to \pm\pi, t→±∞t \to \pm\infty.

Inverse functions (§147). To integrate arcsin⁡x\arcsin x, arctan⁡x\arctan x or log⁡x\log x, integrate by parts with the factor 11: differentiate the inverse function (its derivative is algebraic) and integrate 11 to xx. In pictures, the area under the graph of an inverse function is a rectangle minus the area under the graph of the direct function, which is usually easy.

Explore Integrating an inverse function

Try this. The curve is v=log⁡uv = \log u, the inverse of u=evu = e^v. The blue area is ∫1blog⁡u du\int_1^b\log u\,du, which we want. The ochre area, to the left of the curve, is ∫0log⁡bev dv=b−1\int_0^{\log b} e^v\,dv = b - 1, which is easy. Move bb. Then try arcsin and arctan.

∫v du+∫u dv=uv\int v\,du + \int u\,dv = uv
uv = log u
  • area below the curve: ∫ v du
  • area left of the curve: ∫ u dv
  • rectangle u·v
Blue: ∫1blog⁡u du≈2.545\int_1^{b} \log u\,du \approx 2.545. Ochre: ∫0log⁡bev dv=b−1≈3\int_0^{\log b} e^{v}\,dv = b - 1 \approx 3. Together: 5.5455.545, and the rectangle is blog⁡b−1⋅0=5.545b\log b - 1\cdot 0 = 5.545. So ∫1blog⁡u du=blog⁡b−b+1\int_1^b \log u\,du = b\log b - b + 1.
What to notice

The blue area is the rectangle blog⁡bb\log b minus the ochre area b−1b - 1, so ∫1blog⁡u du=blog⁡b−b+1\int_1^b\log u\,du = b\log b - b + 1. For any inverse function ϕ\phi of ff the same picture gives Hardy’s rule ∫ϕ(y) dy=xf(x)−∫f(x) dx\int\phi(y)\,dy = xf(x) - \int f(x)\,dx, where y=f(x)y = f(x).

Precise statements

Theorem Products of sines and cosines Hardy: §144

Any finite sum of terms Acos⁡max sin⁡m′ax cos⁡nbx sin⁡n′bx⋯A\cos^m ax\,\sin^{m'}ax\,\cos^n bx\,\sin^{n'}bx\cdots, with m,m′,n,n′,…m, m', n, n', \dots non-negative integers, can be written as a finite sum of terms αcos⁡{(pa+qb+… )x}\alpha\cos\{(pa + qb + \dots)x\} and βsin⁡{(pa+qb+… )x}\beta\sin\{(pa + qb + \dots)x\} with integers p,q,…p, q, \dots, and hence integrated.

Theorem Powers of xx times trigonometric polynomials Hardy: §145

If nn is a positive integer, repeated integration by parts reduces ∫xncos⁡ax dx\int x^n\cos ax\,dx and ∫xnsin⁡ax dx\int x^n\sin ax\,dx to ∫cos⁡ax dx\int\cos ax\,dx or ∫sin⁡ax dx\int\sin ax\,dx. Consequently ∫P(x,cos⁡ax,sin⁡ax,cos⁡bx,sin⁡bx,… ) dx\int P(x, \cos ax, \sin ax, \cos bx, \sin bx, \dots)\,dx can be found for any polynomial PP.

Theorem Rational functions of cos⁡x\cos x and sin⁡x\sin x Hardy: §146

The substitution t=tan⁡12xt = \tan\tfrac12x (for −π<x<π-\pi < x < \pi) gives

cos⁡x=1−t21+t2,sin⁡x=2t1+t2,dxdt=21+t2,\cos x = \frac{1-t^2}{1+t^2}, \qquad \sin x = \frac{2t}{1+t^2}, \qquad \frac{dx}{dt} = \frac{2}{1+t^2},

so the integral of any rational function of cos⁡x\cos x and sin⁡x\sin x becomes the integral of a rational function of tt.

Two integrals worth knowing that come out of this (Hardy’s Ex. LIII. 1): ∫sec⁡x dx=log⁡∣sec⁡x+tan⁡x∣\int\sec x\,dx = \log|\sec x + \tan x| and ∫cosec⁡x dx=log⁡∣tan⁡12x∣\int\operatorname{cosec}x\,dx = \log|\tan\tfrac12x|. Others need no substitution at all: ∫tan⁡x dx=−log⁡∣cos⁡x∣\int\tan x\,dx = -\log|\cos x| is the f′/ff'/f rule.

Theorem Integrals of inverse functions Hardy: §147
∫arcsin⁡x dx=xarcsin⁡x+1−x2,∫arctan⁡x dx=xarctan⁡x−12log⁡(1+x2),∫log⁡x dx=x(log⁡x−1).\int\arcsin x\,dx = x\arcsin x + \sqrt{1-x^2}, \qquad \int\arctan x\,dx = x\arctan x - \tfrac12\log(1+x^2), \qquad \int\log x\,dx = x(\log x - 1).

More generally, if ϕ\phi is the inverse of ff and y=f(x)y = f(x), then ∫ϕ(y) dy=xf(x)−∫f(x) dx\displaystyle\int\phi(y)\,dy = xf(x) - \int f(x)\,dx.

Integrals ∫P(x,arcsin⁡x) dx\int P(x, \arcsin x)\,dx and ∫P(x,log⁡x) dx\int P(x, \log x)\,dx, with PP a polynomial, can always be found: the first by putting x=sin⁡yx = \sin y, which reduces it to §145, and the second by the reduction formula

∫xm(log⁡x)n dx=xm+1(log⁡x)nm+1−nm+1∫xm(log⁡x)n−1 dx(m≠−1).\int x^m(\log x)^n\,dx = \frac{x^{m+1}(\log x)^n}{m+1} - \frac{n}{m+1}\int x^m(\log x)^{n-1}\,dx \qquad (m \ne -1).

Proofs

Proof The half-angle substitution
Strategy

Express cos⁡x\cos x and sin⁡x\sin x through the double-angle formulas in terms of 12x\tfrac12x, divide by cos⁡212x\cos^2\tfrac12x, and recognise tan⁡12x\tan\tfrac12x. Then differentiate x=2arctan⁡tx = 2\arctan t.

Cosine

cos⁡x=cos⁡212x−sin⁡212x=cos⁡212x−sin⁡212xcos⁡212x+sin⁡212x=1−t21+t2\cos x = \cos^2\tfrac12x - \sin^2\tfrac12x = \dfrac{\cos^2\frac12x - \sin^2\frac12x}{\cos^2\frac12x + \sin^2\frac12x} = \dfrac{1 - t^2}{1 + t^2}, dividing top and bottom by cos⁡212x\cos^2\tfrac12x (not 00 for −π<x<π-\pi < x < \pi).

Sine

sin⁡x=2sin⁡12xcos⁡12x=2sin⁡12xcos⁡12xcos⁡212x+sin⁡212x=2t1+t2\sin x = 2\sin\tfrac12x\cos\tfrac12x = \dfrac{2\sin\frac12x\cos\frac12x}{\cos^2\frac12x + \sin^2\frac12x} = \dfrac{2t}{1+t^2}.

The factor dx/dtdx/dt

On −π<x<π-\pi < x < \pi the map x↦tan⁡12xx \mapsto \tan\tfrac12x is strictly increasing with inverse x=2arctan⁡tx = 2\arctan t, so dx/dt=2/(1+t2)dx/dt = 2/(1+t^2), and the substitution can be undone.

Conclude

If RR is rational, R(cos⁡x,sin⁡x) dxdt=R(1−t21+t2,2t1+t2)21+t2R(\cos x, \sin x)\,\dfrac{dx}{dt} = R\left(\dfrac{1-t^2}{1+t^2}, \dfrac{2t}{1+t^2}\right)\dfrac{2}{1+t^2} is a rational function of tt; integrate it by §133 and put t=tan⁡12xt = \tan\tfrac12x.

Proof Integrating an inverse function
Strategy

Substitute y=f(x)y = f(x), then integrate by parts.

Substitute y=f(x)y = f(x)

Then ϕ(y)=x\phi(y) = x and dy=f′(x) dxdy = f'(x)\,dx, so ∫ϕ(y) dy=∫x f′(x) dx\int\phi(y)\,dy = \int x\,f'(x)\,dx by §136.

Parts

∫xf′(x) dx=xf(x)−∫f(x) dx\int xf'(x)\,dx = xf(x) - \int f(x)\,dx.

Example: arctan⁡\arctan

With f=tan⁡f = \tan: ∫arctan⁡y dy=xtan⁡x−∫tan⁡x dx=xtan⁡x+log⁡∣cos⁡x∣\int\arctan y\,dy = x\tan x - \int\tan x\,dx = x\tan x + \log|\cos x|. With y=tan⁡xy = \tan x, ∣x∣<12π|x| < \tfrac12\pi: cos⁡x=1/1+y2\cos x = 1/\sqrt{1+y^2}, so this is yarctan⁡y−12log⁡(1+y2)y\arctan y - \tfrac12\log(1+y^2), as stated.

Worked examples and exercises

Exercise sin⁡3xcos⁡22x\sin^3x\cos^2 2x, two ways ●●○ Hardy: Examples LI, 1

Integrate sin⁡3xcos⁡22x\sin^3x\cos^22x (i) by turning it into a sum of sines of multiples of xx, and (ii) by writing it as a polynomial in cos⁡x\cos x times sin⁡x\sin x and putting cos⁡x=t\cos x = t.

Hint
(i) sin⁡3x=14(3sin⁡x−sin⁡3x)\sin^3x = \tfrac14(3\sin x - \sin 3x) and cos⁡22x=12(1+cos⁡4x)\cos^22x = \tfrac12(1 + \cos 4x). Multiply, and use sin⁡Acos⁡B=12{sin⁡(A+B)+sin⁡(A−B)}\sin A\cos B = \tfrac12\{\sin(A+B) + \sin(A-B)\}.
Hint
(ii) sin⁡2x=1−cos⁡2x\sin^2x = 1 - \cos^2x and cos⁡2x=2cos⁡2x−1\cos 2x = 2\cos^2x - 1, so the integrand is (1−t2)(2t2−1)2sin⁡x(1 - t^2)(2t^2-1)^2\sin x with t=cos⁡xt = \cos x, and dt=−sin⁡x dxdt = -\sin x\,dx.

Solution

(i) sin⁡3xcos⁡22x=18(3sin⁡x−sin⁡3x)(1+cos⁡4x)=116(7sin⁡x−5sin⁡3x+3sin⁡5x−sin⁡7x)\sin^3x\cos^22x = \tfrac18(3\sin x - \sin 3x)(1 + \cos 4x) = \tfrac1{16}(7\sin x - 5\sin 3x + 3\sin 5x - \sin 7x), using sin⁡xcos⁡4x=12(sin⁡5x−sin⁡3x)\sin x\cos 4x = \tfrac12(\sin 5x - \sin 3x) and sin⁡3xcos⁡4x=12(sin⁡7x−sin⁡x)\sin 3x\cos 4x = \tfrac12(\sin 7x - \sin x). So

∫sin⁡3xcos⁡22x dx=−716cos⁡x+548cos⁡3x−380cos⁡5x+1112cos⁡7x.\int\sin^3x\cos^22x\,dx = -\tfrac{7}{16}\cos x + \tfrac{5}{48}\cos 3x - \tfrac{3}{80}\cos 5x + \tfrac{1}{112}\cos 7x .

(ii) Expanding, (1−t2)(2t2−1)2=−4t6+8t4−5t2+1(1-t^2)(2t^2-1)^2 = -4t^6 + 8t^4 - 5t^2 + 1. Since dt=−sin⁡x dxdt = -\sin x\,dx, the integral is −∫(−4t6+8t4−5t2+1) dt=∫(4t6−8t4+5t2−1) dt=47cos⁡7x−85cos⁡5x+53cos⁡3x−cos⁡x-\int(-4t^6 + 8t^4 - 5t^2 + 1)\,dt = \int(4t^6 - 8t^4 + 5t^2 - 1)\,dt = \tfrac47\cos^7x - \tfrac85\cos^5x + \tfrac53\cos^3x - \cos x.

Hardy says the two answers differ by a constant. Expanding cos⁡3x\cos 3x, cos⁡5x\cos 5x, cos⁡7x\cos 7x as polynomials in cos⁡x\cos x shows that here the constant is in fact 00: they are the same function.

Exercise A closed form for ∫xncos⁡x dx\int x^n\cos x\,dx ●●○ Hardy: Examples LII, 3

Show that ∫xncos⁡x dx=Pncos⁡x+Qnsin⁡x\int x^n\cos x\,dx = P_n\cos x + Q_n\sin x, where Pn=nxn−1−n(n−1)(n−2)xn−3+…P_n = nx^{n-1} - n(n-1)(n-2)x^{n-3} + \dots and Qn=xn−n(n−1)xn−2+…Q_n = x^n - n(n-1)x^{n-2} + \dots.

Hint
Seek polynomials P,QP, Q with (Pcos⁡x+Qsin⁡x)′=xncos⁡x(P\cos x + Q\sin x)' = x^n\cos x. Compare the coefficients of cos⁡x\cos x and sin⁡x\sin x.
Hint
You get P′+Q=xnP' + Q = x^n and Q′−P=0Q' - P = 0. So Q=xn−P′Q = x^n - P' and P=Q′P = Q'.

Solution

(Pcos⁡x+Qsin⁡x)′=(P′+Q)cos⁡x+(Q′−P)sin⁡x(P\cos x + Q\sin x)' = (P' + Q)\cos x + (Q' - P)\sin x. It is enough to have Q′=PQ' = P and P′+Q=xnP' + Q = x^n, that is Q+Q′′=xnQ + Q'' = x^n. The polynomial Q=xn−(xn)′′+(xn)′′′′−…Q = x^n - (x^n)'' + (x^n)'''' - \dots works, because adding Q′′Q'' telescopes the series to xnx^n (the series stops, since high derivatives of xnx^n vanish). So

Qn=xn−n(n−1)xn−2+n(n−1)(n−2)(n−3)xn−4−…,Pn=Qn′=nxn−1−n(n−1)(n−2)xn−3+… .Q_n = x^n - n(n-1)x^{n-2} + n(n-1)(n-2)(n-3)x^{n-4} - \dots, \qquad P_n = Q_n' = nx^{n-1} - n(n-1)(n-2)x^{n-3} + \dots .

For n=2n = 2: Q2=x2−2Q_2 = x^2 - 2, P2=2xP_2 = 2x, which agrees with ∫x2cos⁡x=x2sin⁡x+2xcos⁡x−2sin⁡x\int x^2\cos x = x^2\sin x + 2x\cos x - 2\sin x from the previous lesson.

Exercise ∫sec⁡x dx\int\sec x\,dx ●●○ Hardy: Examples LIII, 1

Using t=tan⁡12xt = \tan\tfrac12x, show that ∫sec⁡x dx=log⁡∣1+t1−t∣\int\sec x\,dx = \log\left|\dfrac{1+t}{1-t}\right| for ∣x∣<12π|x| < \tfrac12\pi, and that this equals log⁡∣sec⁡x+tan⁡x∣\log|\sec x + \tan x|.

Hint
sec⁡x=(1+t2)/(1−t2)\sec x = (1+t^2)/(1-t^2), so sec⁡x dxdt=21−t2\sec x\,\dfrac{dx}{dt} = \dfrac{2}{1-t^2}. Use partial fractions.
Hint
For the second form, compute sec⁡x+tan⁡x=1+sin⁡xcos⁡x\sec x + \tan x = \dfrac{1 + \sin x}{\cos x} in terms of tt.

Solution

21−t2=11−t+11+t\dfrac{2}{1-t^2} = \dfrac{1}{1-t} + \dfrac{1}{1+t}, which integrates to log⁡∣1+t∣−log⁡∣1−t∣=log⁡∣1+t1−t∣\log|1+t| - \log|1-t| = \log\left|\dfrac{1+t}{1-t}\right|. Next, 1+sin⁡x=(1+t)21+t21 + \sin x = \dfrac{(1+t)^2}{1+t^2} and cos⁡x=(1−t)(1+t)1+t2\cos x = \dfrac{(1-t)(1+t)}{1+t^2}, so sec⁡x+tan⁡x=1+t1−t\sec x + \tan x = \dfrac{1+t}{1-t}. The two forms are identical.

Exercise ∫dx/(a+bcos⁡x)\int dx/(a + b\cos x) ●●○ Hardy: Examples LIII, 3

Let a>∣b∣a > |b|. Show that for −π<x<π-\pi < x < \pi,

∫dxa+bcos⁡x=2a2−b2arctan⁡(ta−ba+b),t=tan⁡12x.\int\frac{dx}{a + b\cos x} = \frac{2}{\sqrt{a^2-b^2}}\arctan\left(t\sqrt{\frac{a-b}{a+b}}\right), \qquad t = \tan\tfrac12x .
Hint
a+bcos⁡x=a(1+t2)+b(1−t2)1+t2=(a+b)+(a−b)t21+t2a + b\cos x = \dfrac{a(1+t^2) + b(1-t^2)}{1+t^2} = \dfrac{(a+b) + (a-b)t^2}{1+t^2}.
Solution

The integrand times dx/dtdx/dt is 2(a+b)+(a−b)t2\dfrac{2}{(a+b) + (a-b)t^2}. With k2=(a−b)/(a+b)>0k^2 = (a-b)/(a+b) > 0,

∫2 dt(a+b)(1+k2t2)=2(a+b)karctan⁡(kt),(a+b)k=(a+b)(a−b)=a2−b2.\int\frac{2\,dt}{(a+b)(1 + k^2t^2)} = \frac{2}{(a+b)k}\arctan(kt), \qquad (a+b)k = \sqrt{(a+b)(a-b)} = \sqrt{a^2-b^2} .

(If a2<b2a^2 < b^2, the quadratic (a+b)+(a−b)t2(a+b) + (a-b)t^2 has real roots and partial fractions give a logarithm instead, as in Hardy’s second form.)

Exercise xnlog⁡xx^n\log x ●○○ Hardy: §147, Example

Integrate xnlog⁡xx^n\log x for x>0x > 0: first for n≠−1n \ne -1, then for n=−1n = -1.

Hint
For n≠−1n \ne -1, parts with F=log⁡xF = \log x. For n=−1n = -1, notice that 1/x1/x is the derivative of log⁡x\log x.

Solution

For n≠−1n \ne -1: ∫xnlog⁡x dx=xn+1n+1log⁡x−∫xn+1n+1⋅1x dx=xn+1n+1log⁡x−xn+1(n+1)2\int x^n\log x\,dx = \dfrac{x^{n+1}}{n+1}\log x - \int\dfrac{x^{n+1}}{n+1}\cdot\dfrac1x\,dx = \dfrac{x^{n+1}}{n+1}\log x - \dfrac{x^{n+1}}{(n+1)^2}.

For n=−1n = -1: the integrand is f′ff'f with f=log⁡xf = \log x, so ∫log⁡xx dx=12(log⁡x)2\int\dfrac{\log x}{x}\,dx = \tfrac12(\log x)^2 by the chain rule backwards.

Check yourself

Check yourself Choose one

Which is an integral of sin⁡2x\sin^2 x?

Why

sin⁡2x=12(1−cos⁡2x)\sin^2x = \tfrac12(1 - \cos 2x), which integrates to 12x−14sin⁡2x\tfrac12x - \tfrac14\sin 2x. The first option forgets the chain rule: its derivative is sin⁡2xcos⁡x\sin^2x\cos x. The last has the sign of the cos⁡2x\cos 2x term wrong (it integrates cos⁡2x\cos^2 x).

Check yourself Enter a number

Find the increase of ∫arctan⁡x dx\int\arctan x\,dx from x=0x = 0 to x=1x = 1, to three decimals. (Check with the second widget, arctan example, b=1b = 1.)

Why

xarctan⁡x−12log⁡(1+x2)x\arctan x - \tfrac12\log(1+x^2) is 14π−12log⁡2≈0.4388\tfrac14\pi - \tfrac12\log 2 \approx 0.4388 at x=1x = 1 and 00 at x=0x = 0.

Check yourself True or false?

The integral of every rational function of cos⁡x\cos x and sin⁡x\sin x can be expressed by rational functions, logarithms and inverse tangents of tan⁡12x\tan\frac12 x (on an interval where the integrand is defined and ∣x∣<π|x| < \pi).

Why

True: t=tan⁡12xt = \tan\tfrac12 x turns it into the integral of a rational function of tt, and §133 describes what such integrals look like. The obstacle in practice, as before, is factoring the denominator.

Check yourself Choose one

Which of these integrals is not covered by the four classes of this lesson?

Why

∫x3sin⁡2x\int x^3\sin 2x is §145, ∫dx/(3+sin⁡x)\int dx/(3 + \sin x) is §146, and ∫x2arctan⁡x\int x^2\arctan x goes by parts to 13x3arctan⁡x−13∫x3/(1+x2)\tfrac13x^3\arctan x - \tfrac13\int x^3/(1+x^2), a rational integral. But (sin⁡x)/x(\sin x)/x is a rational function of xx and sin⁡x\sin x, not of cos⁡x\cos x and sin⁡x\sin x alone; its integral is not an elementary function at all.

Hardy’s language

Summary

Summary
  • Products of sines and cosines of multiples of xx: turn products into sums, then integrate term by term.
  • xnx^n times sine or cosine: integrate by parts nn times; each time the power drops by one.
  • Rational functions of cos⁡x\cos x and sin⁡x\sin x: t=tan⁡12xt = \tan\frac12x makes them rational. It is the circle’s rational parametrisation by lines through (−1,0)(-1, 0).
  • Inverse functions: ∫ϕ(y) dy=xf(x)−∫f(x) dx\int\phi(y)\,dy = xf(x) - \int f(x)\,dx, the area under an inverse function being a rectangle minus the area under the function. Hence ∫log⁡x=xlog⁡x−x\int\log x = x\log x - x, ∫arctan⁡x\int\arctan x, ∫arcsin⁡x\int\arcsin x.
  • Many transcendental integrands, such as (sin⁡x)/x(\sin x)/x, have no elementary integral. That does not mean the integral does not exist.