QlarIITy

MathematicsJEE Main 2022 · 29 JuneSingle correct

∫05cos⁡(π(x−[x2]))dx\int_0^5\cos\left(\pi\left(x - \left[\frac{x}{2}\right]\right)\right)dx, where [t][t] denotes greatest integer less than or equal to tt, is equal to

  1. Option A: 0
  2. Option B: 2
  3. Option C: −3
  4. Option D: 4
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A greatest integer part inside a function is handled stretch by stretch, where it is a constant.

Concept refresher. The greatest integer part [h(x)][h(x)] equals the integer kk exactly where

k≤h(x)<k+1k \leq h(x) < k + 1

so it is a constant on each such stretch, and its integral is a sum of rectangles.

Picture the situation. The value of [x2]\left[\dfrac{x}{2}\right] is 0 on [0,2)[0, 2), 1 on [2,4)[2, 4) and 2 on [4,5][4, 5]. So the integrand is cos⁡πx\cos\pi x, then cos⁡(πx−π)=−cos⁡πx\cos(\pi x - \pi) = -\cos\pi x, then cos⁡(πx−2π)=cos⁡πx\cos(\pi x - 2\pi) = \cos\pi x.

Approach. Integrate the cosine on each stretch.

  1. Step 1: Each stretch

    An antiderivative of cos⁡πx\cos\pi x is sin⁡πxπ\dfrac{\sin\pi x}{\pi}, which is 0 at every integer. Each stretch has integer end points, so each of the three integrals is 0.

  2. Step 2: The value

    Adding the three stretches, with or without the sign change, the integral is 0.

Answer. (A) 0

Sanity check. On [0,2][0, 2] the cosine of πx\pi x completes one full period, and on [4,5][4, 5] half a period from a crest to a trough, both of which integrate to 0.

Why the other options are wrong

  • (B) The value 2 would need a stretch on which the cosine does not average to 0, but each stretch ends at integers.
  • (C) The value −3-3 cannot arise: every stretch contributes sin⁡πxπ\dfrac{\sin\pi x}{\pi} between integers, which is 0.
  • (D) The value 4 would need the integrand to be near 1 throughout; it is a cosine that changes sign.

Key takeaway

The trap. A shift of the argument by a multiple of pi only changes the sign of the cosine.

How toppers think. They note that the sine of pi times an integer is 0 and stop.

Remember. ∫mncos⁡πxdx=0\int_m^n\cos\pi xdx = 0 for integers mm and nn

More on Properties of Definite Integrals