Express each of the following in partial fraction .

(a) $\displaystyle \frac{x^2-1}{x^2(2x+1)}$

Is $\displaystyle x^2$ (denominator) , considered as a repeated linear factor ?

(b)$\displaystyle \frac{x^3+3}{(x+1)(x-1)}$

i have tried long division for this question but it doesn't work .