We can find the residue at each pole using the formula:
$$Res(f, z_0) = \lim_{z \to z_0} (z - z_0) f(z)$$
For $z = 2$, we have:
$$Res(f, 2) = \lim_{z \to 2} (z - 2) \frac{z^2}{(z-2)(z^2+1)} = \lim_{z \to 2} \frac{z^2}{z^2+1} = \frac{4}{5}$$
For $z = -i$, we
Show more…