Question
Question: The value of the integral \[\int\limits_{ - \dfrac{\pi }{2}}^{\dfrac{\pi }{2}} {\left( {{x^2} + ln\d...
The value of the integral −2π∫2π(x2+lnπ−xπ+x)cosxdx is :
A) 0
B) 2π2−4
C) 2π2+4
D) 2π2
Solution
To evaluate a definite integral the first thing that we’re going to do is evaluate the indefinite integral for the function. This should explain the similarity in the notations for the indefinite and definite integrals.
As you practice definite integrals problems, you will understand that you don’t really need a formula because you know that when doing definite integrals all you need to do is evaluate the indefinite integral and then do the evaluation.
Complete step-by-step answer:
−2π∫2π(x2+lnπ−xπ+x)cosxdx
Since the derivative of a sum is the sum of the derivatives, the integral of a sum is the sum of the integrals:
=−2π∫2πx2cosxdx+−2π∫2πlnπ−xπ+xcosxdx
Lets put f(x)=lnπ−xπ+xcosx
So, f(−x)=lnπ+xπ−xcos(−x)
f(−x)=−lnπ−xπ+xcos(x)dx=f(x)
Which implies that f(x) is an odd function. So we can say−2π∫2πlnπ−xπ+xcosxdx=0
=−2π∫2πx2cosxdx+0=−2π∫2πx2cosxdx
Now, lets put g(x)=x2cosx
So, g(−x)=(−x)2cos(−x)
g(−x)=x2cosx=g(x)
Which implies that g(x) is an even function.
=20∫2πx2cosxdx
Now we will use integration by parts to solve this integration:-
=2(x2sinx)02π−0∫2π2xsinxdx
Now putting the limits:-
=2(4π2sin(2π)−0)−20∫2πxsinxdx
Solving the first term and using integration by parts on second term we get
=2π2−4(x(−cosx))02π−0∫2π1(−cosx)dx
=2π2−4(0)+40∫2πcosxdx
=2π2+4(sinx)02π
=2π2+4
So, option (C) is the correct answer.
Note: When you are faced with an integral the first thing that you need to decide is if there is more than one way to do the integral. If there is more than one way then you need to determine which method to use. The general rule of thumb that you can use is that you should use the method that you find easiest. This may not be the method that others find easiest, but that doesn’t make it the wrong method.