Question
Question: How do you integrate \[\cos \left( \ln x \right)dx\]?...
How do you integrate cos(lnx)dx?
Solution
In the given question, we have been asked to integrate the given expression. This question will be solved by parts method of integration such that,∫f(x)g′(x)dx=f(x)g(x)−∫f′(x)g(x)dx.
For solving the question, first we need to substitute lnx=θ thus ⇒x=eθand then differentiate it with respect to ‘x’. Later we substitute these values in the given integral and integrate the resultant expression by using the by-parts method. We will need to simplify the resultant integral to get the required integration.
Complete step-by-step solution:
We have given that,
⇒∫cos(lnx)dx
Now,
Let
lnx=θ thus ⇒x=eθ
Differentiating both the sides, we get
⇒dx=eθdθ
Therefore,
Substituting the values from the above in the given integral, we get
⇒∫cos(lnx)dx=∫cosθ(eθ)dθ
Rewrite the above as integral as,
⇒∫cosθ(eθ)dθ=∫(eθ)(cosθ)dθ
Let A be the integral, thus we obtained
⇒A=∫(eθ)(cosθ)dθ
Formula of integration by parts as follows;
∫f(x)g′(x)dx=f(x)g(x)−∫f′(x)g(x)dx
Thus, integrating the resultant expression, we obtain
Here,
f(x)=eθ thus ⇒f′(x)=eθ
And
g′(x)=cosθ thus ⇒g(x)=sinθ
Therefore,
⇒A=∫(eθ)(cosθ)dθ=(eθ)(sinθ)−∫(eθ)(sinθ)dθ
Integrate again by using the by-parts method, we get
⇒A=(eθ)(sinθ)+(eθ)(cosθ)−∫(eθ)(cosθ)dθ
Substituting A=∫(eθ)(cosθ)dθ in the above integration, we get
⇒A=(eθ)(sinθ)+(eθ)(cosθ)−A
Simplifying the above, we get
⇒2A=(eθ)(sinθ)+(eθ)(cosθ)
⇒A=21((eθ)(sinθ)+(eθ)(cosθ))=21eθ(sinθ+cosθ)+C
Thus,
⇒A=21eθ(sinθ+cosθ)+C
Therefore,
⇒∫cos(lnx)dx=21eθ(sinθ+cosθ)+C
Undo the substitutionx=θ,
⇒∫cos(lnx)dx=21ex(sinx+cosx)+C
Hence, this is the required integration.
Hence the correct answer is ∫cos(lnx)dx=21ex(sinx+cosx)+C
Note: While solving these types of questions, students always remember the formula for integration using the by-parts method. Students mostly make mistakes while choosing the f(x) and g(x), so you should be very careful while choosing the f(x) and g(x) as it will make the given integration easy to solve easily. We should be well aware about the by-parts method of integration and we should also be well known about the application of integration. Students should be very careful while doing the calculation part of the given integral.