QlarIITy

MathematicsJEE Advanced 2016 · Paper 2Single correct

The value of ∫−π2π2x2cos⁡x1+exdx\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}\frac{x^{2}\cos x}{1+e^{x}}dx is equal to

  1. Option A: π24−2\frac{\pi^{2}}{4}-2
  2. Option B: π24+2\frac{\pi^{2}}{4}+2
  3. Option C: π2−eπ2\pi^{2}-e^{\frac{\pi}{2}}
  4. Option D: π2+eπ2\pi^{2}+e^{\frac{\pi}{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. Replacing xx by −x-x and adding the two forms removes 11+ex\frac{1}{1+e^{x}}, leaving ∫0π/2x2cos⁡xdx\int_{0}^{\pi/2}x^{2}\cos xdx.

Concept refresher. ∫−aaf(x)dx=∫−aaf(−x)dx\int_{-a}^{a}f(x)dx=\int_{-a}^{a}f(-x)dx. For an even function gg, ∫−aag(x)dx=2∫0ag(x)dx\int_{-a}^{a}g(x)dx=2\int_{0}^{a}g(x)dx. Also 11+ex+ex1+ex=1\frac{1}{1+e^{x}}+\frac{e^{x}}{1+e^{x}}=1.

Approach. Replace xx by −x-x, add the two forms of II to remove the exponential, then integrate x2cos⁡xx^{2}\cos x by parts.

  1. Step 1: Replace xx by −x-x

    I=∫−π2π2x2cos⁡x1+e−xdx=∫−π2π2exx2cos⁡x1+exdxI=\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}\frac{x^{2}\cos x}{1+e^{-x}}dx=\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}\frac{e^{x}x^{2}\cos x}{1+e^{x}}dx
  2. Step 2: Add the two forms

    2I=∫−π2π2x2cos⁡x⋅1+ex1+exdx=∫−π2π2x2cos⁡xdx=2∫0π2x2cos⁡xdx2I=\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}x^{2}\cos x\cdot\frac{1+e^{x}}{1+e^{x}}dx=\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}x^{2}\cos xdx=2\int_{0}^{\frac{\pi}{2}}x^{2}\cos xdx

    since x2cos⁡xx^{2}\cos x is even. Hence I=∫0π2x2cos⁡xdxI=\int_{0}^{\frac{\pi}{2}}x^{2}\cos xdx.

  3. Step 3: Integrate by parts

    ∫x2cos⁡xdx=x2sin⁡x+2xcos⁡x−2sin⁡x+C\int x^{2}\cos xdx=x^{2}\sin x+2x\cos x-2\sin x+C
    I=[x2sin⁡x+2xcos⁡x−2sin⁡x]0π2=π24+0−2−0=π24−2I=\left[x^{2}\sin x+2x\cos x-2\sin x\right]_{0}^{\frac{\pi}{2}}=\frac{\pi^{2}}{4}+0-2-0=\frac{\pi^{2}}{4}-2

Answer. (A)

Why the other options are wrong

  • (B) comes from a sign slip in the second integration by parts: ∫2xsin⁡xdx=−2xcos⁡x+2sin⁡x\int 2x\sin xdx=-2x\cos x+2\sin x, which gives −2sin⁡x-2\sin x in the final antiderivative.
  • (C) keeps an exponential term, but the exe^{x} factor cancels completely after adding the two forms of II.
  • (D) also keeps an exponential and is far too large: ∣I∣≤π24⋅π=π34≈7.75|I|\le\frac{\pi^{2}}{4}\cdot\pi=\frac{\pi^{3}}{4}\approx 7.75, while π2+eπ2≈14.7\pi^{2}+e^{\frac{\pi}{2}}\approx 14.7.

Key takeaway

The trap. Trying to integrate 11+ex\frac{1}{1+e^{x}} directly, or a sign slip in the repeated integration by parts of x2cos⁡xx^{2}\cos x, leads to a wrong option.

How toppers think. Symmetric limits together with a 11+ex\frac{1}{1+e^{x}} factor signal the x→−xx\to-x substitution immediately.

Remember. For even gg, ∫−aag(x)1+exdx=∫0ag(x)dx\int_{-a}^{a}\frac{g(x)}{1+e^{x}}dx=\int_{0}^{a}g(x)dx.

More on Properties of Definite Integrals