Solveeit Logo

Question

Question: How do you integrate \[{\left( {\ln x} \right)^2}\,dx\]?...

How do you integrate (lnx)2dx{\left( {\ln x} \right)^2}\,dx?

Explanation

Solution

Hint : Here in this question given an indefinite integral, we have to find the integrated value of a given function. This can be solved by the method of integration by parts by separating the function as uu and vv , later integrated by using the standard formulas of integration. And by further simplification we get the required solution.

Complete step-by-step answer :
Integration by parts is a technique for performing indefinite integration or definite integration by expanding the differential of a product of functions d(uv)d\left( {uv} \right) and expressing the original integral in terms of a known integral vdu\int {v\,du} . A single integration by parts starts with
d(uv)=udv+vdud(uv) = u\,dv + v\,du
and integrates both sides,
d(uv)=uv=udv+vdu.\int {d(uv)} = uv = \int {u\,dv} + \int {v\,} du.------(1)
Rearranging gives
udv=uvvdu.\int {u\,} dv = uv - \int v \,du.---------(2)
Consider the given function (lnx)2dx{\left( {\ln x} \right)^2}\,dx
We have to find the value of (lnx)2dx\int {{{\left( {\ln x} \right)}^2}\,} \,dx
Given an integral which is not having any upper and lower limit then it’s an indefinite integral.
Hence we add the C while integrating. Where, C is an arbitrary constant called as the constant of integration.
Let take x=eyx = {e^y}
Take natural logarithm on both side, then
lnx=lney\ln x = \ln {e^y}
lnx=y\ln x = y
(lnx)2=y2\therefore {\left( {\ln x} \right)^2} = {y^2}
And x=eyx = {e^y} so that dx=eydydx = {e^y}dy, then
(lnx)2dx=y2eydy\Rightarrow \int {{{\left( {\ln x} \right)}^2}dx\,} = \int {{y^2}{e^y}dy}
Then by the method of integration by parts i.e., by the equation (2)
Where u=y2\,u = {y^2} and v=eyv = {e^y}, then
(lnx)2dx=y2eydy=y2ey2yeydy+2eydy+C\Rightarrow \int {{{\left( {\ln x} \right)}^2}dx\,} = \int {{y^2}{e^y}dy} = {y^2}{e^y} - 2y\int {{e^y}dy} + 2\int {{e^y}dy} + C
On simplification, we get
(lnx)2dx=y2ey2yey+2ey+C\Rightarrow \int {{{\left( {\ln x} \right)}^2}dx\,} = {y^2}{e^y} - 2y\,{e^y} + 2\,{e^y} + C
Substitute the value of yy and ey{e^y} then
(lnx)2dx=(lnx)2x2(lnx)x+2x+C\Rightarrow \int {{{\left( {\ln x} \right)}^2}dx\,} = {\left( {\ln x} \right)^2}x - 2\left( {\ln x} \right)\,x + 2\,x + C
Rearranging gives
(lnx)2dx=x(lnx)22x(lnx)+2x+C\Rightarrow \int {{{\left( {\ln x} \right)}^2}dx\,} = x{\left( {\ln x} \right)^2} - 2x\left( {\ln x} \right)\, + 2\,x + C
Where C is an integrating constant.
Hence, the value of (lnx)2dx\int {{{\left( {\ln x} \right)}^2}\,} \,dx is x(lnx)22x(lnx)+2x+Cx{\left( {\ln x} \right)^2} - 2x\left( {\ln x} \right)\, + 2\,x + C.
So, the correct answer is “x(lnx)22x(lnx)+2x+Cx{\left( {\ln x} \right)^2} - 2x\left( {\ln x} \right)\, + 2\,x + C ”.

Note : In integration we have two kinds one is definite integral and other one is indefinite integral. This question comes under the indefinite integral. While integrating the function which is in the form of product or division form we use the integration by parts method. By applying the integration by parts we obtain the solution.