← 2026 Paper 2

UPSC 2026 Maths Optional Paper 2 Q4b — Step-by-Step Solution

15 marks · Section A

Improper integrals (analysis perspective) · Real Analysis · asked 4× in 14 yrs · Read the full method →

Question

Prove that the improper integral ∫0∞11+x2sin⁡2x dx\displaystyle\int_{0}^{\infty} \frac{1}{1 + x^2\sin^2 x}\,dx is divergent.

Technique

The integrand is continuous and satisfies 0<f(x)≤10<f(x)\le 1, so there is no blow-up anywhere and the only question is the behaviour at ∞\infty; also f(kπ)=1f(k\pi)=1 for every integer kk, so f↛0f\not\to0 and the mass sits in thin spikes at the zeros of sin⁡x\sin x. Divergence therefore needs a lower bound, and the natural one is obtained by chopping [0,∞)[0,\infty) at the points kπk\pi: on [kπ,(k+1)π][k\pi,(k+1)\pi] the substitution x=kπ+tx=k\pi+t makes sin⁡2x=sin⁡2t\sin^2x=\sin^2t, and replacing xx by its largest value on the block decreases the integrand, leaving the standard integral ∫0πdt1+c2sin⁡2t=π1+c2\int_0^\pi \dfrac{dt}{1+c^2\sin^2t}=\dfrac{\pi}{\sqrt{1+c^2}}. That produces terms of size 1/k1/k — comparison with the harmonic series finishes it.

Solution

Write

f(x)=11+x2sin⁡2x,x∈[0,∞),F(R)=∫0Rf(x) dx.f(x)=\frac{1}{1+x^{2}\sin^{2}x},\qquad x\in[0,\infty),\qquad F(R)=\int_{0}^{R}f(x)\,dx .

Step 1 — What has to be proved, and what kind of improper integral this is.

The denominator satisfies 1+x2sin⁡2x≥1>01+x^{2}\sin^{2}x\ge 1>0 for all xx, so ff is continuous on the whole of [0,∞)[0,\infty) and

0<f(x)≤1for every x≥0.0<f(x)\le 1\qquad\text{for every }x\ge0 .

Hence ff has no infinite discontinuity: this is an improper integral of the first kind only (infinite range), and on every bounded interval [0,R][0,R] the integral F(R)F(R) is an ordinary (proper) Riemann integral of a continuous function.

Since f>0f>0, the function R↦F(R)R\mapsto F(R) is strictly increasing, so

∫0∞f=lim⁡R→∞F(R)exists in (0,+∞].\int_{0}^{\infty}f=\lim_{R\to\infty}F(R)\quad\text{exists in }(0,+\infty] .

The integral converges iff this limit is finite. To prove divergence it is therefore enough to exhibit a lower bound for F(R)F(R) that tends to +∞+\infty. (Note that the boundedness f≤1f\le1 is of no help at all here — an upper bound can never prove divergence. This is the direction in which candidates most often go wrong.)

Observe also that f(kπ)=1f(k\pi)=1 for every integer k≥0k\ge0: ff does not tend to 00 at infinity. All the “mass” of the integral is in thin spikes of height 11 sitting at the zeros of sin⁡x\sin x, and the whole proof is a bookkeeping of those spikes.

Step 2 — Chop the range at the zeros of sin⁡x\sin x.

For N∈NN\in\mathbb{N}, additivity of the integral gives

F(Nπ)=∫0Nπf=∑k=0N−1ak,ak:=∫kπ(k+1)πdx1+x2sin⁡2x  >0.(1)F(N\pi)=\int_{0}^{N\pi}f=\sum_{k=0}^{N-1}a_{k},\qquad a_{k}:=\int_{k\pi}^{(k+1)\pi}\frac{dx}{1+x^{2}\sin^{2}x}\;>0 . \tag{1}

Step 3 — Normalise each block by the substitution x=kπ+tx=k\pi+t.

Put x=kπ+tx=k\pi+t, dx=dtdx=dt; as xx runs over [kπ,(k+1)π][k\pi,(k+1)\pi], tt runs over [0,π][0,\pi]. This is a C1C^{1} increasing bijection, so the substitution is legitimate in the Riemann integral. Since

sin⁡(kπ+t)=(−1)ksin⁡t⟹sin⁡2(kπ+t)=sin⁡2t,\sin(k\pi+t)=(-1)^{k}\sin t\quad\Longrightarrow\quad \sin^{2}(k\pi+t)=\sin^{2}t ,

