GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 8(b)

Integral of an odd function

Engineering Mathematics & Other Topics · Calculus · Full GATE CSE 1998 paper

GATE 1998, Q8(b) Descriptive
Report issue

Calculus

Question 8(b), GATE 1998: Evaluate the definite integral of x cos x from −π to π.
Question 8(b), GATE 1998: Evaluate the definite integral of x cos x from −π to π.
Tap to enlarge
Answer & solution

Answer: 0. (no official key was published)

Let g(x)=x cos x. Since cosine is even, g(−x)=−x cos(−x)=−x cos x=−g(x), so g is odd. Its integral over the symmetric interval [−π,π] therefore cancels pairwise and equals zero.

Integration by parts provides an independent derivation. Take u=x and dv=cos x dx, giving du=dx and v=sin x. Then ∫x cos x dx=x sin x−∫sin x dx=x sin x+cos x+C. At π this antiderivative has value π·0+(−1)=−1; at −π it has value (−π)·0+(−1)=−1. Subtracting lower from upper again gives 0.

The printed bounds are −π and π, not an indefinite integral or the interval [0,π]. On [0,π] the value would be −2. The sign and symmetry of the lower bound are consequently essential to the result.

Original paper, page 6