I see! Well, this is how I would do this problem. I would start by writing:
x^2 - 2 x - 1 = x^2 - 2 x + 1 - 2 = (x-1)^2 - 2
So, we have:
(x^2 - 2 x - 1)/[(x-1)^2 (x^2 + 1)] =
1/(x^2+1) - 2/[(x-1)^2 (x^2 + 1)]
Expanding the last term about the point x = 1 and keeping only the singular terms yields:
- 2/[(x-1)^2 (x^2 + 1)] = -2/(x-1)^2 [expansion of 1/(x^2+1) around x = 1]
Put x = 1 + t:
1/(x^2+1) = 1/[(1+t)^2 + 1] = 1/(2 + 2 t + t^2) =
1/2 1/[1+t+t^2/2] = 1/2 [1-t +t^2/2 + ...]
So, we have the expansion:
- 2/[(x-1)^2 (x^2 + 1)] =
-1/(x-1)^2 + 1/(x-1) + nonsingular terms
If we now do the same at the singularities of 1/(x^2+1) and keep the singular terms, then the sum of all the singular terms from all the expansions, S(x), is the partial fraction expansion. This is because the difference between the rational function R(x) and S(x) will be a function that has no singularities, therefore it is a polynomial. But since both R(x) and S(x) tend to zero at infinity, we have that
R(x) = S(x).
So, we could now proceed to find the singular terms in the expansion around the singularities of 1/(x^2+1) at x = ±i. However, we can skip that as the partial fraction expansion is already determined by the above terms. This is because the large x behavior of
- 2/[(x-1)^2 (x^2 + 1)]
is -2/x^4, while the part of the partial fracton expansion we have so far is
-1/(x-1)^2 + 1/(x-1)
So, clearly the partial fraction expansion due to the singular terms coming from 1/(x^2+1) must cancel the asymptotic 1/x and 1/x^2 behavior of the above two terms. We know that the the remaining terms of the partial fraction expansion will be of the form:
(A x + B)/(x^2 +1)
Expanding around x = infinity gives:
(A x + B) 1/x^2 1/(1+1/x^2) =
A/x + B/x^2 + O(1/x^3)
Expanding the two terms we got so far about infinity gives:
-1/(x-1)^2 + 1/(x-1) =
-1/x^2 + 1/x 1/(1 - 1/x) + O(1/x^3) =
-1/x^2 + 1/x + 1/x^2 + O(1/x^3) =
1/x + O(1/x^3)
So, A = -1 and B = 0 and we have:
(x^2 - 2 x - 1)/[(x-1)^2 (x^2 + 1)] =
(1-x)/(x^2+1) -1/(x-1)^2 + 1/(x-1)