Primitive of $\frac{3x^4-1}{(x^4+x+1)^2}$ How to find primitive of:
$$\frac{3x^4-1}{(x^4+x+1)^2}$$
I am having a faint idea of a type which may or maynot be in the primitve, i.e.:
$$\frac{p(x)}{x^4+x+1}$$
The problem is I am not getting an idea of a substitution to solve this problem.
I might show my work but it is totally useless, atleast in this case.

For reference:


$$ \int \frac{3x^4-1}{(x^4+x+1)^2} = \int \frac{3x^4+4x^3-4x^3-1}{(x^4+x+1)^2}$$
$$ \int \frac{3x^4+4x^3-4x^3-1}{(x^4+x+1)^2} = \int \frac{3x^4+4x^3}{(x^4+x+1)^2}- \int \frac{4x^3+1}{(x^4+x+1)^2}$$
Consider, 
$$ \int \frac{3x^4+4x^3}{(x^4+x+1)^2} = \int \frac{4x^3(x+1)-x^4}{(x^4+x+1)^2} = \int \frac{(4x^3+1)(x+1)+(-1)(x^4+x+1)}{(x^4+x+1)^2}= -\frac{x+1}{x^4+x+1}$$
Hint: Can you see quotient rule here?
And , obviously 
$$ \int \frac{4x^3+1}{(x^4+x+1)^2} = -\frac{1}{x^4+x+1} $$
Hint: Use substitution $t=x^4+x+1$
So concluding, 
$$  \int \frac{3x^4-1}{(x^4+x+1)^2} = -\frac{x}{x^4+x+1} \Box$$
