Integration by parts and the logarithm function

Calculus Level 3

David and Henry were asked to integrate ln 2 ( x ) d x . \displaystyle \int \ln^2(x) \, dx.

Both of them agreed that the only way to solve this problem was integration by parts, and wrote down the rule as follows: u d v = u v v d u . \int u \, dv = uv - \int v \, du. They both used this rule and realized that they had ended up still having to take the integral 2 ln ( x ) d x . \displaystyle \int 2\ln(x) \, dx.

Then they tried integration by parts again:

  • David said, ln 2 ( x ) d x = x ( ln 2 ( x ) 2 ln ( x ) + 2 ) . \displaystyle \int \ln^2(x) \, dx = \displaystyle x\big(\ln^2(x)-2\ln(x)+2\big).
  • Henry said, 0 1 ln 2 ( x ) d x = 2. \displaystyle \int_{0}^{1} \ln^2(x) \, dx = \displaystyle 2.
David was wrong, that's not the correct integral Henry was wrong, that's not the correct integration from 0 to 1 Neither of them was wrong The rule shown was not how to integrate by parts

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

The rule is correct. Here's some more information on integration by parts, including the proof. David's integral is correct, and here's how.

First integration by parts:

u = ln 2 ( x ) \displaystyle u = \ln^2(x) , d v = d x \displaystyle dv = dx , d u = 2 ln ( x ) x \displaystyle du = \frac{2\ln(x)}{x} , v = x \displaystyle v = x

ln 2 ( x ) \displaystyle \int \ln^2(x) = x ln 2 ( x ) 2 ln ( x ) \displaystyle x\ln^2(x) - 2\int \ln(x)

Second integration by parts:

u = ln ( x ) \displaystyle u = \ln(x) , d v = d x \displaystyle dv = dx , d u = 1 x \displaystyle du = \frac{1}{x} , v = x \displaystyle v = x

2 ln ( x ) \displaystyle 2\int \ln(x) = x ln ( x ) \displaystyle x\ln(x) - 1 \displaystyle \int 1

2 ln ( x ) \displaystyle 2\int \ln(x) = 2 x ln ( x ) 2 x \displaystyle 2x\ln(x)-2x

ln 2 ( x ) \displaystyle \int \ln^2(x) = x ln 2 ( x ) 2 x ln ( x ) + 2 x \displaystyle x\ln^2(x) - 2x\ln(x)+2x

ln 2 ( x ) \displaystyle \int \ln^2(x) = x ( ln 2 ( x ) 2 ln ( x ) + 2 ) \displaystyle x(\ln^2(x) - 2\ln(x)+2)

Henry's answer is correct, but at first glance it might seem like we have a problem. ln ( 0 ) \displaystyle \ln(0) is undefined! If you graphed ln ( x ) \displaystyle \ln(x) , there'd be a vertical asymptote. And because ln ( x ) \displaystyle \ln(x) isn't continuous over the closed interval [ 0 , 1 ] \displaystyle [0,1] , ln 2 ( x ) \displaystyle \ln^2(x) isn't either. There's still a solution, though. Let's split x ln 2 ( x ) 2 ln ( x ) \displaystyle x\ln^2(x) - 2\int \ln(x) into x ln 2 ( x ) \displaystyle x\ln^2(x) and 2 ln ( x ) \displaystyle -2\int \ln(x) . Let's analyze lim x 0 + x ln 2 ( x ) \displaystyle \lim_{x\to 0+} x\ln^2(x) . Note that this isn't 0, just very, very, close. We set up x ln 2 ( x ) \displaystyle x\ln^2(x) for L'Hopital's rule by swapping x for 1 1 / x \frac{1}{1/x} . Now we evaluate lim x 0 + ln 2 ( x ) 1 / x \displaystyle \lim_{x\to 0+} \frac{\ln^2(x)}{1/x} . Let's use L'Hopital's rule, and take the derivative of the numerator and denominator. We end up with lim x 0 + 1 / x 1 / x 2 \displaystyle \lim_{x\to 0+} \frac{1/x}{-1/x^2} , which we simplify to lim x 0 + 2 x \displaystyle \lim_{x\to 0+} -2x . We use direct substitution to get 0. Now we turn to what we are left with, or 2 ln ( x ) \displaystyle -2\int \ln(x) . Let's use the expanded form of our integration by parts to get ( lim x 0 + 2 x ln ( x ) ) + 2 0 1 1 \displaystyle (\lim_{x\to 0+} -2x\ln(x) )+2\int_{0}^{1} 1 , and we use L'Hopital's rule the exact same way we did before, getting 0. We're left with 2 0 1 1 \displaystyle 2\int_{0}^{1} 1 , which is simply 2 1 2 0 \displaystyle 2*1-2*0 , or 2 \boxed{2} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...