I don't understand integration by parts

In summary, integration by parts allows you to reduce an unmanageable integral into something manageable.
  • #1
fishingspree2
139
0
Hello everyone

Let's say I want to do this integral:

[tex]\int_{}^{}f(x)g(x)\,dx[/tex]

We use this formula

[tex]\int f(x)g'(x)\, dx=f(x)g(x)-\int f'(x)g(x)\, dx[/tex]

I don't understand the utility of this equation, since we want to find [tex]\int_{}^{}f(x)g(x)\,dx[/tex] and not [tex]\int f(x)g'(x)\, dx[/tex]

Please help, :confused:
 
Last edited:
Physics news on Phys.org
  • #2
d/dx [g . f ] = g'.f + g.f'
rearrange:
g.f' = d/dx [g . f ] - g'.f
integrate both sides
int {g.f'} = int { d/dx [g . f ] - g'.f}

Original question here was to integrate g.f' and you know how to integrate g'.f

That's how I see it. There isn't any formula or understanding for it. If above stuff is there, then you may use integration by parts
 
  • #3
aren't we trying to integrate f.g (and not f'.g)?

sorry, I feel dumb:shy:
 
  • #4
fishingspree2 said:
aren't we trying to integrate f.g (and not f'.g)?

sorry, I feel dumb:shy:

not f.g but either f'.g or f.g'.
 
  • #5
fishingspree2 said:
Hello everyone

Let's say I want to do this integral:

[tex]\int_{}^{}f(x)g(x)\,dx[/tex]

We use this formula

[tex]\int f(x)g'(x)\, dx=f(x)g(x)-\int f'(x)g(x)\, dx[/tex]

I don't understand the utility of this equation, since we want to find [tex]\int_{}^{}f(x)g(x)\,dx[/tex] and not [tex]\int f(x)g'(x)\, dx[/tex]

Please help, :confused:

Integration by parts is based on the formula for the derivative of a product. Here's how it goes. Suppose you take the derivative of the product of f(x) times g(x):

[tex] \frac{d}{dx} (f(x)g(x)) = f(x) \frac{d}{dx}g(x) + g(x) \frac{d}{dx} f(x) [/tex]

or in the notation of differentials and suppressing indicating the x-dependence,

[tex] d(fg) = f dg + g df [/tex].

Now integrate both sides of this last equation:

[tex] \int d(fg) = \int f dg + \int g df [/tex]

on the left hand side you have a perfect differential which the integration effectively cancels and you have

[tex] fg = \int f dg + \int g df [/tex]

Let's rearrange this a little into

[tex] \int f dg = fg - \int g df [/tex]

Why integration by parts is taught is that it often allows you to reduce an unmanageable integral into something manageable. What you have to do when you are using it is to match the pieces of your unknown integral with the parts of my last formula which I will first write out in more detail.

[tex] \int f(x) \frac{d}{dx}g(x) dx = f(x)g(x) - \int g(x) \frac{df(x)}{dx} dx [/tex]

In general, the f(x) should be something that gets simpler when you take its derivative and the piece that you identify as the derivative of g(x) should be something that is easy to integrate so you can put it in where it goes on the right hand side.


Suppose you have as a problem to evaluate:

[tex] \int x e^x dx [/tex]

The integral of [tex] e^x [/tex] is easy. It's just [tex] e^x [/tex]. It's the darned x in the integral that gets in the way. But notice that if we identify x with f(x) then when we form the integral on the right hand side we'll be taking the derivative [tex] \frac{dx}{dx} [/tex] which is just 1 and it goes away. This is the simplification that I mentioned.

So, identify [tex] e^x dx [/tex] with [tex] \frac{d}{dx}g(x) dx [/tex] and identify x with f(x). Then fill in the pieces on the right hand side:

[tex] \int x e^x dx = x e^x - \int e^x (1) dx [/tex].

I put the "1" to remind you that the x disappeared when we took its derivative. That last integral is easy as I mentioned, so the final result is

[tex] \int x e^x dx = x e^x - e^x [/tex].

Make sure you see the idea that you want to match pieces so that when you take the derivative on the right hand side you get something simpler. Sometimes you have to integrate by parts twice. For example,

[tex] \int x^2 e^x dx [/tex].

The first time you reduce the exponent on the x from 2 to 1 and then the next time you reduce it from 1 to zero.

Make sure that you take the time to master integration by parts. It is an extremely useful and powerful technique that is used quite often in higher level courses.

Personally when I learned the technique (a long long time ago), I liked the differential notation that I showed you earlier. It's quite compact and easy to remember, but my impression is that the use of differentials in mathematics has fallen out of favor and is regarded as old fashioned. One other thing. It is almost always true that you want the derivative on the right hand side to be simpler than what you started with. I can think of one case where this is not true, but that's a story for another time...
 

1. What is integration by parts?

Integration by parts is a method used to find the integral of a product of two functions. It is based on the product rule from calculus, and involves breaking the product into two parts and integrating each part separately.

2. When is integration by parts used?

Integration by parts is used when the integrand (the function being integrated) is a product of two functions, and it is not possible to find the integral by using other methods such as substitution or trigonometric identities.

3. How does integration by parts work?

The formula for integration by parts is ∫u dv = uv - ∫v du, where u and v are two functions and dv and du are their respective differentials. This formula is applied to the original integral, and the goal is to find the values for u and v that simplify the integral and make it easier to solve.

4. What are some tips for using integration by parts?

One tip for using integration by parts is to choose u and dv carefully. In general, u should be a function that becomes simpler when differentiated, and dv should be a function that becomes simpler when integrated. Another tip is to consider using integration by parts multiple times if necessary, by choosing u and dv based on the remaining integral after each step.

5. Are there any common mistakes to avoid when using integration by parts?

One common mistake is to apply the formula incorrectly, particularly with the signs. It is important to remember that the formula involves subtraction, and to pay attention to the signs of each term. Another mistake is to choose u and dv in a way that does not simplify the integral. It may take some trial and error to find the best choices for u and dv.

Similar threads

  • Calculus and Beyond Homework Help
Replies
5
Views
859
  • Calculus and Beyond Homework Help
Replies
15
Views
745
  • Calculus and Beyond Homework Help
Replies
2
Views
383
  • Calculus and Beyond Homework Help
Replies
1
Views
722
  • Calculus and Beyond Homework Help
Replies
9
Views
462
  • Calculus and Beyond Homework Help
Replies
2
Views
792
  • Calculus and Beyond Homework Help
Replies
23
Views
864
  • Calculus and Beyond Homework Help
Replies
9
Views
698
  • Calculus and Beyond Homework Help
Replies
11
Views
638
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
Back
Top