JEE Challenger
More from Integrals

Definite Integral of Composite Symmetric Function with Cosine

The value of the integral ∫−π/2π/2(x2+ln⁡π+xπ−x)cos⁡x dx\int_{-\pi/2}^{\pi/2} \left( x^2 + \ln \frac{\pi + x}{\pi - x} \right) \cos x \, dx is

Options

A

00

B

π22−4\frac{\pi^2}{2} - 4

Correct
C

π22+4\frac{\pi^2}{2} + 4

D

π22\frac{\pi^2}{2}

Step-by-Step Solution

To find the value of the integral I=∫−π/2π/2(x2+ln⁡π+xπ−x)cos⁡x dxI = \int_{-\pi/2}^{\pi/2} \left( x^2 + \ln \frac{\pi + x}{\pi - x} \right) \cos x \, dx

we can split the integrand into two separate terms: I=∫−π/2π/2x2cos⁡x dx+∫−π/2π/2ln⁡(π+xπ−x)cos⁡x dxI = \int_{-\pi/2}^{\pi/2} x^2 \cos x \, dx + \int_{-\pi/2}^{\pi/2} \ln \left( \frac{\pi + x}{\pi - x} \right) \cos x \, dx

Let us define: I1=∫−π/2π/2x2cos⁡x dxI_1 = \int_{-\pi/2}^{\pi/2} x^2 \cos x \, dx I2=∫−π/2π/2ln⁡(π+xπ−x)cos⁡x dxI_2 = \int_{-\pi/2}^{\pi/2} \ln \left( \frac{\pi + x}{\pi - x} \right) \cos x \, dx

Step 1: Evaluate I2I_2 Let f(x)=ln⁡(π+xπ−x)cos⁡xf(x) = \ln \left( \frac{\pi + x}{\pi - x} \right) \cos x. Evaluating f(−x)f(-x): f(−x)=ln⁡(π−xπ+x)cos⁡(−x)=ln⁡(π+xπ−x)−1cos⁡x=−ln⁡(π+xπ−x)cos⁡x=−f(x)f(-x) = \ln \left( \frac{\pi - x}{\pi + x} \right) \cos(-x) = \ln \left( \frac{\pi + x}{\pi - x} \right)^{-1} \cos x = -\ln \left( \frac{\pi + x}{\pi - x} \right) \cos x = -f(x)

Since f(x)f(x) is an odd function and the limits of integration are symmetric about zero, the value of the integral is zero: I2=0I_2 = 0

Step 2: Evaluate I1I_1 Let g(x)=x2cos⁡xg(x) = x^2 \cos x. Evaluating g(−x)g(-x): g(−x)=(−x)2cos⁡(−x)=x2cos⁡x=g(x)g(-x) = (-x)^2 \cos(-x) = x^2 \cos x = g(x)

Since g(x)g(x) is an even function, we can rewrite I1I_1 as: I1=2∫0π/2x2cos⁡x dxI_1 = 2 \int_{0}^{\pi/2} x^2 \cos x \, dx

Using integration by parts (∫u dv=uv−∫v du\int u \, dv = uv - \int v \, du): Let u=x2  ⟹  du=2x dxu = x^2 \implies du = 2x \, dx and dv=cos⁡x dx  ⟹  v=sin⁡xdv = \cos x \, dx \implies v = \sin x.

∫x2cos⁡x dx=x2sin⁡x−2∫xsin⁡x dx\int x^2 \cos x \, dx = x^2 \sin x - 2 \int x \sin x \, dx

Applying integration by parts again to ∫xsin⁡x dx\int x \sin x \, dx: Let u=x  ⟹  du=dxu = x \implies du = dx and dv=sin⁡x dx  ⟹  v=−cos⁡xdv = \sin x \, dx \implies v = -\cos x.

∫xsin⁡x dx=−xcos⁡x−∫(−cos⁡x) dx=−xcos⁡x+sin⁡x\int x \sin x \, dx = -x \cos x - \int (-\cos x) \, dx = -x \cos x + \sin x

Substituting this back into the expression for the indefinite integral: ∫x2cos⁡x dx=x2sin⁡x−2(−xcos⁡x+sin⁡x)=x2sin⁡x+2xcos⁡x−2sin⁡x\int x^2 \cos x \, dx = x^2 \sin x - 2(-x \cos x + \sin x) = x^2 \sin x + 2x \cos x - 2\sin x

Now, applying the limits from 00 to π2\frac{\pi}{2}: ∫0π/2x2cos⁡x dx=[x2sin⁡x+2xcos⁡x−2sin⁡x]0π/2\int_{0}^{\pi/2} x^2 \cos x \, dx = \left[ x^2 \sin x + 2x \cos x - 2\sin x \right]_{0}^{\pi/2}

Evaluating at the upper limit x=π2x = \frac{\pi}{2}: (π2)2sin⁡(π2)+2(π2)cos⁡(π2)−2sin⁡(π2)=π24(1)+π(0)−2(1)=π24−2\left( \frac{\pi}{2} \right)^2 \sin\left(\frac{\pi}{2}\right) + 2\left(\frac{\pi}{2}\right) \cos\left(\frac{\pi}{2}\right) - 2\sin\left(\frac{\pi}{2}\right) = \frac{\pi^2}{4}(1) + \pi(0) - 2(1) = \frac{\pi^2}{4} - 2

Evaluating at the lower limit x=0x = 0: 02sin⁡(0)+2(0)cos⁡(0)−2sin⁡(0)=00^2 \sin(0) + 2(0)\cos(0) - 2\sin(0) = 0

Thus, I1=2(π24−2)=π22−4I_1 = 2 \left( \frac{\pi^2}{4} - 2 \right) = \frac{\pi^2}{2} - 4

Step 3: Calculate the total integral II I=I1+I2=(π22−4)+0=π22−4I = I_1 + I_2 = \left( \frac{\pi^2}{2} - 4 \right) + 0 = \frac{\pi^2}{2} - 4

Hence, the correct option is B.