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

abf(x)dx=abf(a+bx)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+bxu = 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+bx)]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+bxa + b - x, so x+(a+bx)=a+bx + (a + b - x) = a + b is constant. Model: I=0π/2sinxsinx+cosxdxI = \int_0^{\pi/2}\frac{\sin x}{\sin x + \cos x}dx; reflected, cosxcosx+sinx\frac{\cos x}{\cos x + \sin x}; sum =1= 1; I=π4I = \tfrac\pi4.

Tip
Queen's rule and Jack's rule

02af=20af\displaystyle\int_0^{2a} f = 2\int_0^a f if f(2ax)=f(x)f(2a - x) = f(x), and =0= 0 if f(2ax)=f(x)f(2a - x) = -f(x). Likewise aaf=20af\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πsin3xdx=20π/2sin3xdx=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 ⁣(xiaixbi)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(x1x)=f\int f(x - \tfrac1x) = \int f.

The map u=x1xu = 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(x1/x)2dx=eu2du=π\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 x1xx \to \tfrac1x alone, which maps the half-line to itself.

Side note
Recognizing the shape

Look for a function of xcxx - \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 xa+bxx \to a + b - x do to this?"

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

Evaluate 0πxsinx1+cos2xdx\displaystyle\int_0^\pi\frac{x\sin x}{1 + \cos^2x}\,dx.

Reflect: I=0π(πx)sinx1+cos2xdxI = \int_0^\pi\frac{(\pi - x)\sin x}{1 + \cos^2x}dx. Add: 2I=π0πsinx1+cos2xdx2I = \pi\int_0^\pi\frac{\sin x}{1 + \cos^2x}dx. Substitute u=cosxu = \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 ⁣(x1x)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=x1xu = 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=uu2+42x = \tfrac{u - \sqrt{u^2+4}}{2}, also a bijection onto R\mathbb R, with dxdu=12u2u2+4\tfrac{dx}{du} = \tfrac12 - \tfrac{u}{2\sqrt{u^2+4}}. Adding the two contributions to the integral: f(u)[12+u2u2+4+12u2u2+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 aixbi\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(sinx)dx=π2ln2\displaystyle\int_0^{\pi/2}\ln(\sin x)\,dx = -\frac\pi2\ln 2 using only King and Queen.

King gives I=0π/2ln(cosx)dxI = \int_0^{\pi/2}\ln(\cos x)dx. Adding: 2I=0π/2ln(sinxcosx)dx=0π/2lnsin2x2dx=0π/2ln(sin2x)dxπ2ln22I = \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: 120πln(sinu)du\tfrac12\int_0^\pi\ln(\sin u)du, and Queen's rule folds [0,π][0, \pi] to give 122I=I\tfrac12\cdot2I = I. Hence 2I=Iπ2ln22I = I - \tfrac\pi2\ln 2 and I=π2ln2I = -\tfrac\pi2\ln 2. \blacksquare The integral was never computed; it was trapped in an equation with itself.

Going Deeper: Worked Problems

Example
Worked: 0dx1+x4\int_0^\infty\frac{dx}{1 + x^4} by the 1/x1/x reflection

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

Step 1 — substitute x1xx \to \tfrac1x: I=0x2dx1+x4I = \int_0^\infty\dfrac{x^2\,dx}{1 + x^4}.

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

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

Step 4 — with u=x1xu = x - \tfrac1x (so du=(1+x2)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 0dx1+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+x2dx\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+1tanθ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[ln2ln(1+tanθ)]dθ=π4ln2II = \int_0^{\pi/4}\left[\ln 2 - \ln(1 + \tan\theta)\right]d\theta = \tfrac\pi4\ln 2 - I.

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