The function has a simple pole at $z = i$. The residue at $z = i$ is given by: \[ \text{Res}(f, i) = \lim_{z \to i} (z - i) f(z) \] Substituting into the function: \[ \text{Res}(f, i) = \lim_{z \to i} \frac{z - i}{z^2 + 1} = \lim_{z \to i} \frac{z - i}{(z - i)(z + i)} = \frac{1}{2i} = -\frac{1}{2} \]