So we need to find the singularities and thus the residues of the function $z/2z^4+5z^2+2$. Since $2z^4+5z^2+2=(2z^2+1)(z^2+2)$, this function clearly has a simple pole at each of the points $z=\pm i\sqrt{2}$ and $z=\pm i/\sqrt{2}$. Only the latter two singularities lie inside the contour so we need only consider the residues at these points. For the residues we have that, using the results of Lemma 4.6.9, $$\operatorname*{res}\left(\frac{z}{2z^4+5z^2+2},\pm \frac{i}{\sqrt{2}}\right)=\frac{z}{8z^3+10z}\Biggr\rvert_{z=\pm i/\sqrt{2}}=\frac{1}{6}$$
This is an example of calculating residue, what I don't understand from all the examples is how do they sub in the values of $z$ given that its $±$ values, which one to use and how the get the answers. I have tried many attempts at subbing the value in but I don't get the desired result. Could someone explain the concept of $±i$ values and how to work residue in a step by step procedure?
A solution following the quoted results of the OP: Using the formula for residues of quotients (see the wikipedia article):
If $f(z)=\frac{p(z)}{q(z)}$ with $p(c)\not=0$, $q(c)=0$, and $q'(c)\not=0$, then the residue at $z=c$ is given by $$ \frac{p(c)}{q'(c)}. $$
In this case, $p(z)=z$ and $q(z)=2z^4+5z^2+2$. Therefore, $q'(z)=8z^3+10z$. Hence, the residue is given by substitution of the poles (roots of $q(z)$) into this fraction, which is exactly $$ \frac{z}{8z^3+10z} $$ as given by the OP. Then, substituting one of the given values, say $\frac{i}{\sqrt{2}}$ results in $$ \frac{\frac{i}{\sqrt{2}}}{8\left(\frac{i}{\sqrt{2}}\right)^3+10\left(\frac{i}{\sqrt{2}}\right)}=\frac{\frac{i}{\sqrt{2}}}{-\frac{4i}{\sqrt{2}}+\frac{10i}{\sqrt{2}}}= \frac{\frac{i}{\sqrt{2}}}{8\left(\frac{i}{\sqrt{2}}\right)^3+10\left(\frac{i}{\sqrt{2}}\right)}=\frac{\frac{i}{\sqrt{2}}}{\frac{6i}{\sqrt{2}}}. $$ Clearing fractions, you get $\frac{1}{6}$. You will get a similar result if you substitute $-\frac{i}{\sqrt{2}}$