Solve Integration Problem: x^2/(x-2) dx

  • Thread starter Thread starter Gaz031
  • Start date Start date
  • Tags Tags
    Integration
AI Thread Summary
The discussion revolves around solving the integral of x^2/(x-2) dx. Initially, the user attempted integration by parts but faced challenges, particularly with the logarithmic function. Suggestions included using substitution with u = x - 2, which simplified the integral significantly. After applying this substitution, the user arrived at a solution but questioned the correctness of a constant term in comparison to the textbook answer. Ultimately, it was clarified that constant terms can be disregarded in indefinite integrals, confirming that the book's answer was indeed correct.
Gaz031
Messages
51
Reaction score
0
After learning a few more techniques at integration and practicing the books thrown me in the deep end, giving me 50 integration questions with usually no clue of what method to use >_<.

Here's one I'm stuck on, and my working thus far:

Integrate with respect to x:

x^2/(x-2) dx
I rewrote it as: x^2.(x-2)^-1

I then tried to use integration by parts, thinking that eventually i would be able to bring the x^2 down to 2, and produce an integral i could solve.

V = x^2, dv/dx = 2x, du = (x-2)^-1, u = ln[x-2].

So:
x^2ln[x-2] - integral of (2xln[x-2])

So i thought i would need to use integration by parts again, to solve the above integral and bring the 2x to a 2.

Integral of (2xln[x-2])
v = 2x, dv/dx = 2, du = ln[x-2], u = ?, where's where I'm having problems, I've tried using integration by parts again to calculate ln[x-2] but simply can't do it, as the new expression is becoming constantly more difficult.

I thought about substitution, but i would need to take u = x^2, with du/dx as 2x, however, this would only produce u/(du/dx - 2) dx, which isn't going anywhere.

Some help would be much appreciated. Thanks.
 
Physics news on Phys.org
Finding the integral of ln(x) is easy. ln(x) is 1 * ln(x). In the integration by parts formula, take the part to be integrated to be "1" and the factor to be differentiated to be "ln(x)" (I think this translates to V = ln(x) and du = 1 in your notation, but I can't be bothered to check it).

Also, substitution will work for the original integral. Take u = x - 2, then du = dx and x^2 = (u + 2)^2. The integral turns into (u + 2)^2 / u du, which surely is trivial to integrate. Performing polynomial division on x^2/(x - 2) will also work.
 
Last edited:
Muzza said:
Finding the integral of ln(x) is easy. ln(x) is 1 * ln(x). In integration by parts formula, take the part to be integrated to be "1" and the factor to be differentiated to be "ln(x)" (I think this translates to V = ln(x) and du = 1 in your notation, can't be bothered to check it).

Also, substitution will work for the original integral. Take u = x - 2, then du = dx and x^2 = (u + 2)^2. The integral turns into (u + 2)^2 / u du, which surely is trivial to integrate. Splitting up x^2/(x - 2) with partial fractions will also work.

Ahh, thanks. So subsitution did work. I totally forgot that i could set u as (x-2) instead of x^2., it makes it even easier as du/dx = 1.
Silly mistakes, it will come with practice i guess.
 
Okay, I've just done the substitution, using u = x-2 it becomes:

Integrate: u + 4 + 4.u^-1
= 0.5u^2 + 4u + 4ln
= 0.5(x-2)(x-2) + 4(x-2) + 4ln[x-2]
= 0.5(x^2 - 4x + 4) + 4x - 8 + 4ln[x-2]
= 0.5x^2 - 2x + 2 + 4x - 8 + 4ln[x-2]
= 0.5x^2 + 2x - 6 + 4ln[x-2]

But the book gives the answer as:
0.5x^2 + 2x + 4ln[x-2].

Is the book incorrect or have i made a stupid mistake somewhere?
Thanks for the help.
 
What happens to -6 when you differentiate 0.5x^2 + 2x - 6 + 4ln[x-2]? It becomes zero and vanishes.

To be absolutely correct, you have to say that the integral of x^2/(x - 2) is 0.5x^2 + 2x + 4ln[x-2] + C, where C is any real number...
 
So the -6 will just effect the constant? As this is integration - not yet solvable differential equations i should just skip the terms without x in as they just effect the constant?
 
So the -6 will just effect the constant?

Pretty much yes.

As this is differentiation - not yet differential equations i should just skip the terms without x in as they just effect the constant?

Yes, all constant terms can be removed and replaced with a single constant instead.
 
Thanks very much for the help.
 
Back
Top