Hi, any help would be much appreciated. I think I'm missing some vital theorem or technique because I have no idea how to solve the following.

∫(3x^2+x+4)/(x^4+3x^2+2)dx

And

∫(-1/3x – 2/3) / (x^2+x+1)dx

Is there a general technique to use? Any hints at all?

Please and thank you.