Integration by Parts Explained


Integration by Parts Explained

Anna
Hey Hope, I was just looking at some advanced calculus problems, and I came across integration by parts. It's quite fascinating how it helps us tackle complex integrals.

Hope
Oh, absolutely, Anna! Integration by parts is a fundamental technique. It's essentially the product rule for integration, allowing us to break down complex integrals into simpler forms. The formula, the integral of u dv equals u times v minus the integral of v du, is key.

Anna
Right, that formula is crucial. I was looking at how to find the indefinite integral of x times e to the x. The trick seems to be choosing the right 'u' and 'dv' from the start. Why is that selection so important?

Hope
It's vital because it dictates the complexity of the subsequent integral. For x times e to the x, setting u equal to x is a good move because its derivative, du, becomes simply dx. That makes the 'v du' part much easier to handle.

Anna
That makes sense. So if u is x, then dv has to be e to the x dx. And the integral of e to the x is just e to the x, which is quite straightforward. Then you just plug it into the formula.

Hope
Exactly! So you get x times e to the x minus the integral of e to the x dx. And that final integral is just e to the x plus C. So the whole thing is x e to the x minus e to the x plus C. Very neat, isn't it?

Anna
It is! Let's try another one. What about the integral of x times sine x dx? I imagine we'd follow a similar logic, making u equal to x again to simplify du.

Hope
You're spot on! If u is x, then du is dx. That leaves dv as sine x dx. Now, integrating sine x gives us negative cosine x for v. See how straightforward that makes the setup?

Anna
So, then it becomes x times negative cosine x, minus the integral of negative cosine x times dx. The two negatives cancel out, so it's negative x cosine x plus the integral of cosine x dx.

Hope
Precisely. And the integral of cosine x is simply sine x. So the final answer is negative x cosine x plus sine x plus C. It really highlights how picking the right 'u' can simplify the entire process dramatically.

Anna
Definitely. I remember one tricky case: integrating x squared ln x dx. Initially, I thought about making u equal to x squared, but integrating ln x is not as simple as integrating x squared.

Hope
That's a common trap! If you make dv equal to ln x dx, you're stuck because finding the integral of ln x is often the goal itself, or it's another integration by parts problem. It's better to make u equal to ln x instead.

Anna
Right, because the derivative of ln x is 1 over x, which is much simpler. And then dv would be x squared dx, making v equal to x cubed over 3. That seems like a more manageable path.

Hope
Exactly. So, u times v becomes ln x times x cubed over 3. Then, you subtract the integral of v du, which is x cubed over 3 times 1 over x dx. The x's cancel out, leaving a simpler integral.

Anna
Which means we're integrating x squared over 3. That's much easier! The integral of x squared is x cubed over 3, so you end up with 1/3 x cubed ln x minus 1/9 x cubed plus C. It's all about foresight.

Hope
Absolutely, foresight is key. Speaking of ln x, how would you integrate just ln x itself using integration by parts? It seems like there's only one function there, not a product.

Anna
That's a clever one! You treat it as ln x multiplied by 1. So, you make u equal to ln x, making du equal to 1 over x dx. Then, dv is simply 1 dx, which means v is x.

Hope
Perfect! So, u times v gives you x ln x, and then you subtract the integral of v du, which is x times 1 over x dx. The x's cancel, leaving you with the integral of 1 dx, which is just x.

Anna
So, the indefinite integral of ln x is x ln x minus x plus C. That's a result I've seen pop up in many places, and it's neat to see how integration by parts derives it.

Hope
It truly is. Now, what if we have something like x squared sine x dx? This feels like it might require applying integration by parts more than once.

Anna
You're right, this one will. We want to reduce x squared to a constant, so we'd make u equal to x squared. That means we'll differentiate it twice to get rid of the variable part.

Hope
Exactly. So, du becomes 2x dx. And dv is sine x dx, making v negative cosine x. Applying the formula for the first time gives us negative x squared cosine x, plus the integral of 2x cosine x dx.

Anna
Then, we apply integration by parts again to that new integral, 2x cosine x dx. We make u equal to 2x, and dv equal to cosine x dx. This process feels iterative.

Hope
It definitely is iterative for functions like this. The derivative of 2x is 2 dx, and the integral of cosine x is sine x. So, for the second application, we'd get 2x sine x minus the integral of 2 sine x dx.

Anna
And the integral of 2 sine x dx is minus 2 cosine x. So, combining everything, it's negative x squared cosine x plus 2x sine x plus 2 cosine x plus C. It builds up quickly, but logically.

Hope
Precisely. These repeated applications show the power and flexibility of the technique. How about x squared e to the x dx? It's similar to the sine x problem, requiring two iterations.

Anna
Yes, u would be x squared, and dv would be e to the x dx. Du becomes 2x dx, and v is e to the x. The first application yields x squared e to the x minus the integral of 2x e to the x dx.

Hope
Then, for the integral of 2x e to the x dx, we repeat. U is 2x, dv is e to the x dx. Du is 2 dx, and v is e to the x. The goal is always to make du simpler than u.

