QlarIITy

MathematicsJEE Main 2026 · 23 JanuaryInteger

The number of elements in the setS={x:x∈[0,100] and ∫0xt2sin⁡(x−t)dt=x2}\begin{aligned} S = \{&x : x \in [0, 100] \text{ and } \\[4pt] &\int_0^x t^2\sin(x - t)dt = x^2\} \end{aligned}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. In ∫0xf(t)g(x−t)dt\int_0^x f(t)g(x - t)dt the xx is a constant while integrating in tt.

Concept refresher. Integration by parts for a definite integral in the variable tt:

∫abuv′ dt=[uv]ab−∫abu′v dt\int_a^b uv' \ dt = \left[u v\right]_a^b - \int_a^b u' v \ dt

where uu, vv are differentiable on [a,b][a, b]; any other letter, such as xx, is a constant during the integration. Also cos⁡x=1\cos x = 1 exactly when x=2kπx = 2k\pi, k∈Zk \in \mathbb{Z}.

Approach. Integrate by parts twice in tt, simplify the condition to an equation in cos⁡x\cos x, and count its solutions in [0,100][0, 100].

  1. Step 1: First integration by parts

    The power t2t^2 drops in degree when differentiated, so take u=t2u = t^2 and v′=sin⁡(x−t)v' = \sin(x - t), which gives v=cos⁡(x−t)v = \cos(x - t). Writing JJ for the integral,

    J=[t2cos⁡(x−t)]0x−∫0x2tcos⁡(x−t)dt=x2−2∫0xtcos⁡(x−t)dt\begin{aligned} J &= \left[t^2\cos(x - t)\right]_0^x - \int_0^x 2t\cos(x - t)dt \\[4pt] &= x^2 - 2\int_0^x t\cos(x - t)dt \end{aligned}
  2. Step 2: Second integration by parts

    Now take u=tu = t and v′=cos⁡(x−t)v' = \cos(x - t), so v=−sin⁡(x−t)v = -\sin(x - t). Writing KK for the remaining integral,

    K=[−tsin⁡(x−t)]0x+∫0xsin⁡(x−t)dt=0+[cos⁡(x−t)]0x=1−cos⁡x\begin{aligned} K &= \left[-t\sin(x - t)\right]_0^x + \int_0^x \sin(x - t)dt \\[4pt] &= 0 + \left[\cos(x - t)\right]_0^x = 1 - \cos x \end{aligned}
  3. Step 3: Reduce the condition

    Putting KK into JJ, the integral is x2−2(1−cos⁡x)=x2−2+2cos⁡xx^2 - 2(1 - \cos x) = x^2 - 2 + 2\cos x. Setting it equal to x2x^2:

    −2+2cos⁡x=0⇒cos⁡x=1-2 + 2\cos x = 0 \Rightarrow \cos x = 1
  4. Step 4: Count in [0, 100]

    cos⁡x=1\cos x = 1 at x=2kπx = 2k\pi. We need 0≤2kπ≤1000 \leq 2k\pi \leq 100:

    0≤k≤1002π≈15.90 \leq k \leq \frac{100}{2\pi} \approx 15.9

    so k=0,1,…,15k = 0, 1, \ldots, 15, which gives 1616 elements.

Answer. 16

Sanity check. For small xx, sin⁡(x−t)≈x−t\sin(x - t) \approx x - t, so the integral is about ∫0xt2(x−t)dt=x412\int_0^x t^2(x - t)dt = \frac{x^4}{12}; and x2−2+2cos⁡x≈x2−2+2−x2+x412=x412x^2 - 2 + 2\cos x \approx x^2 - 2 + 2 - x^2 + \frac{x^4}{12} = \frac{x^4}{12} as well. At x=2πx = 2\pi both sides of the condition equal 4π24\pi^2.

Common wrong answers

  • 15: Counting only x=2kπx = 2k\pi with k=1,…,15k = 1, \ldots, 15 leaves out x=0x = 0, where both sides are 00; with it there are 1616.
  • 17: Taking k≤16k \leq 16 (rounding 1002π≈15.9\frac{100}{2\pi} \approx 15.9 up) gives k=0,…,16k = 0, \ldots, 16, that is 1717 values; but x=32π≈100.53x = 32\pi \approx 100.53 is outside [0,100][0, 100].
  • 32: Solving sin⁡x=0\sin x = 0 instead of cos⁡x=1\cos x = 1 gives x=kπx = k\pi, k=0,…,31k = 0, \ldots, 31, that is 3232 values; but cos⁡x=1\cos x = 1 only at even multiples of π\pi.

Key takeaway

The trap. Dropping x=0x = 0 or allowing 32π32\pi, which is just past 100100.

How toppers think. They check the end of the range by a quick estimate, 2π⋅16≈100.52\pi \cdot 16 \approx 100.5.

Remember. cos⁡x=1\cos x = 1 only at x=2kπx = 2k\pi, k∈Zk \in \mathbb{Z}.

More on Evaluation Techniques