QlarIITy

MathematicsJEE Main 2022 · 25 JulySingle correct

For any real number xx, let [x][x] denote the largest integer less than or equal to xx. Let ff be a real-valued function defined on the interval [−10,10][-10, 10] byf(x)={x−[x],if [x] is odd1+[x]−x,if [x] is evenf(x) = \begin{cases} x - [x], & \text{if } [x] \text{ is odd} \\ 1 + [x] - x, & \text{if } [x] \text{ is even} \end{cases}Then, the value of π210∫−1010f(x)cos⁡πxdx\frac{\pi^2}{10}\int_{-10}^{10}f(x)\cos\pi x dx is

  1. Option A: 4
  2. Option B: 2
  3. Option C: 1
  4. Option D: 0
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. When both factors share a period, integrate over one period and multiply.

Concept refresher. If ff has period TT, then for a positive integer nn,

∫0nTf(x)dx=n∫0Tf(x)dx\int_0^{nT}f(x)dx = n\int_0^T f(x)dx

Picture the situation. On [0,1)[0, 1), [x]=0[x] = 0 is even, so f(x)=1−xf(x) = 1 - x; on [1,2)[1, 2), [x]=1[x] = 1 is odd, so f(x)=x−1f(x) = x - 1. The pattern repeats every 2 units, and cos⁡πx\cos\pi x also has period 2, so the interval [−10,10][-10, 10] holds 10 whole periods.

Graph of f from x = −2 to x = 4: a zigzag of straight segments with value 1 at the even integers −2, 0, 2, 4 and value 0 at the odd integers −1, 1, 3.

Approach. Integrate over one period by parts and multiply by the number of periods.

  1. Step 1: The first piece

    Integrating by parts, ∫01(1−x)cos⁡πxdx\int_0^1(1 - x)\cos\pi xdx equals [(1−x)sin⁡πxπ]01+1π∫01sin⁡πxdx\left[\dfrac{(1 - x)\sin\pi x}{\pi}\right]_0^1 + \dfrac{1}{\pi}\int_0^1\sin\pi xdx. The bracket is 0 and the last integral is 2π\dfrac{2}{\pi}, so this piece is 2π2\dfrac{2}{\pi^2}.

  2. Step 2: The second piece

    With t=x−1t = x - 1, cos⁡πx=−cos⁡πt\cos\pi x = -\cos\pi t, so ∫12(x−1)cos⁡πxdx=−∫01tcos⁡πtdt\int_1^2(x - 1)\cos\pi xdx = -\int_0^1 t\cos\pi tdt. By parts ∫01tcos⁡πtdt=−2π2\int_0^1 t\cos\pi tdt = -\dfrac{2}{\pi^2}, so this piece is also 2π2\dfrac{2}{\pi^2}.

  3. Step 3: The value

    One period gives 4π2\dfrac{4}{\pi^2} and 10 periods give 40π2\dfrac{40}{\pi^2}. Multiplying by π210\dfrac{\pi^2}{10} gives 4.

Answer. (A) 4

Sanity check. Near x=0x = 0 and near x=2x = 2 the function is close to 1 and the cosine is close to 1 as well, so both pieces of a period must be positive.

Why the other options are wrong

  • (B) The value 2 comes from counting only one of the two pieces of each period, 2π2\dfrac{2}{\pi^2} in place of 4π2\dfrac{4}{\pi^2}.
  • (C) The value 1 would need the integral to be 10π2\dfrac{10}{\pi^2}, a quarter of its true value 40π2\dfrac{40}{\pi^2}.
  • (D) The value 0 would need the two pieces of a period to cancel, but both are positive, each 2π2\dfrac{2}{\pi^2}.

Key takeaway

The trap. A period of the product needs both factors to repeat, here every 2 units.

How toppers think. They sketch the wave and see that both pieces of a period contribute equally.

Remember. ∫01(1−x)cos⁡πxdx=2π2\int_0^1(1 - x)\cos\pi xdx = \dfrac{2}{\pi^2}

More on Symmetry & Periodicity