The integral to evaluate is ∫0π[cosx]dx, where [⋅] denotes the greatest integer function. This function returns the greatest integer less than or equal to its argument. The cosine function, cosx, decreases from 1 to -1 as x goes from 0 to π. The greatest integer function [cosx] will change values at points where cosx is an integer, specifically at x=0, x=π/2, and x=π, because cosx takes integer values 1, 0, and -1 at these points, respectively.
To compute the integral, split it at the discontinuity points, specifically at x=π/2:
∫0π[cosx]dx=∫0π/2[cosx]dx+∫π/2π[cosx]dx$
Now, evaluate each integral separately.
First, consider ∫0π/2[cosx]dx.
- At x=0, cos0=1, so [cos0]=[1]=1.
- For x∈(0,π/2], cosx is in the interval (0,1]. Since cosx>0 and cosx<1 for x>0, the greatest integer less than or equal to cosx is 0. At x=π/2, cos(π/2)=0, so [0]=0.
Thus, in the interval [0,π/2], [cosx]=1 only at the single point x=0, and [cosx]=0 for all x∈(0,π/2]. In the Riemann integral, the value at a single point does not affect the result because it has measure zero. Therefore, the function [cosx] is effectively 0 almost everywhere in [0,π/2], and the integral is:
∫0π/2[cosx]dx=∫0π/20dx=0$
To be rigorous, consider the limit as ϵ→0+:
∫0π/2[cosx]dx=limϵ→0+∫ϵπ/2[cosx]dx$
For ϵ>0 and small, x∈[ϵ,π/2], cosx∈(0,1), so [cosx]=0. Thus:
∫ϵπ/20dx=0$
As ϵ→0+, the integral remains 0.
Next, consider ∫π/2π[cosx]dx.
- At x=π/2, cos(π/2)=0, so [0]=0.
- For x∈(π/2,π], cosx is in the interval (−1,0). For example, at x=π, cosπ=−1, so [−1]=−1. For any y∈(−1,0), the greatest integer less than or equal to y is −1 (e.g., [−0.5]=−1).
Thus, in the interval [π/2,π], [cosx]=0 only at the single point x=π/2, and [cosx]=−1 for all x∈(π/2,π]. Again, the value at a single point does not affect the integral, so [cosx] is effectively −1 almost everywhere in [π/2,π]. Therefore:
∫π/2π[cosx]dx=∫π/2π(−1)dx=−1⋅(π−2π)=−1⋅2π=−2π$
To be rigorous, consider the limit as δ→0+:
∫π/2π[cosx]dx=limδ→0+(∫π/2+δπ[cosx]dx+∫π/2π/2+δ[cosx]dx)$
For x∈[π/2+δ,π], cosx∈[−1,−sinδ)⊂(−1,0), so [cosx]=−1. Thus:
∫π/2+δπ(−1)dx=−1⋅(π−(2π+δ))=−(2π−δ)$
For x∈[π/2,π/2+δ], [cosx] is bounded between −1 and 0, so the integral is bounded in absolute value by δ⋅1=δ. As δ→0+, this part approaches 0. Thus:
limδ→0+(−(2π−δ)+bounded term)=−2π$
Now, sum the two integrals:
∫0π[cosx]dx=∫0π/2[cosx]dx+∫π/2π[cosx]dx=0+(−2π)=−2π$
Therefore, the integral evaluates to −π/2.
Hence, the correct answer is Option D.
So, the answer is −2π.