, where denotes greatest integer less than or equal to , is equal to
- Option A: 0
- Option B: 2
- Option C: −3
- Option D: 4
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 equals the integer exactly where
so it is a constant on each such stretch, and its integral is a sum of rectangles.
Picture the situation. The value of is 0 on , 1 on and 2 on . So the integrand is , then , then .
Approach. Integrate the cosine on each stretch.
Step 1: Each stretch
An antiderivative of is , which is 0 at every integer. Each stretch has integer end points, so each of the three integrals is 0.
Step 2: The value
Adding the three stretches, with or without the sign change, the integral is 0.
Answer. (A) 0
Sanity check. On the cosine of completes one full period, and on 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 cannot arise: every stretch contributes 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. for integers and