<s>[INST] Integral of $\int \frac{x^4+2x+4}{x^4-1}dx$ I am trying to solve this integral and I need your suggestions.
$$\int \frac{x^4+2x+4}{x^4-1}dx$$
Thanks
 [/INST] HINT:
Using Partial Fraction Decomposition  formula, 
$$\frac{x^4+2x+4}{x^4-1}=1+\frac{ax+b}{x^2+1}+\frac c{x+1}+\frac d{x-1}$$ where $a,b,c,d$ are arbitrary constants to determined by equating the coefficients of the different powers of $x$ in
$$x^4+2x+4=x^4-1+(x^2-1)(ax+b)+c(x-1)(x^2+1)+d(x+1)(x^2+1)$$
</s>