QlarIITy

MathematicsIIT-JEE 2012 · Paper 2Single correct

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\ dxis

  1. Option A: 00
  2. Option B: π22−4\frac{\pi^{2}}{2}-4
  3. Option C: π22+4\frac{\pi^{2}}{2}+4
  4. Option D: π22\frac{\pi^{2}}{2}
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. On [−π2,π2]\left[-\frac{\pi}{2},\frac{\pi}{2}\right] the term ln⁡π+xπ−xcos⁡x\ln\frac{\pi+x}{\pi-x}\cos x is odd and vanishes, leaving 2∫0π/2x2cos⁡xdx2\int_{0}^{\pi/2}x^{2}\cos x dx.

Concept refresher. On [−a,a][-a,a]: ∫−aaf(x)dx=0\int_{-a}^{a}f(x)dx=0 if ff is odd, and =2∫0af(x)dx=2\int_{0}^{a}f(x)dx if ff is even.

Approach. Split the integrand into an even part and an odd part; integrate the even part by parts.

  1. Step 1: The logarithmic part is odd

    Let g(x)=ln⁡π+xπ−xcos⁡xg(x)=\ln\frac{\pi+x}{\pi-x}\cos x. Then

    g(−x)=ln⁡π−xπ+xcos⁡x=−ln⁡π+xπ−xcos⁡x=−g(x)g(-x)=\ln\frac{\pi-x}{\pi+x}\cos x=-\ln\frac{\pi+x}{\pi-x}\cos x=-g(x)

    so ∫−π/2π/2g(x)dx=0\int_{-\pi/2}^{\pi/2}g(x)dx=0.

  2. Step 2: The remaining part is even

    x2cos⁡xx^{2}\cos x is even, so

    I=2∫0π/2x2cos⁡x dxI=2\int_{0}^{\pi/2}x^{2}\cos x\ dx
  3. Step 3: Integrate by parts

    ∫x2cos⁡x dx=x2sin⁡x+2xcos⁡x−2sin⁡x+C\int x^{2}\cos x\ dx=x^{2}\sin x+2x\cos x-2\sin x+C

    At x=π2x=\frac{\pi}{2}: π24+0−2\frac{\pi^{2}}{4}+0-2. At x=0x=0: 00.

    I=2(π24−2)=π22−4I=2\left(\frac{\pi^{2}}{4}-2\right)=\frac{\pi^{2}}{2}-4

Answer. (B)

Why the other options are wrong

  • (A) treats the whole integrand as odd; x2cos⁡xx^{2}\cos x is even and contributes π22−4\frac{\pi^{2}}{2}-4.
  • (C) has the sign of the −2sin⁡x-2\sin x term flipped in the second integration by parts.
  • (D) keeps only the first term x2sin⁡xx^{2}\sin x and drops the −2sin⁡x-2\sin x contribution.

Key takeaway

The trap. Declaring the whole integral zero because the logarithm part is odd forgets that x2cos⁡xx^{2}\cos x is even.

How toppers think. They split into odd and even parts at a glance, then integrate x2cos⁡xx^{2}\cos x by parts twice to get π24−2\frac{\pi^{2}}{4}-2, doubled to π22−4\frac{\pi^{2}}{2}-4.

Remember. ln⁡a+xa−x\ln\frac{a+x}{a-x} is odd, and ∫−aa(odd)dx=0\int_{-a}^{a}(\text{odd})dx=0.

More on Symmetry & Periodicity