we get, exactly (no inequality yet),

ak=∫0πdt1+(kπ+t)2sin⁡2t.(2)a_{k}=\int_{0}^{\pi}\frac{dt}{1+(k\pi+t)^{2}\sin^{2}t}. \tag{2}

Step 4 — Bound each block from below (mind the direction).

For t∈[0,π]t\in[0,\pi] we have kπ+t≤kπ+π=(k+1)πk\pi+t\le k\pi+\pi=(k+1)\pi, hence

(kπ+t)2sin⁡2t  ≤  (k+1)2π2sin⁡2t  ⟹  1+(kπ+t)2sin⁡2t  ≤  1+(k+1)2π2sin⁡2t.(k\pi+t)^{2}\sin^{2}t\;\le\;(k+1)^{2}\pi^{2}\sin^{2}t \;\Longrightarrow\; 1+(k\pi+t)^{2}\sin^{2}t\;\le\;1+(k+1)^{2}\pi^{2}\sin^{2}t .

Enlarging a positive denominator decreases the fraction, so the integrand in (2)(2) is at least (1+(k+1)2π2sin⁡2t)−1\bigl(1+(k+1)^{2}\pi^{2}\sin^{2}t\bigr)^{-1}, and by monotonicity of the integral

ak  ≥  ∫0πdt1+ck2sin⁡2t,ck:=(k+1)π.(3)a_{k}\;\ge\;\int_{0}^{\pi}\frac{dt}{1+c_{k}^{2}\sin^{2}t},\qquad c_{k}:=(k+1)\pi . \tag{3}

Step 5 — The standard integral.

Lemma. For every real cc, ∫0πdt1+c2sin⁡2t=π1+c2\displaystyle\int_{0}^{\pi}\frac{dt}{1+c^{2}\sin^{2}t}=\frac{\pi}{\sqrt{1+c^{2}}}.

Proof. The substitution t↦π−tt\mapsto \pi-t leaves sin⁡2t\sin^{2}t unchanged, so the integrand is symmetric about t=π/2t=\pi/2 and

∫0πdt1+c2sin⁡2t=2∫0π/2dt1+c2sin⁡2t.\int_{0}^{\pi}\frac{dt}{1+c^{2}\sin^{2}t}=2\int_{0}^{\pi/2}\frac{dt}{1+c^{2}\sin^{2}t}.

On [0,π/2)[0,\pi/2) divide numerator and denominator by cos⁡2t>0\cos^{2}t>0:

11+c2sin⁡2t=sec⁡2tsec⁡2t+c2tan⁡2t=sec⁡2t1+(1+c2)tan⁡2t,\frac{1}{1+c^{2}\sin^{2}t}=\frac{\sec^{2}t}{\sec^{2}t+c^{2}\tan^{2}t} =\frac{\sec^{2}t}{1+(1+c^{2})\tan^{2}t},

using sec⁡2t=1+tan⁡2t\sec^{2}t=1+\tan^{2}t. The original integrand is continuous on the closed interval [0,π/2][0,\pi/2], so

∫0π/2dt1+c2sin⁡2t=lim⁡ε→0+∫0π/2−εsec⁡2t dt1+(1+c2)tan⁡2t.\int_{0}^{\pi/2}\frac{dt}{1+c^{2}\sin^{2}t} =\lim_{\varepsilon\to0^{+}}\int_{0}^{\pi/2-\varepsilon}\frac{\sec^{2}t\,dt}{1+(1+c^{2})\tan^{2}t}.

On [0,π/2−ε][0,\pi/2-\varepsilon] put u=tan⁡tu=\tan t (a C1C^{1} increasing bijection onto [0,tan⁡(π/2−ε)][0,\tan(\pi/2-\varepsilon)]), du=sec⁡2t dtdu=\sec^{2}t\,dt:

=lim⁡ε→0+∫0tan⁡(π/2−ε)du1+(1+c2)u2=∫0∞du1+β2u2,β:=1+c2  (≥1).=\lim_{\varepsilon\to0^{+}}\int_{0}^{\tan(\pi/2-\varepsilon)}\frac{du}{1+(1+c^{2})u^{2}} =\int_{0}^{\infty}\frac{du}{1+\beta^{2}u^{2}},\qquad \beta:=\sqrt{1+c^{2}}\ \ (\ge1).

Finally

