Integrals II: King's Rule, Queen's Rule, and Glasser

Study Sheet

Integrals II: King's Rule, Queen's Rule, and Glasser

Substitutions that map the interval onto itself, then add

Symmetry Substitutions

Tip
King's rule
xyπ/4π/21½sin x/(sin x+cos x)reflected: cos x/(sin x+cos x)
The integrand (solid) and its reflection x → π/2 − x (dashed) add to 1 at every x, so each has area half of π/2 · 1.

∫abf(x) dx=∫abf(a+b−x) dx\displaystyle\int_a^b f(x)\,dx = \int_a^b f(a + b - x)\,dx — reflect the interval onto itself. Then ADD the two forms.

The substitution u=a+b−xu = a + b - x runs the interval backward with du=−dxdu = -dx; flipping the limits back absorbs the sign. Nothing is evaluated yet — the power comes from adding the reflected copy to the original: 2I=∫ab[f(x)+f(a+b−x)]dx2I = \int_a^b\left[f(x) + f(a+b-x)\right]dx, and the bracket often collapses. On [0,π2][0, \tfrac\pi2], sine and cosine trade places; on [0,π][0, \pi], sin⁡\sin is fixed and cos⁡\cos flips sign; a stray factor xx becomes a+b−xa + b - x, so x+(a+b−x)=a+bx + (a + b - x) = a + b is constant. Model: I=∫0π/2sin⁡xsin⁡x+cos⁡xdxI = \int_0^{\pi/2}\frac{\sin x}{\sin x + \cos x}dx; reflected, cos⁡xcos⁡x+sin⁡x\frac{\cos x}{\cos x + \sin x}; sum =1= 1; I=π4I = \tfrac\pi4.

Tip
Queen's rule and Jack's rule

∫02af=2∫0af\displaystyle\int_0^{2a} f = 2\int_0^a f if f(2a−x)=f(x)f(2a - x) = f(x), and =0= 0 if f(2a−x)=−f(x)f(2a - x) = -f(x). Likewise ∫−aaf=2∫0af\int_{-a}^a f = 2\int_0^a f for even ff, 00 for odd ff.

Both are King's rule applied to half the interval: split [0,2a][0, 2a] at aa, reflect the right half onto the left, and compare. Use them to FOLD an interval before doing any real work: ∫0πsin⁡3x dx=2∫0π/2sin⁡3x dx=43\int_0^\pi\sin^3x\,dx = 2\int_0^{\pi/2}\sin^3x\,dx = \tfrac43, and any odd integrand over a symmetric interval is 00 on sight (∫−11x3ex2dx=0\int_{-1}^1 x^3e^{x^2}dx = 0 — no computation). Half the Putnam's "obviously zero" integrals are Jack's rule.

Tip
Glasser's master theorem

∫−∞∞f ⁣(x−∑iaix−bi)dx=∫−∞∞f(x) dx\displaystyle\int_{-\infty}^\infty f\!\left(x - \sum_{i}\frac{a_i}{x - b_i}\right)dx = \int_{-\infty}^\infty f(x)\,dx for ai>0a_i > 0. Simplest case: ∫f(x−1x)=∫f\int f(x - \tfrac1x) = \int f.

The map u=x−1xu = x - \tfrac1x is increasing on (−∞,0)(-\infty, 0) and on (0,∞)(0, \infty), covering all of R\mathbb R on each half-line. Splitting the integral at 00 and substituting on each half, the two Jacobian pieces dxdu\tfrac{dx}{du} ADD to exactly 11 — the identity ∑branchesdxdu=1\sum_{\text{branches}}\tfrac{dx}{du} = 1 is the content of the theorem. So ∫−∞∞e−(x−1/x)2dx=∫e−u2du=π\int_{-\infty}^\infty e^{-(x - 1/x)^2}dx = \int e^{-u^2}du = \sqrt\pi: a hideous integrand, evaluated by recognizing its shape. The companion on (0,∞)(0, \infty) is x→1xx \to \tfrac1x alone, which maps the half-line to itself.

Side note
Recognizing the shape

Look for a function of x−cxx - \tfrac cx (Glasser), an interval whose endpoints add to a constant appearing inside a trig function (King), or a symmetric interval with an even/odd integrand (Jack). The substitution is never the hard part; noticing that it applies is. Train the reflex: every definite integral, before any technique, ask "what does x→a+b−xx \to a + b - x do to this?"