Anna
So that second application gives us 2x e to the x minus the integral of 2 e to the x dx. Putting it all together, and distributing the negative sign from the first step, it gets a bit long, but clear.

Hope
It does. You end up with x squared e to the x minus 2x e to the x plus 2 e to the x plus C. You can even factor out e to the x for a cleaner look: e to the x times (x squared minus 2x plus 2) plus C.

Anna
That's a satisfying solution. What about integrating ln x squared dx? This looks like a variation of the single ln x integral we did earlier, but with a squared term.

Hope
Yes, it is. We make u equal to ln x squared. For du, we need the chain rule: 2 ln x times 1 over x dx. Dv is dx, so v is x. It's crucial to correctly find that derivative of u.

Anna
So it's x times ln x squared minus the integral of x times (2 ln x times 1 over x) dx. The x's cancel, simplifying the integral to 2 ln x dx.

Hope
Precisely. And since we already know the integral of ln x is x ln x minus x, we just substitute that in. So, x ln x squared minus 2 times (x ln x minus x) plus C.

Anna
Distributing the minus 2 gives us x ln x squared minus 2x ln x plus 2x plus C. It's interesting how problems can build on previous results like that.

Hope
Absolutely, it's like building blocks. Here's a quick one: ln x to the seventh power dx. Not (ln x) to the seventh power, but ln (x to the seventh power).

Anna
Ah, that's a log property! We can move the exponent, 7, to the front. So, it becomes 7 times the integral of ln x dx. This simplifies it immensely.

Hope
Exactly. So it's just 7 times (x ln x minus x) plus C. Or, 7x ln x minus 7x plus C. Recognizing that log property saves a lot of work.

Anna
It certainly does. Now for a classic: the indefinite integral of e to the x sine x dx. This one's famous for requiring integration by parts twice and then some algebraic manipulation.

Hope
Indeed! For these, you can choose either e to the x or sine x as u. Let's say u is sine x, and dv is e to the x dx. Then du is cosine x dx, and v is e to the x.

Anna
So, the first step gives us e to the x sine x minus the integral of e to the x cosine x dx. Now we apply integration by parts again to that new integral.

Hope
Right. For e to the x cosine x, we make u equal to cosine x and dv equal to e to the x dx. Du becomes negative sine x dx, and v is e to the x. See how it looks similar to the original?

Anna
Yes, so you get e to the x cosine x minus the integral of e to the x times negative sine x dx. The negatives cancel, leaving e to the x cosine x plus the integral of e to the x sine x dx.

Hope
Now, when you substitute that back into the original equation, you'll see the original integral appear on the right side with a negative sign in front. This is the crucial step for solving it.

Anna
So you have the original integral equal to e to the x sine x minus [e to the x cosine x plus the original integral]. Distributing the negative, you get original integral equals e to the x sine x minus e to the x cosine x minus original integral.

Hope
Exactly! Then you add the integral to both sides, so you have two times the original integral equals e to the x sine x minus e to the x cosine x. Divide by two, and you have the answer!

Anna
One half e to the x times (sine x minus cosine x) plus C. That's really elegant how it solves itself through algebraic manipulation. I always liked that particular solution.

Hope
It's a fantastic example of a cyclic integral. Let's try one more: the integral of ln x squared divided by x dx. This one looks like it could use a substitution first, or perhaps integration by parts.

Anna
I'd rewrite it as ln x squared times 1 over x dx. Then, if we make u equal to ln x squared, du would be 2 ln x times 1 over x dx, by the chain rule.

Hope
Good start. And if dv is 1 over x dx, then v would be ln x. Applying the integration by parts formula, we get ln x squared times ln x minus the integral of ln x times (2 ln x times 1 over x) dx.

Anna
So that's ln x cubed minus the integral of 2 ln x squared over x dx. Oh, wait, the integral we just formed looks like the original problem, just with a factor of 2.

Hope
Bingo! It's another cyclic integral. We move that new integral term to the left side, combining it with the original. So, the original integral plus two times the original integral equals ln x cubed.

Anna
So, three times the original integral equals ln x cubed. Divide by three, and you get 1/3 ln x cubed plus C. That's a neat trick with the cyclic integrals!

Hope
It is! Recognising those patterns makes these problems much more manageable. They pop up quite often with combinations of exponentials and trigonometric functions, or in this case, logarithmic functions.

Anna
I can see that. It really reinforces the idea that choosing 'u' and 'dv' wisely, and being aware of these cyclical properties, is what makes integration by parts so powerful.

Hope
Absolutely. It's not just about applying the formula, but understanding how to manipulate the integral to simplify it or bring it back to a solvable form. It's a skill that definitely improves with practice.

Anna
Thanks, Hope! This was a great breakdown of integration by parts. I feel much more confident tackling these types of problems now. The examples really helped illustrate the concepts.

Hope
You're very welcome, Anna! Glad I could help. Keep practicing, and those integrals will become second nature.

Ask anything
We've read this whole study set, so questions about it get the best answers.