\(\int_{0}^{4\pi}\displaystyle\frac{x}{1+|\cos x|}\,dx\)
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(16\pi\)
Let
\( \displaystyle I = \int_{0}^{4\pi}\frac{x}{1+|\cos x|}\,dx \qquad (1) \)
By the property \(\int_{0}^{a} f(x)\,dx = \int_{0}^{a} f(a-x)\,dx\), and \(|\cos(4\pi - x)| = |\cos x|\):
\( \displaystyle I = \int_{0}^{4\pi}\frac{4\pi - x}{1+|\cos x|}\,dx \qquad (2) \)
Adding (1) and (2):
\( \displaystyle 2I = 4\pi\int_{0}^{4\pi}\frac{dx}{1+|\cos x|} \)
\( \displaystyle I = 2\pi\int_{0}^{4\pi}\frac{dx}{1+|\cos x|} \)
\(|\cos x|\) is periodic with period \(\pi\), so the integral over \([0, 4\pi]\) is four times the integral over \([0, \pi]\):
\( \displaystyle I = 8\pi\int_{0}^{\pi}\frac{dx}{1+|\cos x|} \)
Since \(|\cos(\pi - x)| = |\cos x|\), the integral over \([0, \pi]\) is twice the integral over \([0, \frac{\pi}{2}]\), where \(|\cos x| = \cos x\):
\( \displaystyle I = 16\pi\int_{0}^{\pi/2}\frac{dx}{1+\cos x} \)
With \(1 + \cos x = 2\cos^2\frac{x}{2}\):
\( \displaystyle \int_{0}^{\pi/2}\frac{dx}{1+\cos x} = \int_{0}^{\pi/2}\frac{1}{2}\sec^2\frac{x}{2}\,dx \)
\( \displaystyle = \Big[\tan\frac{x}{2}\Big]_{0}^{\pi/2} = 1 \)
So
\(I = 16\pi \times 1 = 16\pi\)