Side note
Where it goes wrong

Glasser's substitution on a half-line: "with u=x−1xu = x - \tfrac1x, as xx runs over (0,∞)(0, \infty) the variable uu runs over all of R\mathbb R, so ∫0∞e−(x−1/x)2dx=∫−∞∞e−u2du=π\int_0^\infty e^{-(x - 1/x)^2}dx = \int_{-\infty}^\infty e^{-u^2}du = \sqrt\pi." The true value is π2≈0.886\tfrac{\sqrt\pi}{2} \approx 0.886. The substitution changed the variable but copied dxdx across as dudu; in fact dx=dxdu dudx = \tfrac{dx}{du}\,du with dxdu=12+u2u2+4\tfrac{dx}{du} = \tfrac12 + \tfrac{u}{2\sqrt{u^2 + 4}} on this branch. The odd part u2u2+4\tfrac{u}{2\sqrt{u^2+4}} integrates to 00 against the even e−u2e^{-u^2}, leaving 12∫e−u2du\tfrac12\int e^{-u^2}du. Glasser's theorem needs BOTH branches, x>0x > 0 and x<0x < 0, whose Jacobians add to 11.

Try it
Try it: King's rule with a stray xx

Evaluate ∫0πxsin⁡x1+cos⁡2x dx\displaystyle\int_0^\pi\frac{x\sin x}{1 + \cos^2x}\,dx.

Show the answer

Reflect: I=∫0π(π−x)sin⁡x1+cos⁡2xdxI = \int_0^\pi\frac{(\pi - x)\sin x}{1 + \cos^2x}dx. Add: 2I=π∫0πsin⁡x1+cos⁡2xdx2I = \pi\int_0^\pi\frac{\sin x}{1 + \cos^2x}dx. Substitute u=cos⁡xu = \cos x: π∫−11du1+u2=π⋅π2\pi\int_{-1}^1\frac{du}{1 + u^2} = \pi\cdot\tfrac\pi2. So I=π24I = \tfrac{\pi^2}{4}.

Proofs & Why It Matters

Tip
Proof: Glasser's theorem in the simplest case

Show ∫−∞∞f ⁣(x−1x)dx=∫−∞∞f(u) du\displaystyle\int_{-\infty}^\infty f\!\left(x - \tfrac1x\right)dx = \int_{-\infty}^\infty f(u)\,du.

On x>0x > 0 set u=x−1xu = x - \tfrac1x; solving, x=u+u2+42x = \tfrac{u + \sqrt{u^2 + 4}}{2}, an increasing bijection (0,∞)→R(0,\infty) \to \mathbb R with dxdu=12+u2u2+4\tfrac{dx}{du} = \tfrac12 + \tfrac{u}{2\sqrt{u^2+4}}. On x<0x < 0 the same uu gives x=u−u2+42x = \tfrac{u - \sqrt{u^2+4}}{2}, also a bijection onto R\mathbb R, with dxdu=12−u2u2+4\tfrac{dx}{du} = \tfrac12 - \tfrac{u}{2\sqrt{u^2+4}}. Adding the two contributions to the integral: ∫f(u)[12+u2u2+4+12−u2u2+4]du=∫f(u) du\int f(u)\left[\tfrac12 + \tfrac{u}{2\sqrt{u^2+4}} + \tfrac12 - \tfrac{u}{2\sqrt{u^2+4}}\right]du = \int f(u)\,du. ■\blacksquare Significance: the general theorem with ∑aix−bi\sum\tfrac{a_i}{x - b_i} works identically — the n+1n + 1 branches' Jacobians always sum to 11 (a partial-fractions identity). It is a favorite because the integrand looks impossible and the solution is three lines.

Tip
Proof: the log-sine integral

Show ∫0π/2ln⁡(sin⁡x) dx=−π2ln⁡2\displaystyle\int_0^{\pi/2}\ln(\sin x)\,dx = -\frac\pi2\ln 2 using only King and Queen.

