QlarIITy

MathematicsJEE Main 2026 · 28 JanuaryInteger

The value of∑r=120(∣π(∫0rx∣sin⁡πx∣ dx)∣)\sum_{r=1}^{20}\left(\left|\sqrt{\pi\left(\int_0^r x|\sin \pi x|\ dx\right)}\right|\right)is ______

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. On a symmetric arch, ∫xg(x) dx\int xg(x)\ dx is the midpoint times ∫g(x) dx\int g(x)\ dx.

Concept refresher. For an integrable ff on [a,b][a, b]:

∫abf(x) dx=∫abf(a+b−x) dx\int_a^b f(x)\ dx = \int_a^b f(a + b - x)\ dx

If g(a+b−x)=g(x)g(a + b - x) = g(x), this gives ∫abxg(x) dx=a+b2∫abg(x) dx\int_a^b xg(x)\ dx = \frac{a + b}{2}\int_a^b g(x)\ dx. Also ∫mm+1∣sin⁡πx∣ dx=2π\int_m^{m+1} |\sin \pi x|\ dx = \frac{2}{\pi} for every integer mm, since ∣sin⁡πx∣|\sin \pi x| has period 11.

Approach. Split [0,r][0, r] into unit intervals, use the symmetry of each arch to replace xx by the midpoint, add the pieces, then take π\pi times the result, the square root and the sum over rr.

  1. Step 1: Integrate over one arch

    On [m,m+1][m, m + 1] the arch ∣sin⁡πx∣|\sin \pi x| is symmetric about m+12m + \frac{1}{2}, so

    ∫mm+1x∣sin⁡πx∣ dx=(m+12)2π=2m+1π\int_m^{m+1} x|\sin \pi x|\ dx = \left(m + \frac{1}{2}\right)\frac{2}{\pi} = \frac{2m + 1}{\pi}
  2. Step 2: Add the arches

    For a natural number rr, adding the arches from m=0m = 0 to m=r−1m = r - 1 uses ∑(2m+1)=r2\sum (2m + 1) = r^2:

    ∫0rx∣sin⁡πx∣ dx=1π∑m=0r−1(2m+1)=r2π\int_0^r x|\sin \pi x|\ dx = \frac{1}{\pi}\sum_{m=0}^{r-1} (2m + 1) = \frac{r^2}{\pi}
  3. Step 3: Sum the terms

    Putting this value into the square root removes the π\pi, so each term is ∣π⋅r2π∣=r\left|\sqrt{\pi \cdot \frac{r^2}{\pi}}\right| = r, and

    ∑r=120r=20⋅212=210\sum_{r=1}^{20} r = \frac{20 \cdot 21}{2} = 210

Answer. 210

Sanity check. For r=1r = 1, integration by parts gives

∫01xsin⁡πx dx=[−xcos⁡πxπ]01+1π∫01cos⁡πx dx=1π\begin{aligned} \int_0^1 x\sin \pi x\ dx &= \left[-\frac{x\cos \pi x}{\pi}\right]_0^1 \\[4pt] &+ \frac{1}{\pi}\int_0^1 \cos \pi x\ dx = \frac{1}{\pi} \end{aligned}

which matches r2π\frac{r^2}{\pi} at r=1r = 1.

Smart method. The answer is an integer, so each square root should be a whole number; trying r=1r = 1 (value 1π\frac{1}{\pi}, so the term is 11) and r=2r = 2 (value 1π+3π=4π\frac{1}{\pi} + \frac{3}{\pi} = \frac{4}{\pi}, term 22) suggests the term is rr, and the midpoint argument confirms it for every rr. The pattern guess alone would not be a proof.

Common wrong answers

  • 420: Taking ∑r=120r\sum_{r=1}^{20} r as 20⋅21=42020 \cdot 21 = 420 forgets the factor 12\frac{1}{2}; the sum is 20⋅212=210\frac{20 \cdot 21}{2} = 210.
  • 2870: Adding π∫0rx∣sin⁡πx∣ dx=r2\pi \int_0^r x|\sin \pi x|\ dx = r^2 without the square root gives ∑r2=2870\sum r^2 = 2870; the term is r2=r\sqrt{r^2} = r.
  • 190: Stopping the sum at r=19r = 19 gives 19⋅202=190\frac{19 \cdot 20}{2} = 190; the sum runs up to r=20r = 20.

Key takeaway

The trap. Dropping the modulus, which makes alternate arches negative and spoils the sum.

How toppers think. They compute one period, then add the periods, which turns the integral into a sum of odd numbers.

Remember. ∫abf(x) dx=∫abf(a+b−x) dx\int_a^b f(x)\ dx = \int_a^b f(a + b - x)\ dx, and ∑m=0r−1(2m+1)=r2\sum_{m=0}^{r-1} (2m + 1) = r^2.

More on Symmetry & Periodicity