Let's compute $\int\frac{t^4}{t^8+1}dt$ using partial fractions.
We start with locating the poles of the integrand in the complex plane. They are at $t_n = \exp\left[\frac{(2 n+1) i\pi}{8}\right]$. Then near each pole the singular behavior of the integrand is:
$$t_n^4\left[\lim_{t\to t_n}\frac{t-t_n}{t^8 + 1}\right]\frac{1}{t-t_n}=\frac{1}{8 t_n^3}\frac{1}{t-t_n}$$
Then the sum of this over n from n = 0 to n = 7 is the partial fraction expansion (to see this, subtract this from the integrand, the resulting expression doesn't have any singularities anymore therefore it must be a polynomial, but it tends to zero at infinity so it is identical to zero).
To compute the integral, you can integrate this term by term. To convert the expression with complex terms to a manifestly real expression, you can take the terms involving $t_n$ and $t_{8-n}$ together, they are complex conjugates of each other, so you can replace them by twice the real part of the term involving $t_n$ (except for n = 4 in which case the term is real). So, we need to simplify:
$$\Re\frac{1}{4 t_n^3}\log(t-t_n)$$
This is easy, we have an expression of the form
$$\exp(i\alpha)\log(t-\exp(i\beta))$$
The real and imaginary parts of the logarithm are obtained as follows. You write the arguments as the sum of the real and imaginary parts:
$$\log\left[t - \cos(\beta) - i\sin(\beta)\right]$$
And using
$$x+i y= \sqrt{x^2 + y^2}\exp(i\arctan(\frac{y}{x}))$$
where I've assumed for simplicity that $\arctan(\frac{y}{x})$ yields the correct argument of the complex number.
So, obtaining the integral is straightforward using partial fractions.