King gives I=∫0π/2ln⁡(cos⁡x)dxI = \int_0^{\pi/2}\ln(\cos x)dx. Adding: 2I=∫0π/2ln⁡(sin⁡xcos⁡x)dx=∫0π/2ln⁡sin⁡2x2dx=∫0π/2ln⁡(sin⁡2x)dx−π2ln⁡22I = \int_0^{\pi/2}\ln(\sin x\cos x)dx = \int_0^{\pi/2}\ln\tfrac{\sin 2x}{2}dx = \int_0^{\pi/2}\ln(\sin 2x)dx - \tfrac\pi2\ln 2. In the remaining integral substitute u=2xu = 2x: 12∫0πln⁡(sin⁡u)du\tfrac12\int_0^\pi\ln(\sin u)du, and Queen's rule folds [0,π][0, \pi] to give 12⋅2I=I\tfrac12\cdot2I = I. Hence 2I=I−π2ln⁡22I = I - \tfrac\pi2\ln 2 and I=−π2ln⁡2I = -\tfrac\pi2\ln 2. ■\blacksquare The integral was never computed; it was trapped in an equation with itself.

Going Deeper: Worked Problems

Example
Worked: ∫0∞dx1+x4\int_0^\infty\frac{dx}{1 + x^4} by the 1/x1/x reflection
xy1231/(1 + x⁴)x²/(1 + x⁴)
The reflection x → 1/x turns 1/(1 + x⁴) (solid, shaded) into x²/(1 + x⁴) (dashed): different shapes, equal areas π√2/4 ≈ 1.11 over (0, ∞).

The reflection on (0,∞)(0, \infty) produces a second form to add.

Step 1 — substitute x→1xx \to \tfrac1x: I=∫0∞x2 dx1+x4I = \int_0^\infty\dfrac{x^2\,dx}{1 + x^4}.

Step 2 — add: 2I=∫0∞1+x21+x4dx2I = \int_0^\infty\dfrac{1 + x^2}{1 + x^4}dx.

Step 3 — divide numerator and denominator by x2x^2: 1+x−2x2+x−2=1+x−2(x−x−1)2+2\dfrac{1 + x^{-2}}{x^2 + x^{-2}} = \dfrac{1 + x^{-2}}{(x - x^{-1})^2 + 2}.

Step 4 — with u=x−1xu = x - \tfrac1x (so du=(1+x−2)dxdu = (1 + x^{-2})dx and uu runs over R\mathbb R): 2I=∫−∞∞duu2+2=π22I = \int_{-\infty}^\infty\dfrac{du}{u^2 + 2} = \dfrac{\pi}{\sqrt2}.

Step 5 — I=π22=π24I = \dfrac{\pi}{2\sqrt2} = \dfrac{\pi\sqrt2}{4}. Cross-check with the general formula ∫0∞dx1+xn=π/nsin⁡(π/n)\int_0^\infty\frac{dx}{1 + x^n} = \frac{\pi/n}{\sin(\pi/n)} at n=4n = 4: π/42/2=π24\frac{\pi/4}{\sqrt2/2} = \frac{\pi\sqrt2}{4} ✓.

Example
Worked: ∫01ln⁡(1+x)1+x2 dx\int_0^1\frac{\ln(1 + x)}{1 + x^2}\,dx

A Putnam-style integral where the reflection is a TANGENT substitution.

Step 1 — substitute x=tan⁡θx = \tan\theta: I=∫0π/4ln⁡(1+tan⁡θ) dθI = \int_0^{\pi/4}\ln(1 + \tan\theta)\,d\theta.

Step 2 — King on [0,π4][0, \tfrac\pi4]: θ→π4−θ\theta \to \tfrac\pi4 - \theta, and 1+tan⁡(π4−θ)=1+1−tan⁡θ1+tan⁡θ=21+tan⁡θ1 + \tan(\tfrac\pi4 - \theta) = 1 + \dfrac{1 - \tan\theta}{1 + \tan\theta} = \dfrac{2}{1 + \tan\theta}.

Step 3 — so I=∫0π/4[ln⁡2−ln⁡(1+tan⁡θ)]dθ=π4ln⁡2−II = \int_0^{\pi/4}\left[\ln 2 - \ln(1 + \tan\theta)\right]d\theta = \tfrac\pi4\ln 2 - I.

Step 4 — I=πln⁡28I = \dfrac{\pi\ln 2}{8}. Two substitutions, no antiderivative — and the answer, π8ln⁡2≈0.272\tfrac{\pi}{8}\ln 2 \approx 0.272, is one of the most famous values in the subject.