Following is an example of a rather involved partial fraction decomposition.
\begin{align*}
&\frac{7 \, x^{6} - 4 \, x^{5} + 41 \, x^{4} - 20 \, x^{3} + 24 \, x^{2} + 11 \, x + 16}{x(x-1)^2(x^2+4)^2}\\
=& \frac{A}{x}+\frac{B}{x-1}+\frac{C}{(x-1)^2}+\frac{Dx+E}{x^2+4}+\frac{Fx+G}{(x^2+4)^2}
\end{align*}
Using some algebra, it’s possible to find values for \(A\) through \(G\) to determine
\begin{align*}
&\frac{7 \, x^{6} - 4 \, x^{5} + 41 \, x^{4} - 20 \, x^{3} + 24 \, x^{2} + 11 \, x + 16}{x(x-1)^2(x^2+4)^2}\\
=& \frac{1}{x}+\frac{2}{x-1}+\frac{3}{(x-1)^2}+\frac{4x+5}{x^2+4}+\frac{6x+7}{(x^2+4)^2}\text{.}
\end{align*}