Calculus

Answer & solution
Official answer: -1
Our answer: −1
Let u=1/x, so du=−dx/x². The lower x bound gives u=π and the upper gives u=π/2, reversing order. Therefore the integral is −∫ from π to π/2 cos(u)du=sin(π)−sin(π/2)=−1. The negative answer is plausible because cos(1/x) is nonpositive on this interval; losing the substitution minus sign would give the wrong sign.
Solution: An antiderivative of cos(1/x)/x² is−sin(1/x). Evaluating from 1/π to 2/π gives−sin(π/2)+sin(π)=−1.