The value of ∫2nπ0[sinx+cosx]dx, is equal to (where [.] denotes greatest integer function)
∫2nπ0[sinx+cosx]dx
=∫2nπ0[√2sin(x+π4)]dx
The function is periodic with period 2π.
=∫2π0[√2sin(x+π4)]dx
Hence, first we find the definite integration with limit from 0 to 2π
The graph of sin(x+π4) is shown in the figure. To find values of [√2sin(x+π4)], we can draw the lines y=1√2 and y=−1√2
∫2π0[√2sin(x+π4)]dx
Splitting the limits for greatest integer function,
=∫π201.dx+∫3π4π20.dx+∫π3π4−1.dx+∫3π2π−2.dx+∫7π43π2−1.dx+∫2π7π40.dx
=(π2−0)−(π−3π4)−2(3π2−π)−(7π4−3π2)
=−π
Hence, for limit 0 to 2nπ the integral will be n×−π=−nπ