∫0∞du1+β2u2=1β[arctan⁡(βu)]0∞=1β⋅π2.\int_{0}^{\infty}\frac{du}{1+\beta^{2}u^{2}}=\frac{1}{\beta}\Bigl[\arctan(\beta u)\Bigr]_{0}^{\infty}=\frac{1}{\beta}\cdot\frac{\pi}{2}.

Doubling gives π/β=π/1+c2\pi/\beta=\pi/\sqrt{1+c^{2}}. ■\qquad\blacksquare

Applying the Lemma with c=ck=(k+1)πc=c_{k}=(k+1)\pi in (3)(3):

  ak  ≥  π1+(k+1)2π2  (k=0,1,2,… ).(4)\boxed{\;a_{k}\;\ge\;\frac{\pi}{\sqrt{1+(k+1)^{2}\pi^{2}}}\;}\qquad (k=0,1,2,\dots). \tag{4}

Step 6 — Compare with the harmonic series.

Two elementary estimates turn (4)(4) into something recognisable. Write m=k+1≥1m=k+1\ge1.

(a) 1+m2π2≤1+mπ\sqrt{1+m^{2}\pi^{2}}\le 1+m\pi, since squaring the right side gives 1+2mπ+m2π2≥1+m2π21+2m\pi+m^{2}\pi^{2}\ge 1+m^{2}\pi^{2} (both sides positive). Hence

π1+m2π2  ≥  π1+mπ.\frac{\pi}{\sqrt{1+m^{2}\pi^{2}}}\;\ge\;\frac{\pi}{1+m\pi}.

(b) For m≥1m\ge1 we have 1≤π≤mπ1\le\pi\le m\pi, so 1+mπ≤2mπ1+m\pi\le 2m\pi, and therefore

π1+mπ  ≥  π2mπ=12m.\frac{\pi}{1+m\pi}\;\ge\;\frac{\pi}{2m\pi}=\frac{1}{2m}.

Combining with (4)(4):

ak  ≥  12(k+1)for every k≥0.(5)a_{k}\;\ge\;\frac{1}{2(k+1)}\qquad\text{for every }k\ge0. \tag{5}

Step 7 — Conclusion: the integral diverges.

Substituting (5)(5) into (1)(1), for every N≥1N\ge1

F(Nπ)=∑k=0N−1ak  ≥  ∑k=0N−112(k+1)=12∑m=1N1m=HN2,F(N\pi)=\sum_{k=0}^{N-1}a_{k}\;\ge\;\sum_{k=0}^{N-1}\frac{1}{2(k+1)}=\frac{1}{2}\sum_{m=1}^{N}\frac{1}{m}=\frac{H_{N}}{2},

where HNH_{N} is the NN-th partial sum of the harmonic series, which is divergent (HN→∞H_N\to\infty). Hence F(Nπ)→∞F(N\pi)\to\infty as N→∞N\to\infty.

For an arbitrary R≥πR\ge\pi put N=⌊R/π⌋≥1N=\lfloor R/\pi\rfloor\ge1, so Nπ≤RN\pi\le R; since f>0f>0,

F(R)  ≥  F(Nπ)  ≥  HN2,N=⌊R/π⌋→R→∞∞.F(R)\;\ge\;F(N\pi)\;\ge\;\frac{H_{N}}{2},\qquad N=\lfloor R/\pi\rfloor\xrightarrow[R\to\infty]{}\infty .

Therefore F(R)→+∞F(R)\to+\infty as R→∞R\to\infty, i.e.

∫0∞dx1+x2sin⁡2x=+∞,\int_{0}^{\infty}\frac{dx}{1+x^{2}\sin^{2}x}=+\infty ,

and the improper integral is divergent. ■\qquad\blacksquare

Step 8 — How fast it diverges (sharpness; one extra line, and it proves you understand the mechanism).

The same block estimate run in the opposite direction gives an upper bound. For t∈[0,π]t\in[0,\pi], kπ+t≥kπk\pi+t\ge k\pi, so by (2)(2) and the Lemma with c=kπc=k\pi,

ak≤∫0πdt1+k2π2sin⁡2t=π1+k2π2≤πkπ=1k(k≥1),a_{k}\le\int_{0}^{\pi}\frac{dt}{1+k^{2}\pi^{2}\sin^{2}t}=\frac{\pi}{\sqrt{1+k^{2}\pi^{2}}}\le\frac{\pi}{k\pi}=\frac{1}{k}\qquad(k\ge1),

