Clear Notion Academy

Integral Calculus (Beyond Advanced) Practice: 0 2 2 x dx equals (here is the greatest-integer function)

Question

∫02π⌊2sin⁡x⌋dx\displaystyle\int_0^{2\pi}\left\lfloor 2\sin x\right\rfloor dx equals (here ⌊⋅⌋\lfloor\cdot\rfloor is the greatest-integer function)

Options

  1. π\pi
  2. −π-\pi
  3. −2π-2\pi
  4. 00

Answer

Correct option: B

Hint

Find where 2sin⁡x2\sin x crosses each integer and add rectangle areas with signs.

Solution

For 0<x<π0<x<\pi: ⌊2sin⁡x⌋=1\lfloor2\sin x\rfloor=1 when sin⁡x≥12\sin x\ge\frac12, i.e. x∈[π6,5π6]x\in[\frac\pi6,\frac{5\pi}6], and 00 otherwise (the value 22 occurs only at x=π2x=\frac\pi2). Contribution: 1⋅2π31\cdot\frac{2\pi}3. For π<x<2π\pi<x<2\pi: ⌊2sin⁡x⌋=−1\lfloor2\sin x\rfloor=-1 when −12≤sin⁡x<0-\frac12\le\sin x<0, i.e. on (π,7π6]∪[11π6,2π)(\pi,\frac{7\pi}6]\cup[\frac{11\pi}6,2\pi) of total length π3\frac\pi3; and −2-2 when sin⁡x<−12\sin x<-\frac12, i.e. on (7π6,11π6)(\frac{7\pi}6,\frac{11\pi}6) of length 2π3\frac{2\pi}3. Total =2π3−π3−2⋅2π3=−π=\frac{2\pi}3-\frac\pi3-2\cdot\frac{2\pi}3=-\pi. The floor does not make the two half-periods cancel: ⌊−y⌋≠−⌊y⌋\lfloor-y\rfloor\neq-\lfloor y\rfloor, so the answer is not 00.

More questions from Integral Calculus (Beyond Advanced) Practice

Practise the full set: Integral Calculus — Beyond Advanced