Join the Most Relevant JEE Main 2025 Test Series & get 99+ percentile! Join Now
Search any question & find its solution
Question: Answered & Verified by Expert
If [ ] denotes the greatest integer function, then the integral $\int_0^\pi[\cos x d x$ is equal to:
MathematicsDefinite IntegrationJEE MainJEE Main 2014 (12 Apr Online)
Options:
  • A
    $\frac{\pi}{2}$
  • B
    0
  • C
    $-1$
  • D
    $-\frac{\pi}{2}$
Solution:
2023 Upvotes Verified Answer
The correct answer is:
$-\frac{\pi}{2}$
Let $\mathrm{I}=\int_0^\pi[\cos x] d x$
$$
\mathrm{I}=\int_0^\pi[\cos (\pi-x)] d x=\int_0^\pi[-\cos x] d x
$$
On adding (1) and (2), we get
$$
\begin{aligned}
&2 \mathrm{I}=\int_0^\pi[\cos x] d x+\int_0^\pi[-\cos x] d x \\
&2 \mathrm{I}=\int_0^\pi[\cos x]+[-\cos x] d x \\
&2 \mathrm{I} \\
&=\int_0^\pi-1 d x \quad(\because[x]+[-x]=-1 \text { if } x \notin Z) \\
&2 \mathrm{I}=-\left.x\right|_0 ^\pi=-\pi \\
&\Rightarrow \mathrm{I}=\frac{-\pi}{2}
\end{aligned}
$$

Looking for more such questions to practice?

Download the MARKS App - The ultimate prep app for IIT JEE & NEET with chapter-wise PYQs, revision notes, formula sheets, custom tests & much more.