Solving Integration by Parts Problem

  • Thread starter Thread starter squarks
  • Start date Start date
  • Tags Tags
    Integration
Click For Summary

Homework Help Overview

The discussion revolves around an integration problem involving the integral of the form \(\int\frac{xdx}{\left(x-a\right)^2}\). Participants are exploring the use of integration by parts and comparing results obtained through different methods and tools.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the application of integration by parts and the resulting expressions. There is a focus on the discrepancy between the original poster's result and those provided by computational tools like Mathematica and Maple. Some participants suggest alternative methods, such as substituting \(u = x - a\), to simplify the integral.

Discussion Status

The discussion is active, with participants providing insights and alternative approaches. Some have confirmed the correctness of the computational tools' outputs, while others are questioning the steps taken in the integration by parts method. There is a recognition that the differences in results may stem from constants of integration.

Contextual Notes

Participants note the importance of considering constants of integration and the absolute value in logarithmic expressions. There is also mention of evaluating the integral within specific limits, which may affect the interpretation of results.

squarks
Messages
16
Reaction score
0
Hi. I'm trying to do a simple integration, but I cannot seem to get it. Please help!

Homework Statement


[itex]\int\frac{xdx}{\left(x-a\right)^2}[/itex]

Homework Equations


I'm simply using integration by part using:
[itex]\int udv = uv - \int vdu[/itex]
with:
[itex]u=x \rightarrow du=dx[/itex]
[itex]dv=\frac{dx}{\left(x-a\right)^2} \rightarrow v=-\frac{1}{\left(x-a\right)}[/itex]

The Attempt at a Solution


Just working it out:
[itex]\int\frac{xdx}{\left(x-a\right)^2}=-\frac{x}{\left(x-a\right)}+\int\frac{dx}{x-a}[/itex]
[itex]=-\frac{x}{\left(x-a\right)}+ln\left(x-a\right)[/itex]

but the right answer according to integrator (Mathematica, Maple) is:
[itex]\int\frac{xdx}{\left(x-a\right)^2}=-\frac{a}{\left(x-a\right)}+ln\left(x-a\right)[/itex]

I'm missing some very small detail here...
 
Physics news on Phys.org
squarks said:
Hi. I'm trying to do a simple integration, but I cannot seem to get it. Please help!

Homework Statement


[itex]\int\frac{xdx}{\left(x-a\right)^2}[/itex]

Homework Equations


I'm simply using integration by part using:
[itex]\int udv = uv - \int vdu[/itex]
with:
[itex]u=x \rightarrow du=dx[/itex]
[itex]dv=\frac{dx}{\left(x-a\right)^2} \rightarrow v=-\frac{1}{\left(x-a\right)}[/itex]

The Attempt at a Solution


Just working it out:
[itex]\int\frac{xdx}{\left(x-a\right)^2}=-\frac{x}{\left(x-a\right)}+\int\frac{dx}{x-a}[/itex]
[itex]=-\frac{x}{\left(x-a\right)}+ln\left(x-a\right)[/itex]
Your answer works for me, but you need the constant of integration and the log expression should be an absolute value. IOW, like this:
[itex]-\frac{x}{(x-a)}+ln|x-a| + C[/itex]

If you take the derivative of the above, you get the original integrand.

squarks said:
but the right answer according to integrator (Mathematica, Maple) is:
[itex]\int\frac{xdx}{\left(x-a\right)^2}=-\frac{a}{\left(x-a\right)}+ln\left(x-a\right)[/itex]

I'm missing some very small detail here...
 
Last edited:
Hmm... Ok... I'm actually evaluating this within limits (from 0 to a constant b), but I was worried about the difference in the first term in the final result ("x" in my results and "a" in Mathematica/Maple).

I know not to trust Mathematica/Maple but it's rare that they both give me same erroneous outputs. Could someone else confirm that I did this right? Thanks!
 
Instead of using integration by parts, let u= x- a. Then x= u+ a so
[tex]\int \frac{x}{(x- a)^2} dx= \int\frac{u+ a}{u^2}du= \int \frac{1}{u}du+ \int au^{-1}du[/tex]
[tex]= ln|u|- au^{-1}+ C= ln|x- a|- \frac{a}{x- a}+ C[/tex]
 
Hmmmm

[tex]\int \frac{x}{(x-a)^2} \, dx = \int \frac{x-a+a}{(x-a)^2} \, dx = \int \frac{dx}{x-a} + a\int \frac{d(x-a)}{(x-a)^2} = \ln|x-a| - \frac{a}{x-a} + C[/tex]
 
Well, the mystery is solved, because

[tex]-\frac{x}{x-a} = - \frac{x-a}{x-a} - \frac{a}{x-a}[/tex]

[tex]-\frac{x}{x-a} = -1 -\frac{a}{x-a}[/tex]

so that both the LHS and the RHS have the same derivative.
 
Well thanks HallsofIvy and dextercioby. So afterall Maple and Mathematica are right.

So what did I do wrong exactly in my steps using integration by parts? It should still give the same answer regardless of how it got there...
 
squarks said:
Well thanks HallsofIvy and dextercioby. So afterall Maple and Mathematica are right.

So what did I do wrong exactly in my steps using integration by parts? It should still give the same answer regardless of how it got there...

You didn't do anything wrong. Like dextercioby pointed out, the -x/(x-a) in your answer is the same as -1-a/(x-a). That differs from your answer by a constant. Add the "+C" and absorb the -1 into that.
 

Similar threads

  • · Replies 105 ·
4
Replies
105
Views
11K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
3K
Replies
20
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K