How do you integrate #int lnx# by parts?

1 Answer
Nov 28, 2016

# int lnx dx = xlnx - x + c #

Explanation:

This is one of the maths problems where you need to learn a little trick and write #lnx# as the product #(1)(lnx)#

If you are studying maths, then you should learn the formula for Integration By Parts (IBP), and practice how to use it:

# intu(dv)/dxdx = uv - intv(du)/dxdx #, or less formally # intudv=uv-intvdu #

I was taught to remember the less formal rule in word; "The integral of udv equals uv minus the integral of vdu". If you struggle to remember the rule, then it may help to see that it comes a s a direct consequence of integrating the Product Rule for differentiation.

Essentially we would like to identify one function that simplifies when differentiated, and identify one that simplifies when integrated (or is at least is integrable).

So for the integrand #(1)(lnx)#, hopefully you can see that #lnx# simplifies when differentiated and #1# will become #x# when integrated, but the logarithm will be eliminated

Let # { (u=lnx, => , (du)/dx=1/x), ((dv)/dx=1, =>, v=x ) :}#

Then plugging into the IBP formula gives us:
# int(u)((dv)/dx)dx = (u)(v) - int(v)((du)/dx)dx #
# :. int (1)(lnx) dx = (lnx)(x) - int(x)(1/x)dx #
# :. int lnx dx = xlnx - int1dx #
# :. int lnx dx = xlnx - x + c #