Partial Fraction Integration - Set up problems?

1. Sep 22, 2008

demersal

1. The problem statement, all variables and given/known data
$$\int$$$$\frac{2x^{2}}{(x^{2}-1)}$$ dx

2. Relevant equations
Partial Fractions

3. The attempt at a solution
2$$\int$$$$\frac{x^{2}}{(x^{2}-1)}$$ dx

2$$\int$$$$\frac{x^{2}}{(x-1)(x+1)}$$ dx

$$\frac{A}{x-1}$$ + $$\frac{B}{x+1}$$ = $$\frac{x^{2}}{(x+1)(x-1)}$$

A(x+1) + B(x-1) = x$$^{2}$$

Solving for coefficients does not work because there is no x$$^{2}$$ term of A or B and also when solving for the x and the constant contradictory answers occur. Did I set this up wrong??

2. Sep 22, 2008

danago

Perhaps try polynomial long divison first

3. Sep 22, 2008

demersal

I can't believe I didn't see that; thank you!!

4. Sep 22, 2008

No problem