Integrals III: Frullani, Beta, Gamma, Weierstrass & Series

Study Sheet

Integrals III: Frullani, Beta, Gamma, Weierstrass & Series

The named results that finish what symmetry and parameters start

The Named Integrals

Tip
Frullani's theorem
xy123451(e^(−x) − e^(−3x))/xarea ln 3 ≈ 1.10
The Frullani integrand for f(x) = e^(−x), a = 1, b = 3 (shaded), with e^(−x) and e^(−3x) dashed: it starts at 3 − 1 = 2 and encloses area ln 3.

∫0∞f(ax)−f(bx)x dx=(f(0)−f(∞))ln⁡ba\displaystyle\int_0^\infty\frac{f(ax) - f(bx)}{x}\,dx = \big(f(0) - f(\infty)\big)\ln\frac ba for continuous ff with finite limits at 00 and ∞\infty.

Every integral of the form "difference of two scalings, divided by xx" is Frullani: ∫0∞e−x−e−3xxdx=ln⁡3\int_0^\infty\frac{e^{-x} - e^{-3x}}{x}dx = \ln 3, ∫0∞cos⁡x−cos⁡2xxdx=ln⁡2\int_0^\infty\frac{\cos x - \cos 2x}{x}dx = \ln 2, ∫0∞arctan⁡2x−arctan⁡xxdx=π2ln⁡2\int_0^\infty\frac{\arctan 2x - \arctan x}{x}dx = \tfrac\pi2\ln 2. The 1x\tfrac1x makes each piece diverge alone; only the difference converges, and the value depends on ff only through its two endpoint values — which is why it looks like magic and is really Feynman's trick in disguise.

Tip
Gamma and Beta

Γ(s)=∫0∞xs−1e−xdx\Gamma(s) = \displaystyle\int_0^\infty x^{s-1}e^{-x}dx, with Γ(n+1)=n!\Gamma(n+1) = n! and Γ(12)=π\Gamma(\tfrac12) = \sqrt\pi. B(p,q)=∫01xp−1(1−x)q−1dx=Γ(p)Γ(q)Γ(p+q)B(p, q) = \displaystyle\int_0^1x^{p-1}(1-x)^{q-1}dx = \frac{\Gamma(p)\Gamma(q)}{\Gamma(p+q)}.

Gamma interpolates the factorial (Γ(s+1)=sΓ(s)\Gamma(s+1) = s\Gamma(s) by one integration by parts) and evaluates every ∫0∞xne−axdx=n!an+1\int_0^\infty x^ne^{-ax}dx = \tfrac{n!}{a^{n+1}}. Beta evaluates every polynomial-times-polynomial integral on [0,1][0,1] in one line (∫01x3(1−x)2dx=3! 2!6!=160\int_0^1x^3(1-x)^2dx = \tfrac{3!\,2!}{6!} = \tfrac1{60}) and, via x=sin⁡2θx = \sin^2\theta, every ∫0π/2sin⁡mθcos⁡nθ dθ=12B(m+12,n+12)\int_0^{\pi/2}\sin^m\theta\cos^n\theta\,d\theta = \tfrac12B(\tfrac{m+1}{2}, \tfrac{n+1}{2}) — the Wallis integrals are Beta values. The reflection formula Γ(s)Γ(1−s)=πsin⁡πs\Gamma(s)\Gamma(1-s) = \tfrac{\pi}{\sin\pi s} is why ∫0∞dx1+xn=π/nsin⁡(π/n)\int_0^\infty\frac{dx}{1+x^n} = \frac{\pi/n}{\sin(\pi/n)}.

Tip
Weierstrass substitution and series expansion

t=tan⁡x2t = \tan\tfrac x2 rationalizes any ∫R(sin⁡x,cos⁡x) dx\int R(\sin x, \cos x)\,dx. Expanding the integrand in a series and swapping ∑\sum and ∫\int turns hard integrals into known sums.

