$$\frac{2a^4x}{x^4+4a^4}=\frac{A}{x-a(1+i)}+\frac{B}{x-a(1-i)}+\frac{C}{x+a(1+i)}+\frac{D}{x+a(1-i)}$$
I am trying to calculate this, but it is too complicated. I am thinking that maybe I am using wrong method. What is the easiest method to solve this?
You may easily get rid of the $a$ parameter and just compute the partial fraction decomposition of $f(z)=\frac{z}{z^4+4}$. Such meromorphic function has simple poles at $\pm 1\pm i$, hence $$ \frac{z}{z^4+4} = \frac{A_+^+}{z-(+1+i)}+\frac{A_+^-}{z-(+1-i)}+\frac{A_-^+}{z-(-1+i)}+\frac{A_-^-}{z-(-1-i)} $$ with $$ A_+^+ = \text{Res}\left(f(z),z=+1+i\right)=\lim_{z\to (1+i)}\frac{z(z-(1+i))}{z^4+4}\stackrel{dH}{=}\lim_{z\to(1+i)}\frac{2z-(1+i)}{4z^3} $$ that is a straightforward limit to compute, and the same argument applies to $A_{\pm}^\pm$.