GATE | GATE-CS-2014-(Set-3) | Question 57
The value of integral given below is:![]()
(A)![]()
(B)![]()
(C)![]()
(D)![]()
(A) A
(B) B
(C) C
(D) D
Answer: (A)
Explanation: Using Integration By-parts-
![Rendered by QuickLaTeX.com \begin{flalign*} \int x^2\cos{x}\:dx &= x^2\int \cos{x}\:dx - \int \frac{d}{dx}x^2 \Big( \int \cos{x}\:dx \Big)\:dx\\ &= x^2\sin{x} - \int 2x \sin{x}\:dx\\ &\text{Using By-Parts again}\\ &= x^2\sin{x} - 2\Big(x (-\cos{x}) - \int 1 . (-\cos{x})\:dx \Big)\\ &= x^2\sin{x} + 2x \cos{x} - 2\sin{x} \\ &\text{Putting the limits}\\ &= \big[ x^2\sin{x} + 2x \cos{x} - 2\sin{x} \big] \limits_{0}^{\pi} \\ &= \big[ 0 - 2\pi - 0 \big] - \big[ 0 + 0 - 0 \big]\\ &= -2\pi\\ \end{flalign*}](https://web.archive.org/web/20210928170540im_/https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-4483f2a80064aa92f51abf183bc42840_l3.png)
Therefore the correct option is A.
Quiz of this Question
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.