while a0≤πa_{0}\le\pi (as f≤1f\le1). Hence

HN2  ≤  F(Nπ)  ≤  π+HN−1,\frac{H_{N}}{2}\;\le\;F(N\pi)\;\le\;\pi+H_{N-1},

and since HN=ln⁡N+O(1)H_{N}=\ln N+O(1),

F(R)=Θ(ln⁡R)(R→∞).F(R)=\Theta(\ln R)\qquad(R\to\infty).

The divergence is only logarithmic — the integral does diverge, but as slowly as the harmonic series. This is exactly what ak∼1/ka_{k}\sim 1/k predicts.

Step 9 — Alternative elementary route (no standard integral needed).

If the Lemma is not at hand, bound the spikes crudely. For k≥1k\ge1 let

δk=1kπ  (≤1π<1<π2),Ik=[kπ−δk, kπ+δk],\delta_{k}=\frac{1}{k\pi}\ \ \Bigl(\le\tfrac1\pi<1<\tfrac\pi2\Bigr),\qquad I_{k}=[k\pi-\delta_{k},\,k\pi+\delta_{k}],

so the IkI_{k} are pairwise disjoint subintervals of (0,∞)(0,\infty). For x∈Ikx\in I_{k}, using ∣sin⁡x∣=∣sin⁡(x−kπ)∣≤∣x−kπ∣≤δk|\sin x|=|\sin(x-k\pi)|\le|x-k\pi|\le\delta_{k} and x≤kπ+1x\le k\pi+1,

x2sin⁡2x≤(kπ+1)2δk2=(1+1kπ)2≤(1+1π)2<2,x^{2}\sin^{2}x\le (k\pi+1)^{2}\delta_{k}^{2}=\Bigl(1+\tfrac{1}{k\pi}\Bigr)^{2}\le\Bigl(1+\tfrac1\pi\Bigr)^{2}<2 ,

so f(x)>13f(x)>\tfrac13 on IkI_{k}, and ∣Ik∣=2δk=2kπ|I_{k}|=2\delta_{k}=\dfrac{2}{k\pi}. Therefore

∫0Nπ+1f  ≥  ∑k=1N∫Ikf  ≥  ∑k=1N13⋅2kπ=23πHN⟶∞.\int_{0}^{N\pi+1}f\;\ge\;\sum_{k=1}^{N}\int_{I_{k}}f\;\ge\;\sum_{k=1}^{N}\frac{1}{3}\cdot\frac{2}{k\pi}=\frac{2}{3\pi}H_{N}\longrightarrow\infty .

Same conclusion, same comparison series. (It gives a worse constant, which is why Steps 3–6 are the version to write.)

Answer

  ∫0∞dx1+x2sin⁡2x=+∞— the improper integral is divergent.Key estimate:  ak=∫kπ(k+1)πdx1+x2sin⁡2x  ≥  ∫0πdt1+(k+1)2π2sin⁡2t=π1+(k+1)2π2  ≥  12(k+1),so  ∫0Nπdx1+x2sin⁡2x  ≥  12∑m=1N1m=HN2⟶∞(harmonic series).Moreover  12HN≤∫0Nπf≤π+HN−1: the growth is Θ(ln⁡R).  \boxed{\; \begin{aligned} &\int_{0}^{\infty}\frac{dx}{1+x^{2}\sin^{2}x}=+\infty\quad\text{— the improper integral is \textbf{divergent}.}\\[4pt] &\textbf{Key estimate: }\ a_{k}=\int_{k\pi}^{(k+1)\pi}\frac{dx}{1+x^{2}\sin^{2}x} \;\ge\;\int_{0}^{\pi}\frac{dt}{1+(k+1)^{2}\pi^{2}\sin^{2}t} =\frac{\pi}{\sqrt{1+(k+1)^{2}\pi^{2}}}\;\ge\;\frac{1}{2(k+1)},\\[4pt] &\text{so }\ \int_{0}^{N\pi}\frac{dx}{1+x^{2}\sin^{2}x}\;\ge\;\frac{1}{2}\sum_{m=1}^{N}\frac1m=\frac{H_{N}}{2}\longrightarrow\infty \quad\text{(harmonic series).}\\[4pt] &\text{Moreover }\ \tfrac12 H_{N}\le\int_{0}^{N\pi}f\le \pi+H_{N-1}:\ \text{the growth is }\Theta(\ln R). \end{aligned}\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.