derive the Maclaurin series by using partial fractions. derive the Maclaurin series for the function
$(x^3+x^2+2x-2)/(x^2-1)$ by using partial fractions and a known Maclaurin series.
question.
how can I use partial fractions in this case?
Is this case the special one?
plz provide me a hint. thanks.

Perform polynomial long division 

to conclude that
$$\frac{x^{3}+x^{2}+2x-2}{x^{2}-1}=x+1+\frac{3x-1}{x^{2}-1}=x+1+\frac{3x-1}{(x-1)(x+1)}.\tag{1}$$
The theory of partial fractions guarantees that there exist constants $A$ and $B$ such that
$$\frac{3x-1}{(x-1)(x+1)}=\frac{A}{x-1}+\frac{B}{x+1}.\tag{2}$$
You can find the constants in $(2)$ by several methods, one of them is as follows: 
(a) Make e.g. $x=0$ on both sides of $(2)$
$$\frac{-1}{-1}=\frac{A}{-1}+\frac{B}{1}\Leftrightarrow B=A+1\tag{3}.$$
Hence
$$\frac{3x-1}{(x-1)(x+1)}=\frac{A}{x-1}+\frac{A+1}{x+1}.\tag{4}$$
(b) Make e.g. $x=1/2$ on both sides of  $(4)$
$$\frac{3/2-1}{(1/2-1)(1/2+1)}=\frac{A}{1/2-1}+\frac{A+1}{1/2+1}\Leftrightarrow A=1.\tag{5}$$
Hence $B=2$ and
$$1+x+\frac{3x-1}{(x-1)(x+1)}=1+x+\frac{1}{x-1}+\frac{2}{x+1}.\tag{6}$$
Use the Maclaurin series expansions for $\frac{1}{x-1}$ and $\frac{1}{x+1}$ in $(6)$
$$\frac{1}{x-1}=-\frac{1}{1-x}=-\sum_{n=1}^{\infty }x^{n-1},\quad \frac{1}{x+1}=\frac{1}{1+x}=\sum_{n=1}^{\infty }(-1)^{n-1}x^{x-1},$$
$$\tag{7}$$
both derived from the sum of the geometric series
$$\frac{1}{1-x}=\sum_{n=1}^{\infty }x^{n-1},\qquad (|x|<1).\tag{8}$$
