Question

∫1/π2/πcos⁡(1/x)x2 dx\int_{1/\pi}^{2/\pi} \frac{\cos(1/x)}{x^2}\,dx

The value of the integral is _____.

Official answer and solution
Official answer
-1
From
Official GATE 2015 answer key

Solution

Use the substitution u = 1/x to transform and evaluate the definite integral.

Given the definite integral:

I=∫1/π2/πcos⁡(1/x)x2 dxI = \int_{1/\pi}^{2/\pi} \frac{\cos(1/x)}{x^2}\,dx
  1. Substitution:
    Let u=1xu = \frac{1}{x}. Then:

    du=−1x2 dx  ⟹  1x2 dx=−du.du = -\frac{1}{x^2}\,dx \implies \frac{1}{x^2}\,dx = -du.
  2. Change of integration limits:

    • Lower limit: when x=1/πx = 1/\pi, u=πu = \pi.
    • Upper limit: when x=2/πx = 2/\pi, u=π/2u = \pi/2.
  3. Evaluation:

    I=∫ππ/2cos⁡(u) (−du)=∫π/2πcos⁡(u) duI = \int_{\pi}^{\pi/2} \cos(u)\,(-du) = \int_{\pi/2}^{\pi} \cos(u)\,du
    I=[sin⁡(u)]π/2π=sin⁡(π)−sin⁡(π/2)=0−1=−1.I = \left[ \sin(u) \right]_{\pi/2}^{\pi} = \sin(\pi) - \sin(\pi/2) = 0 - 1 = -1.

The value of the integral is −1-1.

Final answer

-1

Common trap

Neglecting the negative sign from du = -dx/x^2, which would lead to an incorrect result of +1.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 1
Question
54 of 65, printed as CS Q.44
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.