Question
Question: What is the integral of \[\int {\dfrac{{\cos x}}{x}} dx\]?...
What is the integral of ∫xcosxdx?
Solution
Hint : To find the integral of xcosx, we will use the Taylor series expansion of cosx to expand. Then we will divide by x to find the expansion of xcosx. And finally, we will integrate this series term by term to give a power series expansion for the integral of xcosx.
Complete step-by-step answer :
We have to find the integral of xcosx.
We can’t do this integration in terms of elementary functions. We can do it in terms of infinite series using Taylor series expansion of cosx.
We know that the Taylor series expansion of cosx is
cosx=1−2!x2+4!x4−6!x6+...
We require the integral of xcosx. So, we will divide the Taylor series expansion of cosx by x.
Dividing Taylor series expansion of cosx by x gives us an infinite series expansion of xcosx. Therefore, we get the expansion as
⇒xcosx=x1−2!x+4!x3−6!x5+...
Now, we will integrate this series term by term which will give a power series expansion for the integral of xcosx. Therefore, we get
⇒∫xcosx=∫x1−∫2!x+∫4!x3−∫6!x5+...
Integrating right hand side of the above equation using the formula of integration, we get
⇒∫xcosx=lnx−2×2!x2+4×4!x4−6×6!x6+...+C
Where, C is the constant of integration.
Therefore, integral of xcosx is lnx−2×2!x2+4×4!x4−6×6!x6+...+C.
So, the correct answer is “lnx−2×2!x2+4×4!x4−6×6!x6+...+C”.
Note : One important point to note here is that this is one of those integrals that can’t be done in terms of elementary functions. We can do it in terms of infinite series and we can use various numerical methods to do the definite integration. Also, this sum approaches zero so that the definite integral is lnx up to an integration constant.