QlarIITy

MathematicsJEE Main 2019 · 12 JanuarySingle correct

The integral ∫cos⁡(ln⁡x)dx\int \cos(\ln x)dx, is equal to

  1. Option A: x2(cos⁡(ln⁡x)−sin⁡(ln⁡x))+C\frac{x}{2}(\cos(\ln x) - \sin(\ln x)) + C
  2. Option B: x(cos⁡(ln⁡x)−sin⁡(ln⁡x))+Cx(\cos(\ln x) - \sin(\ln x)) + C
  3. Option C: x(cos⁡(ln⁡x)+sin⁡(ln⁡x))+Cx(\cos(\ln x) + \sin(\ln x)) + C
  4. Option D: x2(cos⁡(ln⁡x)+sin⁡(ln⁡x))+C\frac{x}{2}(\cos(\ln x) + \sin(\ln x)) + C
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. When integration by parts returns the original integral, it is solved for like an unknown.

Concept refresher. For functions uu and vv of xx,

∫udv=uv−∫vdu\int u dv = uv - \int v du

Picture the situation. Write I=∫cos⁡(ln⁡x)dxI = \int\cos(\ln x)dx and integrate by parts with u=cos⁡(ln⁡x)u = \cos(\ln x) and dv=dxdv = dx. Since ddxcos⁡(ln⁡x)=−sin⁡(ln⁡x)x\dfrac{d}{dx}\cos(\ln x) = -\dfrac{\sin(\ln x)}{x}, the factor xx cancels: I=xcos⁡(ln⁡x)+∫sin⁡(ln⁡x)dxI = x\cos(\ln x) + \int\sin(\ln x)dx.

Approach. Integrate by parts once more and solve for the integral.

  1. Step 1: The second step

    Integrating by parts in the same way, the new integral is

    ∫sin⁡(ln⁡x)dx=xsin⁡(ln⁡x)−∫cos⁡(ln⁡x)dx=xsin⁡(ln⁡x)−I\begin{aligned} &\int\sin(\ln x)dx \\[4pt] &= x\sin(\ln x) - \int\cos(\ln x)dx \\[4pt] &= x\sin(\ln x) - I \end{aligned}

    So I=xcos⁡(ln⁡x)+xsin⁡(ln⁡x)−II = x\cos(\ln x) + x\sin(\ln x) - I, which gives I=x2(cos⁡(ln⁡x)+sin⁡(ln⁡x))+CI = \dfrac{x}{2}(\cos(\ln x) + \sin(\ln x)) + C.

Answer. (D) x2\dfrac{x}{2} times cos⁡(ln⁡x)+sin⁡(ln⁡x)\cos(\ln x) + \sin(\ln x), plus CC

Sanity check. Differentiating the result gives

12(cos⁡(ln⁡x)+sin⁡(ln⁡x))   +12(cos⁡(ln⁡x)−sin⁡(ln⁡x))\begin{aligned} &\dfrac{1}{2}(\cos(\ln x) + \sin(\ln x)) \\[4pt] &\ \ \ + \dfrac{1}{2}(\cos(\ln x) - \sin(\ln x)) \end{aligned}

which is cos⁡(ln⁡x)\cos(\ln x).

Why the other options are wrong

  • (A) With a minus sign between the terms, the derivative would be −sin⁡(ln⁡x)-\sin(\ln x), not cos⁡(ln⁡x)\cos(\ln x).
  • (B) This has no factor 12\dfrac{1}{2} and the wrong sign; its derivative is −2sin⁡(ln⁡x)-2\sin(\ln x).
  • (C) Without the factor 12\dfrac{1}{2} the derivative is 2cos⁡(ln⁡x)2\cos(\ln x), twice the integrand.

Key takeaway

The trap. The original integral comes back with a minus sign, which is what produces the factor one half.

How toppers think. They put the variable equal to an exponential, which gives the standard integral of an exponential times a cosine.

Remember. 2I=xcos⁡(ln⁡x)+xsin⁡(ln⁡x)2I = x\cos(\ln x) + x\sin(\ln x)

More on Integration by Parts