JEE Main 2021 Mathematics question — Definite integrals: properties and King's rule
If [⋅] represents the greatest integer function, then the value of ∫02π[[x2]−cosx]dx is ________.
SOLUTION
We evaluate ∫0π/2[[x2]−cosx]dx, where [⋅] denotes the greatest integer function.
The upper limit is π/2≈1.2533. As x goes from 0 to π/2, x2 goes from 0 to π/2≈1.5708.
For 0≤x<1: x2∈[0,1), so [x2]=0. The integrand is [0−cosx]=[−cosx]. Since cosx∈(cos1,1]≈(0.5403,1] on this interval, −cosx∈[−1,−0.5403). At x=0, −cos0=−1 and [−1]=−1. For x∈(0,1), −1<−cosx<0, so [−cosx]=−1. Thus [−cosx]=−1 on [0,1).
For 1≤x≤π/2: x2∈[1,π/2], so [x2]=1. The integrand is [1−cosx]. Here cosx ranges from cos(π/2)≈0.309 to cos1≈0.540, so 1−cosx∈(0.460,0.691). Since 0<1−cosx<1, we have [1−cosx]=0.