Weierstrass: sin⁡x=2t1+t2\sin x = \tfrac{2t}{1+t^2}, cos⁡x=1−t21+t2\cos x = \tfrac{1-t^2}{1+t^2}, dx=2 dt1+t2dx = \tfrac{2\,dt}{1+t^2} — so ∫0πdx2+cos⁡x=∫0∞2 dt3+t2=π3\int_0^\pi\frac{dx}{2 + \cos x} = \int_0^\infty\frac{2\,dt}{3 + t^2} = \frac{\pi}{\sqrt3}. Series: ∫01ln⁡(1+x)xdx=∑(−1)n+1n2=π212\int_0^1\frac{\ln(1+x)}{x}dx = \sum\frac{(-1)^{n+1}}{n^2} = \frac{\pi^2}{12}, and ∫01ln⁡xln⁡(1−x)dx=∑1n(n+1)2=2−π26\int_0^1\ln x\ln(1-x)dx = \sum\frac{1}{n(n+1)^2} = 2 - \frac{\pi^2}{6}. The swap is legal under uniform convergence on the interval — say so.

Side note
Which tool, in what order

Symmetry first (it costs nothing). Then look for a parameter (Feynman). Then match a NAMED shape: difference-over-xx is Frullani; xpowere−xx^{\text{power}}e^{-x} is Gamma; xa(1−x)bx^a(1-x)^b is Beta; a rational function of sine and cosine is Weierstrass; a log or arctan over a simple denominator is a series. Only then reach for parts or partial fractions. The Putnam rewards recognition, not endurance.

Side note
Where it goes wrong

"Split ∫0∞e−x−e−3xxdx\int_0^\infty\frac{e^{-x} - e^{-3x}}{x}dx into ∫0∞e−xxdx−∫0∞e−3xxdx\int_0^\infty\frac{e^{-x}}{x}dx - \int_0^\infty\frac{e^{-3x}}{x}dx and substitute u=3xu = 3x in the second: it becomes ∫0∞e−uudu\int_0^\infty\frac{e^{-u}}{u}du, the same as the first, so the answer is 00." Each piece diverges at 00, and the split is ∞−∞\infty - \infty. Do it with a cutoff instead: ∫ε∞e−xxdx−∫3ε∞e−uudu=∫ε3εe−uudu\int_\varepsilon^\infty\frac{e^{-x}}{x}dx - \int_{3\varepsilon}^\infty\frac{e^{-u}}{u}du = \int_\varepsilon^{3\varepsilon}\frac{e^{-u}}{u}du, which lies between e−3εln⁡3e^{-3\varepsilon}\ln3 and e−εln⁡3e^{-\varepsilon}\ln3 and tends to ln⁡3\ln 3. The whole value lives in the sliver near 00 that the careless substitution threw away — this cutoff argument is in fact a proof of Frullani's theorem.

Try it
Try it: Beta in disguise

Evaluate ∫0π/2sin⁡5θcos⁡3θ dθ\displaystyle\int_0^{\pi/2}\sin^5\theta\cos^3\theta\,d\theta.

Show the answer

With x=sin⁡2θx = \sin^2\theta this is 12B(3,2)=12⋅2! 1!4!=124\tfrac12B(3, 2) = \tfrac12\cdot\tfrac{2!\,1!}{4!} = \tfrac{1}{24}. (Or substitute u=sin⁡θu = \sin\theta, cos⁡2θ=1−u2\cos^2\theta = 1 - u^2: ∫01u5(1−u2)du=16−18=124\int_0^1u^5(1 - u^2)du = \tfrac16 - \tfrac18 = \tfrac1{24} ✓.)

Proofs & Why It Matters

Tip
Proof: Frullani's theorem

Assume ff continuous with f(0)f(0), f(∞)f(\infty) finite and 0<a<b0 < a < b.

Write f(ax)−f(bx)x=−∫abf′(tx) dt\dfrac{f(ax) - f(bx)}{x} = -\displaystyle\int_a^b f'(tx)\,dt (fundamental theorem in tt; assume f′f' continuous for the clean version). Then ∫0∞f(ax)−f(bx)xdx=−∫ab(∫0∞f′(tx) dx)dt=−∫abf(∞)−f(0)tdt=(f(0)−f(∞))ln⁡ba\int_0^\infty\frac{f(ax) - f(bx)}{x}dx = -\int_a^b\left(\int_0^\infty f'(tx)\,dx\right)dt = -\int_a^b\frac{f(\infty) - f(0)}{t}dt = (f(0) - f(\infty))\ln\frac ba, swapping the order of integration (Fubini, justified by absolute convergence). ■\blacksquare Significance: the proof IS Feynman's trick — the 1x\tfrac1x was hiding an integral over a parameter. Once you see that, Frullani stops being a formula to memorize.

Tip
Proof: Γ(12)=π\Gamma(\tfrac12) = \sqrt\pi and the Gaussian integral

Two famous constants, one computation.

Substituting x=u2x = u^2 in Γ(12)=∫0∞x−1/2e−xdx\Gamma(\tfrac12) = \int_0^\infty x^{-1/2}e^{-x}dx gives 2∫0∞e−u2du=∫−∞∞e−u2du=I2\int_0^\infty e^{-u^2}du = \int_{-\infty}^\infty e^{-u^2}du = I. Square it and go polar: I2=∬e−(x2+y2)dA=∫02π ⁣∫0∞e−r2r dr dθ=2π⋅12=πI^2 = \iint e^{-(x^2+y^2)}dA = \int_0^{2\pi}\!\int_0^\infty e^{-r^2}r\,dr\,d\theta = 2\pi\cdot\tfrac12 = \pi. So I=π=Γ(12)I = \sqrt\pi = \Gamma(\tfrac12). ■\blacksquare No one-variable method evaluates this integral; the plane does. Every normal-distribution constant in statistics traces back to this square.

Going Deeper: Worked Problems

Example
Worked: a Frullani with cosines

Evaluate ∫0∞cos⁡x−cos⁡2xx dx\displaystyle\int_0^\infty\frac{\cos x - \cos 2x}{x}\,dx.

Step 1 — recognize f(t)=cos⁡tf(t) = \cos t with a=1a = 1, b=2b = 2; but cos⁡t\cos t has no limit at ∞\infty, so the plain theorem does not apply.

Step 2 — the fix: Frullani holds if f(∞)f(\infty) is replaced by the CESÀRO mean lim⁡T→∞1T∫0Tf\lim_{T\to\infty}\tfrac1T\int_0^Tf, which for cosine is 00.

Step 3 — the value is (f(0)−0)ln⁡21=ln⁡2(f(0) - 0)\ln\tfrac21 = \ln 2.

Step 4 — verify with the damping trick: ∫0∞e−sxcos⁡x−cos⁡2xxdx=12ln⁡s2+4s2+1→ln⁡2\int_0^\infty e^{-sx}\frac{\cos x - \cos 2x}{x}dx = \tfrac12\ln\frac{s^2 + 4}{s^2 + 1} \to \ln 2 as s→0s \to 0 ✓. Knowing the theorem's exact hypotheses — and how to repair them — is the difference between a 1010 and a 11.

Example
Worked: a series-expansion integral from a Putnam

Evaluate ∫01ln⁡(1+x)x dx\displaystyle\int_0^1\frac{\ln(1 + x)}{x}\,dx.

Step 1 — ln⁡(1+x)=∑n≥1(−1)n+1xnn\ln(1 + x) = \sum_{n\ge1}\frac{(-1)^{n+1}x^n}{n} on [0,1][0, 1] (convergent at x=1x = 1 by the alternating series test; uniform on [0,1][0,1] by Abel).

Step 2 — divide by xx and integrate term by term: ∑n≥1(−1)n+1n∫01xn−1dx=∑(−1)n+1n2\sum_{n\ge1}\frac{(-1)^{n+1}}{n}\int_0^1x^{n-1}dx = \sum\frac{(-1)^{n+1}}{n^2}.

Step 3 — this is η(2)=(1−21−2)ζ(2)=12⋅π26=π212\eta(2) = (1 - 2^{1-2})\zeta(2) = \tfrac12\cdot\tfrac{\pi^2}{6} = \tfrac{\pi^2}{12}.

Step 4 — numeric check: 1−14+19−116+⋯≈0.8221 - \tfrac14 + \tfrac19 - \tfrac1{16} + \cdots \approx 0.822 and π212≈0.822\tfrac{\pi^2}{12} \approx 0.822 ✓.

Improper Integrals: When They Converge

Tip
Two kinds of improper, and the rule for both

An integral is improper at an infinite endpoint or at a point where the integrand blows up. Define it as a LIMIT of proper integrals, and if there are several bad points, split so that each piece has exactly one.

∫1∞dxxp\displaystyle\int_1^{\infty}\frac{dx}{x^p} converges iff p>1p > 1; ∫01dxxp\displaystyle\int_0^{1}\frac{dx}{x^p} converges iff p<1p < 1. Those two facts, plus splitting, settle most convergence questions on sight: ∫0∞x−p dx\int_0^{\infty}x^{-p}\,dx diverges for EVERY pp, because no single pp can satisfy both conditions at once. A Putnam answer that integrates through a singularity without splitting is marked down even when the number is right.

Tip
Comparison and limit comparison

If 0≤f≤g0 \le f \le g and ∫g\int g converges, so does ∫f\int f. If f,g>0f, g > 0 and lim⁡f/g=L∈(0,∞)\lim f/g = L \in (0,\infty), the two integrals converge or diverge together.

Limit comparison is the practical tool: near ∞\infty, compare with x−px^{-p}; near a singularity at aa, compare with (x−a)−p(x-a)^{-p}. So ∫1∞x+sin⁡xx3+1 dx\int_1^\infty \frac{x + \sin x}{x^3 + 1}\,dx behaves like ∫x−2\int x^{-2} and converges, while ∫2∞dxxln⁡x\int_2^\infty \frac{dx}{x\ln x} behaves like a harmonic sum and diverges — substituting u=ln⁡xu = \ln x makes that one exact.

Tip
Absolute versus conditional, and the principal value

∫∣f∣\int |f| convergent implies ∫f\int f convergent. The converse fails: ∫0∞sin⁡xx dx=π2\int_0^\infty \frac{\sin x}{x}\,dx = \frac{\pi}{2} converges, while ∫0∞∣sin⁡xx∣dx=∞\int_0^\infty \left|\frac{\sin x}{x}\right|dx = \infty.

For a symmetric singularity the CAUCHY PRINCIPAL VALUE takes the symmetric limit, PV∫−11dxx=0\mathrm{PV}\int_{-1}^{1}\frac{dx}{x} = 0, but the integral itself does not converge — saying which one you are computing is part of the answer. Dirichlet-type integrals converge because of cancellation, which is why Feynman's trick and Dirichlet's test, not comparison, are the tools that handle them.

Example
Worked: decide convergence three ways
xy123412x^(−1/2)x^(−3/2)
p = 1/2: split at x = 1; near 0 the integrand (solid) behaves like x^(−1/2), near ∞ like x^(−3/2) (dashed), and both pieces converge — the total is π.

For which pp does ∫0∞dxxp(1+x)\displaystyle\int_0^{\infty}\frac{dx}{x^p(1+x)} converge?

Step 1 — split at 11: the integrand is improper at 00 and at ∞\infty.

Step 2 — near 00, 1xp(1+x)∼x−p\dfrac{1}{x^p(1+x)} \sim x^{-p}, so the piece on (0,1](0,1] converges iff p<1p < 1.

Step 3 — near ∞\infty, 1xp(1+x)∼x−p−1\dfrac{1}{x^p(1+x)} \sim x^{-p-1}, so the piece on [1,∞)[1,\infty) converges iff p+1>1p + 1 > 1, i.e. p>0p > 0.

Step 4 — both together: 0<p<10 < p < 1. (For those pp the value is πsin⁡πp\dfrac{\pi}{\sin \pi p}, the Beta-function evaluation.)

Side note
The split is not optional

Two bad points in one limit can cancel each other and produce a finite number for a divergent integral — exactly the trap the principal value formalises. Split first, evaluate each piece, and only then add.

Try it
Try it: converge or diverge?

Does ∫2∞dxx(ln⁡x)2\displaystyle\int_2^{\infty}\frac{dx}{x(\ln x)^2} converge?

Show the answer

Yes. Substituting u=ln⁡xu = \ln x turns it into ∫ln⁡2∞duu2\int_{\ln 2}^{\infty}\frac{du}{u^2}, which converges to 1ln⁡2\dfrac{1}{\ln 2}.

More Named Results

Tip
Dirichlet variants by parts

∫0∞sin⁡2xx2dx=∫0∞1−cos⁡xx2dx=π2\int_0^\infty\frac{\sin^2x}{x^2}dx = \int_0^\infty\frac{1 - \cos x}{x^2}dx = \frac\pi2 — one integration by parts each, landing on ∫0∞sin⁡xxdx\int_0^\infty\frac{\sin x}{x}dx.

Reminder — Substitution and integration by parts:  ∫f(g(x))g′(x) dx=∫f(u) du,∫u dv=uv−∫v du\int f(g(x))g'(x)\,dx=\int f(u)\,du, \qquad \int u\,dv = uv-\int v\,du

With u=sin⁡2xu = \sin^2x and dv=x−2dxdv = x^{-2}dx the boundary term vanishes and the remainder is ∫sin⁡2xxdx\int\frac{\sin 2x}{x}dx, which rescales to Dirichlet. The same move on 1−cos⁡x1 - \cos x gives Dirichlet directly. A whole family — ∫0∞(sin⁡xx)ndx\int_0^\infty\left(\frac{\sin x}{x}\right)^n dx — follows by repeated parts and is a Putnam regular for n=3n = 3 (3π8\frac{3\pi}{8}).

Tip
Log-trig integrals and the tangent bridge

∫0π/2ln⁡cos⁡x dx=−π2ln⁡2\int_0^{\pi/2}\ln\cos x\,dx = -\frac\pi2\ln 2, hence ∫0∞ln⁡(1+x2)1+x2dx=πln⁡2\int_0^\infty\frac{\ln(1 + x^2)}{1 + x^2}dx = \pi\ln 2 (substitute x=tan⁡θx = \tan\theta) and ∫0π/2ln⁡tan⁡x dx=0\int_0^{\pi/2}\ln\tan x\,dx = 0.

The tangent substitution converts every rational-times-log integrand on (0,∞)(0, \infty) into a log-trig integral on (0,π2)(0, \frac\pi2), where King and Queen apply. Feynman handles the arctangent cousin: ∫0∞arctan⁡xx(1+x2)dx=π2ln⁡2\int_0^\infty\frac{\arctan x}{x(1 + x^2)}dx = \frac\pi2\ln 2 via the parameter arctan⁡(ax)\arctan(ax).

Tip
Fresnel, the reflection formula, and Wallis

∫0∞sin⁡(x2)dx=∫0∞cos⁡(x2)dx=12π2\int_0^\infty\sin(x^2)dx = \int_0^\infty\cos(x^2)dx = \frac12\sqrt{\frac\pi2}; Γ(s)Γ(1−s)=πsin⁡πs\Gamma(s)\Gamma(1 - s) = \frac{\pi}{\sin\pi s}; ∏n≥14n24n2−1=π2\prod_{n\ge1}\frac{4n^2}{4n^2 - 1} = \frac\pi2; ∫01ln⁡x1−xdx=−π26\int_0^1\frac{\ln x}{1 - x}dx = -\frac{\pi^2}{6}.

Fresnel is the Mellin integral ∫0∞ts−1sin⁡t dt=Γ(s)sin⁡πs2\int_0^\infty t^{s-1}\sin t\,dt = \Gamma(s)\sin\frac{\pi s}{2} at s=12s = \frac12. The reflection formula is why ∫0∞xs−11+xdx=πsin⁡πs\int_0^\infty\frac{x^{s-1}}{1 + x}dx = \frac{\pi}{\sin\pi s} and hence ∫0∞dx1+xn=π/nsin⁡(π/n)\int_0^\infty\frac{dx}{1 + x^n} = \frac{\pi/n}{\sin(\pi/n)}. Wallis comes from the sine-power reduction formula squeezed between consecutive terms; ∫01ln⁡x1−x\int_0^1\frac{\ln x}{1-x} is the series method landing on ζ(2)\zeta(2).

Side note
A note on rigor

Every result on this shelf involves an interchange — of limit and integral, of sum and integral, of the order of a double integral. On the Putnam, one sentence naming the justification (dominated convergence with a named dominating function, uniform convergence on the interval, absolute convergence for Fubini) is the difference between a 1010 and a 77. Say it every time.

Try it
Try it: from Dirichlet to its cube

Given ∫0∞sin⁡xxdx=π2\int_0^\infty\frac{\sin x}{x}dx = \frac\pi2, evaluate ∫0∞sin⁡3xx3dx\int_0^\infty\frac{\sin^3x}{x^3}dx.

Show the answer

Step 1 — integrate by parts twice, differentiating sin⁡3x\sin^3x and integrating x−3x^{-3}. Near 00, sin⁡3x∼x3\sin^3x \sim x^3 and (sin⁡3x)′=3sin⁡2xcos⁡x∼3x2(\sin^3x)' = 3\sin^2x\cos x \sim 3x^2, so both boundary terms vanish at 00 and at ∞\infty, leaving ∫0∞sin⁡3xx3dx=12∫0∞(sin⁡3x)′′xdx\int_0^\infty\frac{\sin^3x}{x^3}dx = \tfrac12\int_0^\infty\frac{(\sin^3x)''}{x}dx.

Step 2 — from sin⁡3x=3sin⁡x−sin⁡3x4\sin^3x = \tfrac{3\sin x - \sin 3x}{4}, (sin⁡3x)′′=−3sin⁡x+9sin⁡3x4(\sin^3x)'' = \tfrac{-3\sin x + 9\sin 3x}{4}.

Step 3 — ∫0∞sin⁡kxxdx=π2\int_0^\infty\frac{\sin kx}{x}dx = \tfrac\pi2 for every k>0k > 0 (substitute t=kxt = kx), so ∫0∞(sin⁡3x)′′xdx=−3+94⋅π2=3π4\int_0^\infty\frac{(\sin^3x)''}{x}dx = \tfrac{-3 + 9}{4}\cdot\tfrac\pi2 = \tfrac{3\pi}{4}.

Step 4 — halve it: ∫0∞sin⁡3xx3dx=3π8\int_0^\infty\frac{\sin^3x}{x^3}dx = \tfrac{3\pi}{8}.

Proofs & Why It Matters

Tip
Proof: ∫0∞sin⁡2xx2dx=π2\int_0^\infty\frac{\sin^2x}{x^2}dx = \frac\pi2

Parts onto Dirichlet.

Let u=sin⁡2xu = \sin^2x, dv=x−2dxdv = x^{-2}dx, v=−x−1v = -x^{-1}: ∫0∞sin⁡2xx2dx=[−sin⁡2xx]0∞+∫0∞2sin⁡xcos⁡xxdx\int_0^\infty\frac{\sin^2x}{x^2}dx = \left[-\frac{\sin^2x}{x}\right]_0^\infty + \int_0^\infty\frac{2\sin x\cos x}{x}dx. The boundary term is 00 at both ends (sin⁡2x∼x2\sin^2x \sim x^2 near 00; bounded over xx at infinity). The remaining integrand is sin⁡2xx\frac{\sin 2x}{x}; substituting t=2xt = 2x gives ∫0∞sin⁡ttdt=π2\int_0^\infty\frac{\sin t}{t}dt = \frac\pi2. ■\blacksquare Significance: the equality of ∫sin⁡xx\int\frac{\sin x}{x} and ∫sin⁡2xx2\int\frac{\sin^2 x}{x^2} is not a coincidence but a one-line consequence of parts — and the pattern extends to the Fourier transform of a triangle function.

Tip
Proof: the reflection formula Γ(s)Γ(1−s)=πsin⁡πs\Gamma(s)\Gamma(1-s) = \frac{\pi}{\sin\pi s} for 0<s<10 < s < 1

Via the Beta function and a contour-free evaluation.

Γ(s)Γ(1−s)=Γ(1)B(s,1−s)=∫01ts−1(1−t)−sdt\Gamma(s)\Gamma(1-s) = \Gamma(1)B(s, 1-s) = \int_0^1t^{s-1}(1-t)^{-s}dt; substitute t=x1+xt = \frac{x}{1+x} to get ∫0∞xs−11+xdx\int_0^\infty\frac{x^{s-1}}{1+x}dx. This last integral equals πsin⁡πs\frac{\pi}{\sin\pi s} — provable without complex analysis by expanding 11+x\frac{1}{1+x} as a geometric series on (0,1)(0,1) and using x→1xx \to \frac1x on (1,∞)(1, \infty), which yields ∑k≥0(−1)k(1s+k+11−s+k)\sum_{k\ge0}(-1)^k\left(\frac{1}{s+k} + \frac{1}{1 - s + k}\right), the partial-fraction expansion of πsin⁡πs\frac{\pi}{\sin\pi s}. ■\blacksquare Significance: s=12s = \frac12 gives Γ(12)2=π\Gamma(\frac12)^2 = \pi — the Gaussian integral yet again — and the formula evaluates every ∫0∞dx1+xn\int_0^\infty\frac{dx}{1 + x^n}.